Skip to content

Commit 66155fe

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#260)
Co-authored-by: github-actions[bot] <bot@openai.com>
1 parent 5d6b034 commit 66155fe

6 files changed

Lines changed: 27 additions & 6 deletions

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.BatchClient.CreateBatch.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ partial void ProcessCreateBatchResponseContent(
175175
/// Your input file must be formatted as a [JSONL file](/docs/api-reference/batch/request-input), and must be uploaded with the purpose `batch`. The file can contain up to 50,000 requests, and can be up to 200 MB in size.
176176
/// </param>
177177
/// <param name="endpoint">
178-
/// The endpoint to be used for all requests in the batch. Currently `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`, `/v1/moderations`, `/v1/images/generations`, and `/v1/images/edits` are supported. Note that `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch.
178+
/// The endpoint to be used for all requests in the batch. Currently `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`, `/v1/moderations`, `/v1/images/generations`, `/v1/images/edits`, and `/v1/videos` are supported. Note that `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch.
179179
/// </param>
180180
/// <param name="completionWindow">
181181
/// The time frame within which the batch should be processed. Currently only `24h` is supported.

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IBatchClient.CreateBatch.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public partial interface IBatchClient
2424
/// Your input file must be formatted as a [JSONL file](/docs/api-reference/batch/request-input), and must be uploaded with the purpose `batch`. The file can contain up to 50,000 requests, and can be up to 200 MB in size.
2525
/// </param>
2626
/// <param name="endpoint">
27-
/// The endpoint to be used for all requests in the batch. Currently `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`, `/v1/moderations`, `/v1/images/generations`, and `/v1/images/edits` are supported. Note that `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch.
27+
/// The endpoint to be used for all requests in the batch. Currently `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`, `/v1/moderations`, `/v1/images/generations`, `/v1/images/edits`, and `/v1/videos` are supported. Note that `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch.
2828
/// </param>
2929
/// <param name="completionWindow">
3030
/// The time frame within which the batch should be processed. Currently only `24h` is supported.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public sealed partial class CreateBatchRequest
1818
public required string InputFileId { get; set; }
1919

2020
/// <summary>
21-
/// The endpoint to be used for all requests in the batch. Currently `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`, `/v1/moderations`, `/v1/images/generations`, and `/v1/images/edits` are supported. Note that `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch.
21+
/// The endpoint to be used for all requests in the batch. Currently `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`, `/v1/moderations`, `/v1/images/generations`, `/v1/images/edits`, and `/v1/videos` are supported. Note that `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch.
2222
/// </summary>
2323
[global::System.Text.Json.Serialization.JsonPropertyName("endpoint")]
2424
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.CreateBatchRequestEndpointJsonConverter))]
@@ -59,7 +59,7 @@ public sealed partial class CreateBatchRequest
5959
/// Your input file must be formatted as a [JSONL file](/docs/api-reference/batch/request-input), and must be uploaded with the purpose `batch`. The file can contain up to 50,000 requests, and can be up to 200 MB in size.
6060
/// </param>
6161
/// <param name="endpoint">
62-
/// The endpoint to be used for all requests in the batch. Currently `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`, `/v1/moderations`, `/v1/images/generations`, and `/v1/images/edits` are supported. Note that `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch.
62+
/// The endpoint to be used for all requests in the batch. Currently `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`, `/v1/moderations`, `/v1/images/generations`, `/v1/images/edits`, and `/v1/videos` are supported. Note that `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch.
6363
/// </param>
6464
/// <param name="completionWindow">
6565
/// The time frame within which the batch should be processed. Currently only `24h` is supported.

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace tryAGI.OpenAI
55
{
66
/// <summary>
7-
/// The endpoint to be used for all requests in the batch. Currently `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`, `/v1/moderations`, `/v1/images/generations`, and `/v1/images/edits` are supported. Note that `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch.
7+
/// The endpoint to be used for all requests in the batch. Currently `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`, `/v1/moderations`, `/v1/images/generations`, `/v1/images/edits`, and `/v1/videos` are supported. Note that `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch.
88
/// </summary>
99
public enum CreateBatchRequestEndpoint
1010
{
@@ -36,6 +36,10 @@ public enum CreateBatchRequestEndpoint
3636
///
3737
/// </summary>
3838
V1ImagesEdits,
39+
/// <summary>
40+
///
41+
/// </summary>
42+
V1Videos,
3943
}
4044

4145
/// <summary>
@@ -57,6 +61,7 @@ public static string ToValueString(this CreateBatchRequestEndpoint value)
5761
CreateBatchRequestEndpoint.V1Moderations => "/v1/moderations",
5862
CreateBatchRequestEndpoint.V1ImagesGenerations => "/v1/images/generations",
5963
CreateBatchRequestEndpoint.V1ImagesEdits => "/v1/images/edits",
64+
CreateBatchRequestEndpoint.V1Videos => "/v1/videos",
6065
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
6166
};
6267
}
@@ -74,6 +79,7 @@ public static string ToValueString(this CreateBatchRequestEndpoint value)
7479
"/v1/moderations" => CreateBatchRequestEndpoint.V1Moderations,
7580
"/v1/images/generations" => CreateBatchRequestEndpoint.V1ImagesGenerations,
7681
"/v1/images/edits" => CreateBatchRequestEndpoint.V1ImagesEdits,
82+
"/v1/videos" => CreateBatchRequestEndpoint.V1Videos,
7783
_ => null,
7884
};
7985
}

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ public sealed partial class FunctionToolParam
4141
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.FunctionToolParamTypeJsonConverter))]
4242
public global::tryAGI.OpenAI.FunctionToolParamType Type { get; set; } = global::tryAGI.OpenAI.FunctionToolParamType.Function;
4343

44+
/// <summary>
45+
/// Whether this function should be deferred and discovered via tool search.
46+
/// </summary>
47+
[global::System.Text.Json.Serialization.JsonPropertyName("defer_loading")]
48+
public bool? DeferLoading { get; set; }
49+
4450
/// <summary>
4551
/// Additional properties that are not explicitly defined in the schema
4652
/// </summary>
@@ -57,6 +63,9 @@ public sealed partial class FunctionToolParam
5763
/// <param name="type">
5864
/// Default Value: function
5965
/// </param>
66+
/// <param name="deferLoading">
67+
/// Whether this function should be deferred and discovered via tool search.
68+
/// </param>
6069
#if NET7_0_OR_GREATER
6170
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
6271
#endif
@@ -65,13 +74,15 @@ public FunctionToolParam(
6574
string? description,
6675
object? parameters,
6776
bool? strict,
77+
bool? deferLoading,
6878
global::tryAGI.OpenAI.FunctionToolParamType type = global::tryAGI.OpenAI.FunctionToolParamType.Function)
6979
{
7080
this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name));
7181
this.Description = description;
7282
this.Parameters = parameters;
7383
this.Strict = strict;
7484
this.Type = type;
85+
this.DeferLoading = deferLoading;
7586
}
7687

7788
/// <summary>

src/libs/tryAGI.OpenAI/openapi.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,8 +594,9 @@ paths:
594594
- /v1/moderations
595595
- /v1/images/generations
596596
- /v1/images/edits
597+
- /v1/videos
597598
type: string
598-
description: 'The endpoint to be used for all requests in the batch. Currently `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`, `/v1/moderations`, `/v1/images/generations`, and `/v1/images/edits` are supported. Note that `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch.'
599+
description: 'The endpoint to be used for all requests in the batch. Currently `/v1/responses`, `/v1/chat/completions`, `/v1/embeddings`, `/v1/completions`, `/v1/moderations`, `/v1/images/generations`, `/v1/images/edits`, and `/v1/videos` are supported. Note that `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch.'
599600
completion_window:
600601
enum:
601602
- 24h
@@ -35568,6 +35569,9 @@ components:
3556835569
type: string
3556935570
default: function
3557035571
x-stainless-const: true
35572+
defer_loading:
35573+
type: boolean
35574+
description: Whether this function should be deferred and discovered via tool search.
3557135575
NamespaceToolParam:
3557235576
title: Namespace
3557335577
required:

0 commit comments

Comments
 (0)