Skip to content

Commit

Permalink
Merge pull request #41 from tryAGI/bot/update-openapi_202408282116
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Aug 28, 2024
2 parents a98850c + 3370cc2 commit b466f80
Show file tree
Hide file tree
Showing 5 changed files with 151 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ namespace DeepInfra
{
public partial class DeepInfraApi
{
partial void PrepareDeployListDeployListGetArguments(
partial void PrepareDeployListDeployListGet2Arguments(
global::System.Net.Http.HttpClient httpClient,
ref string? status);
partial void PrepareDeployListDeployListGetRequest(
partial void PrepareDeployListDeployListGet2Request(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string? status);
partial void ProcessDeployListDeployListGetResponse(
partial void ProcessDeployListDeployListGet2Response(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);

partial void ProcessDeployListDeployListGetResponseContent(
partial void ProcessDeployListDeployListGet2ResponseContent(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage,
ref string content);
Expand All @@ -29,13 +29,13 @@ partial void ProcessDeployListDeployListGetResponseContent(
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::DeepInfra.DeploymentOut>> DeployListDeployListGetAsync(
public async global::System.Threading.Tasks.Task<global::System.Collections.Generic.IList<global::DeepInfra.DeploymentOut>> DeployListDeployListGet2Async(
string? status,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: _httpClient);
PrepareDeployListDeployListGetArguments(
PrepareDeployListDeployListGet2Arguments(
httpClient: _httpClient,
status: ref status);

Expand All @@ -46,7 +46,7 @@ partial void ProcessDeployListDeployListGetResponseContent(
PrepareRequest(
client: _httpClient,
request: httpRequest);
PrepareDeployListDeployListGetRequest(
PrepareDeployListDeployListGet2Request(
httpClient: _httpClient,
httpRequestMessage: httpRequest,
status: status);
Expand All @@ -59,7 +59,7 @@ partial void ProcessDeployListDeployListGetResponseContent(
ProcessResponse(
client: _httpClient,
response: response);
ProcessDeployListDeployListGetResponse(
ProcessDeployListDeployListGet2Response(
httpClient: _httpClient,
httpResponseMessage: response);

Expand All @@ -69,7 +69,7 @@ partial void ProcessDeployListDeployListGetResponseContent(
client: _httpClient,
response: response,
content: ref __content);
ProcessDeployListDeployListGetResponseContent(
ProcessDeployListDeployListGet2ResponseContent(
httpClient: _httpClient,
httpResponseMessage: response,
content: ref __content);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,66 @@ public enum ModelDocBlockKey
///
/// </summary>
OpenaiEmbJs,
/// <summary>
///
/// </summary>
CreateVoiceHttp,
/// <summary>
///
/// </summary>
CreateVoicePython,
/// <summary>
///
/// </summary>
CreateVoiceJs,
/// <summary>
///
/// </summary>
ReadVoiceHttp,
/// <summary>
///
/// </summary>
ReadVoicePython,
/// <summary>
///
/// </summary>
ReadVoiceJs,
/// <summary>
///
/// </summary>
UpdateVoiceHttp,
/// <summary>
///
/// </summary>
UpdateVoicePython,
/// <summary>
///
/// </summary>
UpdateVoiceJs,
/// <summary>
///
/// </summary>
DeleteVoiceHttp,
/// <summary>
///
/// </summary>
DeleteVoicePython,
/// <summary>
///
/// </summary>
DeleteVoiceJs,
/// <summary>
///
/// </summary>
ListVoicesHttp,
/// <summary>
///
/// </summary>
ListVoicesPython,
/// <summary>
///
/// </summary>
ListVoicesJs,
}

/// <summary>
Expand Down Expand Up @@ -97,6 +157,21 @@ public static string ToValueString(this ModelDocBlockKey value)
ModelDocBlockKey.OpenaiEmbPy => "openai-emb-py",
ModelDocBlockKey.OpenaiEmbHttp => "openai-emb-http",
ModelDocBlockKey.OpenaiEmbJs => "openai-emb-js",
ModelDocBlockKey.CreateVoiceHttp => "create-voice-http",
ModelDocBlockKey.CreateVoicePython => "create-voice-python",
ModelDocBlockKey.CreateVoiceJs => "create-voice-js",
ModelDocBlockKey.ReadVoiceHttp => "read-voice-http",
ModelDocBlockKey.ReadVoicePython => "read-voice-python",
ModelDocBlockKey.ReadVoiceJs => "read-voice-js",
ModelDocBlockKey.UpdateVoiceHttp => "update-voice-http",
ModelDocBlockKey.UpdateVoicePython => "update-voice-python",
ModelDocBlockKey.UpdateVoiceJs => "update-voice-js",
ModelDocBlockKey.DeleteVoiceHttp => "delete-voice-http",
ModelDocBlockKey.DeleteVoicePython => "delete-voice-python",
ModelDocBlockKey.DeleteVoiceJs => "delete-voice-js",
ModelDocBlockKey.ListVoicesHttp => "list-voices-http",
ModelDocBlockKey.ListVoicesPython => "list-voices-python",
ModelDocBlockKey.ListVoicesJs => "list-voices-js",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -122,6 +197,21 @@ public static string ToValueString(this ModelDocBlockKey value)
"openai-emb-py" => ModelDocBlockKey.OpenaiEmbPy,
"openai-emb-http" => ModelDocBlockKey.OpenaiEmbHttp,
"openai-emb-js" => ModelDocBlockKey.OpenaiEmbJs,
"create-voice-http" => ModelDocBlockKey.CreateVoiceHttp,
"create-voice-python" => ModelDocBlockKey.CreateVoicePython,
"create-voice-js" => ModelDocBlockKey.CreateVoiceJs,
"read-voice-http" => ModelDocBlockKey.ReadVoiceHttp,
"read-voice-python" => ModelDocBlockKey.ReadVoicePython,
"read-voice-js" => ModelDocBlockKey.ReadVoiceJs,
"update-voice-http" => ModelDocBlockKey.UpdateVoiceHttp,
"update-voice-python" => ModelDocBlockKey.UpdateVoicePython,
"update-voice-js" => ModelDocBlockKey.UpdateVoiceJs,
"delete-voice-http" => ModelDocBlockKey.DeleteVoiceHttp,
"delete-voice-python" => ModelDocBlockKey.DeleteVoicePython,
"delete-voice-js" => ModelDocBlockKey.DeleteVoiceJs,
"list-voices-http" => ModelDocBlockKey.ListVoicesHttp,
"list-voices-python" => ModelDocBlockKey.ListVoicesPython,
"list-voices-js" => ModelDocBlockKey.ListVoicesJs,
_ => null,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,26 @@ public enum SchemaVariantKey
///
/// </summary>
OpenaiEmbeddings,
/// <summary>
///
/// </summary>
CreateVoice,
/// <summary>
///
/// </summary>
ReadVoice,
/// <summary>
///
/// </summary>
UpdateVoice,
/// <summary>
///
/// </summary>
DeleteVoice,
/// <summary>
///
/// </summary>
ListVoices,
}

/// <summary>
Expand All @@ -42,6 +62,11 @@ public static string ToValueString(this SchemaVariantKey value)
SchemaVariantKey.OpenaiCompletions => "openai-completions",
SchemaVariantKey.OpenaiChatCompletions => "openai-chat-completions",
SchemaVariantKey.OpenaiEmbeddings => "openai-embeddings",
SchemaVariantKey.CreateVoice => "create-voice",
SchemaVariantKey.ReadVoice => "read-voice",
SchemaVariantKey.UpdateVoice => "update-voice",
SchemaVariantKey.DeleteVoice => "delete-voice",
SchemaVariantKey.ListVoices => "list-voices",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -56,6 +81,11 @@ public static string ToValueString(this SchemaVariantKey value)
"openai-completions" => SchemaVariantKey.OpenaiCompletions,
"openai-chat-completions" => SchemaVariantKey.OpenaiChatCompletions,
"openai-embeddings" => SchemaVariantKey.OpenaiEmbeddings,
"create-voice" => SchemaVariantKey.CreateVoice,
"read-voice" => SchemaVariantKey.ReadVoice,
"update-voice" => SchemaVariantKey.UpdateVoice,
"delete-voice" => SchemaVariantKey.DeleteVoice,
"list-voices" => SchemaVariantKey.ListVoices,
_ => null,
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ public sealed partial class TimeInterval
public int Fr { get; set; } = 0;

/// <summary>
/// Default Value: 4000000000000
/// Default Value: 4000000000000L
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("to")]
public long To { get; set; } = 4000000000000;
public long To { get; set; } = 4000000000000L;

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
20 changes: 20 additions & 0 deletions src/libs/DeepInfra/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3156,6 +3156,21 @@ components:
- openai-emb-py
- openai-emb-http
- openai-emb-js
- create-voice-http
- create-voice-python
- create-voice-js
- read-voice-http
- read-voice-python
- read-voice-js
- update-voice-http
- update-voice-python
- update-voice-js
- delete-voice-http
- delete-voice-python
- delete-voice-js
- list-voices-http
- list-voices-python
- list-voices-js
type: string
description: An enumeration.
ModelFieldInfo:
Expand Down Expand Up @@ -4004,6 +4019,11 @@ components:
- openai-completions
- openai-chat-completions
- openai-embeddings
- create-voice
- read-voice
- update-voice
- delete-voice
- list-voices
type: string
description: An enumeration.
TimeDeploymentStatsOut:
Expand Down

0 comments on commit b466f80

Please sign in to comment.