From 51c21f99ca2eed8d301a123c261517ce26528f2b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 7 Oct 2026 20:18:03 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...isionsCreateDecisionCommandApiCommand.g.cs | 6 ++--- ...OpenAI.DecisionsClient.CreateDecision.g.cs | 18 +++++++-------- ...penAI.IDecisionsClient.CreateDecision.g.cs | 18 +++++++-------- ...AGI.OpenAI.Models.QuestionParamChoice.g.cs | 6 +++-- src/libs/tryAGI.OpenAI/openapi.yaml | 22 ++++++++++--------- 5 files changed, 37 insertions(+), 33 deletions(-) diff --git a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DecisionsCreateDecisionCommandApiCommand.g.cs b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DecisionsCreateDecisionCommandApiCommand.g.cs index 066a18583..f3461d1ea 100644 --- a/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DecisionsCreateDecisionCommandApiCommand.g.cs +++ b/src/libs/tryAGI.OpenAI.CLI/GeneratedApi/Commands/DecisionsCreateDecisionCommandApiCommand.g.cs @@ -75,11 +75,11 @@ private static string FormatResponse(ParseResult parseResult, global::tryAGI.Ope public static Command Create(string? commandName = null) { var command = new Command(commandName ?? @"create-decision", @"Create a decision -Evaluate ordered classification and scoring questions against shared input. Answers are returned in question order. +Use this endpoint to ask classification or scoring questions about the same input. You’ll get the answers back in the order you asked the questions. -Supply input as a string or user messages containing text and inline images. Only user messages with `input_text` and `input_image` parts are supported; non-user roles, function calls, files, audio, and item references are not supported. Images require a data URL, not an external URL or file ID. At most 128 images are allowed across the request. +For text, you can pass a string. You can also send user messages containing `input_text` and `input_image` parts, with up to 128 images per request. Images must be data URLs; external URLs and file IDs aren’t accepted. Other message roles, function calls, files, audio, and item references aren’t supported. -Each question can return a refusal instead of a scored answer. A refusal has type `refusal` and the corresponding question name, or null if unnamed."); +Sometimes a question returns a refusal instead of an answer. The result has type `refusal` and includes the question’s name, or `null` if you didn’t give it one."); command.Options.Add(Model); command.Options.Add(InputOption); command.Options.Add(Questions); diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DecisionsClient.CreateDecision.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DecisionsClient.CreateDecision.g.cs index 1cc5b86c3..cbf06d285 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DecisionsClient.CreateDecision.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.DecisionsClient.CreateDecision.g.cs @@ -43,9 +43,9 @@ partial void ProcessCreateDecisionResponseContent( /// /// Create a decision
- /// Evaluate ordered classification and scoring questions against shared input. Answers are returned in question order.
- /// Supply input as a string or user messages containing text and inline images. Only user messages with `input_text` and `input_image` parts are supported; non-user roles, function calls, files, audio, and item references are not supported. Images require a data URL, not an external URL or file ID. At most 128 images are allowed across the request.
- /// Each question can return a refusal instead of a scored answer. A refusal has type `refusal` and the corresponding question name, or null if unnamed. + /// Use this endpoint to ask classification or scoring questions about the same input. You’ll get the answers back in the order you asked the questions.
+ /// For text, you can pass a string. You can also send user messages containing `input_text` and `input_image` parts, with up to 128 images per request. Images must be data URLs; external URLs and file IDs aren’t accepted. Other message roles, function calls, files, audio, and item references aren’t supported.
+ /// Sometimes a question returns a refusal instead of an answer. The result has type `refusal` and includes the question’s name, or `null` if you didn’t give it one. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -68,9 +68,9 @@ partial void ProcessCreateDecisionResponseContent( } /// /// Create a decision
- /// Evaluate ordered classification and scoring questions against shared input. Answers are returned in question order.
- /// Supply input as a string or user messages containing text and inline images. Only user messages with `input_text` and `input_image` parts are supported; non-user roles, function calls, files, audio, and item references are not supported. Images require a data URL, not an external URL or file ID. At most 128 images are allowed across the request.
- /// Each question can return a refusal instead of a scored answer. A refusal has type `refusal` and the corresponding question name, or null if unnamed. + /// Use this endpoint to ask classification or scoring questions about the same input. You’ll get the answers back in the order you asked the questions.
+ /// For text, you can pass a string. You can also send user messages containing `input_text` and `input_image` parts, with up to 128 images per request. Images must be data URLs; external URLs and file IDs aren’t accepted. Other message roles, function calls, files, audio, and item references aren’t supported.
+ /// Sometimes a question returns a refusal instead of an answer. The result has type `refusal` and includes the question’s name, or `null` if you didn’t give it one. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -439,9 +439,9 @@ partial void ProcessCreateDecisionResponseContent( } /// /// Create a decision
- /// Evaluate ordered classification and scoring questions against shared input. Answers are returned in question order.
- /// Supply input as a string or user messages containing text and inline images. Only user messages with `input_text` and `input_image` parts are supported; non-user roles, function calls, files, audio, and item references are not supported. Images require a data URL, not an external URL or file ID. At most 128 images are allowed across the request.
- /// Each question can return a refusal instead of a scored answer. A refusal has type `refusal` and the corresponding question name, or null if unnamed. + /// Use this endpoint to ask classification or scoring questions about the same input. You’ll get the answers back in the order you asked the questions.
+ /// For text, you can pass a string. You can also send user messages containing `input_text` and `input_image` parts, with up to 128 images per request. Images must be data URLs; external URLs and file IDs aren’t accepted. Other message roles, function calls, files, audio, and item references aren’t supported.
+ /// Sometimes a question returns a refusal instead of an answer. The result has type `refusal` and includes the question’s name, or `null` if you didn’t give it one. ///
/// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IDecisionsClient.CreateDecision.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IDecisionsClient.CreateDecision.g.cs index 1151462c5..aa009598e 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IDecisionsClient.CreateDecision.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IDecisionsClient.CreateDecision.g.cs @@ -6,9 +6,9 @@ public partial interface IDecisionsClient { /// /// Create a decision
- /// Evaluate ordered classification and scoring questions against shared input. Answers are returned in question order.
- /// Supply input as a string or user messages containing text and inline images. Only user messages with `input_text` and `input_image` parts are supported; non-user roles, function calls, files, audio, and item references are not supported. Images require a data URL, not an external URL or file ID. At most 128 images are allowed across the request.
- /// Each question can return a refusal instead of a scored answer. A refusal has type `refusal` and the corresponding question name, or null if unnamed. + /// Use this endpoint to ask classification or scoring questions about the same input. You’ll get the answers back in the order you asked the questions.
+ /// For text, you can pass a string. You can also send user messages containing `input_text` and `input_image` parts, with up to 128 images per request. Images must be data URLs; external URLs and file IDs aren’t accepted. Other message roles, function calls, files, audio, and item references aren’t supported.
+ /// Sometimes a question returns a refusal instead of an answer. The result has type `refusal` and includes the question’s name, or `null` if you didn’t give it one. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -21,9 +21,9 @@ public partial interface IDecisionsClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Create a decision
- /// Evaluate ordered classification and scoring questions against shared input. Answers are returned in question order.
- /// Supply input as a string or user messages containing text and inline images. Only user messages with `input_text` and `input_image` parts are supported; non-user roles, function calls, files, audio, and item references are not supported. Images require a data URL, not an external URL or file ID. At most 128 images are allowed across the request.
- /// Each question can return a refusal instead of a scored answer. A refusal has type `refusal` and the corresponding question name, or null if unnamed. + /// Use this endpoint to ask classification or scoring questions about the same input. You’ll get the answers back in the order you asked the questions.
+ /// For text, you can pass a string. You can also send user messages containing `input_text` and `input_image` parts, with up to 128 images per request. Images must be data URLs; external URLs and file IDs aren’t accepted. Other message roles, function calls, files, audio, and item references aren’t supported.
+ /// Sometimes a question returns a refusal instead of an answer. The result has type `refusal` and includes the question’s name, or `null` if you didn’t give it one. ///
/// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. @@ -36,9 +36,9 @@ public partial interface IDecisionsClient global::System.Threading.CancellationToken cancellationToken = default); /// /// Create a decision
- /// Evaluate ordered classification and scoring questions against shared input. Answers are returned in question order.
- /// Supply input as a string or user messages containing text and inline images. Only user messages with `input_text` and `input_image` parts are supported; non-user roles, function calls, files, audio, and item references are not supported. Images require a data URL, not an external URL or file ID. At most 128 images are allowed across the request.
- /// Each question can return a refusal instead of a scored answer. A refusal has type `refusal` and the corresponding question name, or null if unnamed. + /// Use this endpoint to ask classification or scoring questions about the same input. You’ll get the answers back in the order you asked the questions.
+ /// For text, you can pass a string. You can also send user messages containing `input_text` and `input_image` parts, with up to 128 images per request. Images must be data URLs; external URLs and file IDs aren’t accepted. Other message roles, function calls, files, audio, and item references aren’t supported.
+ /// Sometimes a question returns a refusal instead of an answer. The result has type `refusal` and includes the question’s name, or `null` if you didn’t give it one. ///
/// /// diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamChoice.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamChoice.g.cs index 5699486cf..24f6585fc 100644 --- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamChoice.g.cs +++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.Models.QuestionParamChoice.g.cs @@ -31,7 +31,7 @@ public sealed partial class QuestionParamChoice public required string Instructions { get; set; } /// - /// + /// Provide between 2 and 255 choices. Each choice must be unique. /// [global::System.Text.Json.Serialization.JsonPropertyName("choices")] [global::System.Text.Json.Serialization.JsonRequired] @@ -47,7 +47,9 @@ public sealed partial class QuestionParamChoice /// Initializes a new instance of the class. /// /// - /// + /// + /// Provide between 2 and 255 choices. Each choice must be unique. + /// /// /// /// The type of the object. Always `choice`.
diff --git a/src/libs/tryAGI.OpenAI/openapi.yaml b/src/libs/tryAGI.OpenAI/openapi.yaml index ad23a0d5e..247ef600b 100644 --- a/src/libs/tryAGI.OpenAI/openapi.yaml +++ b/src/libs/tryAGI.OpenAI/openapi.yaml @@ -32262,20 +32262,21 @@ paths: operationId: createDecision summary: Create a decision description: >- - Evaluate ordered classification and scoring questions against shared - input. Answers are returned in question order. + Use this endpoint to ask classification or scoring questions about the + same input. You’ll get the answers back in the order you asked the + questions. - Supply input as a string or user messages containing text and inline - images. Only user messages with `input_text` and `input_image` parts are - supported; non-user roles, function calls, files, audio, and item - references are not supported. Images require a data URL, not an external - URL or file ID. At most 128 images are allowed across the request. + For text, you can pass a string. You can also send user messages + containing `input_text` and `input_image` parts, with up to 128 images + per request. Images must be data URLs; external URLs and file IDs aren’t + accepted. Other message roles, function calls, files, audio, and item + references aren’t supported. - Each question can return a refusal instead of a scored answer. A refusal - has type `refusal` and the corresponding question name, or null if - unnamed. + Sometimes a question returns a refusal instead of an answer. The result + has type `refusal` and includes the question’s name, or `null` if you + didn’t give it one. tags: - Decisions requestBody: @@ -89235,6 +89236,7 @@ components: $ref: "#/components/schemas/ChoiceOptionParam" minItems: 2 maxItems: 255 + description: Provide between 2 and 255 choices. Each choice must be unique. required: - type - instructions