Skip to content

Commit

Permalink
Merge pull request #76 from tryAGI/bot/update-openapi_202410241823
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Oct 24, 2024
2 parents 4de2839 + c4df1cb commit 2961047
Show file tree
Hide file tree
Showing 55 changed files with 138 additions and 138 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ partial void ProcessDeepstartApplyResponseContent(
string? id = default,
string? uid = default,
int? createdAt = default,
string? status = "pending",
string? status = default,
string? deal = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ partial void ProcessDeployCreateLlmResponseContent(
public async global::System.Threading.Tasks.Task<global::DeepInfra.DeploymentOut> DeployCreateLlmAsync(
string modelName,
global::DeepInfra.DeployGPUs gpu,
int? numGpus = 1,
int? maxBatchSize = 96,
int? numGpus = default,
int? maxBatchSize = default,
global::DeepInfra.HFWeights? hf = default,
global::DeepInfra.ScaleSettings? settings = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ partial void ProcessDeployDetailedStatsResponseContent(
public async global::System.Threading.Tasks.Task<global::DeepInfra.DetailedDeploymentStatsOut> DeployDetailedStatsAsync(
string deployId,
string from,
string? to = "now",
string? to = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ partial void ProcessDeployStatsResponseContent(
public async global::System.Threading.Tasks.Task<global::DeepInfra.DeploymentStatsOut> DeployStatsAsync(
string deployId,
string from,
string? to = "now",
string? to = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ partial void ProcessDeploymentLogsQueryResponseContent(
string? podName = default,
string? from = default,
string? to = default,
int? limit = 100,
int? limit = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ partial void ProcessInferenceDeployResponseContent(
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<string> InferenceDeployAsync(
string deployId,
bool? useCache = true,
bool? useCache = default,
string? xDeepinfraSource = default,
string? userAgent = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ partial void ProcessLogsQueryResponseContent(
string deployId,
string? from = default,
string? to = default,
int? limit = 100,
int? limit = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ partial void ProcessOpenaiAudioSpeechResponseContent(
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<string> OpenaiAudioSpeechAsync(
global::DeepInfra.OpenAITextToSpeechIn request,
bool? useCache = true,
bool? useCache = default,
string? xDeepinfraSource = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down Expand Up @@ -168,11 +168,11 @@ partial void ProcessOpenaiAudioSpeechResponseContent(
public async global::System.Threading.Tasks.Task<string> OpenaiAudioSpeechAsync(
string model,
string input,
bool? useCache = true,
bool? useCache = default,
string? xDeepinfraSource = default,
global::DeepInfra.TtsVoice? voice = default,
global::DeepInfra.TtsResponseFormat? responseFormat = default,
double? speed = 1,
double? speed = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::DeepInfra.OpenAITextToSpeechIn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ partial void ProcessOpenaiChatCompletionsResponseContent(
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<string> OpenaiChatCompletionsAsync(
global::DeepInfra.OpenAIChatCompletionsIn request,
bool? useCache = true,
bool? useCache = default,
string? xDeepinfraSource = default,
string? userAgent = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand Down Expand Up @@ -223,23 +223,23 @@ partial void ProcessOpenaiChatCompletionsResponseContent(
public async global::System.Threading.Tasks.Task<string> OpenaiChatCompletionsAsync(
string model,
global::System.Collections.Generic.IList<global::DeepInfra.AnyOf<global::DeepInfra.ChatCompletionToolMessage, global::DeepInfra.ChatCompletionAssistantMessage, global::DeepInfra.ChatCompletionUserMessage, global::DeepInfra.ChatCompletionSystemMessage>> messages,
bool? useCache = true,
bool? useCache = default,
string? xDeepinfraSource = default,
string? userAgent = default,
bool? stream = false,
double? temperature = 1,
double? topP = 1,
double? minP = 0,
int? topK = 0,
bool? stream = default,
double? temperature = default,
double? topP = default,
double? minP = default,
int? topK = default,
int? maxTokens = default,
global::DeepInfra.AnyOf<string, global::System.Collections.Generic.IList<string>>? stop = default,
int? n = 1,
double? presencePenalty = 0,
double? frequencyPenalty = 0,
int? n = default,
double? presencePenalty = default,
double? frequencyPenalty = default,
global::System.Collections.Generic.IList<global::DeepInfra.ChatTools>? tools = default,
string? toolChoice = default,
global::DeepInfra.ResponseFormat? responseFormat = default,
double? repetitionPenalty = 1,
double? repetitionPenalty = default,
string? user = default,
int? seed = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ partial void ProcessOpenaiCompletionsResponseContent(
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<string> OpenaiCompletionsAsync(
global::DeepInfra.OpenAICompletionsIn request,
bool? useCache = true,
bool? useCache = default,
string? xDeepinfraSource = default,
string? userAgent = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand Down Expand Up @@ -224,23 +224,23 @@ partial void ProcessOpenaiCompletionsResponseContent(
public async global::System.Threading.Tasks.Task<string> OpenaiCompletionsAsync(
string model,
string prompt,
bool? useCache = true,
bool? useCache = default,
string? xDeepinfraSource = default,
string? userAgent = default,
int? maxTokens = 512,
double? temperature = 1,
double? topP = 1,
double? minP = 0,
int? topK = 0,
int? n = 1,
bool? stream = false,
int? maxTokens = default,
double? temperature = default,
double? topP = default,
double? minP = default,
int? topK = default,
int? n = default,
bool? stream = default,
int? logprobs = default,
bool? echo = default,
global::DeepInfra.AnyOf<string, global::System.Collections.Generic.IList<string>>? stop = default,
double? presencePenalty = 0,
double? frequencyPenalty = 0,
double? presencePenalty = default,
double? frequencyPenalty = default,
global::DeepInfra.ResponseFormat? responseFormat = default,
double? repetitionPenalty = 1,
double? repetitionPenalty = default,
string? user = default,
int? seed = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ partial void ProcessOpenaiEmbeddingsResponseContent(
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<string> OpenaiEmbeddingsAsync(
global::DeepInfra.OpenAIEmbeddingsIn request,
bool? useCache = true,
bool? useCache = default,
string? xDeepinfraSource = default,
string? userAgent = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand Down Expand Up @@ -170,10 +170,10 @@ partial void ProcessOpenaiEmbeddingsResponseContent(
public async global::System.Threading.Tasks.Task<string> OpenaiEmbeddingsAsync(
string model,
global::DeepInfra.AnyOf<global::System.Collections.Generic.IList<string>, string> input,
bool? useCache = true,
bool? useCache = default,
string? xDeepinfraSource = default,
string? userAgent = default,
global::DeepInfra.OpenAIEmbeddingsInEncodingFormat? encodingFormat = global::DeepInfra.OpenAIEmbeddingsInEncodingFormat.Float,
global::DeepInfra.OpenAIEmbeddingsInEncodingFormat? encodingFormat = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::DeepInfra.OpenAIEmbeddingsIn
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ partial void ProcessOpenaiFilesResponseContent(
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<string> OpenaiFilesAsync(
global::DeepInfra.BodyOpenaiFilesV1OpenaiFilesPost request,
bool? useCache = true,
bool? useCache = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
request = request ?? throw new global::System.ArgumentNullException(nameof(request));
Expand Down Expand Up @@ -73,7 +73,7 @@ partial void ProcessOpenaiFilesResponseContent(
}
}
using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
if (useCache != true)
if (useCache != default)
{
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{useCache}"),
Expand Down Expand Up @@ -144,7 +144,7 @@ partial void ProcessOpenaiFilesResponseContent(
public async global::System.Threading.Tasks.Task<string> OpenaiFilesAsync(
string purpose,
global::System.Collections.Generic.IList<byte[]> file,
bool? useCache = true,
bool? useCache = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::DeepInfra.BodyOpenaiFilesV1OpenaiFilesPost
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ partial void ProcessTextToSpeechResponseContent(
string text,
string? xDeepinfraSource = default,
string? xiApiKey = default,
string? modelId = "deepinfra/tts",
global::DeepInfra.TtsResponseFormat? outputFormat = global::DeepInfra.TtsResponseFormat.Wav,
string? modelId = default,
global::DeepInfra.TtsResponseFormat? outputFormat = default,
string? languageCode = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public partial interface IDeepInfraApi
string? id = default,
string? uid = default,
int? createdAt = default,
string? status = "pending",
string? status = default,
string? deal = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public partial interface IDeepInfraApi
global::System.Threading.Tasks.Task<global::DeepInfra.DeploymentOut> DeployCreateLlmAsync(
string modelName,
global::DeepInfra.DeployGPUs gpu,
int? numGpus = 1,
int? maxBatchSize = 96,
int? numGpus = default,
int? maxBatchSize = default,
global::DeepInfra.HFWeights? hf = default,
global::DeepInfra.ScaleSettings? settings = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public partial interface IDeepInfraApi
global::System.Threading.Tasks.Task<global::DeepInfra.DetailedDeploymentStatsOut> DeployDetailedStatsAsync(
string deployId,
string from,
string? to = "now",
string? to = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public partial interface IDeepInfraApi
global::System.Threading.Tasks.Task<global::DeepInfra.DeploymentStatsOut> DeployStatsAsync(
string deployId,
string from,
string? to = "now",
string? to = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public partial interface IDeepInfraApi
string? podName = default,
string? from = default,
string? to = default,
int? limit = 100,
int? limit = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public partial interface IDeepInfraApi
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<string> InferenceDeployAsync(
string deployId,
bool? useCache = true,
bool? useCache = default,
string? xDeepinfraSource = default,
string? userAgent = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public partial interface IDeepInfraApi
string deployId,
string? from = default,
string? to = default,
int? limit = 100,
int? limit = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public partial interface IDeepInfraApi
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<string> OpenaiAudioSpeechAsync(
global::DeepInfra.OpenAITextToSpeechIn request,
bool? useCache = true,
bool? useCache = default,
string? xDeepinfraSource = default,
global::System.Threading.CancellationToken cancellationToken = default);

Expand Down Expand Up @@ -53,11 +53,11 @@ public partial interface IDeepInfraApi
global::System.Threading.Tasks.Task<string> OpenaiAudioSpeechAsync(
string model,
string input,
bool? useCache = true,
bool? useCache = default,
string? xDeepinfraSource = default,
global::DeepInfra.TtsVoice? voice = default,
global::DeepInfra.TtsResponseFormat? responseFormat = default,
double? speed = 1,
double? speed = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public partial interface IDeepInfraApi
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<string> OpenaiChatCompletionsAsync(
global::DeepInfra.OpenAIChatCompletionsIn request,
bool? useCache = true,
bool? useCache = default,
string? xDeepinfraSource = default,
string? userAgent = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down Expand Up @@ -100,23 +100,23 @@ public partial interface IDeepInfraApi
global::System.Threading.Tasks.Task<string> OpenaiChatCompletionsAsync(
string model,
global::System.Collections.Generic.IList<global::DeepInfra.AnyOf<global::DeepInfra.ChatCompletionToolMessage, global::DeepInfra.ChatCompletionAssistantMessage, global::DeepInfra.ChatCompletionUserMessage, global::DeepInfra.ChatCompletionSystemMessage>> messages,
bool? useCache = true,
bool? useCache = default,
string? xDeepinfraSource = default,
string? userAgent = default,
bool? stream = false,
double? temperature = 1,
double? topP = 1,
double? minP = 0,
int? topK = 0,
bool? stream = default,
double? temperature = default,
double? topP = default,
double? minP = default,
int? topK = default,
int? maxTokens = default,
global::DeepInfra.AnyOf<string, global::System.Collections.Generic.IList<string>>? stop = default,
int? n = 1,
double? presencePenalty = 0,
double? frequencyPenalty = 0,
int? n = default,
double? presencePenalty = default,
double? frequencyPenalty = default,
global::System.Collections.Generic.IList<global::DeepInfra.ChatTools>? tools = default,
string? toolChoice = default,
global::DeepInfra.ResponseFormat? responseFormat = default,
double? repetitionPenalty = 1,
double? repetitionPenalty = default,
string? user = default,
int? seed = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand Down
Loading

0 comments on commit 2961047

Please sign in to comment.