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 @@ -283,6 +283,10 @@ public enum BYOKProviderSlug
/// <summary>
///
/// </summary>
SakanaAi,
/// <summary>
///
/// </summary>
Sambanova,
/// <summary>
///
Expand Down Expand Up @@ -426,6 +430,7 @@ public static string ToValueString(this BYOKProviderSlug value)
BYOKProviderSlug.Recraft => "recraft",
BYOKProviderSlug.Reka => "reka",
BYOKProviderSlug.Relace => "relace",
BYOKProviderSlug.SakanaAi => "sakana-ai",
BYOKProviderSlug.Sambanova => "sambanova",
BYOKProviderSlug.Seed => "seed",
BYOKProviderSlug.Siliconflow => "siliconflow",
Expand Down Expand Up @@ -520,6 +525,7 @@ public static string ToValueString(this BYOKProviderSlug value)
"recraft" => BYOKProviderSlug.Recraft,
"reka" => BYOKProviderSlug.Reka,
"relace" => BYOKProviderSlug.Relace,
"sakana-ai" => BYOKProviderSlug.SakanaAi,
"sambanova" => BYOKProviderSlug.Sambanova,
"seed" => BYOKProviderSlug.Seed,
"siliconflow" => BYOKProviderSlug.Siliconflow,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ public enum ByokGetParametersProvider
/// <summary>
///
/// </summary>
SakanaAi,
/// <summary>
///
/// </summary>
Sambanova,
/// <summary>
///
Expand Down Expand Up @@ -426,6 +430,7 @@ public static string ToValueString(this ByokGetParametersProvider value)
ByokGetParametersProvider.Recraft => "recraft",
ByokGetParametersProvider.Reka => "reka",
ByokGetParametersProvider.Relace => "relace",
ByokGetParametersProvider.SakanaAi => "sakana-ai",
ByokGetParametersProvider.Sambanova => "sambanova",
ByokGetParametersProvider.Seed => "seed",
ByokGetParametersProvider.Siliconflow => "siliconflow",
Expand Down Expand Up @@ -520,6 +525,7 @@ public static string ToValueString(this ByokGetParametersProvider value)
"recraft" => ByokGetParametersProvider.Recraft,
"reka" => ByokGetParametersProvider.Reka,
"relace" => ByokGetParametersProvider.Relace,
"sakana-ai" => ByokGetParametersProvider.SakanaAi,
"sambanova" => ByokGetParametersProvider.Sambanova,
"seed" => ByokGetParametersProvider.Seed,
"siliconflow" => ByokGetParametersProvider.Siliconflow,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public sealed partial class FusionServerToolConfig
public global::OpenRouter.FusionServerToolConfigReasoning? Reasoning { get; set; }

/// <summary>
/// Sampling temperature forwarded to panelist and judge inner calls. When omitted, the provider's default applies.
/// Temperature forwarded to panelist inner calls. The judge always runs at temperature 0 regardless of this value. When omitted, the provider's default applies.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("temperature")]
public double? Temperature { get; set; }
Expand Down Expand Up @@ -84,7 +84,7 @@ public sealed partial class FusionServerToolConfig
/// Reasoning configuration forwarded to panelist and judge inner calls. Use this to control reasoning effort and token budget for models that support extended thinking.
/// </param>
/// <param name="temperature">
/// Sampling temperature forwarded to panelist and judge inner calls. When omitted, the provider's default applies.
/// Temperature forwarded to panelist inner calls. The judge always runs at temperature 0 regardless of this value. When omitted, the provider's default applies.
/// </param>
/// <param name="tools">
/// Server tools available to panelist and judge inner calls. Each entry uses the same `{ type, parameters? }` shorthand as the outer Chat Completions request. When omitted, defaults to `[{ type: "openrouter:web_search" }, { type: "openrouter:web_fetch" }]`. Pass an empty array to disable tools entirely (panelists answer from parametric knowledge only).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,12 @@ public sealed partial class ImageGenerationRequestProviderOptions
[global::System.Text.Json.Serialization.JsonPropertyName("replicate")]
public object? Replicate { get; set; }

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

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -807,6 +813,7 @@ public sealed partial class ImageGenerationRequestProviderOptions
/// <param name="reka"></param>
/// <param name="relace"></param>
/// <param name="replicate"></param>
/// <param name="sakanaAi"></param>
/// <param name="sambanova"></param>
/// <param name="sambanovaCloaked"></param>
/// <param name="seed"></param>
Expand Down Expand Up @@ -927,6 +934,7 @@ public ImageGenerationRequestProviderOptions(
object? reka,
object? relace,
object? replicate,
object? sakanaAi,
object? sambanova,
object? sambanovaCloaked,
object? seed,
Expand Down Expand Up @@ -1044,6 +1052,7 @@ public ImageGenerationRequestProviderOptions(
this.Reka = reka;
this.Relace = relace;
this.Replicate = replicate;
this.SakanaAi = sakanaAi;
this.Sambanova = sambanova;
this.SambanovaCloaked = sambanovaCloaked;
this.Seed = seed;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
#nullable enable

namespace OpenRouter
{
public sealed partial class ImageGenerationRequestProviderOptionsSakanaAi
{
/// <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 generated default JsonSerializerContext.
/// </summary>
public string ToJson()
{
return ToJson(global::OpenRouter.SourceGenerationContext.Default);
}

/// <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)
{
if (jsonSerializerOptions is null)
{
return ToJson(global::OpenRouter.SourceGenerationContext.Default);
}

return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
}

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

/// <summary>
/// Deserializes a JSON string using the generated default JsonSerializerContext.
/// </summary>
public static global::OpenRouter.ImageGenerationRequestProviderOptionsSakanaAi? FromJson(
string json)
{
return FromJson(
json,
global::OpenRouter.SourceGenerationContext.Default);
}

/// <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.ImageGenerationRequestProviderOptionsSakanaAi? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
if (jsonSerializerOptions is null)
{
return FromJson(
json,
global::OpenRouter.SourceGenerationContext.Default);
}

return global::System.Text.Json.JsonSerializer.Deserialize<global::OpenRouter.ImageGenerationRequestProviderOptionsSakanaAi>(
json,
jsonSerializerOptions);
}

/// <summary>
/// Deserializes a JSON stream using the provided JsonSerializerContext.
/// </summary>
public static async global::System.Threading.Tasks.ValueTask<global::OpenRouter.ImageGenerationRequestProviderOptionsSakanaAi?> 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.ImageGenerationRequestProviderOptionsSakanaAi),
jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationRequestProviderOptionsSakanaAi;
}

/// <summary>
/// Deserializes a JSON stream using the generated default JsonSerializerContext.
/// </summary>
public static global::System.Threading.Tasks.ValueTask<global::OpenRouter.ImageGenerationRequestProviderOptionsSakanaAi?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream)
{
return FromJsonStreamAsync(
jsonStream,
global::OpenRouter.SourceGenerationContext.Default);
}

/// <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.ImageGenerationRequestProviderOptionsSakanaAi?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
if (jsonSerializerOptions is null)
{
return FromJsonStreamAsync(
jsonStream,
global::OpenRouter.SourceGenerationContext.Default);
}

return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::OpenRouter.ImageGenerationRequestProviderOptionsSakanaAi?>(
jsonStream,
jsonSerializerOptions);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

#nullable enable

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

/// <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>();

}
}
Loading