Skip to content
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 @@ -377,8 +377,6 @@ namespace tryAGI.OpenAI
typeof(global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1TypeNullableJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2TypeJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2TypeNullableJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityNullableJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatNullableJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedEnumJsonConverter),
Expand All @@ -397,6 +395,8 @@ namespace tryAGI.OpenAI
typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatVariant2TypeNullableJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsTypeJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsTypeNullableJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityNullableJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchContextSizeJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchContextSizeNullableJsonConverter),
typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationTypeJsonConverter),
Expand Down
2,986 changes: 1,491 additions & 1,495 deletions src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.JsonSerializerContextTypes.g.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public sealed partial class CreateChatCompletionRequestVariant2
/// Whether or not to store the output of this chat completion request for<br/>
/// use in our [model distillation](https://platform.openai.com/docs/guides/distillation) or<br/>
/// [evals](https://platform.openai.com/docs/guides/evals) products.<br/>
/// Supports text and image inputs. Note: image inputs over 10MB will be dropped.<br/>
/// Supports text and image inputs. Note: image inputs over 8MB will be dropped.<br/>
/// Default Value: false
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("store")]
Expand Down Expand Up @@ -370,7 +370,7 @@ public sealed partial class CreateChatCompletionRequestVariant2
/// Whether or not to store the output of this chat completion request for<br/>
/// use in our [model distillation](https://platform.openai.com/docs/guides/distillation) or<br/>
/// [evals](https://platform.openai.com/docs/guides/evals) products.<br/>
/// Supports text and image inputs. Note: image inputs over 10MB will be dropped.<br/>
/// Supports text and image inputs. Note: image inputs over 8MB will be dropped.<br/>
/// Default Value: false
/// </param>
/// <param name="stream">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ namespace tryAGI.OpenAI
public sealed partial class GraderTextSimilarity
{
/// <summary>
/// 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`.
/// The evaluation metric to use. One of `cosine`, `fuzzy_match`, `bleu`, <br/>
/// `gleu`, `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, <br/>
/// or `rouge_l`.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("evaluation_metric")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.GraderTextSimilarityEvaluationMetricJsonConverter))]
Expand Down Expand Up @@ -56,7 +58,9 @@ public sealed partial class GraderTextSimilarity
/// Initializes a new instance of the <see cref="GraderTextSimilarity" /> class.
/// </summary>
/// <param name="evaluationMetric">
/// 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`.
/// The evaluation metric to use. One of `cosine`, `fuzzy_match`, `bleu`, <br/>
/// `gleu`, `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, <br/>
/// or `rouge_l`.
/// </param>
/// <param name="input">
/// The text being graded.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@
namespace tryAGI.OpenAI
{
/// <summary>
/// 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`.
/// The evaluation metric to use. One of `cosine`, `fuzzy_match`, `bleu`, <br/>
/// `gleu`, `meteor`, `rouge_1`, `rouge_2`, `rouge_3`, `rouge_4`, `rouge_5`, <br/>
/// or `rouge_l`.
/// </summary>
public enum GraderTextSimilarityEvaluationMetric
{
/// <summary>
///
/// </summary>
Cosine,
/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -62,6 +68,7 @@ public static string ToValueString(this GraderTextSimilarityEvaluationMetric val
{
return value switch
{
GraderTextSimilarityEvaluationMetric.Cosine => "cosine",
GraderTextSimilarityEvaluationMetric.FuzzyMatch => "fuzzy_match",
GraderTextSimilarityEvaluationMetric.Bleu => "bleu",
GraderTextSimilarityEvaluationMetric.Gleu => "gleu",
Expand All @@ -82,6 +89,7 @@ public static string ToValueString(this GraderTextSimilarityEvaluationMetric val
{
return value switch
{
"cosine" => GraderTextSimilarityEvaluationMetric.Cosine,
"fuzzy_match" => GraderTextSimilarityEvaluationMetric.FuzzyMatch,
"bleu" => GraderTextSimilarityEvaluationMetric.Bleu,
"gleu" => GraderTextSimilarityEvaluationMetric.Gleu,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@ public sealed partial class ModelResponseProperties
[global::System.Text.Json.Serialization.JsonPropertyName("temperature")]
public double? Temperature { get; set; }

/// <summary>
///
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("text")]
public global::tryAGI.OpenAI.ModelResponsePropertiesText? Text { get; set; }

/// <summary>
/// An integer between 0 and 20 specifying the number of most likely tokens to<br/>
/// return at each token position, each with an associated log probability.
Expand Down Expand Up @@ -135,7 +129,6 @@ public sealed partial class ModelResponseProperties
/// Default Value: 1<br/>
/// Example: 1
/// </param>
/// <param name="text"></param>
/// <param name="topLogprobs">
/// An integer between 0 and 20 specifying the number of most likely tokens to<br/>
/// return at each token position, each with an associated log probability.
Expand All @@ -158,7 +151,6 @@ public ModelResponseProperties(
string? safetyIdentifier,
global::tryAGI.OpenAI.ServiceTier? serviceTier,
double? temperature,
global::tryAGI.OpenAI.ModelResponsePropertiesText? text,
int? topLogprobs,
double? topP)
{
Expand All @@ -167,7 +159,6 @@ public ModelResponseProperties(
this.SafetyIdentifier = safetyIdentifier;
this.ServiceTier = serviceTier;
this.Temperature = temperature;
this.Text = text;
this.TopLogprobs = topLogprobs;
this.TopP = topP;
}
Expand Down

This file was deleted.

This file was deleted.

Loading
Loading