Skip to content

Commit 1eb72a8

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#212)
Co-authored-by: github-actions[bot] <[email protected]>
1 parent 82523f3 commit 1eb72a8

9 files changed

+1513
-1773
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
@@ -377,8 +377,6 @@ namespace tryAGI.OpenAI
377377
typeof(global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1TypeNullableJsonConverter),
378378
typeof(global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2TypeJsonConverter),
379379
typeof(global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2TypeNullableJsonConverter),
380-
typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityJsonConverter),
381-
typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityNullableJsonConverter),
382380
typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatJsonConverter),
383381
typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatNullableJsonConverter),
384382
typeof(global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedEnumJsonConverter),
@@ -397,6 +395,8 @@ namespace tryAGI.OpenAI
397395
typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatVariant2TypeNullableJsonConverter),
398396
typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsTypeJsonConverter),
399397
typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsTypeNullableJsonConverter),
398+
typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityJsonConverter),
399+
typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityNullableJsonConverter),
400400
typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchContextSizeJsonConverter),
401401
typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchContextSizeNullableJsonConverter),
402402
typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationTypeJsonConverter),

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

Lines changed: 1491 additions & 1495 deletions
Large diffs are not rendered by default.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public sealed partial class CreateChatCompletionRequestVariant2
200200
/// Whether or not to store the output of this chat completion request for<br/>
201201
/// use in our [model distillation](https://platform.openai.com/docs/guides/distillation) or<br/>
202202
/// [evals](https://platform.openai.com/docs/guides/evals) products.<br/>
203-
/// Supports text and image inputs. Note: image inputs over 10MB will be dropped.<br/>
203+
/// Supports text and image inputs. Note: image inputs over 8MB will be dropped.<br/>
204204
/// Default Value: false
205205
/// </summary>
206206
[global::System.Text.Json.Serialization.JsonPropertyName("store")]
@@ -370,7 +370,7 @@ public sealed partial class CreateChatCompletionRequestVariant2
370370
/// Whether or not to store the output of this chat completion request for<br/>
371371
/// use in our [model distillation](https://platform.openai.com/docs/guides/distillation) or<br/>
372372
/// [evals](https://platform.openai.com/docs/guides/evals) products.<br/>
373-
/// Supports text and image inputs. Note: image inputs over 10MB will be dropped.<br/>
373+
/// Supports text and image inputs. Note: image inputs over 8MB will be dropped.<br/>
374374
/// Default Value: false
375375
/// </param>
376376
/// <param name="stream">

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ namespace tryAGI.OpenAI
99
public sealed partial class GraderTextSimilarity
1010
{
1111
/// <summary>
12-
/// The evaluation metric to use. One of `fuzzy_match`, `bleu`, `gleu`, `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, or `rouge_l`.
12+
/// The evaluation metric to use. One of `cosine`, `fuzzy_match`, `bleu`, <br/>
13+
/// `gleu`, `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, <br/>
14+
/// or `rouge_l`.
1315
/// </summary>
1416
[global::System.Text.Json.Serialization.JsonPropertyName("evaluation_metric")]
1517
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.GraderTextSimilarityEvaluationMetricJsonConverter))]
@@ -56,7 +58,9 @@ public sealed partial class GraderTextSimilarity
5658
/// Initializes a new instance of the <see cref="GraderTextSimilarity" /> class.
5759
/// </summary>
5860
/// <param name="evaluationMetric">
59-
/// The evaluation metric to use. One of `fuzzy_match`, `bleu`, `gleu`, `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, or `rouge_l`.
61+
/// The evaluation metric to use. One of `cosine`, `fuzzy_match`, `bleu`, <br/>
62+
/// `gleu`, `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, <br/>
63+
/// or `rouge_l`.
6064
/// </param>
6165
/// <param name="input">
6266
/// The text being graded.

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@
44
namespace tryAGI.OpenAI
55
{
66
/// <summary>
7-
/// The evaluation metric to use. One of `fuzzy_match`, `bleu`, `gleu`, `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, or `rouge_l`.
7+
/// The evaluation metric to use. One of `cosine`, `fuzzy_match`, `bleu`, <br/>
8+
/// `gleu`, `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, <br/>
9+
/// or `rouge_l`.
810
/// </summary>
911
public enum GraderTextSimilarityEvaluationMetric
1012
{
13+
/// <summary>
14+
///
15+
/// </summary>
16+
Cosine,
1117
/// <summary>
1218
///
1319
/// </summary>
@@ -62,6 +68,7 @@ public static string ToValueString(this GraderTextSimilarityEvaluationMetric val
6268
{
6369
return value switch
6470
{
71+
GraderTextSimilarityEvaluationMetric.Cosine => "cosine",
6572
GraderTextSimilarityEvaluationMetric.FuzzyMatch => "fuzzy_match",
6673
GraderTextSimilarityEvaluationMetric.Bleu => "bleu",
6774
GraderTextSimilarityEvaluationMetric.Gleu => "gleu",
@@ -82,6 +89,7 @@ public static string ToValueString(this GraderTextSimilarityEvaluationMetric val
8289
{
8390
return value switch
8491
{
92+
"cosine" => GraderTextSimilarityEvaluationMetric.Cosine,
8593
"fuzzy_match" => GraderTextSimilarityEvaluationMetric.FuzzyMatch,
8694
"bleu" => GraderTextSimilarityEvaluationMetric.Bleu,
8795
"gleu" => GraderTextSimilarityEvaluationMetric.Gleu,

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,6 @@ public sealed partial class ModelResponseProperties
5858
[global::System.Text.Json.Serialization.JsonPropertyName("temperature")]
5959
public double? Temperature { get; set; }
6060

61-
/// <summary>
62-
///
63-
/// </summary>
64-
[global::System.Text.Json.Serialization.JsonPropertyName("text")]
65-
public global::tryAGI.OpenAI.ModelResponsePropertiesText? Text { get; set; }
66-
6761
/// <summary>
6862
/// An integer between 0 and 20 specifying the number of most likely tokens to<br/>
6963
/// return at each token position, each with an associated log probability.
@@ -135,7 +129,6 @@ public sealed partial class ModelResponseProperties
135129
/// Default Value: 1<br/>
136130
/// Example: 1
137131
/// </param>
138-
/// <param name="text"></param>
139132
/// <param name="topLogprobs">
140133
/// An integer between 0 and 20 specifying the number of most likely tokens to<br/>
141134
/// return at each token position, each with an associated log probability.
@@ -158,7 +151,6 @@ public ModelResponseProperties(
158151
string? safetyIdentifier,
159152
global::tryAGI.OpenAI.ServiceTier? serviceTier,
160153
double? temperature,
161-
global::tryAGI.OpenAI.ModelResponsePropertiesText? text,
162154
int? topLogprobs,
163155
double? topP)
164156
{
@@ -167,7 +159,6 @@ public ModelResponseProperties(
167159
this.SafetyIdentifier = safetyIdentifier;
168160
this.ServiceTier = serviceTier;
169161
this.Temperature = temperature;
170-
this.Text = text;
171162
this.TopLogprobs = topLogprobs;
172163
this.TopP = topP;
173164
}

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.ModelResponsePropertiesText.Json.g.cs

Lines changed: 0 additions & 92 deletions
This file was deleted.

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

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)