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 @@ -17,7 +17,7 @@ internal static partial class DecisionsCreateDecisionCommandApiCommand
private static Option<global::tryAGI.OpenAI.DecisionInput> InputOption { get; } = new(
name: @"--input")
{
Description = @"Shared evidence, as a string or an array of user messages containing text and inline images. Non-user roles, function calls, function-call outputs, files, audio, and item references are not supported. At most 128 image parts are allowed across all messages in one request.",
Description = @"The text or images to evaluate for every question. Provide a text string or user messages containing text and inline images. Images must be inline data URLs; at most 128 images are allowed across all messages in one request. External URLs, files, audio, tools, and item references are not supported.",
Required = true,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ partial void ProcessCreateDecisionResponseContent(
/// </summary>
/// <param name="model"></param>
/// <param name="input">
/// Shared evidence, as a string or an array of user messages containing text and inline images. Non-user roles, function calls, function-call outputs, files, audio, and item references are not supported. At most 128 image parts are allowed across all messages in one request.
/// The text or images to evaluate for every question. Provide a text string or user messages containing text and inline images. Images must be inline data URLs; at most 128 images are allowed across all messages in one request. External URLs, files, audio, tools, and item references are not supported.
/// </param>
/// <param name="questions"></param>
/// <param name="safetyIdentifier">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public partial interface IDecisionsClient
/// </summary>
/// <param name="model"></param>
/// <param name="input">
/// Shared evidence, as a string or an array of user messages containing text and inline images. Non-user roles, function calls, function-call outputs, files, audio, and item references are not supported. At most 128 image parts are allowed across all messages in one request.
/// The text or images to evaluate for every question. Provide a text string or user messages containing text and inline images. Images must be inline data URLs; at most 128 images are allowed across all messages in one request. External URLs, files, audio, tools, and item references are not supported.
/// </param>
/// <param name="questions"></param>
/// <param name="safetyIdentifier">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public bool TryPickScore(
: throw new global::System.InvalidOperationException($"Expected union variant 'Score' but the value was {ToString()}.");

/// <summary>
/// The host may decline one question without disclosing its refusal score.
/// The model declined to answer this question. Other questions in the same request can still receive answers.
/// </summary>
#if NET6_0_OR_GREATER
public global::tryAGI.OpenAI.AnswerResourceRefusal? Refusal { get; init; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace tryAGI.OpenAI
{
/// <summary>
/// The host may decline one question without disclosing its refusal score.
/// The model declined to answer this question. Other questions in the same request can still receive answers.
/// </summary>
public sealed partial class AnswerResourceRefusal
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace tryAGI.OpenAI
{
/// <summary>
/// Shared evidence, as a string or an array of user messages containing text and inline images. Non-user roles, function calls, function-call outputs, files, audio, and item references are not supported. At most 128 image parts are allowed across all messages in one request.
/// The text or images to evaluate for every question. Provide a text string or user messages containing text and inline images. Images must be inline data URLs; at most 128 images are allowed across all messages in one request. External URLs, files, audio, tools, and item references are not supported.
/// </summary>
public readonly partial struct DecisionInput : global::System.IEquatable<DecisionInput>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public sealed partial class DecisionRequest
public required string Model { get; set; }

/// <summary>
/// Shared evidence, as a string or an array of user messages containing text and inline images. Non-user roles, function calls, function-call outputs, files, audio, and item references are not supported. At most 128 image parts are allowed across all messages in one request.
/// The text or images to evaluate for every question. Provide a text string or user messages containing text and inline images. Images must be inline data URLs; at most 128 images are allowed across all messages in one request. External URLs, files, audio, tools, and item references are not supported.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("input")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.DecisionInputJsonConverter))]
Expand Down Expand Up @@ -47,7 +47,7 @@ public sealed partial class DecisionRequest
/// </summary>
/// <param name="model"></param>
/// <param name="input">
/// Shared evidence, as a string or an array of user messages containing text and inline images. Non-user roles, function calls, function-call outputs, files, audio, and item references are not supported. At most 128 image parts are allowed across all messages in one request.
/// The text or images to evaluate for every question. Provide a text string or user messages containing text and inline images. Images must be inline data URLs; at most 128 images are allowed across all messages in one request. External URLs, files, audio, tools, and item references are not supported.
/// </param>
/// <param name="questions"></param>
/// <param name="safetyIdentifier">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ public enum LiveInitialSessionAudioOutputParamVoiceVariant1
/// <summary>
///
/// </summary>
Shimmer,
Shida,
/// <summary>
///
/// </summary>
Shitan,
Shimmer,
/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -169,8 +169,8 @@ public static string ToValueString(this LiveInitialSessionAudioOutputParamVoiceV
LiveInitialSessionAudioOutputParamVoiceVariant1.Quartz => "quartz",
LiveInitialSessionAudioOutputParamVoiceVariant1.Ripple => "ripple",
LiveInitialSessionAudioOutputParamVoiceVariant1.Sage => "sage",
LiveInitialSessionAudioOutputParamVoiceVariant1.Shida => "shida",
LiveInitialSessionAudioOutputParamVoiceVariant1.Shimmer => "shimmer",
LiveInitialSessionAudioOutputParamVoiceVariant1.Shitan => "shitan",
LiveInitialSessionAudioOutputParamVoiceVariant1.Sillage => "sillage",
LiveInitialSessionAudioOutputParamVoiceVariant1.Stone => "stone",
LiveInitialSessionAudioOutputParamVoiceVariant1.Tempo => "tempo",
Expand Down Expand Up @@ -210,8 +210,8 @@ public static string ToValueString(this LiveInitialSessionAudioOutputParamVoiceV
"quartz" => LiveInitialSessionAudioOutputParamVoiceVariant1.Quartz,
"ripple" => LiveInitialSessionAudioOutputParamVoiceVariant1.Ripple,
"sage" => LiveInitialSessionAudioOutputParamVoiceVariant1.Sage,
"shida" => LiveInitialSessionAudioOutputParamVoiceVariant1.Shida,
"shimmer" => LiveInitialSessionAudioOutputParamVoiceVariant1.Shimmer,
"shitan" => LiveInitialSessionAudioOutputParamVoiceVariant1.Shitan,
"sillage" => LiveInitialSessionAudioOutputParamVoiceVariant1.Sillage,
"stone" => LiveInitialSessionAudioOutputParamVoiceVariant1.Stone,
"tempo" => LiveInitialSessionAudioOutputParamVoiceVariant1.Tempo,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace tryAGI.OpenAI
public global::tryAGI.OpenAI.QuestionParamDiscriminatorType? Type { get; }

/// <summary>
///
/// Estimate how likely it is that a statement about the input is true.
/// </summary>
#if NET6_0_OR_GREATER
public global::tryAGI.OpenAI.QuestionParamPredicate? Predicate { get; init; }
Expand Down Expand Up @@ -52,7 +52,7 @@ public bool TryPickPredicate(
: throw new global::System.InvalidOperationException($"Expected union variant 'Predicate' but the value was {ToString()}.");

/// <summary>
///
/// Choose from the supplied options based on the input.
/// </summary>
#if NET6_0_OR_GREATER
public global::tryAGI.OpenAI.QuestionParamChoice? Choice { get; init; }
Expand Down Expand Up @@ -89,7 +89,7 @@ public bool TryPickChoice(
: throw new global::System.InvalidOperationException($"Expected union variant 'Choice' but the value was {ToString()}.");

/// <summary>
///
/// Rate the input against the supplied ordered levels.
/// </summary>
#if NET6_0_OR_GREATER
public global::tryAGI.OpenAI.QuestionParamScore? Score { get; init; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace tryAGI.OpenAI
{
/// <summary>
///
/// Choose from the supplied options based on the input.
/// </summary>
public sealed partial class QuestionParamChoice
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace tryAGI.OpenAI
{
/// <summary>
///
/// Estimate how likely it is that a statement about the input is true.
/// </summary>
public sealed partial class QuestionParamPredicate
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace tryAGI.OpenAI
{
/// <summary>
///
/// Rate the input against the supplied ordered levels.
/// </summary>
public sealed partial class QuestionParamScore
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ public enum SessionTurnErrorCodeResource
/// <summary>
///
/// </summary>
BillingNotActive,
/// <summary>
///
/// </summary>
ConnectionFailed,
/// <summary>
///
Expand Down Expand Up @@ -112,6 +116,7 @@ public static string ToValueString(this SessionTurnErrorCodeResource value)
{
SessionTurnErrorCodeResource.ActiveTurnNotSteerable => "active_turn_not_steerable",
SessionTurnErrorCodeResource.AuthenticationError => "authentication_error",
SessionTurnErrorCodeResource.BillingNotActive => "billing_not_active",
SessionTurnErrorCodeResource.ConnectionFailed => "connection_failed",
SessionTurnErrorCodeResource.ContextLengthExceeded => "context_length_exceeded",
SessionTurnErrorCodeResource.CreditBalanceExhausted => "credit_balance_exhausted",
Expand Down Expand Up @@ -144,6 +149,7 @@ public static string ToValueString(this SessionTurnErrorCodeResource value)
{
"active_turn_not_steerable" => SessionTurnErrorCodeResource.ActiveTurnNotSteerable,
"authentication_error" => SessionTurnErrorCodeResource.AuthenticationError,
"billing_not_active" => SessionTurnErrorCodeResource.BillingNotActive,
"connection_failed" => SessionTurnErrorCodeResource.ConnectionFailed,
"context_length_exceeded" => SessionTurnErrorCodeResource.ContextLengthExceeded,
"credit_balance_exhausted" => SessionTurnErrorCodeResource.CreditBalanceExhausted,
Expand Down
20 changes: 13 additions & 7 deletions src/libs/tryAGI.OpenAI/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84685,8 +84685,8 @@ components:
- quartz
- ripple
- sage
- shida
- shimmer
- shitan
- sillage
- stone
- tempo
Expand Down Expand Up @@ -89163,11 +89163,11 @@ components:
x-oai-default-discriminator-value: message
minItems: 0
maxItems: 131072
description: Shared evidence, as a string or an array of user messages
containing text and inline images. Non-user roles, function calls,
function-call outputs, files, audio, and item references are not
supported. At most 128 image parts are allowed across all messages in
one request.
description: The text or images to evaluate for every question. Provide a text
string or user messages containing text and inline images. Images must
be inline data URLs; at most 128 images are allowed across all messages
in one request. External URLs, files, audio, tools, and item references
are not supported.
QuestionParamPredicate:
type: object
properties:
Expand All @@ -89190,6 +89190,7 @@ components:
- type
- instructions
additionalProperties: false
description: Estimate how likely it is that a statement about the input is true.
ChoiceValueParam:
oneOf:
- type: string
Expand Down Expand Up @@ -89239,6 +89240,7 @@ components:
- instructions
- choices
additionalProperties: false
description: Choose from the supplied options based on the input.
ScoreLevelParam:
type: object
properties:
Expand Down Expand Up @@ -89282,6 +89284,7 @@ components:
- instructions
- levels
additionalProperties: false
description: Rate the input against the supplied ordered levels.
QuestionParam:
oneOf:
- $ref: "#/components/schemas/QuestionParamPredicate"
Expand Down Expand Up @@ -89466,7 +89469,8 @@ components:
- type
- name
additionalProperties: false
description: The host may decline one question without disclosing its refusal score.
description: The model declined to answer this question. Other questions in the
same request can still receive answers.
AnswerResource:
oneOf:
- $ref: "#/components/schemas/AnswerResourcePredicate"
Expand Down Expand Up @@ -91493,6 +91497,7 @@ components:
- project_spend_limit_exceeded
- organization_spend_limit_exceeded
- organization_usage_limit_exceeded
- billing_not_active
- credit_balance_exhausted
- rate_limit_exceeded
- flex_unavailable
Expand All @@ -91516,6 +91521,7 @@ components:
- The project has reached its enforced spend limit.
- The organization has reached its enforced spend limit.
- The organization has reached its OpenAI-assigned usage limit.
- Billing is not active for the account.
- The organization has no API credits remaining.
- The request exceeds the available rate limit.
- Flex processing is temporarily unavailable.
Expand Down
Loading