Skip to content

Commit

Permalink
Merge pull request #42 from tryAGI/bot/update-openapi_202408290112
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Aug 29, 2024
2 parents b466f80 + 7ad000b commit 075209b
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ partial void ProcessOpenaiChatCompletionsV1OpenaiChatCompletionsPostResponseCont
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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ 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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,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,
bool useCache = true,
string? xDeepinfraSource = default,
string? userAgent = default,
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 @@ -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
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 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 @@ -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
10 changes: 5 additions & 5 deletions src/libs/DeepInfra/Generated/JsonSerializerContextTypes.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::System.Collections.Generic.IList<global::System.AnyOf<string?, int?>>? Type14 { get; set; }
public global::System.Collections.Generic.IList<global::System.AnyOf<string, int?>>? Type14 { get; set; }
/// <summary>
///
/// </summary>
public global::System.AnyOf<string?, int?>? Type15 { get; set; }
public global::System.AnyOf<string, int?>? Type15 { get; set; }
/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -193,7 +193,7 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::System.AnyOf<string?, global::System.Collections.Generic.IList<global::System.AnyOf<global::DeepInfra.ChatCompletionContentPartText, global::DeepInfra.ChatCompletionContentPartImage>>>? Type45 { get; set; }
public global::System.AnyOf<string, global::System.Collections.Generic.IList<global::System.AnyOf<global::DeepInfra.ChatCompletionContentPartText, global::DeepInfra.ChatCompletionContentPartImage>>>? Type45 { get; set; }
/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -577,7 +577,7 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::System.AnyOf<string?, global::System.Collections.Generic.IList<string>>? Type141 { get; set; }
public global::System.AnyOf<string, global::System.Collections.Generic.IList<string>>? Type141 { get; set; }
/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -605,7 +605,7 @@ public sealed partial class JsonSerializerContextTypes
/// <summary>
///
/// </summary>
public global::System.AnyOf<global::System.Collections.Generic.IList<string>, string?>? Type148 { get; set; }
public global::System.AnyOf<global::System.Collections.Generic.IList<string>, string>? Type148 { get; set; }
/// <summary>
///
/// </summary>
Expand Down

0 comments on commit 075209b

Please sign in to comment.