diff --git a/packages/ai/openai/src/Generated.ts b/packages/ai/openai/src/Generated.ts index c8c8e6653..a3918626f 100644 --- a/packages/ai/openai/src/Generated.ts +++ b/packages/ai/openai/src/Generated.ts @@ -14710,6 +14710,7 @@ export type RealtimeCallCreateRequest = { readonly "model"?: | string | "gpt-realtime" + | "gpt-realtime-1.5" | "gpt-realtime-2025-08-28" | "gpt-4o-realtime-preview" | "gpt-4o-realtime-preview-2024-10-01" @@ -14720,6 +14721,7 @@ export type RealtimeCallCreateRequest = { | "gpt-realtime-mini" | "gpt-realtime-mini-2025-10-06" | "gpt-realtime-mini-2025-12-15" + | "gpt-audio-1.5" | "gpt-audio-mini" | "gpt-audio-mini-2025-10-06" | "gpt-audio-mini-2025-12-15" @@ -14796,6 +14798,7 @@ export const RealtimeCallCreateRequest = Schema.Struct({ Schema.String, Schema.Literals([ "gpt-realtime", + "gpt-realtime-1.5", "gpt-realtime-2025-08-28", "gpt-4o-realtime-preview", "gpt-4o-realtime-preview-2024-10-01", @@ -14806,6 +14809,7 @@ export const RealtimeCallCreateRequest = Schema.Struct({ "gpt-realtime-mini", "gpt-realtime-mini-2025-10-06", "gpt-realtime-mini-2025-12-15", + "gpt-audio-1.5", "gpt-audio-mini", "gpt-audio-mini-2025-10-06", "gpt-audio-mini-2025-12-15" @@ -15022,6 +15026,7 @@ export type RealtimeSession = { readonly "model"?: | string | "gpt-realtime" + | "gpt-realtime-1.5" | "gpt-realtime-2025-08-28" | "gpt-4o-realtime-preview" | "gpt-4o-realtime-preview-2024-10-01" @@ -15032,6 +15037,7 @@ export type RealtimeSession = { | "gpt-realtime-mini" | "gpt-realtime-mini-2025-10-06" | "gpt-realtime-mini-2025-12-15" + | "gpt-audio-1.5" | "gpt-audio-mini" | "gpt-audio-mini-2025-10-06" | "gpt-audio-mini-2025-12-15" @@ -15096,6 +15102,7 @@ export const RealtimeSession = Schema.Struct({ Schema.String, Schema.Literals([ "gpt-realtime", + "gpt-realtime-1.5", "gpt-realtime-2025-08-28", "gpt-4o-realtime-preview", "gpt-4o-realtime-preview-2024-10-01", @@ -15106,6 +15113,7 @@ export const RealtimeSession = Schema.Struct({ "gpt-realtime-mini", "gpt-realtime-mini-2025-10-06", "gpt-realtime-mini-2025-12-15", + "gpt-audio-1.5", "gpt-audio-mini", "gpt-audio-mini-2025-10-06", "gpt-audio-mini-2025-12-15" @@ -15455,6 +15463,7 @@ export type RealtimeSessionCreateRequestGA = { readonly "model"?: | string | "gpt-realtime" + | "gpt-realtime-1.5" | "gpt-realtime-2025-08-28" | "gpt-4o-realtime-preview" | "gpt-4o-realtime-preview-2024-10-01" @@ -15465,6 +15474,7 @@ export type RealtimeSessionCreateRequestGA = { | "gpt-realtime-mini" | "gpt-realtime-mini-2025-10-06" | "gpt-realtime-mini-2025-12-15" + | "gpt-audio-1.5" | "gpt-audio-mini" | "gpt-audio-mini-2025-10-06" | "gpt-audio-mini-2025-12-15" @@ -15535,6 +15545,7 @@ export const RealtimeSessionCreateRequestGA = Schema.Struct({ Schema.String, Schema.Literals([ "gpt-realtime", + "gpt-realtime-1.5", "gpt-realtime-2025-08-28", "gpt-4o-realtime-preview", "gpt-4o-realtime-preview-2024-10-01", @@ -15545,6 +15556,7 @@ export const RealtimeSessionCreateRequestGA = Schema.Struct({ "gpt-realtime-mini", "gpt-realtime-mini-2025-10-06", "gpt-realtime-mini-2025-12-15", + "gpt-audio-1.5", "gpt-audio-mini", "gpt-audio-mini-2025-10-06", "gpt-audio-mini-2025-12-15" @@ -15741,6 +15753,7 @@ export type RealtimeSessionCreateResponseGA = { readonly "model"?: | string | "gpt-realtime" + | "gpt-realtime-1.5" | "gpt-realtime-2025-08-28" | "gpt-4o-realtime-preview" | "gpt-4o-realtime-preview-2024-10-01" @@ -15751,6 +15764,7 @@ export type RealtimeSessionCreateResponseGA = { | "gpt-realtime-mini" | "gpt-realtime-mini-2025-10-06" | "gpt-realtime-mini-2025-12-15" + | "gpt-audio-1.5" | "gpt-audio-mini" | "gpt-audio-mini-2025-10-06" | "gpt-audio-mini-2025-12-15" @@ -15829,6 +15843,7 @@ export const RealtimeSessionCreateResponseGA = Schema.Struct({ Schema.String, Schema.Literals([ "gpt-realtime", + "gpt-realtime-1.5", "gpt-realtime-2025-08-28", "gpt-4o-realtime-preview", "gpt-4o-realtime-preview-2024-10-01", @@ -15839,6 +15854,7 @@ export const RealtimeSessionCreateResponseGA = Schema.Struct({ "gpt-realtime-mini", "gpt-realtime-mini-2025-10-06", "gpt-realtime-mini-2025-12-15", + "gpt-audio-1.5", "gpt-audio-mini", "gpt-audio-mini-2025-10-06", "gpt-audio-mini-2025-12-15" @@ -23841,6 +23857,236 @@ export const CreateResponse = Schema.Struct({ ]) ) }) +export type ResponsesClientEventResponseCreate = { + readonly "type": "response.create" + readonly "metadata"?: Metadata + readonly "top_logprobs"?: number + readonly "temperature"?: number | null + readonly "top_p"?: number | null + readonly "user"?: string | null + readonly "safety_identifier"?: string | null + readonly "prompt_cache_key"?: string | null + readonly "service_tier"?: ServiceTier + readonly "prompt_cache_retention"?: "in-memory" | "24h" | null + readonly "previous_response_id"?: string | null + readonly "model"?: + | ModelIdsShared + | "o1-pro" + | "o1-pro-2025-03-19" + | "o3-pro" + | "o3-pro-2025-06-10" + | "o3-deep-research" + | "o3-deep-research-2025-06-26" + | "o4-mini-deep-research" + | "o4-mini-deep-research-2025-06-26" + | "computer-use-preview" + | "computer-use-preview-2025-03-11" + | "gpt-5-codex" + | "gpt-5-pro" + | "gpt-5-pro-2025-10-06" + | "gpt-5.1-codex-max" + readonly "reasoning"?: Reasoning | null + readonly "background"?: boolean | null + readonly "max_output_tokens"?: number | null + readonly "max_tool_calls"?: number | null + readonly "text"?: ResponseTextParam + readonly "tools"?: ToolsArray + readonly "tool_choice"?: ToolChoiceParam + readonly "prompt"?: Prompt + readonly "truncation"?: "auto" | "disabled" | null + readonly "input"?: InputParam + readonly "include"?: ReadonlyArray | null + readonly "parallel_tool_calls"?: boolean | null + readonly "store"?: boolean | null + readonly "instructions"?: string | null + readonly "stream"?: boolean | null + readonly "stream_options"?: ResponseStreamOptions + readonly "conversation"?: ConversationParam | null + readonly "context_management"?: ReadonlyArray | null +} +export const ResponsesClientEventResponseCreate = Schema.Struct({ + "type": Schema.Literal("response.create").annotate({ + "description": "The type of the client event. Always `response.create`.\n" + }), + "metadata": Schema.optionalKey(Metadata), + "top_logprobs": Schema.optionalKey( + Schema.Union([ + Schema.Number.annotate({ + "description": + "An integer between 0 and 20 specifying the number of most likely tokens to\nreturn at each token position, each with an associated log probability.\n" + }).check(Schema.isInt()).check(Schema.isGreaterThanOrEqualTo(0)).check(Schema.isLessThanOrEqualTo(20)).check( + Schema.makeFilterGroup([Schema.isGreaterThanOrEqualTo(0), Schema.isLessThanOrEqualTo(20)], { + "description": + "An integer between 0 and 20 specifying the number of most likely tokens to\nreturn at each token position, each with an associated log probability.\n" + }) + ) + ]) + ), + "temperature": Schema.optionalKey( + Schema.Union([ + Schema.Number.annotate({ + "description": + "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\nWe generally recommend altering this or `top_p` but not both.\n" + }).check(Schema.isFinite()).check(Schema.isGreaterThanOrEqualTo(0)).check(Schema.isLessThanOrEqualTo(2)), + Schema.Null + ]) + ), + "top_p": Schema.optionalKey(Schema.Union([ + Schema.Number.annotate({ + "description": + "An alternative to sampling with temperature, called nucleus sampling,\nwhere the model considers the results of the tokens with top_p probability\nmass. So 0.1 means only the tokens comprising the top 10% probability mass\nare considered.\n\nWe generally recommend altering this or `temperature` but not both.\n" + }).check(Schema.isFinite()).check(Schema.isGreaterThanOrEqualTo(0)).check(Schema.isLessThanOrEqualTo(1)), + Schema.Null + ])), + "user": Schema.optionalKey( + Schema.Union([Schema.String, Schema.Null]).annotate({ + "description": + "This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.\nA stable identifier for your end-users.\nUsed to boost cache hit rates by better bucketing similar requests and to help OpenAI detect and prevent abuse. [Learn more](/docs/guides/safety-best-practices#safety-identifiers).\n" + }) + ), + "safety_identifier": Schema.optionalKey( + Schema.Union([Schema.String, Schema.Null]).annotate({ + "description": + "A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.\nThe IDs should be a string that uniquely identifies each user, with a maximum length of 64 characters. We recommend hashing their username or email address, in order to avoid sending us any identifying information. [Learn more](/docs/guides/safety-best-practices#safety-identifiers).\n" + }) + ), + "prompt_cache_key": Schema.optionalKey( + Schema.Union([Schema.String, Schema.Null]).annotate({ + "description": + "Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the `user` field. [Learn more](/docs/guides/prompt-caching).\n" + }) + ), + "service_tier": Schema.optionalKey(ServiceTier), + "prompt_cache_retention": Schema.optionalKey( + Schema.Union([ + Schema.Literals(["in-memory", "24h"]).annotate({ + "description": + "The retention policy for the prompt cache. Set to `24h` to enable extended prompt caching, which keeps cached prefixes active for longer, up to a maximum of 24 hours. [Learn more](/docs/guides/prompt-caching#prompt-cache-retention).\n" + }), + Schema.Null + ]) + ), + "previous_response_id": Schema.optionalKey( + Schema.Union([ + Schema.String.annotate({ + "description": + "The unique ID of the previous response to the model. Use this to\ncreate multi-turn conversations. Learn more about\n[conversation state](/docs/guides/conversation-state). Cannot be used in conjunction with `conversation`.\n" + }), + Schema.Null + ]) + ), + "model": Schema.optionalKey( + Schema.Union([ + ModelIdsShared, + Schema.Literals([ + "o1-pro", + "o1-pro-2025-03-19", + "o3-pro", + "o3-pro-2025-06-10", + "o3-deep-research", + "o3-deep-research-2025-06-26", + "o4-mini-deep-research", + "o4-mini-deep-research-2025-06-26", + "computer-use-preview", + "computer-use-preview-2025-03-11", + "gpt-5-codex", + "gpt-5-pro", + "gpt-5-pro-2025-10-06", + "gpt-5.1-codex-max" + ]).annotate({ "title": "ResponsesOnlyModel" }) + ]).annotate({ + "description": + "Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI\noffers a wide range of models with different capabilities, performance\ncharacteristics, and price points. Refer to the [model guide](/docs/models)\nto browse and compare available models.\n" + }) + ), + "reasoning": Schema.optionalKey(Schema.Union([Reasoning, Schema.Null])), + "background": Schema.optionalKey( + Schema.Union([ + Schema.Boolean.annotate({ + "description": "Whether to run the model response in the background.\n[Learn more](/docs/guides/background).\n" + }), + Schema.Null + ]) + ), + "max_output_tokens": Schema.optionalKey( + Schema.Union([ + Schema.Number.annotate({ + "description": + "An upper bound for the number of tokens that can be generated for a response, including visible output tokens and [reasoning tokens](/docs/guides/reasoning).\n" + }).check(Schema.isInt()), + Schema.Null + ]) + ), + "max_tool_calls": Schema.optionalKey( + Schema.Union([ + Schema.Number.annotate({ + "description": + "The maximum number of total calls to built-in tools that can be processed in a response. This maximum number applies across all built-in tool calls, not per individual tool. Any further attempts to call a tool by the model will be ignored.\n" + }).check(Schema.isInt()), + Schema.Null + ]) + ), + "text": Schema.optionalKey(ResponseTextParam), + "tools": Schema.optionalKey(ToolsArray), + "tool_choice": Schema.optionalKey(ToolChoiceParam), + "prompt": Schema.optionalKey(Prompt), + "truncation": Schema.optionalKey(Schema.Union([ + Schema.Literals(["auto", "disabled"]).annotate({ + "description": + "The truncation strategy to use for the model response.\n- `auto`: If the input to this Response exceeds\n the model's context window size, the model will truncate the\n response to fit the context window by dropping items from the beginning of the conversation.\n- `disabled` (default): If the input size will exceed the context window\n size for a model, the request will fail with a 400 error.\n" + }), + Schema.Null + ])), + "input": Schema.optionalKey(InputParam), + "include": Schema.optionalKey(Schema.Union([ + Schema.Array(IncludeEnum).annotate({ + "description": + "Specify additional output data to include in the model response. Currently supported values are:\n- `web_search_call.action.sources`: Include the sources of the web search tool call.\n- `code_interpreter_call.outputs`: Includes the outputs of python code execution in code interpreter tool call items.\n- `computer_call_output.output.image_url`: Include image urls from the computer call output.\n- `file_search_call.results`: Include the search results of the file search tool call.\n- `message.input_image.image_url`: Include image urls from the input message.\n- `message.output_text.logprobs`: Include logprobs with assistant messages.\n- `reasoning.encrypted_content`: Includes an encrypted version of reasoning tokens in reasoning item outputs. This enables reasoning items to be used in multi-turn conversations when using the Responses API statelessly (like when the `store` parameter is set to `false`, or when an organization is enrolled in the zero data retention program)." + }), + Schema.Null + ])), + "parallel_tool_calls": Schema.optionalKey( + Schema.Union([ + Schema.Boolean.annotate({ "description": "Whether to allow the model to run tool calls in parallel.\n" }), + Schema.Null + ]) + ), + "store": Schema.optionalKey( + Schema.Union([ + Schema.Boolean.annotate({ + "description": "Whether to store the generated model response for later retrieval via\nAPI.\n" + }), + Schema.Null + ]) + ), + "instructions": Schema.optionalKey(Schema.Union([ + Schema.String.annotate({ + "description": + "A system (or developer) message inserted into the model's context.\n\nWhen using along with `previous_response_id`, the instructions from a previous\nresponse will not be carried over to the next response. This makes it simple\nto swap out system (or developer) messages in new responses.\n" + }), + Schema.Null + ])), + "stream": Schema.optionalKey(Schema.Union([ + Schema.Boolean.annotate({ + "description": + "If set to true, the model response data will be streamed to the client\nas it is generated using [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).\nSee the [Streaming section below](/docs/api-reference/responses-streaming)\nfor more information.\n" + }), + Schema.Null + ])), + "stream_options": Schema.optionalKey(ResponseStreamOptions), + "conversation": Schema.optionalKey(Schema.Union([ConversationParam, Schema.Null])), + "context_management": Schema.optionalKey( + Schema.Union([ + Schema.Array(ContextManagementParam).annotate({ + "description": "Context management configuration for this request.\n" + }).check(Schema.isMinLength(1)), + Schema.Null + ]) + ) +}).annotate({ + "description": + "Client event for creating a response over a persistent WebSocket connection.\nThis payload uses the same top-level fields as `POST /v1/responses`.\n\nNotes:\n- `stream` is implicit over WebSocket and should not be sent.\n- `background` is not supported over WebSocket.\n" +}) export type ResponseStreamEvent = | ResponseAudioDeltaEvent | ResponseAudioDoneEvent @@ -30470,7 +30716,7 @@ export interface OpenAiClient { HttpClientError.HttpClientError | SchemaError > /** - * Create a vector store file batch. + * The maximum number of files in a single batch request is 2000. */ readonly "createVectorStoreFileBatch": ( vectorStoreId: string, diff --git a/packages/ai/openrouter/src/Generated.ts b/packages/ai/openrouter/src/Generated.ts index 06dadb884..bc2385f62 100644 --- a/packages/ai/openrouter/src/Generated.ts +++ b/packages/ai/openrouter/src/Generated.ts @@ -678,7 +678,6 @@ export type ProviderName = | "Inceptron" | "InferenceNet" | "Infermatic" - | "Io Net" | "Inflection" | "Liquid" | "Mara" @@ -752,7 +751,6 @@ export const ProviderName = Schema.Literals([ "Inceptron", "InferenceNet", "Infermatic", - "Io Net", "Inflection", "Liquid", "Mara", @@ -2585,7 +2583,6 @@ export type __schema5 = ReadonlyArray< | "Inceptron" | "InferenceNet" | "Infermatic" - | "Io Net" | "Inflection" | "Liquid" | "Mara" @@ -2663,7 +2660,6 @@ export const __schema5 = Schema.Array( "Inceptron", "InferenceNet", "Infermatic", - "Io Net", "Inflection", "Liquid", "Mara", @@ -2709,9 +2705,9 @@ export type __schema11 = number export const __schema11 = Schema.Number.check(Schema.isFinite()) export type __schema13 = unknown export const __schema13 = Schema.Unknown -export type __schema21 = string | null -export const __schema21 = Schema.Union([Schema.String, Schema.Null]) -export type __schema22 = +export type __schema20 = string | null +export const __schema20 = Schema.Union([Schema.String, Schema.Null]) +export type __schema21 = | "unknown" | "openai-responses-v1" | "azure-openai-responses-v1" @@ -2719,7 +2715,7 @@ export type __schema22 = | "anthropic-claude-v1" | "google-gemini-v1" | null -export const __schema22 = Schema.Union([ +export const __schema21 = Schema.Union([ Schema.Literals([ "unknown", "openai-responses-v1", @@ -2854,6 +2850,24 @@ export const ChatMessageContentItemCacheControl = Schema.Struct({ "type": Schema.Literal("ephemeral"), "ttl": Schema.optionalKey(Schema.Literals(["5m", "1h"])) }) +export type ToolDefinitionJson = { + readonly "type": "function" + readonly "function": { + readonly "name": string + readonly "description"?: string + readonly "parameters"?: {} + readonly "strict"?: boolean | null + } +} +export const ToolDefinitionJson = Schema.Struct({ + "type": Schema.Literal("function"), + "function": Schema.Struct({ + "name": Schema.String.check(Schema.isMaxLength(64)), + "description": Schema.optionalKey(Schema.String), + "parameters": Schema.optionalKey(Schema.Struct({}).check(Schema.isPropertyNames(Schema.String))), + "strict": Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])) + }) +}) export type NamedToolChoice = { readonly "type": "function"; readonly "function": { readonly "name": string } } export const NamedToolChoice = Schema.Struct({ "type": Schema.Literal("function"), @@ -3540,47 +3554,47 @@ export const PublicEndpoint = Schema.Struct({ "Throughput percentiles in tokens per second over the last 30 minutes. Throughput measures output token generation speed. Only visible when authenticated with an API key or cookie; returns null for unauthenticated requests." }) }).annotate({ "description": "Information about a specific model endpoint" }) -export type __schema20 = { +export type __schema19 = { readonly "type": "reasoning.summary" readonly "summary": string - readonly "id"?: __schema21 - readonly "format"?: __schema22 + readonly "id"?: __schema20 + readonly "format"?: __schema21 readonly "index"?: __schema11 } | { readonly "type": "reasoning.encrypted" readonly "data": string - readonly "id"?: __schema21 - readonly "format"?: __schema22 + readonly "id"?: __schema20 + readonly "format"?: __schema21 readonly "index"?: __schema11 } | { readonly "type": "reasoning.text" readonly "text"?: string | null readonly "signature"?: string | null - readonly "id"?: __schema21 - readonly "format"?: __schema22 + readonly "id"?: __schema20 + readonly "format"?: __schema21 readonly "index"?: __schema11 } -export const __schema20 = Schema.Union([ +export const __schema19 = Schema.Union([ Schema.Struct({ "type": Schema.Literal("reasoning.summary"), "summary": Schema.String, - "id": Schema.optionalKey(__schema21), - "format": Schema.optionalKey(__schema22), + "id": Schema.optionalKey(__schema20), + "format": Schema.optionalKey(__schema21), "index": Schema.optionalKey(__schema11) }), Schema.Struct({ "type": Schema.Literal("reasoning.encrypted"), "data": Schema.String, - "id": Schema.optionalKey(__schema21), - "format": Schema.optionalKey(__schema22), + "id": Schema.optionalKey(__schema20), + "format": Schema.optionalKey(__schema21), "index": Schema.optionalKey(__schema11) }), Schema.Struct({ "type": Schema.Literal("reasoning.text"), "text": Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), "signature": Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), - "id": Schema.optionalKey(__schema21), - "format": Schema.optionalKey(__schema22), + "id": Schema.optionalKey(__schema20), + "format": Schema.optionalKey(__schema21), "index": Schema.optionalKey(__schema11) }) ], { mode: "oneOf" }) @@ -3594,8 +3608,8 @@ export const ChatMessageTokenLogprobs = Schema.Struct({ "content": Schema.Union([Schema.Array(ChatMessageTokenLogprob), Schema.Null]), "refusal": Schema.Union([Schema.Array(ChatMessageTokenLogprob), Schema.Null]) }) -export type __schema26 = ChatCompletionFinishReason | null -export const __schema26 = Schema.Union([ChatCompletionFinishReason, Schema.Null]) +export type __schema25 = ChatCompletionFinishReason | null +export const __schema25 = Schema.Union([ChatCompletionFinishReason, Schema.Null]) export type ResponseFormatJSONSchema = { readonly "type": "json_schema"; readonly "json_schema": JSONSchemaConfig } export const ResponseFormatJSONSchema = Schema.Struct({ "type": Schema.Literal("json_schema"), @@ -3611,26 +3625,6 @@ export const ChatMessageContentItemText = Schema.Struct({ "text": Schema.String, "cache_control": Schema.optionalKey(ChatMessageContentItemCacheControl) }) -export type ToolDefinitionJson = { - readonly "type": "function" - readonly "function": { - readonly "name": string - readonly "description"?: string - readonly "parameters"?: {} - readonly "strict"?: boolean | null - } - readonly "cache_control"?: ChatMessageContentItemCacheControl -} -export const ToolDefinitionJson = Schema.Struct({ - "type": Schema.Literal("function"), - "function": Schema.Struct({ - "name": Schema.String.check(Schema.isMaxLength(64)), - "description": Schema.optionalKey(Schema.String), - "parameters": Schema.optionalKey(Schema.Struct({}).check(Schema.isPropertyNames(Schema.String))), - "strict": Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])) - }), - "cache_control": Schema.optionalKey(ChatMessageContentItemCacheControl) -}) export type ToolChoiceOption = "none" | "auto" | "required" | NamedToolChoice export const ToolChoiceOption = Schema.Union([ Schema.Literal("none"), @@ -3979,13 +3973,6 @@ export type AnthropicMessagesRequest = { readonly "route"?: "fallback" | "sort" readonly "user"?: string readonly "session_id"?: string - readonly "trace"?: { - readonly "trace_id"?: string - readonly "trace_name"?: string - readonly "span_name"?: string - readonly "generation_name"?: string - readonly "parent_span_id"?: string - } readonly "models"?: ReadonlyArray readonly "output_config"?: AnthropicOutputConfig } @@ -4273,18 +4260,6 @@ export const AnthropicMessagesRequest = Schema.Struct({ "A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 128 characters." }).check(Schema.isMaxLength(128)) ), - "trace": Schema.optionalKey( - Schema.Struct({ - "trace_id": Schema.optionalKey(Schema.String), - "trace_name": Schema.optionalKey(Schema.String), - "span_name": Schema.optionalKey(Schema.String), - "generation_name": Schema.optionalKey(Schema.String), - "parent_span_id": Schema.optionalKey(Schema.String) - }).annotate({ - "description": - "Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations." - }) - ), "models": Schema.optionalKey(Schema.Array(Schema.String)), "output_config": Schema.optionalKey(AnthropicOutputConfig) }).annotate({ "description": "Request schema for Anthropic Messages API endpoint" }) @@ -4468,7 +4443,7 @@ export type ChatStreamingMessageChunk = { readonly "reasoning"?: string | null readonly "refusal"?: string | null readonly "tool_calls"?: ReadonlyArray - readonly "reasoning_details"?: ReadonlyArray<__schema20> + readonly "reasoning_details"?: ReadonlyArray<__schema19> readonly "images"?: | ReadonlyArray<{ readonly "type": "image_url"; readonly "image_url": { readonly "url": string } }> | null @@ -4503,7 +4478,7 @@ export const ChatStreamingMessageChunk = Schema.Struct({ "reasoning": Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), "refusal": Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), "tool_calls": Schema.optionalKey(Schema.Array(ChatStreamingMessageToolCall)), - "reasoning_details": Schema.optionalKey(Schema.Array(__schema20)), + "reasoning_details": Schema.optionalKey(Schema.Array(__schema19)), "images": Schema.optionalKey( Schema.Union([ Schema.Array( @@ -4637,13 +4612,13 @@ export type ModelsListResponseData = ReadonlyArray export const ModelsListResponseData = Schema.Array(Model).annotate({ "description": "List of available models" }) export type ChatStreamingChoice = { readonly "delta": ChatStreamingMessageChunk - readonly "finish_reason"?: __schema26 + readonly "finish_reason"?: __schema25 readonly "index": number readonly "logprobs"?: ChatMessageTokenLogprobs | null } export const ChatStreamingChoice = Schema.Struct({ "delta": ChatStreamingMessageChunk, - "finish_reason": Schema.optionalKey(__schema26), + "finish_reason": Schema.optionalKey(__schema25), "index": Schema.Number.check(Schema.isFinite()), "logprobs": Schema.optionalKey(Schema.Union([ChatMessageTokenLogprobs, Schema.Null])) }) @@ -4664,7 +4639,7 @@ export type AssistantMessage = { readonly "tool_calls"?: ReadonlyArray readonly "refusal"?: string | null readonly "reasoning"?: string | null - readonly "reasoning_details"?: ReadonlyArray<__schema20> + readonly "reasoning_details"?: ReadonlyArray<__schema19> readonly "images"?: | ReadonlyArray<{ readonly "type": "image_url"; readonly "image_url": { readonly "url": string } }> | null @@ -4702,7 +4677,7 @@ export const AssistantMessage = Schema.Struct({ "tool_calls": Schema.optionalKey(Schema.Array(ChatMessageToolCall)), "refusal": Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), "reasoning": Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])), - "reasoning_details": Schema.optionalKey(Schema.Array(__schema20)), + "reasoning_details": Schema.optionalKey(Schema.Array(__schema19)), "images": Schema.optionalKey( Schema.Union([ Schema.Array( @@ -4943,13 +4918,13 @@ export const ChatStreamingResponseChunk = Schema.Struct({ }) }) export type ChatResponseChoice = { - readonly "finish_reason": __schema26 + readonly "finish_reason": __schema25 readonly "index": number readonly "message": AssistantMessage readonly "logprobs"?: ChatMessageTokenLogprobs | null } export const ChatResponseChoice = Schema.Struct({ - "finish_reason": __schema26, + "finish_reason": __schema25, "index": Schema.Number.check(Schema.isFinite()), "message": AssistantMessage, "logprobs": Schema.optionalKey(Schema.Union([ChatMessageTokenLogprobs, Schema.Null])) @@ -6327,13 +6302,6 @@ export type OpenResponsesRequest = { readonly "route"?: "fallback" | "sort" readonly "user"?: string readonly "session_id"?: string - readonly "trace"?: { - readonly "trace_id"?: string - readonly "trace_name"?: string - readonly "span_name"?: string - readonly "generation_name"?: string - readonly "parent_span_id"?: string - } } export const OpenResponsesRequest = Schema.Struct({ "input": Schema.optionalKey(OpenResponsesInput), @@ -6539,18 +6507,6 @@ export const OpenResponsesRequest = Schema.Struct({ "description": "A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 128 characters." }).check(Schema.isMaxLength(128)) - ), - "trace": Schema.optionalKey( - Schema.Struct({ - "trace_id": Schema.optionalKey(Schema.String), - "trace_name": Schema.optionalKey(Schema.String), - "span_name": Schema.optionalKey(Schema.String), - "generation_name": Schema.optionalKey(Schema.String), - "parent_span_id": Schema.optionalKey(Schema.String) - }).annotate({ - "description": - "Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations." - }) ) }).annotate({ "description": "Request schema for Responses endpoint" }) export type ChatGenerationParams = { @@ -6607,13 +6563,6 @@ export type ChatGenerationParams = { readonly "route"?: "fallback" | "sort" | null readonly "user"?: string readonly "session_id"?: string - readonly "trace"?: { - readonly "trace_id"?: string - readonly "trace_name"?: string - readonly "span_name"?: string - readonly "generation_name"?: string - readonly "parent_span_id"?: string - } readonly "messages": ReadonlyArray readonly "model"?: ModelName readonly "models"?: ReadonlyArray @@ -6640,7 +6589,6 @@ export type ChatGenerationParams = { readonly "stream"?: boolean readonly "stream_options"?: ChatStreamOptions | null readonly "temperature"?: number | null - readonly "parallel_tool_calls"?: boolean | null readonly "tool_choice"?: ToolChoiceOption readonly "tools"?: ReadonlyArray readonly "top_p"?: number | null @@ -6789,18 +6737,6 @@ export const ChatGenerationParams = Schema.Struct({ "A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 128 characters." }).check(Schema.isMaxLength(128)) ), - "trace": Schema.optionalKey( - Schema.Struct({ - "trace_id": Schema.optionalKey(Schema.String), - "trace_name": Schema.optionalKey(Schema.String), - "span_name": Schema.optionalKey(Schema.String), - "generation_name": Schema.optionalKey(Schema.String), - "parent_span_id": Schema.optionalKey(Schema.String) - }).annotate({ - "description": - "Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations." - }) - ), "messages": Schema.Array(Message).check(Schema.isMinLength(1)), "model": Schema.optionalKey(ModelName), "models": Schema.optionalKey(Schema.Array(ModelName)), @@ -6877,7 +6813,6 @@ export const ChatGenerationParams = Schema.Struct({ Schema.Null ]) ), - "parallel_tool_calls": Schema.optionalKey(Schema.Union([Schema.Boolean, Schema.Null])), "tool_choice": Schema.optionalKey(ToolChoiceOption), "tools": Schema.optionalKey(Schema.Array(ToolDefinitionJson)), "top_p": Schema.optionalKey( @@ -7410,7 +7345,6 @@ export type GetGeneration200 = { | "Inceptron" | "InferenceNet" | "Infermatic" - | "Io Net" | "Inflection" | "Liquid" | "Mara" @@ -7591,7 +7525,6 @@ export const GetGeneration200 = Schema.Struct({ "Inceptron", "InferenceNet", "Infermatic", - "Io Net", "Inflection", "Liquid", "Mara",