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 @@ -50,7 +50,7 @@
"Slug": "createtranscription",
"Description": "Transcribes audio into the input language.\n\nReturns a transcription object in \u0060json\u0060, \u0060diarized_json\u0060, or \u0060verbose_json\u0060\nformat, plain text in \u0060text\u0060, \u0060srt\u0060, or \u0060vtt\u0060 format, or a stream of\ntranscript events. Supported formats depend on the model.",
"Language": "http",
"Code": "### Create transcription\n# @name createTranscription\nPOST {{host}}/audio/transcriptions\nAuthorization: Bearer {{token}}\nContent-Type: multipart/form-data; boundary=AutoSDKBoundary\nAccept: application/json, text/event-stream, text/plain\n\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022file\u0022; filename=\u0022file.bin\u0022\nContent-Type: application/octet-stream\n\n\u003C ./file.bin\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022model\u0022\n\ngpt-4o-transcribe\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022language\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022languages\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022keywords\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022prompt\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022response_format\u0022\n\njson\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022temperature\u0022\n\n0\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022include\u0022\n\n[]\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022timestamp_granularities\u0022\n\nword\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022stream\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022chunking_strategy\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022known_speaker_names\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022known_speaker_references\u0022\n\nstring\n--AutoSDKBoundary--\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json, text/event-stream, text/plain\n# 400\n# Description: Invalid audio input or request parameters.\n# Content-Type: application/json\n# 401\n# Description: Authentication failed because the API key is missing or revoked, or the client IP is not authorized.\n# Content-Type: application/json, text/plain\n# 403\n# Description: Access to a personal API organization is blocked by the organization policy.\n# Content-Type: text/plain\n# 413\n# Description: The audio request exceeds the supported size limit.\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 500\n# Description: The audio could not be processed.\n# Content-Type: application/json\n# 502\n# Description: The upstream audio service connection failed.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json",
"Code": "### Create transcription\n# @name createTranscription\nPOST {{host}}/audio/transcriptions\nAuthorization: Bearer {{token}}\nContent-Type: multipart/form-data; boundary=AutoSDKBoundary\nAccept: application/json, text/event-stream, text/plain\n\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022file\u0022; filename=\u0022file.bin\u0022\nContent-Type: application/octet-stream\n\n\u003C ./file.bin\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022model\u0022\n\ngpt-4o-transcribe\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022language\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022languages\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022keywords\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022prompt\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022response_format\u0022\n\njson\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022temperature\u0022\n\n0\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022include\u0022\n\nlogprobs\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022timestamp_granularities\u0022\n\nword\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022stream\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022chunking_strategy\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022known_speaker_names\u0022\n\nstring\n--AutoSDKBoundary\nContent-Disposition: form-data; name=\u0022known_speaker_references\u0022\n\nstring\n--AutoSDKBoundary--\n\n## Responses\n# 200\n# Description: OK\n# Content-Type: application/json, text/event-stream, text/plain\n# 400\n# Description: Invalid audio input or request parameters.\n# Content-Type: application/json\n# 401\n# Description: Authentication failed because the API key is missing or revoked, or the client IP is not authorized.\n# Content-Type: application/json, text/plain\n# 403\n# Description: Access to a personal API organization is blocked by the organization policy.\n# Content-Type: text/plain\n# 413\n# Description: The audio request exceeds the supported size limit.\n# Content-Type: application/json\n# 429\n# Description: The request was rejected because a rate limit was exceeded. A slow_down error means traffic increased too quickly; reduce your request rate, then increase it gradually.\n# Content-Type: application/json\n# 500\n# Description: The audio could not be processed.\n# Content-Type: application/json\n# 502\n# Description: The upstream audio service connection failed.\n# Content-Type: application/json\n# 503\n# Description: The service is temporarily unavailable. A server_is_overloaded error means the requested model is temporarily overloaded; retry after a brief delay.\n# Content-Type: application/json",
"Format": "http",
"OperationId": "createTranscription",
"Setup": null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ partial void ProcessCreateAgentEnvironmentTemplateResponseContent(
/// Ordered, confidential setup commands. Command bodies are never returned.
/// </param>
/// <param name="network">
/// Network access policy for the environment. Defaults to disabled for GA requests and enabled for beta requests.
/// Network access policy for the environment. If omitted, the API version determines whether network access is enabled or disabled.
/// </param>
/// <param name="desktop">
/// Desktop provisioning. Omission or null inherits the template setting, or defaults to disabled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ partial void ProcessUpdateAgentEnvironmentTemplateResponseContent(
/// Replacement confidential setup commands, never included in returned resources.
/// </param>
/// <param name="network">
/// Network access available after setup completes. Omit to preserve the current policy, or pass `null` to reset to disabled for GA requests or enabled for beta requests.
/// Network access available after setup completes. Omit to preserve the current policy, or pass `null` to reset to the default policy.
/// </param>
/// <param name="desktop">
/// Replacement desktop configuration, or null to disable the desktop.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public partial interface IAgentsClient
/// Ordered, confidential setup commands. Command bodies are never returned.
/// </param>
/// <param name="network">
/// Network access policy for the environment. Defaults to disabled for GA requests and enabled for beta requests.
/// Network access policy for the environment. If omitted, the API version determines whether network access is enabled or disabled.
/// </param>
/// <param name="desktop">
/// Desktop provisioning. Omission or null inherits the template setting, or defaults to disabled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public partial interface IAgentsClient
/// Replacement confidential setup commands, never included in returned resources.
/// </param>
/// <param name="network">
/// Network access available after setup completes. Omit to preserve the current policy, or pass `null` to reset to disabled for GA requests or enabled for beta requests.
/// Network access available after setup completes. Omit to preserve the current policy, or pass `null` to reset to the default policy.
/// </param>
/// <param name="desktop">
/// Replacement desktop configuration, or null to disable the desktop.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
namespace tryAGI.OpenAI
{
/// <summary>
/// A chat completion delta generated by streamed model responses.
/// A chat completion delta generated by streamed model responses.<br/>
/// Streamed audio can arrive in partial updates with an ID, base64 data, or<br/>
/// transcript text. The final audio update contains only its expiry timestamp.
/// </summary>
public sealed partial class ChatCompletionStreamResponseDelta
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public sealed partial class ConversationResource
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("metadata")]
[global::System.Text.Json.Serialization.JsonRequired]
public required object Metadata { get; set; }
public required global::System.Collections.Generic.Dictionary<string, string> Metadata { get; set; }

/// <summary>
/// The time at which the conversation was created, measured in seconds since the Unix epoch.
Expand Down Expand Up @@ -67,7 +67,7 @@ public sealed partial class ConversationResource
#endif
public ConversationResource(
string id,
object metadata,
global::System.Collections.Generic.Dictionary<string, string> metadata,
int createdAt,
global::tryAGI.OpenAI.ConversationResourceObject @object = global::tryAGI.OpenAI.ConversationResourceObject.Conversation)
{
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 CreateChatCompletionStreamResponseChoice
{
/// <summary>
/// A chat completion delta generated by streamed model responses.
/// A chat completion delta generated by streamed model responses.<br/>
/// Streamed audio can arrive in partial updates with an ID, base64 data, or<br/>
/// transcript text. The final audio update contains only its expiry timestamp.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("delta")]
[global::System.Text.Json.Serialization.JsonRequired]
Expand All @@ -25,7 +27,8 @@ public sealed partial class CreateChatCompletionStreamResponseChoice
/// The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,<br/>
/// `length` if the maximum number of tokens specified in the request was reached,<br/>
/// `content_filter` if content was omitted due to a flag from our content filters,<br/>
/// `tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.
/// `tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.<br/>
/// Omitted from the final audio update containing only `delta.audio.expires_at`.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.CreateChatCompletionStreamResponseChoiceFinishReasonJsonConverter))]
Expand All @@ -48,7 +51,9 @@ public sealed partial class CreateChatCompletionStreamResponseChoice
/// Initializes a new instance of the <see cref="CreateChatCompletionStreamResponseChoice" /> class.
/// </summary>
/// <param name="delta">
/// A chat completion delta generated by streamed model responses.
/// A chat completion delta generated by streamed model responses.<br/>
/// Streamed audio can arrive in partial updates with an ID, base64 data, or<br/>
/// transcript text. The final audio update contains only its expiry timestamp.
/// </param>
/// <param name="index">
/// The index of the choice in the list of choices.
Expand All @@ -60,7 +65,8 @@ public sealed partial class CreateChatCompletionStreamResponseChoice
/// The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,<br/>
/// `length` if the maximum number of tokens specified in the request was reached,<br/>
/// `content_filter` if content was omitted due to a flag from our content filters,<br/>
/// `tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.
/// `tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.<br/>
/// Omitted from the final audio update containing only `delta.audio.expires_at`.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ namespace tryAGI.OpenAI
/// The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,<br/>
/// `length` if the maximum number of tokens specified in the request was reached,<br/>
/// `content_filter` if content was omitted due to a flag from our content filters,<br/>
/// `tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.
/// `tool_calls` if the model called a tool, or `function_call` (deprecated) if the model called a function.<br/>
/// Omitted from the final audio update containing only `delta.audio.expires_at`.
/// </summary>
public enum CreateChatCompletionStreamResponseChoiceFinishReason
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public sealed partial class CreateEnvironmentTemplateParams
public global::System.Collections.Generic.IList<global::tryAGI.OpenAI.SetupCommandParam>? SetupCommands { get; set; }

/// <summary>
/// Network access policy for the environment. Defaults to disabled for GA requests and enabled for beta requests.
/// Network access policy for the environment. If omitted, the API version determines whether network access is enabled or disabled.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("network")]
public global::tryAGI.OpenAI.NetworkPolicyParam? Network { get; set; }
Expand Down Expand Up @@ -84,7 +84,7 @@ public sealed partial class CreateEnvironmentTemplateParams
/// Ordered, confidential setup commands. Command bodies are never returned.
/// </param>
/// <param name="network">
/// Network access policy for the environment. Defaults to disabled for GA requests and enabled for beta requests.
/// Network access policy for the environment. If omitted, the API version determines whether network access is enabled or disabled.
/// </param>
/// <param name="desktop">
/// Desktop provisioning. Omission or null inherits the template setting, or defaults to disabled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public sealed partial class EnvironmentParamOpenaiHosted
public global::System.Collections.Generic.IList<global::tryAGI.OpenAI.SetupCommandParam>? SetupCommands { get; set; }

/// <summary>
/// Network access policy for the environment. Defaults to disabled for GA requests and enabled for beta requests.
/// Network access policy for the environment. If omitted, the API version determines whether network access is enabled or disabled.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("network")]
public global::tryAGI.OpenAI.NetworkPolicyParam? Network { get; set; }
Expand Down Expand Up @@ -100,7 +100,7 @@ public sealed partial class EnvironmentParamOpenaiHosted
/// Ordered, confidential setup commands. Command bodies are never returned.
/// </param>
/// <param name="network">
/// Network access policy for the environment. Defaults to disabled for GA requests and enabled for beta requests.
/// Network access policy for the environment. If omitted, the API version determines whether network access is enabled or disabled.
/// </param>
/// <param name="desktop">
/// Desktop provisioning. Omission or null inherits the template setting, or defaults to disabled.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public sealed partial class GraderScoreModel
public required global::System.Collections.Generic.IList<global::tryAGI.OpenAI.EvalItem> Input { get; set; }

/// <summary>
/// The range of the score. Defaults to `[0, 1]`.
/// The service requires two numbers for the score range. Defaults to `[0, 1]`.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("range")]
public global::System.Collections.Generic.IList<double>? Range { get; set; }
Expand Down Expand Up @@ -73,7 +73,7 @@ public sealed partial class GraderScoreModel
/// The sampling parameters for the model.
/// </param>
/// <param name="range">
/// The range of the score. Defaults to `[0, 1]`.
/// The service requires two numbers for the score range. Defaults to `[0, 1]`.
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
Expand Down
Loading
Loading