Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ public enum ProviderName
/// <summary>
///
/// </summary>
Baidu,
/// <summary>
///
/// </summary>
BaseTen,
/// <summary>
///
Expand Down Expand Up @@ -346,6 +350,7 @@ public static string ToValueString(this ProviderName value)
ProviderName.AtlasCloud => "AtlasCloud",
ProviderName.Avian => "Avian",
ProviderName.Azure => "Azure",
ProviderName.Baidu => "Baidu",
ProviderName.BaseTen => "BaseTen",
ProviderName.BlackForestLabs => "Black Forest Labs",
ProviderName.BytePlus => "BytePlus",
Expand Down Expand Up @@ -434,6 +439,7 @@ public static string ToValueString(this ProviderName value)
"AtlasCloud" => ProviderName.AtlasCloud,
"Avian" => ProviderName.Avian,
"Azure" => ProviderName.Azure,
"Baidu" => ProviderName.Baidu,
"BaseTen" => ProviderName.BaseTen,
"Black Forest Labs" => ProviderName.BlackForestLabs,
"BytePlus" => ProviderName.BytePlus,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ public enum ProviderResponseProviderName
/// <summary>
///
/// </summary>
Baidu,
/// <summary>
///
/// </summary>
BaseTen,
/// <summary>
///
Expand Down Expand Up @@ -461,6 +465,7 @@ public static string ToValueString(this ProviderResponseProviderName value)
ProviderResponseProviderName.Atoma => "Atoma",
ProviderResponseProviderName.Avian => "Avian",
ProviderResponseProviderName.Azure => "Azure",
ProviderResponseProviderName.Baidu => "Baidu",
ProviderResponseProviderName.BaseTen => "BaseTen",
ProviderResponseProviderName.BlackForestLabs => "Black Forest Labs",
ProviderResponseProviderName.BytePlus => "BytePlus",
Expand Down Expand Up @@ -577,6 +582,7 @@ public static string ToValueString(this ProviderResponseProviderName value)
"Atoma" => ProviderResponseProviderName.Atoma,
"Avian" => ProviderResponseProviderName.Avian,
"Azure" => ProviderResponseProviderName.Azure,
"Baidu" => ProviderResponseProviderName.Baidu,
"BaseTen" => ProviderResponseProviderName.BaseTen,
"Black Forest Labs" => ProviderResponseProviderName.BlackForestLabs,
"BytePlus" => ProviderResponseProviderName.BytePlus,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ public sealed partial class VideoGenerationRequestProviderOptions
[global::System.Text.Json.Serialization.JsonPropertyName("azure")]
public object? Azure { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("baidu")]
public object? Baidu { get; set; }

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -668,6 +674,7 @@ public sealed partial class VideoGenerationRequestProviderOptions
/// <param name="atoma"></param>
/// <param name="avian"></param>
/// <param name="azure"></param>
/// <param name="baidu"></param>
/// <param name="baseten"></param>
/// <param name="blackForestLabs"></param>
/// <param name="byteplus"></param>
Expand Down Expand Up @@ -778,6 +785,7 @@ public VideoGenerationRequestProviderOptions(
object? atoma,
object? avian,
object? azure,
object? baidu,
object? baseten,
object? blackForestLabs,
object? byteplus,
Expand Down Expand Up @@ -885,6 +893,7 @@ public VideoGenerationRequestProviderOptions(
this.Atoma = atoma;
this.Avian = avian;
this.Azure = azure;
this.Baidu = baidu;
this.Baseten = baseten;
this.BlackForestLabs = blackForestLabs;
this.Byteplus = byteplus;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
#nullable enable

namespace OpenRouter
{
public sealed partial class VideoGenerationRequestProviderOptionsBaidu
{
/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
/// </summary>
public string ToJson(
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
/// </summary>
#if NET8_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerContext.
/// </summary>
public static global::OpenRouter.VideoGenerationRequestProviderOptionsBaidu? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::OpenRouter.VideoGenerationRequestProviderOptionsBaidu),
jsonSerializerContext) as global::OpenRouter.VideoGenerationRequestProviderOptionsBaidu;
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerOptions.
/// </summary>
#if NET8_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public static global::OpenRouter.VideoGenerationRequestProviderOptionsBaidu? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::OpenRouter.VideoGenerationRequestProviderOptionsBaidu>(
json,
jsonSerializerOptions);
}

/// <summary>
/// Deserializes a JSON stream using the provided JsonSerializerContext.
/// </summary>
public static async global::System.Threading.Tasks.ValueTask<global::OpenRouter.VideoGenerationRequestProviderOptionsBaidu?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
typeof(global::OpenRouter.VideoGenerationRequestProviderOptionsBaidu),
jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.VideoGenerationRequestProviderOptionsBaidu;
}

/// <summary>
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
/// </summary>
#if NET8_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public static global::System.Threading.Tasks.ValueTask<global::OpenRouter.VideoGenerationRequestProviderOptionsBaidu?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::OpenRouter.VideoGenerationRequestProviderOptionsBaidu?>(
jsonStream,
jsonSerializerOptions);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

#nullable enable

namespace OpenRouter
{
/// <summary>
///
/// </summary>
public sealed partial class VideoGenerationRequestProviderOptionsBaidu
{

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
#nullable enable

namespace OpenRouter
{
public sealed partial class VideoGenerationRequestProviderOptionsBaidu2
{
/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
/// </summary>
public string ToJson(
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
/// </summary>
#if NET8_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerContext.
/// </summary>
public static global::OpenRouter.VideoGenerationRequestProviderOptionsBaidu2? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::OpenRouter.VideoGenerationRequestProviderOptionsBaidu2),
jsonSerializerContext) as global::OpenRouter.VideoGenerationRequestProviderOptionsBaidu2;
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerOptions.
/// </summary>
#if NET8_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public static global::OpenRouter.VideoGenerationRequestProviderOptionsBaidu2? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.Deserialize<global::OpenRouter.VideoGenerationRequestProviderOptionsBaidu2>(
json,
jsonSerializerOptions);
}

/// <summary>
/// Deserializes a JSON stream using the provided JsonSerializerContext.
/// </summary>
public static async global::System.Threading.Tasks.ValueTask<global::OpenRouter.VideoGenerationRequestProviderOptionsBaidu2?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
typeof(global::OpenRouter.VideoGenerationRequestProviderOptionsBaidu2),
jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.VideoGenerationRequestProviderOptionsBaidu2;
}

/// <summary>
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
/// </summary>
#if NET8_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public static global::System.Threading.Tasks.ValueTask<global::OpenRouter.VideoGenerationRequestProviderOptionsBaidu2?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::OpenRouter.VideoGenerationRequestProviderOptionsBaidu2?>(
jsonStream,
jsonSerializerOptions);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

#nullable enable

namespace OpenRouter
{
/// <summary>
/// Any type
/// </summary>
public sealed partial class VideoGenerationRequestProviderOptionsBaidu2
{

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();
}
}
8 changes: 8 additions & 0 deletions src/libs/OpenRouter/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5290,6 +5290,7 @@
"AionLabs",
"Alibaba",
"Ambient",
"Baidu",
"Amazon Bedrock",
"Amazon Nova",
"Anthropic",
Expand Down Expand Up @@ -13492,6 +13493,7 @@
"AionLabs",
"Alibaba",
"Ambient",
"Baidu",
"Amazon Bedrock",
"Amazon Nova",
"Anthropic",
Expand Down Expand Up @@ -20829,6 +20831,12 @@
"description": "Any type"
}
},
"baidu": {
"type": "object",
"additionalProperties": {
"description": "Any type"
}
},
"baseten": {
"type": "object",
"additionalProperties": {
Expand Down