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 @@ -53,7 +53,7 @@ public partial interface ISubpackageImagesClient
/// Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.
/// </param>
/// <param name="outputFormat">
/// Encoding of the returned image bytes.
/// Encoding of the returned image bytes. Most models produce raster formats (png, jpeg, webp). SVG is supported by vectorization models (e.g. Quiver) — the SVG markup is UTF-8 base64-encoded in `b64_json`.
/// </param>
/// <param name="prompt">
/// Text description of the desired image
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@ public enum BYOKProviderSlug
/// <summary>
///
/// </summary>
Quiver,
/// <summary>
///
/// </summary>
Recraft,
/// <summary>
///
Expand Down Expand Up @@ -437,6 +441,7 @@ public static string ToValueString(this BYOKProviderSlug value)
BYOKProviderSlug.Perplexity => "perplexity",
BYOKProviderSlug.Phala => "phala",
BYOKProviderSlug.Poolside => "poolside",
BYOKProviderSlug.Quiver => "quiver",
BYOKProviderSlug.Recraft => "recraft",
BYOKProviderSlug.Reka => "reka",
BYOKProviderSlug.Relace => "relace",
Expand Down Expand Up @@ -534,6 +539,7 @@ public static string ToValueString(this BYOKProviderSlug value)
"perplexity" => BYOKProviderSlug.Perplexity,
"phala" => BYOKProviderSlug.Phala,
"poolside" => BYOKProviderSlug.Poolside,
"quiver" => BYOKProviderSlug.Quiver,
"recraft" => BYOKProviderSlug.Recraft,
"reka" => BYOKProviderSlug.Reka,
"relace" => BYOKProviderSlug.Relace,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@ public enum ByokGetParametersProvider
/// <summary>
///
/// </summary>
Quiver,
/// <summary>
///
/// </summary>
Recraft,
/// <summary>
///
Expand Down Expand Up @@ -437,6 +441,7 @@ public static string ToValueString(this ByokGetParametersProvider value)
ByokGetParametersProvider.Perplexity => "perplexity",
ByokGetParametersProvider.Phala => "phala",
ByokGetParametersProvider.Poolside => "poolside",
ByokGetParametersProvider.Quiver => "quiver",
ByokGetParametersProvider.Recraft => "recraft",
ByokGetParametersProvider.Reka => "reka",
ByokGetParametersProvider.Relace => "relace",
Expand Down Expand Up @@ -534,6 +539,7 @@ public static string ToValueString(this ByokGetParametersProvider value)
"perplexity" => ByokGetParametersProvider.Perplexity,
"phala" => ByokGetParametersProvider.Phala,
"poolside" => ByokGetParametersProvider.Poolside,
"quiver" => ByokGetParametersProvider.Quiver,
"recraft" => ByokGetParametersProvider.Recraft,
"reka" => ByokGetParametersProvider.Reka,
"relace" => ByokGetParametersProvider.Relace,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public sealed partial class ImageGenerationRequest
public int? OutputCompression { get; set; }

/// <summary>
/// Encoding of the returned image bytes.
/// Encoding of the returned image bytes. Most models produce raster formats (png, jpeg, webp). SVG is supported by vectorization models (e.g. Quiver) — the SVG markup is UTF-8 base64-encoded in `b64_json`.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("output_format")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ImageGenerationRequestOutputFormatJsonConverter))]
Expand Down Expand Up @@ -130,7 +130,7 @@ public sealed partial class ImageGenerationRequest
/// Compression level (0-100) for webp/jpeg output. Ignored for png and by providers without a compression knob.
/// </param>
/// <param name="outputFormat">
/// Encoding of the returned image bytes.
/// Encoding of the returned image bytes. Most models produce raster formats (png, jpeg, webp). SVG is supported by vectorization models (e.g. Quiver) — the SVG markup is UTF-8 base64-encoded in `b64_json`.
/// </param>
/// <param name="provider">
/// Provider-specific passthrough configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace OpenRouter
{
/// <summary>
/// Encoding of the returned image bytes.
/// Encoding of the returned image bytes. Most models produce raster formats (png, jpeg, webp). SVG is supported by vectorization models (e.g. Quiver) — the SVG markup is UTF-8 base64-encoded in `b64_json`.
/// </summary>
public enum ImageGenerationRequestOutputFormat
{
Expand All @@ -19,6 +19,10 @@ public enum ImageGenerationRequestOutputFormat
/// <summary>
///
/// </summary>
Svg,
/// <summary>
///
/// </summary>
Webp,
}

Expand All @@ -36,6 +40,7 @@ public static string ToValueString(this ImageGenerationRequestOutputFormat value
{
ImageGenerationRequestOutputFormat.Jpeg => "jpeg",
ImageGenerationRequestOutputFormat.Png => "png",
ImageGenerationRequestOutputFormat.Svg => "svg",
ImageGenerationRequestOutputFormat.Webp => "webp",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
Expand All @@ -49,6 +54,7 @@ public static string ToValueString(this ImageGenerationRequestOutputFormat value
{
"jpeg" => ImageGenerationRequestOutputFormat.Jpeg,
"png" => ImageGenerationRequestOutputFormat.Png,
"svg" => ImageGenerationRequestOutputFormat.Svg,
"webp" => ImageGenerationRequestOutputFormat.Webp,
_ => null,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,12 @@ public sealed partial class ImageGenerationRequestProviderOptions
[global::System.Text.Json.Serialization.JsonPropertyName("poolside")]
public object? Poolside { get; set; }

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

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -821,6 +827,7 @@ public sealed partial class ImageGenerationRequestProviderOptions
/// <param name="perplexity"></param>
/// <param name="phala"></param>
/// <param name="poolside"></param>
/// <param name="quiver"></param>
/// <param name="recraft"></param>
/// <param name="recursal"></param>
/// <param name="reflection"></param>
Expand Down Expand Up @@ -944,6 +951,7 @@ public ImageGenerationRequestProviderOptions(
object? perplexity,
object? phala,
object? poolside,
object? quiver,
object? recraft,
object? recursal,
object? reflection,
Expand Down Expand Up @@ -1064,6 +1072,7 @@ public ImageGenerationRequestProviderOptions(
this.Perplexity = perplexity;
this.Phala = phala;
this.Poolside = poolside;
this.Quiver = quiver;
this.Recraft = recraft;
this.Recursal = recursal;
this.Reflection = reflection;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
#nullable enable

namespace OpenRouter
{
public sealed partial class ImageGenerationRequestProviderOptionsQuiver
{
/// <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.ImageGenerationRequestProviderOptionsQuiver? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::OpenRouter.ImageGenerationRequestProviderOptionsQuiver),
jsonSerializerContext) as global::OpenRouter.ImageGenerationRequestProviderOptionsQuiver;
}

/// <summary>
/// Deserializes a JSON string using the generated default JsonSerializerContext.
/// </summary>
public static global::OpenRouter.ImageGenerationRequestProviderOptionsQuiver? 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.ImageGenerationRequestProviderOptionsQuiver? 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.ImageGenerationRequestProviderOptionsQuiver>(
json,
jsonSerializerOptions);
}

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

/// <summary>
/// Deserializes a JSON stream using the generated default JsonSerializerContext.
/// </summary>
public static global::System.Threading.Tasks.ValueTask<global::OpenRouter.ImageGenerationRequestProviderOptionsQuiver?> 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.ImageGenerationRequestProviderOptionsQuiver?> 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.ImageGenerationRequestProviderOptionsQuiver?>(
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 ImageGenerationRequestProviderOptionsQuiver
{

/// <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