Skip to content

Commit

Permalink
Merge pull request #28 from tryAGI/bot/update-openapi_202408121232
Browse files Browse the repository at this point in the history
feat:Updated OpenAPI spec
  • Loading branch information
HavenDV authored Aug 12, 2024
2 parents 7e5133d + e61d76b commit 8b0f043
Show file tree
Hide file tree
Showing 17 changed files with 47 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,21 +169,21 @@ partial void ProcessOpenaiChatCompletionsV1OpenaiChatCompletionsPostResponseCont
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::DeepInfra.OpenaiChatCompletionsV1OpenaiChatCompletionsPostResponse> OpenaiChatCompletionsV1OpenaiChatCompletionsPostAsync(
string model,
global::System.Collections.Generic.IList<global::System.AnyOf<global::DeepInfra.ChatCompletionToolMessage?, global::DeepInfra.ChatCompletionAssistantMessage?, global::DeepInfra.ChatCompletionUserMessage?, global::DeepInfra.ChatCompletionSystemMessage?>> messages,
global::System.Collections.Generic.IList<global::System.AnyOf<global::DeepInfra.ChatCompletionToolMessage, global::DeepInfra.ChatCompletionAssistantMessage, global::DeepInfra.ChatCompletionUserMessage, global::DeepInfra.ChatCompletionSystemMessage>> messages,
string? xDeepinfraSource = default,
string? userAgent = default,
bool stream = false,
double temperature = 1,
double topP = 1,
int topK = 0,
int maxTokens = 512,
global::System.AnyOf<string?, global::System.Collections.Generic.IList<string>?>? stop = default,
global::System.AnyOf<string?, global::System.Collections.Generic.IList<string>>? stop = default,
int n = 1,
double presencePenalty = 0,
double frequencyPenalty = 0,
global::System.Collections.Generic.IList<global::DeepInfra.ChatTools>? tools = default,
string? toolChoice = default,
global::System.AllOf<global::DeepInfra.ResponseFormat4?>? responseFormat = default,
global::System.AllOf<global::DeepInfra.ResponseFormat4>? responseFormat = default,
double repetitionPenalty = 1,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ partial void ProcessOpenaiCompletionsV1OpenaiCompletionsPostResponseContent(
bool stream = false,
int logprobs = default,
bool echo = default,
global::System.AnyOf<string?, global::System.Collections.Generic.IList<string>?>? stop = default,
global::System.AnyOf<string?, global::System.Collections.Generic.IList<string>>? stop = default,
double presencePenalty = 0,
double frequencyPenalty = 0,
global::System.AllOf<global::DeepInfra.ResponseFormat4?>? responseFormat = default,
global::System.AllOf<global::DeepInfra.ResponseFormat4>? responseFormat = default,
double repetitionPenalty = 1,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ partial void ProcessOpenaiEmbeddingsV1OpenaiEmbeddingsPostResponseContent(
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::DeepInfra.OpenaiEmbeddingsV1OpenaiEmbeddingsPostResponse> OpenaiEmbeddingsV1OpenaiEmbeddingsPostAsync(
string model,
global::System.AnyOf<global::System.Collections.Generic.IList<string>?, string?> input,
global::System.AnyOf<global::System.Collections.Generic.IList<string>, string?> input,
string? xDeepinfraSource = default,
string? userAgent = default,
global::DeepInfra.OpenAIEmbeddingsInEncodingFormat? encodingFormat = global::DeepInfra.OpenAIEmbeddingsInEncodingFormat.Float,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public sealed partial class ChatCompletionMessageToolCall
[global::System.Text.Json.Serialization.JsonPropertyName("function")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.AllOf<global::DeepInfra.Function2?> Function { get; set; }
public required global::System.AllOf<global::DeepInfra.Function2> Function { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public sealed partial class ChatCompletionUserMessage
[global::System.Text.Json.Serialization.JsonPropertyName("content")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.AnyOf<string?, global::System.Collections.Generic.IList<global::System.AnyOf<global::DeepInfra.ChatCompletionContentPartText?, global::DeepInfra.ChatCompletionContentPartImage?>>?> Content { get; set; }
public required global::System.AnyOf<string?, global::System.Collections.Generic.IList<global::System.AnyOf<global::DeepInfra.ChatCompletionContentPartText, global::DeepInfra.ChatCompletionContentPartImage>>> Content { get; set; }

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public sealed partial class DeployLLMConfig
[global::System.Text.Json.Serialization.JsonPropertyName("weights")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.AllOf<global::DeepInfra.HFWeights?> Weights { get; set; }
public required global::System.AllOf<global::DeepInfra.HFWeights> Weights { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,21 +84,21 @@ public sealed partial class DeploymentOut
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("instances")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
public global::System.AllOf<global::DeepInfra.DeployInstances?>? Instances { get; set; }
public global::System.AllOf<global::DeepInfra.DeployInstances>? Instances { get; set; }

/// <summary>
/// Immutable deploy configuration
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("config")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
public global::System.AllOf<global::DeepInfra.DeployLLMConfig?>? Config { get; set; }
public global::System.AllOf<global::DeepInfra.DeployLLMConfig>? Config { get; set; }

/// <summary>
/// Scale Settings
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("settings")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
public global::System.AllOf<global::DeepInfra.ScaleSettings?>? Settings { get; set; }
public global::System.AllOf<global::DeepInfra.ScaleSettings>? Settings { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ public sealed partial class DetailedDeploymentStatsOut
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("llm")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
public global::System.AllOf<global::DeepInfra.LLMDeploymentStatsOut?>? Llm { get; set; }
public global::System.AllOf<global::DeepInfra.LLMDeploymentStatsOut>? Llm { get; set; }

/// <summary>
/// Embeddings Deployment Stats
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("embeddings")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
public global::System.AllOf<global::DeepInfra.EmbeddingsDeploymentStatsOut?>? Embeddings { get; set; }
public global::System.AllOf<global::DeepInfra.EmbeddingsDeploymentStatsOut>? Embeddings { get; set; }

/// <summary>
/// Time based Deployment Stats
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("time")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
public global::System.AllOf<global::DeepInfra.TimeDeploymentStatsOut?>? Time { get; set; }
public global::System.AllOf<global::DeepInfra.TimeDeploymentStatsOut>? Time { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public sealed partial class ModelInfoOut
[global::System.Text.Json.Serialization.JsonPropertyName("pricing")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory6))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.AnyOf<global::DeepInfra.ModelPricingTime?, global::DeepInfra.ModelPricingUptime?, global::DeepInfra.ModelPricingTokens?, global::DeepInfra.ModelPricingInputLength?, global::DeepInfra.ModelPricingInputTokens?, global::DeepInfra.ModelPricingInputCharacterLength?> Pricing { get; set; }
public required global::System.AnyOf<global::DeepInfra.ModelPricingTime, global::DeepInfra.ModelPricingUptime, global::DeepInfra.ModelPricingTokens, global::DeepInfra.ModelPricingInputLength, global::DeepInfra.ModelPricingInputTokens, global::DeepInfra.ModelPricingInputCharacterLength> Pricing { get; set; }

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public sealed partial class ModelOut
[global::System.Text.Json.Serialization.JsonPropertyName("pricing")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory6))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.AnyOf<global::DeepInfra.ModelPricingTime?, global::DeepInfra.ModelPricingTokens?, global::DeepInfra.ModelPricingInputLength?, global::DeepInfra.ModelPricingInputTokens?, global::DeepInfra.ModelPricingUptime?, global::DeepInfra.ModelPricingInputCharacterLength?> Pricing { get; set; }
public required global::System.AnyOf<global::DeepInfra.ModelPricingTime, global::DeepInfra.ModelPricingTokens, global::DeepInfra.ModelPricingInputLength, global::DeepInfra.ModelPricingInputTokens, global::DeepInfra.ModelPricingUptime, global::DeepInfra.ModelPricingInputCharacterLength> Pricing { get; set; }

/// <summary>
/// The maximum context size of this model, if applicable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public sealed partial class OpenAIChatCompletionsIn
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("messages")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Collections.Generic.IList<global::System.AnyOf<global::DeepInfra.ChatCompletionToolMessage?, global::DeepInfra.ChatCompletionAssistantMessage?, global::DeepInfra.ChatCompletionUserMessage?, global::DeepInfra.ChatCompletionSystemMessage?>> Messages { get; set; }
public required global::System.Collections.Generic.IList<global::System.AnyOf<global::DeepInfra.ChatCompletionToolMessage, global::DeepInfra.ChatCompletionAssistantMessage, global::DeepInfra.ChatCompletionUserMessage, global::DeepInfra.ChatCompletionSystemMessage>> Messages { get; set; }

/// <summary>
/// whether to stream the output via SSE or return the full response<br/>
Expand Down Expand Up @@ -65,7 +65,7 @@ public sealed partial class OpenAIChatCompletionsIn
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("stop")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
public global::System.AnyOf<string?, global::System.Collections.Generic.IList<string>?>? Stop { get; set; }
public global::System.AnyOf<string?, global::System.Collections.Generic.IList<string>>? Stop { get; set; }

/// <summary>
/// number of sequences to return. n != 1 incompatible with streaming<br/>
Expand Down Expand Up @@ -105,7 +105,7 @@ public sealed partial class OpenAIChatCompletionsIn
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("response_format")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
public global::System.AllOf<global::DeepInfra.ResponseFormat4?>? ResponseFormat { get; set; }
public global::System.AllOf<global::DeepInfra.ResponseFormat4>? ResponseFormat { get; set; }

/// <summary>
/// Alternative penalty for repetition, but multiplicative instead of additive (&gt; 1 penalize, &lt; 1 encourage)<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public sealed partial class OpenAICompletionsIn
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("stop")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
public global::System.AnyOf<string?, global::System.Collections.Generic.IList<string>?>? Stop { get; set; }
public global::System.AnyOf<string?, global::System.Collections.Generic.IList<string>>? Stop { get; set; }

/// <summary>
/// Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.<br/>
Expand All @@ -105,7 +105,7 @@ public sealed partial class OpenAICompletionsIn
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("response_format")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
public global::System.AllOf<global::DeepInfra.ResponseFormat4?>? ResponseFormat { get; set; }
public global::System.AllOf<global::DeepInfra.ResponseFormat4>? ResponseFormat { get; set; }

/// <summary>
/// Alternative penalty for repetition, but multiplicative instead of additive (&gt; 1 penalize, &lt; 1 encourage)<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public sealed partial class OpenAIEmbeddingsIn
[global::System.Text.Json.Serialization.JsonPropertyName("input")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.AnyOf<global::System.Collections.Generic.IList<string>?, string?> Input { get; set; }
public required global::System.AnyOf<global::System.Collections.Generic.IList<string>, string?> Input { get; set; }

/// <summary>
/// format used when encoding<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public sealed partial class UsageItem
[global::System.Text.Json.Serialization.JsonPropertyName("interval")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.AllOf<global::DeepInfra.TimeInterval?> Interval { get; set; }
public required global::System.AllOf<global::DeepInfra.TimeInterval> Interval { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public sealed partial class UsageMonth
[global::System.Text.Json.Serialization.JsonPropertyName("interval")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.AllOf<global::DeepInfra.TimeInterval?> Interval { get; set; }
public required global::System.AllOf<global::DeepInfra.TimeInterval> Interval { get; set; }

/// <summary>
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public sealed partial class ValidationError
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("loc")]
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Collections.Generic.IList<global::System.AnyOf<string?, int>> Loc { get; set; }
public required global::System.Collections.Generic.IList<global::System.AnyOf<string?, int?>> Loc { get; set; }

/// <summary>
///
Expand Down
Loading

0 comments on commit 8b0f043

Please sign in to comment.