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 @@ -163,6 +163,10 @@ public enum BYOKProviderSlug
/// <summary>
///
/// </summary>
InferactVllm,
/// <summary>
///
/// </summary>
InferenceNet,
/// <summary>
///
Expand Down Expand Up @@ -400,6 +404,7 @@ public static string ToValueString(this BYOKProviderSlug value)
BYOKProviderSlug.Groq => "groq",
BYOKProviderSlug.Inception => "inception",
BYOKProviderSlug.Inceptron => "inceptron",
BYOKProviderSlug.InferactVllm => "inferact-vllm",
BYOKProviderSlug.InferenceNet => "inference-net",
BYOKProviderSlug.Infermatic => "infermatic",
BYOKProviderSlug.Inflection => "inflection",
Expand Down Expand Up @@ -495,6 +500,7 @@ public static string ToValueString(this BYOKProviderSlug value)
"groq" => BYOKProviderSlug.Groq,
"inception" => BYOKProviderSlug.Inception,
"inceptron" => BYOKProviderSlug.Inceptron,
"inferact-vllm" => BYOKProviderSlug.InferactVllm,
"inference-net" => BYOKProviderSlug.InferenceNet,
"infermatic" => BYOKProviderSlug.Infermatic,
"inflection" => BYOKProviderSlug.Inflection,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ public enum ByokGetParametersProvider
/// <summary>
///
/// </summary>
InferactVllm,
/// <summary>
///
/// </summary>
InferenceNet,
/// <summary>
///
Expand Down Expand Up @@ -400,6 +404,7 @@ public static string ToValueString(this ByokGetParametersProvider value)
ByokGetParametersProvider.Groq => "groq",
ByokGetParametersProvider.Inception => "inception",
ByokGetParametersProvider.Inceptron => "inceptron",
ByokGetParametersProvider.InferactVllm => "inferact-vllm",
ByokGetParametersProvider.InferenceNet => "inference-net",
ByokGetParametersProvider.Infermatic => "infermatic",
ByokGetParametersProvider.Inflection => "inflection",
Expand Down Expand Up @@ -495,6 +500,7 @@ public static string ToValueString(this ByokGetParametersProvider value)
"groq" => ByokGetParametersProvider.Groq,
"inception" => ByokGetParametersProvider.Inception,
"inceptron" => ByokGetParametersProvider.Inceptron,
"inferact-vllm" => ByokGetParametersProvider.InferactVllm,
"inference-net" => ByokGetParametersProvider.InferenceNet,
"infermatic" => ByokGetParametersProvider.Infermatic,
"inflection" => ByokGetParametersProvider.Inflection,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,12 @@ public sealed partial class ImageGenerationRequestProviderOptions
[global::System.Text.Json.Serialization.JsonPropertyName("inceptron")]
public object? Inceptron { get; set; }

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

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -769,6 +775,7 @@ public sealed partial class ImageGenerationRequestProviderOptions
/// <param name="hyperbolicQuantized"></param>
/// <param name="inception"></param>
/// <param name="inceptron"></param>
/// <param name="inferactVllm"></param>
/// <param name="inferenceNet"></param>
/// <param name="infermatic"></param>
/// <param name="inflection"></param>
Expand Down Expand Up @@ -890,6 +897,7 @@ public ImageGenerationRequestProviderOptions(
object? hyperbolicQuantized,
object? inception,
object? inceptron,
object? inferactVllm,
object? inferenceNet,
object? infermatic,
object? inflection,
Expand Down Expand Up @@ -1008,6 +1016,7 @@ public ImageGenerationRequestProviderOptions(
this.HyperbolicQuantized = hyperbolicQuantized;
this.Inception = inception;
this.Inceptron = inceptron;
this.InferactVllm = inferactVllm;
this.InferenceNet = inferenceNet;
this.Infermatic = infermatic;
this.Inflection = inflection;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
#nullable enable

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

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

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

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

/// <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,141 @@
#nullable enable

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

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

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

/// <summary>
/// Deserializes a JSON stream using the generated default JsonSerializerContext.
/// </summary>
public static global::System.Threading.Tasks.ValueTask<global::OpenRouter.ImageGenerationRequestProviderOptionsInferactVllm2?> 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.ImageGenerationRequestProviderOptionsInferactVllm2?> 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.ImageGenerationRequestProviderOptionsInferactVllm2?>(
jsonStream,
jsonSerializerOptions);
}
}
}
Loading