Skip to content

Commit

Permalink
feat: Updated OpenAPI spec
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 22, 2024
1 parent 6974d10 commit 295da3f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ partial void ProcessUploadLoraModelResponseContent(
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::DeepInfra.ApiException"></exception>
public async global::System.Threading.Tasks.Task<global::DeepInfra.ModelOut> UploadLoraModelAsync(
public async global::System.Threading.Tasks.Task<global::DeepInfra.DeploymentOut> UploadLoraModelAsync(
global::DeepInfra.LoraModelUploadIn request,
string? xiApiKey = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand Down Expand Up @@ -190,7 +190,7 @@ partial void ProcessUploadLoraModelResponseContent(
}

return
global::DeepInfra.ModelOut.FromJson(__content, JsonSerializerContext) ??
global::DeepInfra.DeploymentOut.FromJson(__content, JsonSerializerContext) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
else
Expand All @@ -216,7 +216,7 @@ partial void ProcessUploadLoraModelResponseContent(
using var __content = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);

return
await global::DeepInfra.ModelOut.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
await global::DeepInfra.DeploymentOut.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
throw new global::System.InvalidOperationException("Response deserialization failed.");
}
}
Expand All @@ -230,7 +230,7 @@ partial void ProcessUploadLoraModelResponseContent(
/// <param name="loraModelName"></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::DeepInfra.ModelOut> UploadLoraModelAsync(
public async global::System.Threading.Tasks.Task<global::DeepInfra.DeploymentOut> UploadLoraModelAsync(
string hfModelName,
string loraModelName,
string? xiApiKey = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public partial interface IDeepInfraApi
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::DeepInfra.ApiException"></exception>
global::System.Threading.Tasks.Task<global::DeepInfra.ModelOut> UploadLoraModelAsync(
global::System.Threading.Tasks.Task<global::DeepInfra.DeploymentOut> UploadLoraModelAsync(
global::DeepInfra.LoraModelUploadIn request,
string? xiApiKey = default,
global::System.Threading.CancellationToken cancellationToken = default);
Expand All @@ -25,7 +25,7 @@ public partial interface IDeepInfraApi
/// <param name="loraModelName"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::DeepInfra.ModelOut> UploadLoraModelAsync(
global::System.Threading.Tasks.Task<global::DeepInfra.DeploymentOut> UploadLoraModelAsync(
string hfModelName,
string loraModelName,
string? xiApiKey = default,
Expand Down
2 changes: 1 addition & 1 deletion src/libs/DeepInfra/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/ModelOut'
$ref: '#/components/schemas/DeploymentOut'
'400':
description: Bad Request
content:
Expand Down

0 comments on commit 295da3f

Please sign in to comment.