Skip to content

Commit 8b0f043

Browse files
authored
Merge pull request #28 from tryAGI/bot/update-openapi_202408121232
feat:Updated OpenAPI spec
2 parents 7e5133d + e61d76b commit 8b0f043

17 files changed

+47
-47
lines changed

src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.OpenaiChatCompletionsV1OpenaiChatCompletionsPost.g.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,21 +169,21 @@ partial void ProcessOpenaiChatCompletionsV1OpenaiChatCompletionsPostResponseCont
169169
/// <exception cref="global::System.InvalidOperationException"></exception>
170170
public async global::System.Threading.Tasks.Task<global::DeepInfra.OpenaiChatCompletionsV1OpenaiChatCompletionsPostResponse> OpenaiChatCompletionsV1OpenaiChatCompletionsPostAsync(
171171
string model,
172-
global::System.Collections.Generic.IList<global::System.AnyOf<global::DeepInfra.ChatCompletionToolMessage?, global::DeepInfra.ChatCompletionAssistantMessage?, global::DeepInfra.ChatCompletionUserMessage?, global::DeepInfra.ChatCompletionSystemMessage?>> messages,
172+
global::System.Collections.Generic.IList<global::System.AnyOf<global::DeepInfra.ChatCompletionToolMessage, global::DeepInfra.ChatCompletionAssistantMessage, global::DeepInfra.ChatCompletionUserMessage, global::DeepInfra.ChatCompletionSystemMessage>> messages,
173173
string? xDeepinfraSource = default,
174174
string? userAgent = default,
175175
bool stream = false,
176176
double temperature = 1,
177177
double topP = 1,
178178
int topK = 0,
179179
int maxTokens = 512,
180-
global::System.AnyOf<string?, global::System.Collections.Generic.IList<string>?>? stop = default,
180+
global::System.AnyOf<string?, global::System.Collections.Generic.IList<string>>? stop = default,
181181
int n = 1,
182182
double presencePenalty = 0,
183183
double frequencyPenalty = 0,
184184
global::System.Collections.Generic.IList<global::DeepInfra.ChatTools>? tools = default,
185185
string? toolChoice = default,
186-
global::System.AllOf<global::DeepInfra.ResponseFormat4?>? responseFormat = default,
186+
global::System.AllOf<global::DeepInfra.ResponseFormat4>? responseFormat = default,
187187
double repetitionPenalty = 1,
188188
global::System.Threading.CancellationToken cancellationToken = default)
189189
{

src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.OpenaiCompletionsV1OpenaiCompletionsPost.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ partial void ProcessOpenaiCompletionsV1OpenaiCompletionsPostResponseContent(
180180
bool stream = false,
181181
int logprobs = default,
182182
bool echo = default,
183-
global::System.AnyOf<string?, global::System.Collections.Generic.IList<string>?>? stop = default,
183+
global::System.AnyOf<string?, global::System.Collections.Generic.IList<string>>? stop = default,
184184
double presencePenalty = 0,
185185
double frequencyPenalty = 0,
186-
global::System.AllOf<global::DeepInfra.ResponseFormat4?>? responseFormat = default,
186+
global::System.AllOf<global::DeepInfra.ResponseFormat4>? responseFormat = default,
187187
double repetitionPenalty = 1,
188188
global::System.Threading.CancellationToken cancellationToken = default)
189189
{

src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.OpenaiEmbeddingsV1OpenaiEmbeddingsPost.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ partial void ProcessOpenaiEmbeddingsV1OpenaiEmbeddingsPostResponseContent(
126126
/// <exception cref="global::System.InvalidOperationException"></exception>
127127
public async global::System.Threading.Tasks.Task<global::DeepInfra.OpenaiEmbeddingsV1OpenaiEmbeddingsPostResponse> OpenaiEmbeddingsV1OpenaiEmbeddingsPostAsync(
128128
string model,
129-
global::System.AnyOf<global::System.Collections.Generic.IList<string>?, string?> input,
129+
global::System.AnyOf<global::System.Collections.Generic.IList<string>, string?> input,
130130
string? xDeepinfraSource = default,
131131
string? userAgent = default,
132132
global::DeepInfra.OpenAIEmbeddingsInEncodingFormat? encodingFormat = global::DeepInfra.OpenAIEmbeddingsInEncodingFormat.Float,

src/libs/DeepInfra/Generated/DeepInfra.Models.ChatCompletionMessageToolCall.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public sealed partial class ChatCompletionMessageToolCall
3030
[global::System.Text.Json.Serialization.JsonPropertyName("function")]
3131
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
3232
[global::System.Text.Json.Serialization.JsonRequired]
33-
public required global::System.AllOf<global::DeepInfra.Function2?> Function { get; set; }
33+
public required global::System.AllOf<global::DeepInfra.Function2> Function { get; set; }
3434

3535
/// <summary>
3636
/// Additional properties that are not explicitly defined in the schema

src/libs/DeepInfra/Generated/DeepInfra.Models.ChatCompletionUserMessage.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public sealed partial class ChatCompletionUserMessage
2424
[global::System.Text.Json.Serialization.JsonPropertyName("content")]
2525
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
2626
[global::System.Text.Json.Serialization.JsonRequired]
27-
public required global::System.AnyOf<string?, global::System.Collections.Generic.IList<global::System.AnyOf<global::DeepInfra.ChatCompletionContentPartText?, global::DeepInfra.ChatCompletionContentPartImage?>>?> Content { get; set; }
27+
public required global::System.AnyOf<string?, global::System.Collections.Generic.IList<global::System.AnyOf<global::DeepInfra.ChatCompletionContentPartText, global::DeepInfra.ChatCompletionContentPartImage>>> Content { get; set; }
2828

2929
/// <summary>
3030
///

src/libs/DeepInfra/Generated/DeepInfra.Models.DeployLLMConfig.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public sealed partial class DeployLLMConfig
3838
[global::System.Text.Json.Serialization.JsonPropertyName("weights")]
3939
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
4040
[global::System.Text.Json.Serialization.JsonRequired]
41-
public required global::System.AllOf<global::DeepInfra.HFWeights?> Weights { get; set; }
41+
public required global::System.AllOf<global::DeepInfra.HFWeights> Weights { get; set; }
4242

4343
/// <summary>
4444
/// Additional properties that are not explicitly defined in the schema

src/libs/DeepInfra/Generated/DeepInfra.Models.DeploymentOut.g.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,21 +84,21 @@ public sealed partial class DeploymentOut
8484
/// </summary>
8585
[global::System.Text.Json.Serialization.JsonPropertyName("instances")]
8686
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
87-
public global::System.AllOf<global::DeepInfra.DeployInstances?>? Instances { get; set; }
87+
public global::System.AllOf<global::DeepInfra.DeployInstances>? Instances { get; set; }
8888

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

9696
/// <summary>
9797
/// Scale Settings
9898
/// </summary>
9999
[global::System.Text.Json.Serialization.JsonPropertyName("settings")]
100100
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
101-
public global::System.AllOf<global::DeepInfra.ScaleSettings?>? Settings { get; set; }
101+
public global::System.AllOf<global::DeepInfra.ScaleSettings>? Settings { get; set; }
102102

103103
/// <summary>
104104
/// Additional properties that are not explicitly defined in the schema

src/libs/DeepInfra/Generated/DeepInfra.Models.DetailedDeploymentStatsOut.g.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@ public sealed partial class DetailedDeploymentStatsOut
1515
/// </summary>
1616
[global::System.Text.Json.Serialization.JsonPropertyName("llm")]
1717
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
18-
public global::System.AllOf<global::DeepInfra.LLMDeploymentStatsOut?>? Llm { get; set; }
18+
public global::System.AllOf<global::DeepInfra.LLMDeploymentStatsOut>? Llm { get; set; }
1919

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

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

3434
/// <summary>
3535
/// Additional properties that are not explicitly defined in the schema

src/libs/DeepInfra/Generated/DeepInfra.Models.ModelInfoOut.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public sealed partial class ModelInfoOut
136136
[global::System.Text.Json.Serialization.JsonPropertyName("pricing")]
137137
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory6))]
138138
[global::System.Text.Json.Serialization.JsonRequired]
139-
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; }
139+
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; }
140140

141141
/// <summary>
142142
///

src/libs/DeepInfra/Generated/DeepInfra.Models.ModelOut.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public sealed partial class ModelOut
5959
[global::System.Text.Json.Serialization.JsonPropertyName("pricing")]
6060
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory6))]
6161
[global::System.Text.Json.Serialization.JsonRequired]
62-
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; }
62+
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; }
6363

6464
/// <summary>
6565
/// The maximum context size of this model, if applicable

src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAIChatCompletionsIn.g.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public sealed partial class OpenAIChatCompletionsIn
2323
/// </summary>
2424
[global::System.Text.Json.Serialization.JsonPropertyName("messages")]
2525
[global::System.Text.Json.Serialization.JsonRequired]
26-
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; }
26+
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; }
2727

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

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

110110
/// <summary>
111111
/// Alternative penalty for repetition, but multiplicative instead of additive (&gt; 1 penalize, &lt; 1 encourage)<br/>

src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAICompletionsIn.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public sealed partial class OpenAICompletionsIn
8484
/// </summary>
8585
[global::System.Text.Json.Serialization.JsonPropertyName("stop")]
8686
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
87-
public global::System.AnyOf<string?, global::System.Collections.Generic.IList<string>?>? Stop { get; set; }
87+
public global::System.AnyOf<string?, global::System.Collections.Generic.IList<string>>? Stop { get; set; }
8888

8989
/// <summary>
9090
/// 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/>
@@ -105,7 +105,7 @@ public sealed partial class OpenAICompletionsIn
105105
/// </summary>
106106
[global::System.Text.Json.Serialization.JsonPropertyName("response_format")]
107107
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
108-
public global::System.AllOf<global::DeepInfra.ResponseFormat4?>? ResponseFormat { get; set; }
108+
public global::System.AllOf<global::DeepInfra.ResponseFormat4>? ResponseFormat { get; set; }
109109

110110
/// <summary>
111111
/// Alternative penalty for repetition, but multiplicative instead of additive (&gt; 1 penalize, &lt; 1 encourage)<br/>

src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAIEmbeddingsIn.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public sealed partial class OpenAIEmbeddingsIn
2525
[global::System.Text.Json.Serialization.JsonPropertyName("input")]
2626
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))]
2727
[global::System.Text.Json.Serialization.JsonRequired]
28-
public required global::System.AnyOf<global::System.Collections.Generic.IList<string>?, string?> Input { get; set; }
28+
public required global::System.AnyOf<global::System.Collections.Generic.IList<string>, string?> Input { get; set; }
2929

3030
/// <summary>
3131
/// format used when encoding<br/>

src/libs/DeepInfra/Generated/DeepInfra.Models.UsageItem.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public sealed partial class UsageItem
5151
[global::System.Text.Json.Serialization.JsonPropertyName("interval")]
5252
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
5353
[global::System.Text.Json.Serialization.JsonRequired]
54-
public required global::System.AllOf<global::DeepInfra.TimeInterval?> Interval { get; set; }
54+
public required global::System.AllOf<global::DeepInfra.TimeInterval> Interval { get; set; }
5555

5656
/// <summary>
5757
/// Additional properties that are not explicitly defined in the schema

src/libs/DeepInfra/Generated/DeepInfra.Models.UsageMonth.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public sealed partial class UsageMonth
2323
[global::System.Text.Json.Serialization.JsonPropertyName("interval")]
2424
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
2525
[global::System.Text.Json.Serialization.JsonRequired]
26-
public required global::System.AllOf<global::DeepInfra.TimeInterval?> Interval { get; set; }
26+
public required global::System.AllOf<global::DeepInfra.TimeInterval> Interval { get; set; }
2727

2828
/// <summary>
2929
///

src/libs/DeepInfra/Generated/DeepInfra.Models.ValidationError.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public sealed partial class ValidationError
1515
/// </summary>
1616
[global::System.Text.Json.Serialization.JsonPropertyName("loc")]
1717
[global::System.Text.Json.Serialization.JsonRequired]
18-
public required global::System.Collections.Generic.IList<global::System.AnyOf<string?, int>> Loc { get; set; }
18+
public required global::System.Collections.Generic.IList<global::System.AnyOf<string?, int?>> Loc { get; set; }
1919

2020
/// <summary>
2121
///

0 commit comments

Comments
 (0)