Skip to content

Commit ac1d1e3

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#208)
Co-authored-by: github-actions[bot] <[email protected]>
1 parent 4935cd6 commit ac1d1e3

6 files changed

+78
-58
lines changed

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI..JsonSerializerContext.g.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,6 @@ namespace tryAGI.OpenAI
375375
typeof(global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1TypeNullableJsonConverter),
376376
typeof(global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2TypeJsonConverter),
377377
typeof(global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2TypeNullableJsonConverter),
378-
typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityJsonConverter),
379-
typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityNullableJsonConverter),
380378
typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatJsonConverter),
381379
typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatNullableJsonConverter),
382380
typeof(global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedEnumJsonConverter),
@@ -395,6 +393,8 @@ namespace tryAGI.OpenAI
395393
typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatVariant2TypeNullableJsonConverter),
396394
typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsTypeJsonConverter),
397395
typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsTypeNullableJsonConverter),
396+
typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityJsonConverter),
397+
typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityNullableJsonConverter),
398398
typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchContextSizeJsonConverter),
399399
typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchContextSizeNullableJsonConverter),
400400
typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationTypeJsonConverter),

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2438,139 +2438,139 @@ public sealed partial class JsonSerializerContextTypes
24382438
/// <summary>
24392439
///
24402440
/// </summary>
2441-
public global::tryAGI.OpenAI.Verbosity? Type603 { get; set; }
2441+
public global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2? Type603 { get; set; }
24422442
/// <summary>
24432443
///
24442444
/// </summary>
2445-
public global::tryAGI.OpenAI.CreateModelResponsePropertiesVariant2? Type604 { get; set; }
2445+
public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2? Type604 { get; set; }
24462446
/// <summary>
24472447
///
24482448
/// </summary>
2449-
public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2? Type605 { get; set; }
2449+
public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2Audio? Type605 { get; set; }
24502450
/// <summary>
24512451
///
24522452
/// </summary>
2453-
public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2Audio? Type606 { get; set; }
2453+
public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2AudioFormat? Type606 { get; set; }
24542454
/// <summary>
24552455
///
24562456
/// </summary>
2457-
public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2AudioFormat? Type607 { get; set; }
2457+
public global::tryAGI.OpenAI.VoiceIdsShared? Type607 { get; set; }
24582458
/// <summary>
24592459
///
24602460
/// </summary>
2461-
public global::tryAGI.OpenAI.VoiceIdsShared? Type608 { get; set; }
2461+
public global::tryAGI.OpenAI.VoiceIdsSharedEnum? Type608 { get; set; }
24622462
/// <summary>
24632463
///
24642464
/// </summary>
2465-
public global::tryAGI.OpenAI.VoiceIdsSharedEnum? Type609 { get; set; }
2465+
public global::tryAGI.OpenAI.AnyOf<global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2FunctionCall?, global::tryAGI.OpenAI.ChatCompletionFunctionCallOption>? Type609 { get; set; }
24662466
/// <summary>
24672467
///
24682468
/// </summary>
2469-
public global::tryAGI.OpenAI.AnyOf<global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2FunctionCall?, global::tryAGI.OpenAI.ChatCompletionFunctionCallOption>? Type610 { get; set; }
2469+
public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2FunctionCall? Type610 { get; set; }
24702470
/// <summary>
24712471
///
24722472
/// </summary>
2473-
public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2FunctionCall? Type611 { get; set; }
2473+
public global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ChatCompletionFunctions>? Type611 { get; set; }
24742474
/// <summary>
24752475
///
24762476
/// </summary>
2477-
public global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ChatCompletionFunctions>? Type612 { get; set; }
2477+
public global::System.Collections.Generic.Dictionary<string, int>? Type612 { get; set; }
24782478
/// <summary>
24792479
///
24802480
/// </summary>
2481-
public global::System.Collections.Generic.Dictionary<string, int>? Type613 { get; set; }
2481+
public global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ChatCompletionRequestMessage>? Type613 { get; set; }
24822482
/// <summary>
24832483
///
24842484
/// </summary>
2485-
public global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ChatCompletionRequestMessage>? Type614 { get; set; }
2485+
public global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ResponseModalitie>? Type614 { get; set; }
24862486
/// <summary>
24872487
///
24882488
/// </summary>
2489-
public global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ResponseModalitie>? Type615 { get; set; }
2489+
public global::tryAGI.OpenAI.ResponseModalitie? Type615 { get; set; }
24902490
/// <summary>
24912491
///
24922492
/// </summary>
2493-
public global::tryAGI.OpenAI.ResponseModalitie? Type616 { get; set; }
2493+
public global::tryAGI.OpenAI.ModelIdsShared? Type616 { get; set; }
24942494
/// <summary>
24952495
///
24962496
/// </summary>
2497-
public global::tryAGI.OpenAI.ModelIdsShared? Type617 { get; set; }
2497+
public global::tryAGI.OpenAI.PredictionContent? Type617 { get; set; }
24982498
/// <summary>
24992499
///
25002500
/// </summary>
2501-
public global::tryAGI.OpenAI.PredictionContent? Type618 { get; set; }
2501+
public global::tryAGI.OpenAI.PredictionContentType? Type618 { get; set; }
25022502
/// <summary>
25032503
///
25042504
/// </summary>
2505-
public global::tryAGI.OpenAI.PredictionContentType? Type619 { get; set; }
2505+
public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2PredictionDiscriminator? Type619 { get; set; }
25062506
/// <summary>
25072507
///
25082508
/// </summary>
2509-
public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2PredictionDiscriminator? Type620 { get; set; }
2509+
public global::tryAGI.OpenAI.AnyOf<global::tryAGI.OpenAI.ResponseFormatText, global::tryAGI.OpenAI.ResponseFormatJsonSchema, global::tryAGI.OpenAI.ResponseFormatJsonObject>? Type620 { get; set; }
25102510
/// <summary>
25112511
///
25122512
/// </summary>
2513-
public global::tryAGI.OpenAI.AnyOf<global::tryAGI.OpenAI.ResponseFormatText, global::tryAGI.OpenAI.ResponseFormatJsonSchema, global::tryAGI.OpenAI.ResponseFormatJsonObject>? Type621 { get; set; }
2513+
public global::tryAGI.OpenAI.StopConfiguration? Type621 { get; set; }
25142514
/// <summary>
25152515
///
25162516
/// </summary>
2517-
public global::tryAGI.OpenAI.StopConfiguration? Type622 { get; set; }
2517+
public global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ToolsItem>? Type622 { get; set; }
25182518
/// <summary>
25192519
///
25202520
/// </summary>
2521-
public global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ToolsItem>? Type623 { get; set; }
2521+
public global::tryAGI.OpenAI.ToolsItem? Type623 { get; set; }
25222522
/// <summary>
25232523
///
25242524
/// </summary>
2525-
public global::tryAGI.OpenAI.ToolsItem? Type624 { get; set; }
2525+
public global::tryAGI.OpenAI.CustomToolChatCompletions? Type624 { get; set; }
25262526
/// <summary>
25272527
///
25282528
/// </summary>
2529-
public global::tryAGI.OpenAI.CustomToolChatCompletions? Type625 { get; set; }
2529+
public global::tryAGI.OpenAI.CustomToolChatCompletionsCustom? Type625 { get; set; }
25302530
/// <summary>
25312531
///
25322532
/// </summary>
2533-
public global::tryAGI.OpenAI.CustomToolChatCompletionsCustom? Type626 { get; set; }
2533+
public global::tryAGI.OpenAI.Format2? Type626 { get; set; }
25342534
/// <summary>
25352535
///
25362536
/// </summary>
2537-
public global::tryAGI.OpenAI.Format2? Type627 { get; set; }
2537+
public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant1? Type627 { get; set; }
25382538
/// <summary>
25392539
///
25402540
/// </summary>
2541-
public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant1? Type628 { get; set; }
2541+
public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant1Type? Type628 { get; set; }
25422542
/// <summary>
25432543
///
25442544
/// </summary>
2545-
public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant1Type? Type629 { get; set; }
2545+
public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant2? Type629 { get; set; }
25462546
/// <summary>
25472547
///
25482548
/// </summary>
2549-
public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant2? Type630 { get; set; }
2549+
public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant2Grammar? Type630 { get; set; }
25502550
/// <summary>
25512551
///
25522552
/// </summary>
2553-
public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant2Grammar? Type631 { get; set; }
2553+
public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant2GrammarSyntax? Type631 { get; set; }
25542554
/// <summary>
25552555
///
25562556
/// </summary>
2557-
public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant2GrammarSyntax? Type632 { get; set; }
2557+
public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant2Type? Type632 { get; set; }
25582558
/// <summary>
25592559
///
25602560
/// </summary>
2561-
public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatVariant2Type? Type633 { get; set; }
2561+
public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatDiscriminator? Type633 { get; set; }
25622562
/// <summary>
25632563
///
25642564
/// </summary>
2565-
public global::tryAGI.OpenAI.CustomToolChatCompletionsCustomFormatDiscriminator? Type634 { get; set; }
2565+
public global::tryAGI.OpenAI.CustomToolChatCompletionsType? Type634 { get; set; }
25662566
/// <summary>
25672567
///
25682568
/// </summary>
2569-
public global::tryAGI.OpenAI.CustomToolChatCompletionsType? Type635 { get; set; }
2569+
public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ToolDiscriminator? Type635 { get; set; }
25702570
/// <summary>
25712571
///
25722572
/// </summary>
2573-
public global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2ToolDiscriminator? Type636 { get; set; }
2573+
public global::tryAGI.OpenAI.Verbosity? Type636 { get; set; }
25742574
/// <summary>
25752575
///
25762576
/// </summary>

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.CreateChatCompletionRequestVariant2.g.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,16 @@ public sealed partial class CreateChatCompletionRequestVariant2
250250
[global::System.Text.Json.Serialization.JsonPropertyName("top_logprobs")]
251251
public int? TopLogprobs { get; set; }
252252

253+
/// <summary>
254+
/// Constrains the verbosity of the model's response. Lower values will result in<br/>
255+
/// more concise responses, while higher values will result in more verbose responses.<br/>
256+
/// Currently supported values are `low`, `medium`, and `high`.<br/>
257+
/// Default Value: medium
258+
/// </summary>
259+
[global::System.Text.Json.Serialization.JsonPropertyName("verbosity")]
260+
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityJsonConverter))]
261+
public global::tryAGI.OpenAI.Verbosity? Verbosity { get; set; }
262+
253263
/// <summary>
254264
/// This tool searches the web for relevant results to use in a response.<br/>
255265
/// Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat).
@@ -396,6 +406,12 @@ public sealed partial class CreateChatCompletionRequestVariant2
396406
/// return at each token position, each with an associated log probability.<br/>
397407
/// `logprobs` must be set to `true` if this parameter is used.
398408
/// </param>
409+
/// <param name="verbosity">
410+
/// Constrains the verbosity of the model's response. Lower values will result in<br/>
411+
/// more concise responses, while higher values will result in more verbose responses.<br/>
412+
/// Currently supported values are `low`, `medium`, and `high`.<br/>
413+
/// Default Value: medium
414+
/// </param>
399415
/// <param name="webSearchOptions">
400416
/// This tool searches the web for relevant results to use in a response.<br/>
401417
/// Learn more about the [web search tool](https://platform.openai.com/docs/guides/tools-web-search?api-mode=chat).
@@ -426,6 +442,7 @@ public CreateChatCompletionRequestVariant2(
426442
global::tryAGI.OpenAI.ChatCompletionToolChoiceOption? toolChoice,
427443
global::System.Collections.Generic.IList<global::tryAGI.OpenAI.ToolsItem>? tools,
428444
int? topLogprobs,
445+
global::tryAGI.OpenAI.Verbosity? verbosity,
429446
global::tryAGI.OpenAI.CreateChatCompletionRequestVariant2WebSearchOptions? webSearchOptions)
430447
{
431448
this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages));
@@ -450,6 +467,7 @@ public CreateChatCompletionRequestVariant2(
450467
this.ToolChoice = toolChoice;
451468
this.Tools = tools;
452469
this.TopLogprobs = topLogprobs;
470+
this.Verbosity = verbosity;
453471
this.WebSearchOptions = webSearchOptions;
454472
}
455473

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelResponseProperties.g.cs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,6 @@ public sealed partial class ModelResponseProperties
8989
[global::System.Obsolete("This property marked as deprecated.")]
9090
public string? User { get; set; }
9191

92-
/// <summary>
93-
/// Constrains the verbosity of the model's response. Lower values will result in<br/>
94-
/// more concise responses, while higher values will result in more verbose responses.<br/>
95-
/// Currently supported values are `low`, `medium`, and `high`.<br/>
96-
/// Default Value: medium
97-
/// </summary>
98-
[global::System.Text.Json.Serialization.JsonPropertyName("verbosity")]
99-
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityJsonConverter))]
100-
public global::tryAGI.OpenAI.Verbosity? Verbosity { get; set; }
101-
10292
/// <summary>
10393
/// Additional properties that are not explicitly defined in the schema
10494
/// </summary>
@@ -152,12 +142,6 @@ public sealed partial class ModelResponseProperties
152142
/// Default Value: 1<br/>
153143
/// Example: 1
154144
/// </param>
155-
/// <param name="verbosity">
156-
/// Constrains the verbosity of the model's response. Lower values will result in<br/>
157-
/// more concise responses, while higher values will result in more verbose responses.<br/>
158-
/// Currently supported values are `low`, `medium`, and `high`.<br/>
159-
/// Default Value: medium
160-
/// </param>
161145
#if NET7_0_OR_GREATER
162146
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
163147
#endif
@@ -168,8 +152,7 @@ public ModelResponseProperties(
168152
global::tryAGI.OpenAI.ServiceTier? serviceTier,
169153
double? temperature,
170154
int? topLogprobs,
171-
double? topP,
172-
global::tryAGI.OpenAI.Verbosity? verbosity)
155+
double? topP)
173156
{
174157
this.Metadata = metadata;
175158
this.PromptCacheKey = promptCacheKey;
@@ -178,7 +161,6 @@ public ModelResponseProperties(
178161
this.Temperature = temperature;
179162
this.TopLogprobs = topLogprobs;
180163
this.TopP = topP;
181-
this.Verbosity = verbosity;
182164
}
183165

184166
/// <summary>

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ResponsePropertiesText.g.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ public sealed partial class ResponsePropertiesText
2626
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.TextResponseFormatConfigurationJsonConverter))]
2727
public global::tryAGI.OpenAI.TextResponseFormatConfiguration? Format { get; set; }
2828

29+
/// <summary>
30+
/// Constrains the verbosity of the model's response. Lower values will result in<br/>
31+
/// more concise responses, while higher values will result in more verbose responses.<br/>
32+
/// Currently supported values are `low`, `medium`, and `high`.<br/>
33+
/// Default Value: medium
34+
/// </summary>
35+
[global::System.Text.Json.Serialization.JsonPropertyName("verbosity")]
36+
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityJsonConverter))]
37+
public global::tryAGI.OpenAI.Verbosity? Verbosity { get; set; }
38+
2939
/// <summary>
3040
/// Additional properties that are not explicitly defined in the schema
3141
/// </summary>
@@ -46,13 +56,21 @@ public sealed partial class ResponsePropertiesText
4656
/// ensures the message the model generates is valid JSON. Using `json_schema`<br/>
4757
/// is preferred for models that support it.
4858
/// </param>
59+
/// <param name="verbosity">
60+
/// Constrains the verbosity of the model's response. Lower values will result in<br/>
61+
/// more concise responses, while higher values will result in more verbose responses.<br/>
62+
/// Currently supported values are `low`, `medium`, and `high`.<br/>
63+
/// Default Value: medium
64+
/// </param>
4965
#if NET7_0_OR_GREATER
5066
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
5167
#endif
5268
public ResponsePropertiesText(
53-
global::tryAGI.OpenAI.TextResponseFormatConfiguration? format)
69+
global::tryAGI.OpenAI.TextResponseFormatConfiguration? format,
70+
global::tryAGI.OpenAI.Verbosity? verbosity)
5471
{
5572
this.Format = format;
73+
this.Verbosity = verbosity;
5674
}
5775

5876
/// <summary>

src/libs/tryAGI.OpenAI/openapi.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10366,6 +10366,8 @@ components:
1036610366
type: integer
1036710367
description: "An integer between 0 and 20 specifying the number of most likely tokens to\nreturn at each token position, each with an associated log probability.\n`logprobs` must be set to `true` if this parameter is used.\n"
1036810368
nullable: true
10369+
verbosity:
10370+
$ref: '#/components/schemas/Verbosity'
1036910371
web_search_options:
1037010372
title: Web search
1037110373
type: object
@@ -17890,8 +17892,6 @@ components:
1789017892
description: "This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.\nA stable identifier for your end-users. \nUsed to boost cache hit rates by better bucketing similar requests and to help OpenAI detect and prevent abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).\n"
1789117893
example: user-1234
1789217894
deprecated: true
17893-
verbosity:
17894-
$ref: '#/components/schemas/Verbosity'
1789517895
ModerationImageURLInput:
1789617896
required:
1789717897
- type
@@ -22709,6 +22709,8 @@ components:
2270922709
properties:
2271022710
format:
2271122711
$ref: '#/components/schemas/TextResponseFormatConfiguration'
22712+
verbosity:
22713+
$ref: '#/components/schemas/Verbosity'
2271222714
description: "Configuration options for a text response from the model. Can be plain\ntext or structured JSON data. Learn more:\n- [Text inputs and outputs](https://platform.openai.com/docs/guides/text)\n- [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)\n"
2271322715
tool_choice:
2271422716
anyOf:

0 commit comments

Comments
 (0)