Skip to content

Commit ed6b8ca

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#210)
Co-authored-by: github-actions[bot] <[email protected]>
1 parent 2920d45 commit ed6b8ca

File tree

59 files changed

+2826
-1931
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+2826
-1931
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ namespace tryAGI.OpenAI
211211
typeof(global::tryAGI.OpenAI.JsonConverters.BatchObjectNullableJsonConverter),
212212
typeof(global::tryAGI.OpenAI.JsonConverters.BatchStatusJsonConverter),
213213
typeof(global::tryAGI.OpenAI.JsonConverters.BatchStatusNullableJsonConverter),
214+
typeof(global::tryAGI.OpenAI.JsonConverters.BatchFileExpirationAfterAnchorJsonConverter),
215+
typeof(global::tryAGI.OpenAI.JsonConverters.BatchFileExpirationAfterAnchorNullableJsonConverter),
214216
typeof(global::tryAGI.OpenAI.JsonConverters.BatchRequestInputMethodJsonConverter),
215217
typeof(global::tryAGI.OpenAI.JsonConverters.BatchRequestInputMethodNullableJsonConverter),
216218
typeof(global::tryAGI.OpenAI.JsonConverters.CertificateObjectJsonConverter),
@@ -375,6 +377,8 @@ namespace tryAGI.OpenAI
375377
typeof(global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant1TypeNullableJsonConverter),
376378
typeof(global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2TypeJsonConverter),
377379
typeof(global::tryAGI.OpenAI.JsonConverters.CreateAssistantRequestToolResourcesFileSearchVectorStoreChunkingStrategyVariant2TypeNullableJsonConverter),
380+
typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityJsonConverter),
381+
typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityNullableJsonConverter),
378382
typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatJsonConverter),
379383
typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2AudioFormatNullableJsonConverter),
380384
typeof(global::tryAGI.OpenAI.JsonConverters.VoiceIdsSharedEnumJsonConverter),
@@ -393,8 +397,6 @@ namespace tryAGI.OpenAI
393397
typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsCustomFormatVariant2TypeNullableJsonConverter),
394398
typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsTypeJsonConverter),
395399
typeof(global::tryAGI.OpenAI.JsonConverters.CustomToolChatCompletionsTypeNullableJsonConverter),
396-
typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityJsonConverter),
397-
typeof(global::tryAGI.OpenAI.JsonConverters.VerbosityNullableJsonConverter),
398400
typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchContextSizeJsonConverter),
399401
typeof(global::tryAGI.OpenAI.JsonConverters.WebSearchContextSizeNullableJsonConverter),
400402
typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionRequestVariant2WebSearchOptionsUserLocationTypeJsonConverter),
@@ -515,6 +517,8 @@ namespace tryAGI.OpenAI
515517
typeof(global::tryAGI.OpenAI.JsonConverters.EvalResponsesSourceTypeNullableJsonConverter),
516518
typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceTypeJsonConverter),
517519
typeof(global::tryAGI.OpenAI.JsonConverters.CreateEvalResponsesRunDataSourceTypeNullableJsonConverter),
520+
typeof(global::tryAGI.OpenAI.JsonConverters.FileExpirationAfterAnchorJsonConverter),
521+
typeof(global::tryAGI.OpenAI.JsonConverters.FileExpirationAfterAnchorNullableJsonConverter),
518522
typeof(global::tryAGI.OpenAI.JsonConverters.FilePurposeJsonConverter),
519523
typeof(global::tryAGI.OpenAI.JsonConverters.FilePurposeNullableJsonConverter),
520524
typeof(global::tryAGI.OpenAI.JsonConverters.CreateFineTuningJobRequestHyperparametersBatchSizeJsonConverter),

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateRun.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ partial void ProcessCreateRunResponseContent(
260260
/// Example: 1
261261
/// </param>
262262
/// <param name="truncationStrategy">
263-
/// Controls for how a thread will be truncated prior to the run. Use this to control the intial context window of the run.
263+
/// Controls for how a thread will be truncated prior to the run. Use this to control the initial context window of the run.
264264
/// </param>
265265
/// <param name="cancellationToken">The token to cancel the operation with</param>
266266
/// <exception cref="global::System.InvalidOperationException"></exception>

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AssistantsClient.CreateThreadAndRun.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ partial void ProcessCreateThreadAndRunResponseContent(
236236
/// Example: 1
237237
/// </param>
238238
/// <param name="truncationStrategy">
239-
/// Controls for how a thread will be truncated prior to the run. Use this to control the intial context window of the run.
239+
/// Controls for how a thread will be truncated prior to the run. Use this to control the initial context window of the run.
240240
/// </param>
241241
/// <param name="cancellationToken">The token to cancel the operation with</param>
242242
/// <exception cref="global::System.InvalidOperationException"></exception>

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,17 @@ partial void ProcessCreateBatchResponseContent(
188188
/// Keys are strings with a maximum length of 64 characters. Values are strings<br/>
189189
/// with a maximum length of 512 characters.
190190
/// </param>
191+
/// <param name="outputExpiresAfter">
192+
/// The expiration policy for the output and/or error file that are generated for a batch.
193+
/// </param>
191194
/// <param name="cancellationToken">The token to cancel the operation with</param>
192195
/// <exception cref="global::System.InvalidOperationException"></exception>
193196
public async global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.Batch> CreateBatchAsync(
194197
global::tryAGI.OpenAI.CreateBatchRequestEndpoint endpoint,
195198
string inputFileId,
196199
global::tryAGI.OpenAI.CreateBatchRequestCompletionWindow completionWindow = default,
197200
global::System.Collections.Generic.Dictionary<string, string>? metadata = default,
201+
global::tryAGI.OpenAI.BatchFileExpirationAfter? outputExpiresAfter = default,
198202
global::System.Threading.CancellationToken cancellationToken = default)
199203
{
200204
var __request = new global::tryAGI.OpenAI.CreateBatchRequest
@@ -203,6 +207,7 @@ partial void ProcessCreateBatchResponseContent(
203207
Endpoint = endpoint,
204208
InputFileId = inputFileId,
205209
Metadata = metadata,
210+
OutputExpiresAfter = outputExpiresAfter,
206211
};
207212

208213
return await CreateBatchAsync(

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.FilesClient.CreateFile.g.cs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ partial void ProcessCreateFileResponseContent(
2323

2424
/// <summary>
2525
/// Upload file<br/>
26-
/// Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 100 GB.<br/>
26+
/// Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 1 TB.<br/>
2727
/// The Assistants API supports files up to 2 million tokens and of specific file types. See the [Assistants Tools guide](https://platform.openai.com/docs/assistants/tools) for details.<br/>
2828
/// The Fine-tuning API only supports `.jsonl` files. The input also has certain required formats for fine-tuning [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input) or [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input) models.<br/>
2929
/// The Batch API only supports `.jsonl` files up to 200 MB in size. The input also has a specific required [format](https://platform.openai.com/docs/api-reference/batch/request-input).<br/>
@@ -72,6 +72,12 @@ partial void ProcessCreateFileResponseContent(
7272
}
7373
}
7474
using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent();
75+
if (request.ExpiresAfter != default)
76+
{
77+
__httpRequestContent.Add(
78+
content: new global::System.Net.Http.StringContent($"{request.ExpiresAfter}"),
79+
name: "expires_after");
80+
}
7581
__httpRequestContent.Add(
7682
content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty<byte>()),
7783
name: "file",
@@ -175,12 +181,15 @@ partial void ProcessCreateFileResponseContent(
175181

176182
/// <summary>
177183
/// Upload file<br/>
178-
/// Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 100 GB.<br/>
184+
/// Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 1 TB.<br/>
179185
/// The Assistants API supports files up to 2 million tokens and of specific file types. See the [Assistants Tools guide](https://platform.openai.com/docs/assistants/tools) for details.<br/>
180186
/// The Fine-tuning API only supports `.jsonl` files. The input also has certain required formats for fine-tuning [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input) or [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input) models.<br/>
181187
/// The Batch API only supports `.jsonl` files up to 200 MB in size. The input also has a specific required [format](https://platform.openai.com/docs/api-reference/batch/request-input).<br/>
182188
/// Please [contact us](https://help.openai.com/) if you need to increase these storage limits.
183189
/// </summary>
190+
/// <param name="expiresAfter">
191+
/// The expiration policy for a file. By default, files with `purpose=batch` expire after 30 days and all other files are persisted until they are manually deleted.
192+
/// </param>
184193
/// <param name="file">
185194
/// The File object (not file name) to be uploaded.
186195
/// </param>
@@ -196,10 +205,12 @@ partial void ProcessCreateFileResponseContent(
196205
byte[] file,
197206
string filename,
198207
global::tryAGI.OpenAI.FilePurpose purpose,
208+
global::tryAGI.OpenAI.FileExpirationAfter? expiresAfter = default,
199209
global::System.Threading.CancellationToken cancellationToken = default)
200210
{
201211
var __request = new global::tryAGI.OpenAI.CreateFileRequest
202212
{
213+
ExpiresAfter = expiresAfter,
203214
File = file,
204215
Filename = filename,
205216
Purpose = purpose,

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateRun.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public partial interface IAssistantsClient
9898
/// Example: 1
9999
/// </param>
100100
/// <param name="truncationStrategy">
101-
/// Controls for how a thread will be truncated prior to the run. Use this to control the intial context window of the run.
101+
/// Controls for how a thread will be truncated prior to the run. Use this to control the initial context window of the run.
102102
/// </param>
103103
/// <param name="cancellationToken">The token to cancel the operation with</param>
104104
/// <exception cref="global::System.InvalidOperationException"></exception>

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAssistantsClient.CreateThreadAndRun.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public partial interface IAssistantsClient
8585
/// Example: 1
8686
/// </param>
8787
/// <param name="truncationStrategy">
88-
/// Controls for how a thread will be truncated prior to the run. Use this to control the intial context window of the run.
88+
/// Controls for how a thread will be truncated prior to the run. Use this to control the initial context window of the run.
8989
/// </param>
9090
/// <param name="cancellationToken">The token to cancel the operation with</param>
9191
/// <exception cref="global::System.InvalidOperationException"></exception>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,17 @@ public partial interface IBatchClient
3737
/// Keys are strings with a maximum length of 64 characters. Values are strings<br/>
3838
/// with a maximum length of 512 characters.
3939
/// </param>
40+
/// <param name="outputExpiresAfter">
41+
/// The expiration policy for the output and/or error file that are generated for a batch.
42+
/// </param>
4043
/// <param name="cancellationToken">The token to cancel the operation with</param>
4144
/// <exception cref="global::System.InvalidOperationException"></exception>
4245
global::System.Threading.Tasks.Task<global::tryAGI.OpenAI.Batch> CreateBatchAsync(
4346
global::tryAGI.OpenAI.CreateBatchRequestEndpoint endpoint,
4447
string inputFileId,
4548
global::tryAGI.OpenAI.CreateBatchRequestCompletionWindow completionWindow = default,
4649
global::System.Collections.Generic.Dictionary<string, string>? metadata = default,
50+
global::tryAGI.OpenAI.BatchFileExpirationAfter? outputExpiresAfter = default,
4751
global::System.Threading.CancellationToken cancellationToken = default);
4852
}
4953
}

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IFilesClient.CreateFile.g.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public partial interface IFilesClient
66
{
77
/// <summary>
88
/// Upload file<br/>
9-
/// Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 100 GB.<br/>
9+
/// Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 1 TB.<br/>
1010
/// The Assistants API supports files up to 2 million tokens and of specific file types. See the [Assistants Tools guide](https://platform.openai.com/docs/assistants/tools) for details.<br/>
1111
/// The Fine-tuning API only supports `.jsonl` files. The input also has certain required formats for fine-tuning [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input) or [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input) models.<br/>
1212
/// The Batch API only supports `.jsonl` files up to 200 MB in size. The input also has a specific required [format](https://platform.openai.com/docs/api-reference/batch/request-input).<br/>
@@ -21,12 +21,15 @@ public partial interface IFilesClient
2121

2222
/// <summary>
2323
/// Upload file<br/>
24-
/// Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 100 GB.<br/>
24+
/// Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 1 TB.<br/>
2525
/// The Assistants API supports files up to 2 million tokens and of specific file types. See the [Assistants Tools guide](https://platform.openai.com/docs/assistants/tools) for details.<br/>
2626
/// The Fine-tuning API only supports `.jsonl` files. The input also has certain required formats for fine-tuning [chat](https://platform.openai.com/docs/api-reference/fine-tuning/chat-input) or [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input) models.<br/>
2727
/// The Batch API only supports `.jsonl` files up to 200 MB in size. The input also has a specific required [format](https://platform.openai.com/docs/api-reference/batch/request-input).<br/>
2828
/// Please [contact us](https://help.openai.com/) if you need to increase these storage limits.
2929
/// </summary>
30+
/// <param name="expiresAfter">
31+
/// The expiration policy for a file. By default, files with `purpose=batch` expire after 30 days and all other files are persisted until they are manually deleted.
32+
/// </param>
3033
/// <param name="file">
3134
/// The File object (not file name) to be uploaded.
3235
/// </param>
@@ -42,6 +45,7 @@ public partial interface IFilesClient
4245
byte[] file,
4346
string filename,
4447
global::tryAGI.OpenAI.FilePurpose purpose,
48+
global::tryAGI.OpenAI.FileExpirationAfter? expiresAfter = default,
4549
global::System.Threading.CancellationToken cancellationToken = default);
4650
}
4751
}

src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateRealtimeSession.g.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ public partial interface IRealtimeClient
8787
/// Tools (functions) available to the model.
8888
/// </param>
8989
/// <param name="tracing">
90-
/// Configuration options for tracing. Set to null to disable tracing. Once <br/>
90+
/// Configuration options for tracing. Set to null to disable tracing. Once<br/>
9191
/// tracing is enabled for a session, the configuration cannot be modified.<br/>
92-
/// `auto` will create a trace for the session with default values for the <br/>
92+
/// `auto` will create a trace for the session with default values for the<br/>
9393
/// workflow name, group id, and metadata.
9494
/// </param>
9595
/// <param name="turnDetection">
9696
/// Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.<br/>
9797
/// Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.<br/>
98-
/// Semantic VAD is more advanced and uses a turn detection model (in conjuction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with "uhhm", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency.
98+
/// Semantic VAD is more advanced and uses a turn detection model (in conjunction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with "uhhm", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency.
9999
/// </param>
100100
/// <param name="voice">
101101
/// Example: ash

0 commit comments

Comments
 (0)