Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:Updated OpenAPI spec #2

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
request: request);

using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: new global::System.Net.Http.HttpMethod("PATCH"),
method: global::System.Net.Http.HttpMethod.Patch,

Check failure on line 43 in src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.AccountUpdateDetailsV1MePatch.g.cs

View workflow job for this annotation

GitHub Actions / Build abd test / Build, test and publish

'HttpMethod' does not contain a definition for 'Patch'

Check failure on line 43 in src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.AccountUpdateDetailsV1MePatch.g.cs

View workflow job for this annotation

GitHub Actions / Build abd test / Build, test and publish

'HttpMethod' does not contain a definition for 'Patch'
requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/v1/me", global::System.UriKind.RelativeOrAbsolute));

Check failure on line 44 in src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.AccountUpdateDetailsV1MePatch.g.cs

View workflow job for this annotation

GitHub Actions / Build abd test / Build, test and publish

Argument 2: cannot convert from 'System.Uri' to 'string'
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: global::System.Text.Json.JsonSerializer.Serialize(request, global::DeepInfra.SourceGenerationContext.Default.MeIn),
encoding: global::System.Text.Encoding.UTF8,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("provider")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
public global::System.AllOf<global::DeepInfra.ModelProvider?>? Provider { get; set; } = ModelProvider.Cnt;
public global::System.AllOf<global::DeepInfra.ModelProvider?>? Provider { get; set; } = "cnt";

Check failure on line 19 in src/libs/DeepInfra/Generated/DeepInfra.Models.DeployModelIn.g.cs

View workflow job for this annotation

GitHub Actions / Build abd test / Build, test and publish

Cannot implicitly convert type 'string' to 'System.AllOf<DeepInfra.ModelProvider?>?'

/// <summary>
/// model name in specified provider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
public global::System.AllOf<global::DeepInfra.DeployType?>? Type { get; set; } = DeployType.Legacy;
public global::System.AllOf<global::DeepInfra.DeployType?>? Type { get; set; } = "legacy";

Check failure on line 18 in src/libs/DeepInfra/Generated/DeepInfra.Models.DeploymentOut.g.cs

View workflow job for this annotation

GitHub Actions / Build abd test / Build, test and publish

Cannot implicitly convert type 'string' to 'System.AllOf<DeepInfra.DeployType?>?'

Check failure on line 18 in src/libs/DeepInfra/Generated/DeepInfra.Models.DeploymentOut.g.cs

View workflow job for this annotation

GitHub Actions / Build abd test / Build, test and publish

Cannot implicitly convert type 'string' to 'System.AllOf<DeepInfra.DeployType?>?'

/// <summary>
/// Deploy Id<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("voice")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
public global::System.AllOf<global::DeepInfra.TtsVoice?>? Voice { get; set; } = TtsVoice.Luna;
public global::System.AllOf<global::DeepInfra.TtsVoice?>? Voice { get; set; } = "luna";

Check failure on line 41 in src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAITextToSpeechIn.g.cs

View workflow job for this annotation

GitHub Actions / Build abd test / Build, test and publish

Cannot implicitly convert type 'string' to 'System.AllOf<DeepInfra.TtsVoice?>?'

/// <summary>
/// response format for the speech<br/>
/// Default Value: wav
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("response_format")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))]
public global::System.AllOf<global::DeepInfra.TtsResponseFormat?>? ResponseFormat { get; set; } = TtsResponseFormat.Wav;
public global::System.AllOf<global::DeepInfra.TtsResponseFormat?>? ResponseFormat { get; set; } = "wav";

Check failure on line 49 in src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAITextToSpeechIn.g.cs

View workflow job for this annotation

GitHub Actions / Build abd test / Build, test and publish

Cannot implicitly convert type 'string' to 'System.AllOf<DeepInfra.TtsResponseFormat?>?'

/// <summary>
/// speed of the speech<br/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/// Default Value: 4000000000000
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("to")]
public long To { get; set; } = 4000000000000;
public int To { get; set; } = "4000000000000";

Check failure on line 21 in src/libs/DeepInfra/Generated/DeepInfra.Models.TimeInterval.g.cs

View workflow job for this annotation

GitHub Actions / Build abd test / Build, test and publish

Cannot implicitly convert type 'string' to 'int'

Check failure on line 21 in src/libs/DeepInfra/Generated/DeepInfra.Models.TimeInterval.g.cs

View workflow job for this annotation

GitHub Actions / Build abd test / Build, test and publish

Cannot implicitly convert type 'string' to 'int'

/// <summary>
/// Additional properties that are not explicitly defined in the schema
Expand Down
Loading