@opencode/ai 2.1.3 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +283 -114
- package/dist/ai-client.d.ts +2 -2
- package/dist/ai-client.js +2 -1
- package/dist/cache-policy.d.ts +4 -0
- package/dist/cache-policy.js +20 -6
- package/dist/decision-client.d.ts +21 -0
- package/dist/decision-client.js +55 -0
- package/dist/decision.d.ts +472 -0
- package/dist/decision.js +158 -0
- package/dist/effect.d.ts +38 -0
- package/dist/effect.js +27 -0
- package/dist/effort-updates.d.ts +2 -2
- package/dist/experimental/cloudflare-run-extraction.d.ts +13 -0
- package/dist/experimental/cloudflare-run-extraction.js +83 -0
- package/dist/experimental/extraction.d.ts +183 -0
- package/dist/experimental/extraction.js +102 -0
- package/dist/experimental/realtime.d.ts +7 -2
- package/dist/experimental/realtime.js +5 -5
- package/dist/experimental.d.ts +2 -3
- package/dist/experimental.js +1 -2
- package/dist/image-client.d.ts +13 -22
- package/dist/image-client.js +0 -1
- package/dist/image.d.ts +154 -324
- package/dist/image.js +4 -11
- package/dist/index.d.ts +1426 -34
- package/dist/index.js +127 -24
- package/dist/llm.d.ts +16 -1
- package/dist/llm.js +34 -0
- package/dist/media-client.d.ts +2 -1
- package/dist/media-model.d.ts +3 -0
- package/dist/media-model.js +4 -1
- package/dist/media.d.ts +0 -7
- package/dist/media.js +0 -6
- package/dist/protocols/alibaba-chat.d.ts +32 -12
- package/dist/protocols/alibaba-images.d.ts +22 -0
- package/dist/protocols/alibaba-images.js +77 -0
- package/dist/protocols/alibaba-messages.d.ts +62 -27
- package/dist/protocols/alibaba-responses.d.ts +41 -38
- package/dist/protocols/anthropic-messages.d.ts +196 -94
- package/dist/protocols/anthropic-messages.js +47 -16
- package/dist/protocols/bedrock-converse.d.ts +140 -47
- package/dist/protocols/bedrock-converse.js +114 -18
- package/dist/protocols/bedrock-event-stream.js +1 -0
- package/dist/protocols/bfl-images.d.ts +9 -0
- package/dist/protocols/bfl-images.js +17 -15
- package/dist/protocols/cartesia-speech.d.ts +32 -50
- package/dist/protocols/cloudflare-run-decisions.d.ts +9 -0
- package/dist/protocols/cloudflare-run-decisions.js +36 -0
- package/dist/protocols/cloudflare-workers-ai-images.d.ts +23 -0
- package/dist/protocols/cloudflare-workers-ai-images.js +80 -0
- package/dist/protocols/cohere-chat.d.ts +7 -8
- package/dist/protocols/deepgram-speech.d.ts +32 -50
- package/dist/protocols/elevenlabs-speech.d.ts +32 -50
- package/dist/protocols/fal-images.d.ts +10 -1
- package/dist/protocols/fal-images.js +16 -25
- package/dist/protocols/fal-video.js +1 -1
- package/dist/protocols/gemini.d.ts +37 -34
- package/dist/protocols/gemini.js +13 -8
- package/dist/protocols/google-images.d.ts +2 -2
- package/dist/protocols/google-images.js +8 -37
- package/dist/protocols/google-interactions.d.ts +18 -14
- package/dist/protocols/google-interactions.js +14 -7
- package/dist/protocols/google-speech.d.ts +32 -50
- package/dist/protocols/google-speech.js +0 -1
- package/dist/protocols/google-transcription.d.ts +32 -50
- package/dist/protocols/google-transcription.js +0 -1
- package/dist/protocols/google-video.d.ts +1 -1
- package/dist/protocols/google-video.js +2 -7
- package/dist/protocols/index.d.ts +3 -0
- package/dist/protocols/index.js +3 -0
- package/dist/protocols/meta-images.d.ts +7 -1
- package/dist/protocols/meta-images.js +10 -8
- package/dist/protocols/meta-messages.d.ts +73 -38
- package/dist/protocols/meta-messages.js +14 -1
- package/dist/protocols/meta-responses.d.ts +84 -78
- package/dist/protocols/meta-responses.js +29 -1
- package/dist/protocols/mistral-chat.d.ts +81 -78
- package/dist/protocols/mistral-chat.js +2 -1
- package/dist/protocols/open-responses-channel.js +47 -46
- package/dist/protocols/open-responses-continuation.d.ts +8 -2
- package/dist/protocols/open-responses-continuation.js +3 -1
- package/dist/protocols/open-responses.d.ts +426 -396
- package/dist/protocols/open-responses.js +16 -25
- package/dist/protocols/openai-chat.d.ts +764 -52
- package/dist/protocols/openai-chat.js +38 -25
- package/dist/protocols/openai-compatible-chat.d.ts +35 -15
- package/dist/protocols/openai-compatible-responses.d.ts +44 -42
- package/dist/protocols/openai-decisions.d.ts +22 -0
- package/dist/protocols/openai-decisions.js +128 -0
- package/dist/protocols/openai-images.d.ts +53 -56
- package/dist/protocols/openai-images.js +100 -34
- package/dist/protocols/openai-responses.d.ts +322 -264
- package/dist/protocols/openai-responses.js +33 -3
- package/dist/protocols/openai-speech.d.ts +32 -50
- package/dist/protocols/openai-speech.js +15 -5
- package/dist/protocols/openai-transcription.d.ts +32 -50
- package/dist/protocols/openai-transcription.js +15 -11
- package/dist/protocols/replicate-images.js +1 -1
- package/dist/protocols/runway-video.d.ts +1 -1
- package/dist/protocols/runway-video.js +1 -1
- package/dist/protocols/shared.d.ts +9 -1
- package/dist/protocols/shared.js +13 -2
- package/dist/protocols/stability-images.d.ts +5 -0
- package/dist/protocols/stability-images.js +4 -9
- package/dist/protocols/system-one.d.ts +101 -0
- package/dist/protocols/system-one.js +230 -0
- package/dist/protocols/utils/bedrock-cache.d.ts +2 -2
- package/dist/protocols/utils/bedrock-cache.js +7 -6
- package/dist/protocols/utils/cache.d.ts +14 -3
- package/dist/protocols/utils/cache.js +11 -4
- package/dist/protocols/utils/gemini-generate-content.d.ts +3 -3
- package/dist/protocols/utils/gemini-generate-content.js +10 -16
- package/dist/protocols/utils/gemini-json-schema.d.ts +5 -0
- package/dist/protocols/utils/gemini-json-schema.js +3 -3
- package/dist/protocols/utils/image-sizing.d.ts +31 -0
- package/dist/protocols/utils/image-sizing.js +73 -0
- package/dist/protocols/utils/media-input.d.ts +4 -5
- package/dist/protocols/utils/media-input.js +8 -5
- package/dist/protocols/utils/partial-json-options.d.ts +0 -1
- package/dist/protocols/utils/partial-json-options.js +0 -1
- package/dist/protocols/utils/speech-stream.d.ts +0 -1
- package/dist/protocols/utils/speech-stream.js +0 -1
- package/dist/protocols/utils/tool-schema.js +15 -5
- package/dist/protocols/utils/tool-stream.d.ts +10 -1
- package/dist/protocols/venice-chat.d.ts +71 -53
- package/dist/protocols/venice-chat.js +7 -6
- package/dist/protocols/xai-images.d.ts +1 -2
- package/dist/protocols/xai-images.js +9 -2
- package/dist/protocols/xai-responses.d.ts +88 -78
- package/dist/protocols/xai-responses.js +28 -2
- package/dist/protocols/xai-video.d.ts +1 -1
- package/dist/protocols/xai-video.js +11 -8
- package/dist/protocols/zai-chat.d.ts +54 -30
- package/dist/protocols/zai-chat.js +8 -3
- package/dist/protocols/zai-images.d.ts +3 -1
- package/dist/protocols/zai-images.js +12 -11
- package/dist/protocols/zai-messages.d.ts +72 -35
- package/dist/protocols/zai-messages.js +3 -2
- package/dist/provider-error.js +24 -7
- package/dist/providers/alibaba/images.d.ts +2 -0
- package/dist/providers/alibaba/images.js +1 -0
- package/dist/providers/alibaba.d.ts +146 -85
- package/dist/providers/alibaba.js +16 -8
- package/dist/providers/amazon-bedrock-mantle.d.ts +277 -218
- package/dist/providers/amazon-bedrock.d.ts +48 -28
- package/dist/providers/amazon-bedrock.js +11 -11
- package/dist/providers/anthropic-compatible.d.ts +64 -29
- package/dist/providers/anthropic.d.ts +64 -29
- package/dist/providers/azure/images.d.ts +2 -0
- package/dist/providers/azure/images.js +1 -0
- package/dist/providers/azure.d.ts +156 -115
- package/dist/providers/azure.js +19 -1
- package/dist/providers/baseten/decisions.d.ts +2 -0
- package/dist/providers/baseten/decisions.js +1 -0
- package/dist/providers/baseten.d.ts +75 -25
- package/dist/providers/baseten.js +41 -8
- package/dist/providers/cerebras.d.ts +66 -24
- package/dist/providers/cloudflare-ai-gateway/decisions.d.ts +2 -0
- package/dist/providers/cloudflare-ai-gateway/decisions.js +1 -0
- package/dist/providers/cloudflare-ai-gateway.d.ts +409 -272
- package/dist/providers/cloudflare-ai-gateway.js +33 -6
- package/dist/providers/cloudflare-workers-ai/decisions.d.ts +2 -0
- package/dist/providers/cloudflare-workers-ai/decisions.js +1 -0
- package/dist/providers/cloudflare-workers-ai/images.d.ts +2 -0
- package/dist/providers/cloudflare-workers-ai/images.js +1 -0
- package/dist/providers/cloudflare-workers-ai.d.ts +79 -25
- package/dist/providers/cloudflare-workers-ai.js +45 -9
- package/dist/providers/cohere.d.ts +117 -75
- package/dist/providers/deepinfra.d.ts +66 -24
- package/dist/providers/deepseek.d.ts +66 -24
- package/dist/providers/digitalocean/decisions.d.ts +2 -0
- package/dist/providers/digitalocean/decisions.js +1 -0
- package/dist/providers/digitalocean/images.d.ts +2 -0
- package/dist/providers/digitalocean/images.js +1 -0
- package/dist/providers/digitalocean.d.ts +108 -37
- package/dist/providers/digitalocean.js +39 -8
- package/dist/providers/fireworks.d.ts +66 -24
- package/dist/providers/google/images.d.ts +2 -0
- package/dist/providers/google/images.js +1 -0
- package/dist/providers/google-vertex/images.d.ts +2 -0
- package/dist/providers/google-vertex/images.js +1 -0
- package/dist/providers/google-vertex-chat.d.ts +33 -12
- package/dist/providers/google-vertex-messages.d.ts +64 -29
- package/dist/providers/google-vertex-mistral.d.ts +17 -17
- package/dist/providers/google-vertex-responses.d.ts +38 -35
- package/dist/providers/google-vertex.d.ts +20 -18
- package/dist/providers/google-vertex.js +32 -15
- package/dist/providers/google.d.ts +22 -21
- package/dist/providers/google.js +15 -8
- package/dist/providers/groq.d.ts +66 -28
- package/dist/providers/groq.js +0 -6
- package/dist/providers/meta.d.ts +144 -85
- package/dist/providers/minimax.d.ts +145 -86
- package/dist/providers/mistral.d.ts +28 -28
- package/dist/providers/moonshot.d.ts +277 -218
- package/dist/providers/open-responses-options.d.ts +0 -1
- package/dist/providers/open-responses-options.js +1 -1
- package/dist/providers/openai/images.d.ts +2 -0
- package/dist/providers/openai/images.js +1 -0
- package/dist/providers/openai-compatible/images.d.ts +2 -0
- package/dist/providers/openai-compatible/images.js +1 -0
- package/dist/providers/openai-compatible-responses.d.ts +38 -35
- package/dist/providers/openai-compatible.d.ts +36 -13
- package/dist/providers/openai-compatible.js +22 -10
- package/dist/providers/openai-options.d.ts +3 -2
- package/dist/providers/openai-options.js +0 -1
- package/dist/providers/openai.d.ts +146 -109
- package/dist/providers/openai.js +20 -4
- package/dist/providers/opencode/decisions.d.ts +2 -0
- package/dist/providers/opencode/decisions.js +1 -0
- package/dist/providers/opencode.d.ts +9 -10
- package/dist/providers/opencode.js +10 -8
- package/dist/providers/openrouter/decisions.d.ts +2 -0
- package/dist/providers/openrouter/decisions.js +1 -0
- package/dist/providers/openrouter/images.d.ts +2 -0
- package/dist/providers/openrouter/images.js +1 -0
- package/dist/providers/openrouter.d.ts +128 -47
- package/dist/providers/openrouter.js +38 -16
- package/dist/providers/togetherai.d.ts +66 -24
- package/dist/providers/typesafe-ai/decisions.d.ts +2 -0
- package/dist/providers/typesafe-ai/decisions.js +1 -0
- package/dist/providers/typesafe-ai.d.ts +9 -10
- package/dist/providers/typesafe-ai.js +10 -8
- package/dist/providers/venice.d.ts +214 -20
- package/dist/providers/vercel-ai-gateway/decisions.d.ts +2 -0
- package/dist/providers/vercel-ai-gateway/decisions.js +1 -0
- package/dist/providers/vercel-ai-gateway/images.d.ts +2 -0
- package/dist/providers/vercel-ai-gateway/images.js +1 -0
- package/dist/providers/vercel-ai-gateway.d.ts +10 -16
- package/dist/providers/vercel-ai-gateway.js +31 -85
- package/dist/providers/xai/images.d.ts +2 -0
- package/dist/providers/xai/images.js +1 -0
- package/dist/providers/xai.d.ts +40 -17
- package/dist/providers/xai.js +15 -8
- package/dist/providers/zai/images.d.ts +2 -0
- package/dist/providers/zai/images.js +1 -0
- package/dist/providers/zai-coding-plan.d.ts +224 -85
- package/dist/providers/zai.d.ts +110 -23
- package/dist/providers/zai.js +15 -8
- package/dist/route/auth-options.d.ts +0 -3
- package/dist/route/auth.d.ts +0 -2
- package/dist/route/auth.js +0 -2
- package/dist/route/client.d.ts +2 -4
- package/dist/route/client.js +29 -8
- package/dist/route/decision.d.ts +58 -0
- package/dist/route/decision.js +75 -0
- package/dist/route/executor-service.js +1 -1
- package/dist/route/executor.d.ts +1 -1
- package/dist/route/framing.d.ts +2 -0
- package/dist/route/index.d.ts +3 -0
- package/dist/route/index.js +3 -0
- package/dist/route/media-protocol.d.ts +1 -0
- package/dist/route/media-protocol.js +12 -8
- package/dist/route/media.d.ts +5 -1
- package/dist/route/media.js +6 -2
- package/dist/route/transport/http.js +1 -0
- package/dist/route/transport/index.d.ts +1 -0
- package/dist/schema/events.d.ts +148 -6
- package/dist/schema/events.js +20 -0
- package/dist/schema/messages.d.ts +6 -2
- package/dist/schema/messages.js +3 -0
- package/dist/schema/options.d.ts +5 -3
- package/dist/schema/options.js +8 -3
- package/dist/speech-client.d.ts +13 -22
- package/dist/speech-client.js +0 -1
- package/dist/speech.d.ts +148 -283
- package/dist/speech.js +2 -4
- package/dist/testing.d.ts +25 -24
- package/dist/testing.js +3 -21
- package/dist/transcription-client.d.ts +13 -22
- package/dist/transcription.d.ts +148 -283
- package/dist/transcription.js +1 -1
- package/dist/utils/media-type.js +22 -1
- package/dist/video-client.d.ts +13 -22
- package/dist/video-client.js +0 -1
- package/dist/video.d.ts +115 -250
- package/dist/video.js +3 -5
- package/package.json +516 -13
- package/dist/experimental/evaluation-client.d.ts +0 -21
- package/dist/experimental/evaluation-client.js +0 -64
- package/dist/experimental/evaluation.d.ts +0 -242
- package/dist/experimental/evaluation.js +0 -115
- package/dist/experimental/system-one.d.ts +0 -16
- package/dist/experimental/system-one.js +0 -135
- package/dist/promise.d.ts +0 -1021
- package/dist/promise.js +0 -101
- package/dist/provider.d.ts +0 -23
- package/dist/provider.js +0 -2
|
@@ -31,183 +31,6 @@ export type Settings<Options = OpenAIProviderOptionsInput> = ProviderPackage.Set
|
|
|
31
31
|
};
|
|
32
32
|
export type MessagesSettings = Settings<AnthropicMessages.ProviderOptionsInput>;
|
|
33
33
|
export declare const routes: (Route<{
|
|
34
|
-
readonly model: string;
|
|
35
|
-
readonly input: readonly ({
|
|
36
|
-
readonly [x: string]: unknown;
|
|
37
|
-
readonly type: "web_search_call";
|
|
38
|
-
readonly id: string;
|
|
39
|
-
readonly status?: string | undefined;
|
|
40
|
-
readonly action?: {
|
|
41
|
-
readonly [x: string]: unknown;
|
|
42
|
-
} | null | undefined;
|
|
43
|
-
} | {
|
|
44
|
-
readonly [x: string]: unknown;
|
|
45
|
-
readonly type: "file_search_call";
|
|
46
|
-
readonly id: string;
|
|
47
|
-
readonly status?: string | undefined;
|
|
48
|
-
readonly queries?: readonly string[] | undefined;
|
|
49
|
-
readonly results?: readonly {
|
|
50
|
-
readonly [x: string]: unknown;
|
|
51
|
-
}[] | null | undefined;
|
|
52
|
-
} | {
|
|
53
|
-
readonly [x: string]: unknown;
|
|
54
|
-
readonly type: "code_interpreter_call";
|
|
55
|
-
readonly id: string;
|
|
56
|
-
readonly status?: string | undefined;
|
|
57
|
-
readonly code?: string | null | undefined;
|
|
58
|
-
readonly container_id?: string | null | undefined;
|
|
59
|
-
readonly outputs?: readonly {
|
|
60
|
-
readonly [x: string]: unknown;
|
|
61
|
-
}[] | null | undefined;
|
|
62
|
-
} | {
|
|
63
|
-
readonly [x: string]: unknown;
|
|
64
|
-
readonly type: "mcp_call";
|
|
65
|
-
readonly id: string;
|
|
66
|
-
readonly status?: string | undefined;
|
|
67
|
-
readonly server_label?: string | undefined;
|
|
68
|
-
readonly name?: string | undefined;
|
|
69
|
-
readonly arguments?: string | undefined;
|
|
70
|
-
readonly output?: string | null | undefined;
|
|
71
|
-
readonly error?: unknown;
|
|
72
|
-
} | {
|
|
73
|
-
readonly type: "configuration_update";
|
|
74
|
-
readonly reasoning: {
|
|
75
|
-
readonly effort: import("../schema/options.js").ReasoningEffort;
|
|
76
|
-
};
|
|
77
|
-
} | {
|
|
78
|
-
readonly [x: string]: unknown;
|
|
79
|
-
readonly type: string;
|
|
80
|
-
readonly id: string;
|
|
81
|
-
} | {
|
|
82
|
-
readonly type: "compaction";
|
|
83
|
-
readonly id?: string | null | undefined;
|
|
84
|
-
readonly encrypted_content: string;
|
|
85
|
-
} | {
|
|
86
|
-
readonly type: "message";
|
|
87
|
-
readonly role: "system";
|
|
88
|
-
readonly content: string;
|
|
89
|
-
} | {
|
|
90
|
-
readonly type: "message";
|
|
91
|
-
readonly role: "developer";
|
|
92
|
-
readonly content: string;
|
|
93
|
-
} | {
|
|
94
|
-
readonly type: "message";
|
|
95
|
-
readonly role: "user";
|
|
96
|
-
readonly content: readonly ({
|
|
97
|
-
readonly type: "input_image";
|
|
98
|
-
readonly image_url: string;
|
|
99
|
-
readonly detail?: string | undefined;
|
|
100
|
-
} | {
|
|
101
|
-
readonly type: "input_file";
|
|
102
|
-
readonly filename: string;
|
|
103
|
-
readonly detail?: string | undefined;
|
|
104
|
-
readonly file_data?: string | undefined;
|
|
105
|
-
readonly file_url?: string | undefined;
|
|
106
|
-
} | {
|
|
107
|
-
readonly type: "input_text";
|
|
108
|
-
readonly text: string;
|
|
109
|
-
})[];
|
|
110
|
-
readonly id?: string | undefined;
|
|
111
|
-
readonly status?: string | undefined;
|
|
112
|
-
} | {
|
|
113
|
-
readonly type: "message";
|
|
114
|
-
readonly id?: string | undefined;
|
|
115
|
-
readonly role: "assistant";
|
|
116
|
-
readonly content: readonly {
|
|
117
|
-
readonly type: "output_text";
|
|
118
|
-
readonly text: string;
|
|
119
|
-
}[];
|
|
120
|
-
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
121
|
-
readonly status?: string | undefined;
|
|
122
|
-
} | {
|
|
123
|
-
readonly type: "reasoning";
|
|
124
|
-
readonly id?: string | undefined;
|
|
125
|
-
readonly summary: readonly {
|
|
126
|
-
readonly type: "summary_text";
|
|
127
|
-
readonly text: string;
|
|
128
|
-
}[];
|
|
129
|
-
readonly encrypted_content?: string | null | undefined;
|
|
130
|
-
} | {
|
|
131
|
-
readonly type: "function_call";
|
|
132
|
-
readonly id?: string | undefined;
|
|
133
|
-
readonly call_id: string;
|
|
134
|
-
readonly name: string;
|
|
135
|
-
readonly namespace?: string | undefined;
|
|
136
|
-
readonly arguments: string;
|
|
137
|
-
} | {
|
|
138
|
-
readonly type: "function_call_output";
|
|
139
|
-
readonly call_id: string;
|
|
140
|
-
readonly output: string | readonly ({
|
|
141
|
-
readonly type: "input_image";
|
|
142
|
-
readonly image_url: string;
|
|
143
|
-
readonly detail?: string | undefined;
|
|
144
|
-
} | {
|
|
145
|
-
readonly type: "input_file";
|
|
146
|
-
readonly filename: string;
|
|
147
|
-
readonly detail?: string | undefined;
|
|
148
|
-
readonly file_data?: string | undefined;
|
|
149
|
-
readonly file_url?: string | undefined;
|
|
150
|
-
} | {
|
|
151
|
-
readonly type: "input_text";
|
|
152
|
-
readonly text: string;
|
|
153
|
-
} | {
|
|
154
|
-
readonly type: "input_video";
|
|
155
|
-
readonly video_url: string;
|
|
156
|
-
})[];
|
|
157
|
-
})[];
|
|
158
|
-
readonly instructions?: string | undefined;
|
|
159
|
-
readonly tools?: readonly ({
|
|
160
|
-
readonly [x: string]: unknown;
|
|
161
|
-
readonly type: string;
|
|
162
|
-
} | {
|
|
163
|
-
readonly type: "function";
|
|
164
|
-
readonly name: string;
|
|
165
|
-
readonly description: string;
|
|
166
|
-
readonly parameters: {
|
|
167
|
-
readonly [x: string]: unknown;
|
|
168
|
-
};
|
|
169
|
-
readonly strict?: boolean | undefined;
|
|
170
|
-
})[] | undefined;
|
|
171
|
-
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
172
|
-
readonly type: "function";
|
|
173
|
-
readonly name: string;
|
|
174
|
-
} | {
|
|
175
|
-
readonly type: "allowed_tools";
|
|
176
|
-
readonly mode: "auto" | "none" | "required";
|
|
177
|
-
readonly tools: readonly {
|
|
178
|
-
readonly type: "function";
|
|
179
|
-
readonly name: string;
|
|
180
|
-
}[];
|
|
181
|
-
} | undefined;
|
|
182
|
-
readonly store?: boolean | undefined;
|
|
183
|
-
readonly metadata?: {
|
|
184
|
-
readonly [x: string]: string;
|
|
185
|
-
} | undefined;
|
|
186
|
-
readonly safety_identifier?: string | undefined;
|
|
187
|
-
readonly stream_options?: {
|
|
188
|
-
readonly include_obfuscation?: boolean | undefined;
|
|
189
|
-
} | undefined;
|
|
190
|
-
readonly top_logprobs?: number | undefined;
|
|
191
|
-
readonly truncation?: "auto" | "disabled" | undefined;
|
|
192
|
-
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
193
|
-
readonly prompt_cache_key?: string | undefined;
|
|
194
|
-
readonly include?: readonly import("../schema/options.js").OpenString<"code_interpreter_call.outputs" | "computer_call_output.output.image_url" | "file_search_call.results" | "message.input_image.image_url" | "message.output_text.logprobs" | "reasoning.encrypted_content" | "web_search_call.action.sources" | "web_search_call.results">[] | undefined;
|
|
195
|
-
readonly reasoning?: {
|
|
196
|
-
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
197
|
-
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
198
|
-
} | undefined;
|
|
199
|
-
readonly text?: {
|
|
200
|
-
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
201
|
-
} | undefined;
|
|
202
|
-
readonly max_output_tokens?: number | undefined;
|
|
203
|
-
readonly max_tool_calls?: number | undefined;
|
|
204
|
-
readonly parallel_tool_calls?: boolean | undefined;
|
|
205
|
-
readonly temperature?: number | undefined;
|
|
206
|
-
readonly top_p?: number | undefined;
|
|
207
|
-
readonly presence_penalty?: number | undefined;
|
|
208
|
-
readonly frequency_penalty?: number | undefined;
|
|
209
|
-
readonly stream: true;
|
|
210
|
-
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
|
|
211
34
|
readonly context_management?: {
|
|
212
35
|
readonly edits: readonly {
|
|
213
36
|
readonly type: "compact_20260112";
|
|
@@ -225,7 +48,7 @@ export declare const routes: (Route<{
|
|
|
225
48
|
readonly text: string;
|
|
226
49
|
readonly cache_control?: {
|
|
227
50
|
readonly type: "ephemeral";
|
|
228
|
-
readonly ttl?:
|
|
51
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
229
52
|
} | undefined;
|
|
230
53
|
}[] | undefined;
|
|
231
54
|
readonly messages: readonly ({
|
|
@@ -235,7 +58,7 @@ export declare const routes: (Route<{
|
|
|
235
58
|
readonly text: string;
|
|
236
59
|
readonly cache_control?: {
|
|
237
60
|
readonly type: "ephemeral";
|
|
238
|
-
readonly ttl?:
|
|
61
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
239
62
|
} | undefined;
|
|
240
63
|
} | {
|
|
241
64
|
readonly type: "image";
|
|
@@ -252,11 +75,28 @@ export declare const routes: (Route<{
|
|
|
252
75
|
};
|
|
253
76
|
readonly cache_control?: {
|
|
254
77
|
readonly type: "ephemeral";
|
|
255
|
-
readonly ttl?:
|
|
78
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
256
79
|
} | undefined;
|
|
257
80
|
readonly transformations?: {
|
|
258
81
|
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
259
82
|
} | undefined;
|
|
83
|
+
} | {
|
|
84
|
+
readonly type: "video";
|
|
85
|
+
readonly source: {
|
|
86
|
+
readonly type: "base64";
|
|
87
|
+
readonly media_type: string;
|
|
88
|
+
readonly data: string;
|
|
89
|
+
} | {
|
|
90
|
+
readonly type: "url";
|
|
91
|
+
readonly url: string;
|
|
92
|
+
} | {
|
|
93
|
+
readonly type: "file";
|
|
94
|
+
readonly file_id: string;
|
|
95
|
+
};
|
|
96
|
+
readonly cache_control?: {
|
|
97
|
+
readonly type: "ephemeral";
|
|
98
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
99
|
+
} | undefined;
|
|
260
100
|
} | {
|
|
261
101
|
readonly type: "document";
|
|
262
102
|
readonly source: {
|
|
@@ -276,7 +116,7 @@ export declare const routes: (Route<{
|
|
|
276
116
|
};
|
|
277
117
|
readonly cache_control?: {
|
|
278
118
|
readonly type: "ephemeral";
|
|
279
|
-
readonly ttl?:
|
|
119
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
280
120
|
} | undefined;
|
|
281
121
|
readonly title?: string | undefined;
|
|
282
122
|
readonly context?: string | undefined;
|
|
@@ -291,7 +131,7 @@ export declare const routes: (Route<{
|
|
|
291
131
|
readonly text: string;
|
|
292
132
|
readonly cache_control?: {
|
|
293
133
|
readonly type: "ephemeral";
|
|
294
|
-
readonly ttl?:
|
|
134
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
295
135
|
} | undefined;
|
|
296
136
|
} | {
|
|
297
137
|
readonly type: "image";
|
|
@@ -308,11 +148,28 @@ export declare const routes: (Route<{
|
|
|
308
148
|
};
|
|
309
149
|
readonly cache_control?: {
|
|
310
150
|
readonly type: "ephemeral";
|
|
311
|
-
readonly ttl?:
|
|
151
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
312
152
|
} | undefined;
|
|
313
153
|
readonly transformations?: {
|
|
314
154
|
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
315
155
|
} | undefined;
|
|
156
|
+
} | {
|
|
157
|
+
readonly type: "video";
|
|
158
|
+
readonly source: {
|
|
159
|
+
readonly type: "base64";
|
|
160
|
+
readonly media_type: string;
|
|
161
|
+
readonly data: string;
|
|
162
|
+
} | {
|
|
163
|
+
readonly type: "url";
|
|
164
|
+
readonly url: string;
|
|
165
|
+
} | {
|
|
166
|
+
readonly type: "file";
|
|
167
|
+
readonly file_id: string;
|
|
168
|
+
};
|
|
169
|
+
readonly cache_control?: {
|
|
170
|
+
readonly type: "ephemeral";
|
|
171
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
172
|
+
} | undefined;
|
|
316
173
|
} | {
|
|
317
174
|
readonly type: "document";
|
|
318
175
|
readonly source: {
|
|
@@ -332,7 +189,7 @@ export declare const routes: (Route<{
|
|
|
332
189
|
};
|
|
333
190
|
readonly cache_control?: {
|
|
334
191
|
readonly type: "ephemeral";
|
|
335
|
-
readonly ttl?:
|
|
192
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
336
193
|
} | undefined;
|
|
337
194
|
readonly title?: string | undefined;
|
|
338
195
|
readonly context?: string | undefined;
|
|
@@ -343,43 +200,35 @@ export declare const routes: (Route<{
|
|
|
343
200
|
readonly is_error?: boolean | undefined;
|
|
344
201
|
readonly cache_control?: {
|
|
345
202
|
readonly type: "ephemeral";
|
|
346
|
-
readonly ttl?:
|
|
203
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
347
204
|
} | undefined;
|
|
348
205
|
})[];
|
|
349
206
|
} | {
|
|
350
207
|
readonly role: "assistant";
|
|
351
208
|
readonly content: readonly ({
|
|
209
|
+
readonly type: "compaction";
|
|
210
|
+
readonly content: string | null;
|
|
211
|
+
} | {
|
|
352
212
|
readonly type: "text";
|
|
353
213
|
readonly text: string;
|
|
354
214
|
readonly cache_control?: {
|
|
355
215
|
readonly type: "ephemeral";
|
|
356
|
-
readonly ttl?:
|
|
216
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
357
217
|
} | undefined;
|
|
358
|
-
} | {
|
|
359
|
-
readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
|
|
360
|
-
readonly tool_use_id: string;
|
|
361
|
-
readonly content: unknown;
|
|
362
|
-
readonly cache_control?: {
|
|
363
|
-
readonly type: "ephemeral";
|
|
364
|
-
readonly ttl?: "1h" | "5m" | undefined;
|
|
365
|
-
} | undefined;
|
|
366
|
-
} | {
|
|
367
|
-
readonly type: "compaction";
|
|
368
|
-
readonly content: string | null;
|
|
369
218
|
} | {
|
|
370
219
|
readonly type: "thinking";
|
|
371
220
|
readonly thinking: string;
|
|
372
221
|
readonly signature: string;
|
|
373
222
|
readonly cache_control?: {
|
|
374
223
|
readonly type: "ephemeral";
|
|
375
|
-
readonly ttl?:
|
|
224
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
376
225
|
} | undefined;
|
|
377
226
|
} | {
|
|
378
227
|
readonly type: "redacted_thinking";
|
|
379
228
|
readonly data: string;
|
|
380
229
|
readonly cache_control?: {
|
|
381
230
|
readonly type: "ephemeral";
|
|
382
|
-
readonly ttl?:
|
|
231
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
383
232
|
} | undefined;
|
|
384
233
|
} | {
|
|
385
234
|
readonly type: "tool_use";
|
|
@@ -388,7 +237,7 @@ export declare const routes: (Route<{
|
|
|
388
237
|
readonly input: unknown;
|
|
389
238
|
readonly cache_control?: {
|
|
390
239
|
readonly type: "ephemeral";
|
|
391
|
-
readonly ttl?:
|
|
240
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
392
241
|
} | undefined;
|
|
393
242
|
} | {
|
|
394
243
|
readonly type: "server_tool_use";
|
|
@@ -397,7 +246,15 @@ export declare const routes: (Route<{
|
|
|
397
246
|
readonly input: unknown;
|
|
398
247
|
readonly cache_control?: {
|
|
399
248
|
readonly type: "ephemeral";
|
|
400
|
-
readonly ttl?:
|
|
249
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
250
|
+
} | undefined;
|
|
251
|
+
} | {
|
|
252
|
+
readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
|
|
253
|
+
readonly tool_use_id: string;
|
|
254
|
+
readonly content: unknown;
|
|
255
|
+
readonly cache_control?: {
|
|
256
|
+
readonly type: "ephemeral";
|
|
257
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
401
258
|
} | undefined;
|
|
402
259
|
})[];
|
|
403
260
|
} | {
|
|
@@ -407,7 +264,7 @@ export declare const routes: (Route<{
|
|
|
407
264
|
readonly text: string;
|
|
408
265
|
readonly cache_control?: {
|
|
409
266
|
readonly type: "ephemeral";
|
|
410
|
-
readonly ttl?:
|
|
267
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
411
268
|
} | undefined;
|
|
412
269
|
}[];
|
|
413
270
|
readonly output_config?: {
|
|
@@ -422,7 +279,7 @@ export declare const routes: (Route<{
|
|
|
422
279
|
};
|
|
423
280
|
readonly cache_control?: {
|
|
424
281
|
readonly type: "ephemeral";
|
|
425
|
-
readonly ttl?:
|
|
282
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
426
283
|
} | undefined;
|
|
427
284
|
}[] | undefined;
|
|
428
285
|
readonly tool_choice?: {
|
|
@@ -440,6 +297,8 @@ export declare const routes: (Route<{
|
|
|
440
297
|
readonly top_k?: number | undefined;
|
|
441
298
|
readonly stop_sequences?: readonly string[] | undefined;
|
|
442
299
|
readonly thinking?: {
|
|
300
|
+
readonly type: "between_tools" | "disabled";
|
|
301
|
+
} | {
|
|
443
302
|
readonly display?: import("../schema/options.js").OpenString<"omitted" | "summarized"> | undefined;
|
|
444
303
|
readonly block_binding?: {
|
|
445
304
|
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"drop_block" | "error"> | undefined;
|
|
@@ -452,8 +311,6 @@ export declare const routes: (Route<{
|
|
|
452
311
|
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"drop_block" | "error"> | undefined;
|
|
453
312
|
} | undefined;
|
|
454
313
|
readonly type: "adaptive";
|
|
455
|
-
} | {
|
|
456
|
-
readonly type: "between_tools" | "disabled";
|
|
457
314
|
} | undefined;
|
|
458
315
|
readonly output_config?: {
|
|
459
316
|
readonly effort?: string | undefined;
|
|
@@ -466,7 +323,7 @@ export declare const routes: (Route<{
|
|
|
466
323
|
} | undefined;
|
|
467
324
|
readonly cache_control?: {
|
|
468
325
|
readonly type: "ephemeral";
|
|
469
|
-
readonly ttl?:
|
|
326
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
470
327
|
} | undefined;
|
|
471
328
|
readonly container?: string | {
|
|
472
329
|
readonly id?: string | null | undefined;
|
|
@@ -479,49 +336,240 @@ export declare const routes: (Route<{
|
|
|
479
336
|
readonly user_id?: string | null | undefined;
|
|
480
337
|
} | undefined;
|
|
481
338
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
|
|
339
|
+
readonly speed?: import("../schema/options.js").OpenString<"fast" | "standard"> | undefined;
|
|
482
340
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
|
|
483
341
|
readonly model: string;
|
|
484
|
-
readonly
|
|
342
|
+
readonly input: readonly ({
|
|
343
|
+
readonly type: "configuration_update";
|
|
344
|
+
readonly reasoning: {
|
|
345
|
+
readonly effort: import("../schema/options.js").ReasoningEffort;
|
|
346
|
+
};
|
|
347
|
+
} | {
|
|
348
|
+
readonly type: "message";
|
|
485
349
|
readonly role: "system";
|
|
486
|
-
readonly content: string
|
|
487
|
-
|
|
350
|
+
readonly content: string;
|
|
351
|
+
} | {
|
|
352
|
+
readonly type: "message";
|
|
353
|
+
readonly role: "developer";
|
|
354
|
+
readonly content: string;
|
|
355
|
+
} | {
|
|
356
|
+
readonly type: "function_call_output";
|
|
357
|
+
readonly call_id: string;
|
|
358
|
+
readonly output: string | readonly ({
|
|
359
|
+
readonly type: "input_text";
|
|
488
360
|
readonly text: string;
|
|
489
|
-
readonly cache_control?: {
|
|
490
|
-
readonly type: "ephemeral";
|
|
491
|
-
readonly ttl?: string | undefined;
|
|
492
|
-
} | undefined;
|
|
493
361
|
} | {
|
|
362
|
+
readonly type: "input_video";
|
|
363
|
+
readonly video_url: string;
|
|
364
|
+
} | {
|
|
365
|
+
readonly type: "input_image";
|
|
366
|
+
readonly image_url: string;
|
|
367
|
+
readonly detail?: string | undefined;
|
|
368
|
+
} | {
|
|
369
|
+
readonly type: "input_file";
|
|
370
|
+
readonly filename: string;
|
|
371
|
+
readonly detail?: string | undefined;
|
|
372
|
+
readonly file_data?: string | undefined;
|
|
373
|
+
readonly file_url?: string | undefined;
|
|
374
|
+
})[];
|
|
375
|
+
} | {
|
|
376
|
+
readonly type: "reasoning";
|
|
377
|
+
readonly id?: string | undefined;
|
|
378
|
+
readonly summary: readonly {
|
|
379
|
+
readonly type: "summary_text";
|
|
380
|
+
readonly text: string;
|
|
381
|
+
}[];
|
|
382
|
+
readonly encrypted_content?: string | null | undefined;
|
|
383
|
+
} | {
|
|
384
|
+
readonly type: "compaction";
|
|
385
|
+
readonly id?: string | null | undefined;
|
|
386
|
+
readonly encrypted_content: string;
|
|
387
|
+
} | {
|
|
388
|
+
readonly type: "message";
|
|
389
|
+
readonly role: "user";
|
|
390
|
+
readonly content: readonly ({
|
|
391
|
+
readonly type: "input_text";
|
|
392
|
+
readonly text: string;
|
|
393
|
+
} | {
|
|
394
|
+
readonly type: "input_video";
|
|
395
|
+
readonly video_url: string;
|
|
396
|
+
} | {
|
|
397
|
+
readonly type: "input_image";
|
|
398
|
+
readonly image_url: string;
|
|
399
|
+
readonly detail?: string | undefined;
|
|
400
|
+
} | {
|
|
401
|
+
readonly type: "input_file";
|
|
402
|
+
readonly filename: string;
|
|
403
|
+
readonly detail?: string | undefined;
|
|
404
|
+
readonly file_data?: string | undefined;
|
|
405
|
+
readonly file_url?: string | undefined;
|
|
406
|
+
})[];
|
|
407
|
+
readonly id?: string | undefined;
|
|
408
|
+
readonly status?: string | undefined;
|
|
409
|
+
} | {
|
|
410
|
+
readonly type: "message";
|
|
411
|
+
readonly id?: string | undefined;
|
|
412
|
+
readonly role: "assistant";
|
|
413
|
+
readonly content: readonly {
|
|
414
|
+
readonly type: "output_text";
|
|
415
|
+
readonly text: string;
|
|
416
|
+
}[];
|
|
417
|
+
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
418
|
+
readonly status?: string | undefined;
|
|
419
|
+
} | {
|
|
420
|
+
readonly type: "function_call";
|
|
421
|
+
readonly id?: string | undefined;
|
|
422
|
+
readonly call_id: string;
|
|
423
|
+
readonly name: string;
|
|
424
|
+
readonly namespace?: string | undefined;
|
|
425
|
+
readonly arguments: string;
|
|
426
|
+
} | {
|
|
427
|
+
readonly [x: string]: unknown;
|
|
428
|
+
readonly type: "web_search_call";
|
|
429
|
+
readonly id: string;
|
|
430
|
+
readonly status?: string | undefined;
|
|
431
|
+
readonly action?: {
|
|
432
|
+
readonly [x: string]: unknown;
|
|
433
|
+
} | null | undefined;
|
|
434
|
+
} | {
|
|
435
|
+
readonly [x: string]: unknown;
|
|
436
|
+
readonly type: "file_search_call";
|
|
437
|
+
readonly id: string;
|
|
438
|
+
readonly status?: string | undefined;
|
|
439
|
+
readonly queries?: readonly string[] | undefined;
|
|
440
|
+
readonly results?: readonly {
|
|
441
|
+
readonly [x: string]: unknown;
|
|
442
|
+
}[] | null | undefined;
|
|
443
|
+
} | {
|
|
444
|
+
readonly [x: string]: unknown;
|
|
445
|
+
readonly type: "code_interpreter_call";
|
|
446
|
+
readonly id: string;
|
|
447
|
+
readonly status?: string | undefined;
|
|
448
|
+
readonly code?: string | null | undefined;
|
|
449
|
+
readonly container_id?: string | null | undefined;
|
|
450
|
+
readonly outputs?: readonly {
|
|
451
|
+
readonly [x: string]: unknown;
|
|
452
|
+
}[] | null | undefined;
|
|
453
|
+
} | {
|
|
454
|
+
readonly [x: string]: unknown;
|
|
455
|
+
readonly type: "mcp_call";
|
|
456
|
+
readonly id: string;
|
|
457
|
+
readonly status?: string | undefined;
|
|
458
|
+
readonly server_label?: string | undefined;
|
|
459
|
+
readonly name?: string | undefined;
|
|
460
|
+
readonly arguments?: string | undefined;
|
|
461
|
+
readonly output?: string | null | undefined;
|
|
462
|
+
readonly error?: unknown;
|
|
463
|
+
} | {
|
|
464
|
+
readonly [x: string]: unknown;
|
|
465
|
+
readonly type: string;
|
|
466
|
+
readonly id: string;
|
|
467
|
+
})[];
|
|
468
|
+
readonly instructions?: string | undefined;
|
|
469
|
+
readonly tools?: readonly ({
|
|
470
|
+
readonly type: "function";
|
|
471
|
+
readonly name: string;
|
|
472
|
+
readonly description: string;
|
|
473
|
+
readonly parameters: {
|
|
474
|
+
readonly [x: string]: unknown;
|
|
475
|
+
};
|
|
476
|
+
readonly strict?: boolean | undefined;
|
|
477
|
+
} | {
|
|
478
|
+
readonly [x: string]: unknown;
|
|
479
|
+
readonly type: string;
|
|
480
|
+
})[] | undefined;
|
|
481
|
+
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
482
|
+
readonly type: "function";
|
|
483
|
+
readonly name: string;
|
|
484
|
+
} | {
|
|
485
|
+
readonly type: "allowed_tools";
|
|
486
|
+
readonly mode: "auto" | "none" | "required";
|
|
487
|
+
readonly tools: readonly {
|
|
488
|
+
readonly type: "function";
|
|
489
|
+
readonly name: string;
|
|
490
|
+
}[];
|
|
491
|
+
} | undefined;
|
|
492
|
+
readonly store?: boolean | undefined;
|
|
493
|
+
readonly metadata?: {
|
|
494
|
+
readonly [x: string]: string;
|
|
495
|
+
} | undefined;
|
|
496
|
+
readonly safety_identifier?: string | undefined;
|
|
497
|
+
readonly stream_options?: {
|
|
498
|
+
readonly include_obfuscation?: boolean | undefined;
|
|
499
|
+
} | undefined;
|
|
500
|
+
readonly top_logprobs?: number | undefined;
|
|
501
|
+
readonly truncation?: "auto" | "disabled" | undefined;
|
|
502
|
+
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
503
|
+
readonly prompt_cache_key?: string | undefined;
|
|
504
|
+
readonly include?: readonly import("../schema/options.js").OpenString<"code_interpreter_call.outputs" | "computer_call_output.output.image_url" | "file_search_call.results" | "message.input_image.image_url" | "message.output_text.logprobs" | "reasoning.encrypted_content" | "web_search_call.action.sources" | "web_search_call.results">[] | undefined;
|
|
505
|
+
readonly reasoning?: {
|
|
506
|
+
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
507
|
+
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
508
|
+
} | undefined;
|
|
509
|
+
readonly text?: {
|
|
510
|
+
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
511
|
+
} | undefined;
|
|
512
|
+
readonly max_output_tokens?: number | undefined;
|
|
513
|
+
readonly max_tool_calls?: number | undefined;
|
|
514
|
+
readonly parallel_tool_calls?: boolean | undefined;
|
|
515
|
+
readonly temperature?: number | undefined;
|
|
516
|
+
readonly top_p?: number | undefined;
|
|
517
|
+
readonly presence_penalty?: number | undefined;
|
|
518
|
+
readonly frequency_penalty?: number | undefined;
|
|
519
|
+
readonly stream: true;
|
|
520
|
+
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
|
|
521
|
+
readonly model: string;
|
|
522
|
+
readonly messages: readonly ({
|
|
523
|
+
readonly role: "system";
|
|
524
|
+
readonly content: string | readonly ({
|
|
494
525
|
readonly type: "image_url";
|
|
495
526
|
readonly image_url: {
|
|
496
527
|
readonly url: string;
|
|
497
528
|
};
|
|
529
|
+
} | {
|
|
530
|
+
readonly type: "video_url";
|
|
531
|
+
readonly video_url: {
|
|
532
|
+
readonly url: string;
|
|
533
|
+
};
|
|
498
534
|
} | {
|
|
499
535
|
readonly type: "file";
|
|
500
536
|
readonly file: {
|
|
501
537
|
readonly filename: string;
|
|
502
538
|
readonly file_data: string;
|
|
503
539
|
};
|
|
504
|
-
}
|
|
505
|
-
} | {
|
|
506
|
-
readonly role: "user";
|
|
507
|
-
readonly content: string | readonly ({
|
|
540
|
+
} | {
|
|
508
541
|
readonly type: "text";
|
|
509
542
|
readonly text: string;
|
|
510
543
|
readonly cache_control?: {
|
|
511
544
|
readonly type: "ephemeral";
|
|
512
545
|
readonly ttl?: string | undefined;
|
|
513
546
|
} | undefined;
|
|
514
|
-
}
|
|
547
|
+
})[];
|
|
548
|
+
} | {
|
|
549
|
+
readonly role: "user";
|
|
550
|
+
readonly content: string | readonly ({
|
|
515
551
|
readonly type: "image_url";
|
|
516
552
|
readonly image_url: {
|
|
517
553
|
readonly url: string;
|
|
518
554
|
};
|
|
555
|
+
} | {
|
|
556
|
+
readonly type: "video_url";
|
|
557
|
+
readonly video_url: {
|
|
558
|
+
readonly url: string;
|
|
559
|
+
};
|
|
519
560
|
} | {
|
|
520
561
|
readonly type: "file";
|
|
521
562
|
readonly file: {
|
|
522
563
|
readonly filename: string;
|
|
523
564
|
readonly file_data: string;
|
|
524
565
|
};
|
|
566
|
+
} | {
|
|
567
|
+
readonly type: "text";
|
|
568
|
+
readonly text: string;
|
|
569
|
+
readonly cache_control?: {
|
|
570
|
+
readonly type: "ephemeral";
|
|
571
|
+
readonly ttl?: string | undefined;
|
|
572
|
+
} | undefined;
|
|
525
573
|
})[];
|
|
526
574
|
} | {
|
|
527
575
|
readonly role: "tool";
|
|
@@ -590,7 +638,18 @@ export declare const routes: (Route<{
|
|
|
590
638
|
} | undefined;
|
|
591
639
|
readonly store?: boolean | undefined;
|
|
592
640
|
readonly prompt_cache_key?: string | undefined;
|
|
641
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
642
|
+
readonly prompt_cache_options?: {
|
|
643
|
+
readonly ttl?: string | undefined;
|
|
644
|
+
} | undefined;
|
|
593
645
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
646
|
+
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
647
|
+
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
648
|
+
readonly parallel_tool_calls?: boolean | undefined;
|
|
649
|
+
readonly metadata?: {
|
|
650
|
+
readonly [x: string]: string;
|
|
651
|
+
} | undefined;
|
|
652
|
+
readonly safety_identifier?: string | undefined;
|
|
594
653
|
readonly tool_stream?: boolean | undefined;
|
|
595
654
|
readonly max_completion_tokens?: number | undefined;
|
|
596
655
|
readonly max_tokens?: number | undefined;
|