@opencode/ai 2.0.31 → 2.1.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/dist/ai-client.d.ts +2 -2
- package/dist/experimental/evaluation-client.d.ts +1 -1
- package/dist/experimental/evaluation.d.ts +20 -20
- package/dist/experimental/realtime.d.ts +47 -0
- package/dist/experimental/realtime.js +99 -0
- package/dist/experimental/system-one.d.ts +1 -1
- package/dist/experimental.d.ts +2 -0
- package/dist/experimental.js +1 -0
- package/dist/image-client.d.ts +8 -8
- package/dist/image.d.ts +593 -437
- package/dist/llm.d.ts +51 -51
- package/dist/media-client.d.ts +1 -1
- package/dist/media.d.ts +4 -4
- package/dist/promise.d.ts +199 -198
- package/dist/protocols/alibaba-chat.d.ts +81 -82
- package/dist/protocols/alibaba-chat.js +0 -1
- package/dist/protocols/alibaba-messages.d.ts +99 -99
- package/dist/protocols/alibaba-responses.d.ts +120 -120
- package/dist/protocols/anthropic-messages.d.ts +187 -187
- package/dist/protocols/anthropic-messages.js +3 -2
- package/dist/protocols/assemblyai-transcription.d.ts +1 -1
- package/dist/protocols/bedrock-converse.d.ts +75 -79
- package/dist/protocols/bfl-images.d.ts +1 -1
- package/dist/protocols/cartesia-speech.d.ts +17 -17
- package/dist/protocols/cohere-chat.d.ts +26 -23
- package/dist/protocols/cohere-chat.js +22 -1
- package/dist/protocols/deepgram-speech.d.ts +17 -17
- package/dist/protocols/deepgram-transcription.d.ts +1 -1
- package/dist/protocols/elevenlabs-speech.d.ts +17 -17
- package/dist/protocols/elevenlabs-transcription.d.ts +1 -1
- package/dist/protocols/fal-images.d.ts +1 -1
- package/dist/protocols/fal-video.d.ts +1 -1
- package/dist/protocols/gemini.d.ts +55 -55
- package/dist/protocols/gemini.js +11 -1
- package/dist/protocols/google-images.d.ts +1 -1
- package/dist/protocols/google-interactions.d.ts +64 -62
- package/dist/protocols/google-interactions.js +19 -1
- package/dist/protocols/google-speech.d.ts +17 -17
- package/dist/protocols/google-transcription.d.ts +47 -47
- package/dist/protocols/google-video.d.ts +1 -1
- package/dist/protocols/meta-messages.d.ts +121 -121
- package/dist/protocols/meta-responses.d.ts +201 -201
- package/dist/protocols/mistral-chat.d.ts +45 -45
- package/dist/protocols/open-responses-channel.d.ts +1 -1
- package/dist/protocols/open-responses.d.ts +584 -450
- package/dist/protocols/open-responses.js +27 -35
- package/dist/protocols/openai-chat.d.ts +248 -248
- package/dist/protocols/openai-chat.js +11 -42
- package/dist/protocols/openai-compatible-chat.d.ts +32 -32
- package/dist/protocols/openai-compatible-responses.d.ts +88 -88
- package/dist/protocols/openai-images.d.ts +17 -17
- package/dist/protocols/openai-responses.d.ts +567 -567
- package/dist/protocols/openai-responses.js +1 -1
- package/dist/protocols/openai-speech.d.ts +17 -17
- package/dist/protocols/openai-transcription.d.ts +47 -47
- package/dist/protocols/replicate-images.d.ts +1 -1
- package/dist/protocols/runway-video.d.ts +1 -1
- package/dist/protocols/shared.d.ts +12 -1
- package/dist/protocols/shared.js +17 -1
- package/dist/protocols/stability-images.d.ts +2 -2
- package/dist/protocols/utils/bedrock-cache.d.ts +2 -2
- package/dist/protocols/utils/bedrock-media.d.ts +4 -4
- package/dist/protocols/utils/openai-options.d.ts +1 -1
- package/dist/protocols/utils/speech-stream.d.ts +1 -1
- package/dist/protocols/utils/tool-schema.d.ts +10 -5
- package/dist/protocols/utils/tool-stream.d.ts +152 -152
- package/dist/protocols/venice-chat.d.ts +109 -110
- package/dist/protocols/venice-chat.js +0 -1
- package/dist/protocols/xai-images.d.ts +1 -1
- package/dist/protocols/xai-responses.d.ts +79 -79
- package/dist/protocols/xai-video.d.ts +1 -1
- package/dist/protocols/zai-chat.d.ts +77 -78
- package/dist/protocols/zai-chat.js +0 -1
- package/dist/protocols/zai-images.d.ts +1 -1
- package/dist/protocols/zai-messages.d.ts +97 -97
- package/dist/providers/alibaba.d.ts +222 -283
- package/dist/providers/amazon-bedrock-mantle.d.ts +291 -298
- package/dist/providers/amazon-bedrock.d.ts +22 -28
- package/dist/providers/anthropic-compatible.d.ts +86 -90
- package/dist/providers/anthropic.d.ts +86 -90
- package/dist/providers/assemblyai.d.ts +2 -6
- package/dist/providers/azure.d.ts +228 -238
- package/dist/providers/baseten.d.ts +66 -70
- package/dist/providers/black-forest-labs.d.ts +2 -6
- package/dist/providers/cartesia.d.ts +2 -6
- package/dist/providers/cerebras.d.ts +66 -70
- package/dist/providers/cerebras.js +0 -1
- package/dist/providers/cloudflare-ai-gateway.d.ts +352 -356
- package/dist/providers/cloudflare-workers-ai.d.ts +66 -70
- package/dist/providers/cohere.d.ts +122 -132
- package/dist/providers/cohere.js +0 -2
- package/dist/providers/deepgram.d.ts +2 -7
- package/dist/providers/deepinfra.d.ts +66 -70
- package/dist/providers/deepinfra.js +0 -1
- package/dist/providers/deepseek.d.ts +66 -70
- package/dist/providers/deepseek.js +1 -1
- package/dist/providers/digitalocean.d.ts +137 -141
- package/dist/providers/elevenlabs.d.ts +2 -7
- package/dist/providers/fal.d.ts +2 -7
- package/dist/providers/fireworks.d.ts +66 -70
- package/dist/providers/google-vertex-chat.d.ts +34 -38
- package/dist/providers/google-vertex-interactions.d.ts +31 -41
- package/dist/providers/google-vertex-messages.d.ts +81 -85
- package/dist/providers/google-vertex-mistral.d.ts +23 -27
- package/dist/providers/google-vertex-responses.d.ts +90 -94
- package/dist/providers/google-vertex.d.ts +26 -30
- package/dist/providers/google.d.ts +94 -109
- package/dist/providers/groq.d.ts +111 -115
- package/dist/providers/groq.js +0 -1
- package/dist/providers/meta.d.ts +309 -317
- package/dist/providers/meta.js +1 -1
- package/dist/providers/minimax.d.ts +296 -303
- package/dist/providers/minimax.js +1 -1
- package/dist/providers/mistral.d.ts +22 -26
- package/dist/providers/moonshot.d.ts +296 -303
- package/dist/providers/moonshot.js +0 -1
- package/dist/providers/openai-compatible-responses.d.ts +90 -94
- package/dist/providers/openai-compatible.d.ts +34 -38
- package/dist/providers/openai.d.ts +93 -108
- package/dist/providers/opencode.d.ts +2 -8
- package/dist/providers/openrouter.d.ts +137 -144
- package/dist/providers/replicate.d.ts +2 -6
- package/dist/providers/runway.d.ts +2 -6
- package/dist/providers/stability.d.ts +2 -7
- package/dist/providers/togetherai.d.ts +66 -70
- package/dist/providers/togetherai.js +1 -1
- package/dist/providers/typesafe-ai.d.ts +2 -8
- package/dist/providers/venice.d.ts +58 -63
- package/dist/providers/vercel-ai-gateway.d.ts +2 -12
- package/dist/providers/xai.d.ts +38 -50
- package/dist/providers/zai-coding-plan.d.ts +206 -213
- package/dist/providers/zai.d.ts +40 -46
- package/dist/route/client.d.ts +51 -51
- package/dist/route/media-protocol.d.ts +1 -1
- package/dist/route/transport/http.d.ts +1 -1
- package/dist/route/transport/websocket.d.ts +8 -8
- package/dist/schema/errors.d.ts +19 -19
- package/dist/schema/events.d.ts +3090 -3288
- package/dist/schema/messages.d.ts +8 -7
- package/dist/schema/options.d.ts +2 -1
- package/dist/schema/options.js +2 -1
- package/dist/speech-client.d.ts +8 -8
- package/dist/speech.d.ts +434 -398
- package/dist/testing.d.ts +338 -338
- package/dist/tool-runtime.d.ts +1 -1
- package/dist/transcription-client.d.ts +23 -23
- package/dist/transcription.d.ts +562 -646
- package/dist/utils/sanitize.d.ts +4 -0
- package/dist/utils/sanitize.js +23 -6
- package/dist/video-client.d.ts +8 -8
- package/dist/video.d.ts +416 -372
- package/package.json +6 -6
|
@@ -34,8 +34,203 @@ export type Settings<Options = MessagesOptionsInput> = ProviderPackage.Settings
|
|
|
34
34
|
readonly baseURL?: string;
|
|
35
35
|
};
|
|
36
36
|
export declare const routes: (Route<{
|
|
37
|
-
readonly max_tokens: number;
|
|
38
37
|
readonly model: string;
|
|
38
|
+
readonly input: readonly ({
|
|
39
|
+
readonly [x: string]: unknown;
|
|
40
|
+
readonly type: string;
|
|
41
|
+
readonly id: string;
|
|
42
|
+
} | {
|
|
43
|
+
readonly type: "compaction";
|
|
44
|
+
readonly id?: string | null | undefined;
|
|
45
|
+
readonly encrypted_content: string;
|
|
46
|
+
} | {
|
|
47
|
+
readonly type: "configuration_update";
|
|
48
|
+
readonly reasoning: {
|
|
49
|
+
readonly effort: import("../schema/options.js").ReasoningEffort;
|
|
50
|
+
};
|
|
51
|
+
} | {
|
|
52
|
+
readonly type: "message";
|
|
53
|
+
readonly role: "system";
|
|
54
|
+
readonly content: string;
|
|
55
|
+
} | {
|
|
56
|
+
readonly type: "message";
|
|
57
|
+
readonly role: "developer";
|
|
58
|
+
readonly content: string;
|
|
59
|
+
} | {
|
|
60
|
+
readonly type: "message";
|
|
61
|
+
readonly role: "user";
|
|
62
|
+
readonly content: readonly ({
|
|
63
|
+
readonly type: "input_image";
|
|
64
|
+
readonly image_url: string;
|
|
65
|
+
readonly detail?: string | undefined;
|
|
66
|
+
} | {
|
|
67
|
+
readonly type: "input_file";
|
|
68
|
+
readonly filename: string;
|
|
69
|
+
readonly detail?: string | undefined;
|
|
70
|
+
readonly file_data?: string | undefined;
|
|
71
|
+
readonly file_url?: string | undefined;
|
|
72
|
+
} | {
|
|
73
|
+
readonly type: "input_text";
|
|
74
|
+
readonly text: string;
|
|
75
|
+
})[];
|
|
76
|
+
readonly id?: string | undefined;
|
|
77
|
+
readonly status?: string | undefined;
|
|
78
|
+
} | {
|
|
79
|
+
readonly type: "message";
|
|
80
|
+
readonly id?: string | undefined;
|
|
81
|
+
readonly role: "assistant";
|
|
82
|
+
readonly content: readonly {
|
|
83
|
+
readonly type: "output_text";
|
|
84
|
+
readonly text: string;
|
|
85
|
+
}[];
|
|
86
|
+
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
87
|
+
readonly status?: string | undefined;
|
|
88
|
+
} | {
|
|
89
|
+
readonly type: "reasoning";
|
|
90
|
+
readonly id?: string | undefined;
|
|
91
|
+
readonly summary: readonly {
|
|
92
|
+
readonly type: "summary_text";
|
|
93
|
+
readonly text: string;
|
|
94
|
+
}[];
|
|
95
|
+
readonly encrypted_content?: string | null | undefined;
|
|
96
|
+
} | {
|
|
97
|
+
readonly type: "function_call";
|
|
98
|
+
readonly id?: string | undefined;
|
|
99
|
+
readonly call_id: string;
|
|
100
|
+
readonly name: string;
|
|
101
|
+
readonly namespace?: string | undefined;
|
|
102
|
+
readonly arguments: string;
|
|
103
|
+
} | {
|
|
104
|
+
readonly type: "function_call_output";
|
|
105
|
+
readonly call_id: string;
|
|
106
|
+
readonly output: string | readonly ({
|
|
107
|
+
readonly type: "input_image";
|
|
108
|
+
readonly image_url: string;
|
|
109
|
+
readonly detail?: string | undefined;
|
|
110
|
+
} | {
|
|
111
|
+
readonly type: "input_file";
|
|
112
|
+
readonly filename: string;
|
|
113
|
+
readonly detail?: string | undefined;
|
|
114
|
+
readonly file_data?: string | undefined;
|
|
115
|
+
readonly file_url?: string | undefined;
|
|
116
|
+
} | {
|
|
117
|
+
readonly type: "input_text";
|
|
118
|
+
readonly text: string;
|
|
119
|
+
} | {
|
|
120
|
+
readonly type: "input_video";
|
|
121
|
+
readonly video_url: string;
|
|
122
|
+
})[];
|
|
123
|
+
} | {
|
|
124
|
+
readonly [x: string]: unknown;
|
|
125
|
+
readonly type: "web_search_call";
|
|
126
|
+
readonly id: string;
|
|
127
|
+
readonly status?: string | undefined;
|
|
128
|
+
readonly action?: {
|
|
129
|
+
readonly [x: string]: unknown;
|
|
130
|
+
} | null | undefined;
|
|
131
|
+
} | {
|
|
132
|
+
readonly [x: string]: unknown;
|
|
133
|
+
readonly type: "file_search_call";
|
|
134
|
+
readonly id: string;
|
|
135
|
+
readonly status?: string | undefined;
|
|
136
|
+
readonly queries?: readonly string[] | undefined;
|
|
137
|
+
readonly results?: readonly {
|
|
138
|
+
readonly [x: string]: unknown;
|
|
139
|
+
}[] | null | undefined;
|
|
140
|
+
} | {
|
|
141
|
+
readonly [x: string]: unknown;
|
|
142
|
+
readonly type: "code_interpreter_call";
|
|
143
|
+
readonly id: string;
|
|
144
|
+
readonly status?: string | undefined;
|
|
145
|
+
readonly code?: string | null | undefined;
|
|
146
|
+
readonly container_id?: string | null | undefined;
|
|
147
|
+
readonly outputs?: readonly {
|
|
148
|
+
readonly [x: string]: unknown;
|
|
149
|
+
}[] | null | undefined;
|
|
150
|
+
} | {
|
|
151
|
+
readonly [x: string]: unknown;
|
|
152
|
+
readonly type: "mcp_call";
|
|
153
|
+
readonly id: string;
|
|
154
|
+
readonly status?: string | undefined;
|
|
155
|
+
readonly server_label?: string | undefined;
|
|
156
|
+
readonly name?: string | undefined;
|
|
157
|
+
readonly arguments?: string | undefined;
|
|
158
|
+
readonly output?: string | null | undefined;
|
|
159
|
+
readonly error?: unknown;
|
|
160
|
+
})[];
|
|
161
|
+
readonly instructions?: string | undefined;
|
|
162
|
+
readonly tools?: readonly ({
|
|
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
|
+
} | {
|
|
171
|
+
readonly [x: string]: unknown;
|
|
172
|
+
readonly type: string;
|
|
173
|
+
})[] | undefined;
|
|
174
|
+
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
175
|
+
readonly type: "function";
|
|
176
|
+
readonly name: string;
|
|
177
|
+
} | {
|
|
178
|
+
readonly type: "allowed_tools";
|
|
179
|
+
readonly mode: "auto" | "none" | "required";
|
|
180
|
+
readonly tools: readonly {
|
|
181
|
+
readonly type: "function";
|
|
182
|
+
readonly name: string;
|
|
183
|
+
}[];
|
|
184
|
+
} | undefined;
|
|
185
|
+
readonly store?: boolean | undefined;
|
|
186
|
+
readonly metadata?: {
|
|
187
|
+
readonly [x: string]: string;
|
|
188
|
+
} | undefined;
|
|
189
|
+
readonly safety_identifier?: string | undefined;
|
|
190
|
+
readonly stream_options?: {
|
|
191
|
+
readonly include_obfuscation?: boolean | undefined;
|
|
192
|
+
} | undefined;
|
|
193
|
+
readonly top_logprobs?: number | undefined;
|
|
194
|
+
readonly truncation?: "auto" | "disabled" | undefined;
|
|
195
|
+
readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
|
|
196
|
+
readonly prompt_cache_key?: string | undefined;
|
|
197
|
+
readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
|
|
198
|
+
readonly reasoning?: {
|
|
199
|
+
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
200
|
+
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
201
|
+
} | undefined;
|
|
202
|
+
readonly text?: {
|
|
203
|
+
readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
|
|
204
|
+
} | undefined;
|
|
205
|
+
readonly max_output_tokens?: number | undefined;
|
|
206
|
+
readonly max_tool_calls?: number | undefined;
|
|
207
|
+
readonly parallel_tool_calls?: boolean | undefined;
|
|
208
|
+
readonly temperature?: number | undefined;
|
|
209
|
+
readonly top_p?: number | undefined;
|
|
210
|
+
readonly presence_penalty?: number | undefined;
|
|
211
|
+
readonly frequency_penalty?: number | undefined;
|
|
212
|
+
readonly stream: true;
|
|
213
|
+
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
|
|
214
|
+
readonly context_management?: {
|
|
215
|
+
readonly edits: readonly {
|
|
216
|
+
readonly type: "compact_20260112";
|
|
217
|
+
readonly trigger?: {
|
|
218
|
+
readonly type: "input_tokens";
|
|
219
|
+
readonly value: number;
|
|
220
|
+
} | undefined;
|
|
221
|
+
readonly pause_after_compaction?: boolean | undefined;
|
|
222
|
+
readonly instructions?: string | undefined;
|
|
223
|
+
}[];
|
|
224
|
+
} | undefined;
|
|
225
|
+
readonly model: string;
|
|
226
|
+
readonly system?: readonly {
|
|
227
|
+
readonly type: "text";
|
|
228
|
+
readonly text: string;
|
|
229
|
+
readonly cache_control?: {
|
|
230
|
+
readonly type: "ephemeral";
|
|
231
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
232
|
+
} | undefined;
|
|
233
|
+
}[] | undefined;
|
|
39
234
|
readonly messages: readonly ({
|
|
40
235
|
readonly role: "user";
|
|
41
236
|
readonly content: readonly ({
|
|
@@ -63,7 +258,7 @@ export declare const routes: (Route<{
|
|
|
63
258
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
64
259
|
} | undefined;
|
|
65
260
|
readonly transformations?: {
|
|
66
|
-
readonly oversized_image?: "
|
|
261
|
+
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
67
262
|
} | undefined;
|
|
68
263
|
} | {
|
|
69
264
|
readonly type: "document";
|
|
@@ -82,17 +277,18 @@ export declare const routes: (Route<{
|
|
|
82
277
|
readonly type: "file";
|
|
83
278
|
readonly file_id: string;
|
|
84
279
|
};
|
|
85
|
-
readonly title?: string | undefined;
|
|
86
|
-
readonly context?: string | undefined;
|
|
87
280
|
readonly cache_control?: {
|
|
88
281
|
readonly type: "ephemeral";
|
|
89
282
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
90
283
|
} | undefined;
|
|
284
|
+
readonly title?: string | undefined;
|
|
285
|
+
readonly context?: string | undefined;
|
|
91
286
|
readonly citations?: {
|
|
92
287
|
readonly enabled: boolean;
|
|
93
288
|
} | undefined;
|
|
94
289
|
} | {
|
|
95
290
|
readonly type: "tool_result";
|
|
291
|
+
readonly tool_use_id: string;
|
|
96
292
|
readonly content: string | readonly ({
|
|
97
293
|
readonly type: "text";
|
|
98
294
|
readonly text: string;
|
|
@@ -118,7 +314,7 @@ export declare const routes: (Route<{
|
|
|
118
314
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
119
315
|
} | undefined;
|
|
120
316
|
readonly transformations?: {
|
|
121
|
-
readonly oversized_image?: "
|
|
317
|
+
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
122
318
|
} | undefined;
|
|
123
319
|
} | {
|
|
124
320
|
readonly type: "document";
|
|
@@ -137,22 +333,21 @@ export declare const routes: (Route<{
|
|
|
137
333
|
readonly type: "file";
|
|
138
334
|
readonly file_id: string;
|
|
139
335
|
};
|
|
140
|
-
readonly title?: string | undefined;
|
|
141
|
-
readonly context?: string | undefined;
|
|
142
336
|
readonly cache_control?: {
|
|
143
337
|
readonly type: "ephemeral";
|
|
144
338
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
145
339
|
} | undefined;
|
|
340
|
+
readonly title?: string | undefined;
|
|
341
|
+
readonly context?: string | undefined;
|
|
146
342
|
readonly citations?: {
|
|
147
343
|
readonly enabled: boolean;
|
|
148
344
|
} | undefined;
|
|
149
345
|
})[];
|
|
150
|
-
readonly
|
|
346
|
+
readonly is_error?: boolean | undefined;
|
|
151
347
|
readonly cache_control?: {
|
|
152
348
|
readonly type: "ephemeral";
|
|
153
349
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
154
350
|
} | undefined;
|
|
155
|
-
readonly is_error?: boolean | undefined;
|
|
156
351
|
})[];
|
|
157
352
|
} | {
|
|
158
353
|
readonly role: "assistant";
|
|
@@ -164,51 +359,52 @@ export declare const routes: (Route<{
|
|
|
164
359
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
165
360
|
} | undefined;
|
|
166
361
|
} | {
|
|
167
|
-
readonly
|
|
168
|
-
readonly
|
|
169
|
-
readonly
|
|
170
|
-
readonly input: unknown;
|
|
362
|
+
readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
|
|
363
|
+
readonly tool_use_id: string;
|
|
364
|
+
readonly content: unknown;
|
|
171
365
|
readonly cache_control?: {
|
|
172
366
|
readonly type: "ephemeral";
|
|
173
367
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
174
368
|
} | undefined;
|
|
175
369
|
} | {
|
|
176
|
-
readonly
|
|
177
|
-
readonly
|
|
178
|
-
|
|
179
|
-
readonly
|
|
370
|
+
readonly type: "compaction";
|
|
371
|
+
readonly content: string | null;
|
|
372
|
+
} | {
|
|
373
|
+
readonly type: "thinking";
|
|
374
|
+
readonly thinking: string;
|
|
375
|
+
readonly signature: string;
|
|
180
376
|
readonly cache_control?: {
|
|
181
377
|
readonly type: "ephemeral";
|
|
182
378
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
183
379
|
} | undefined;
|
|
184
380
|
} | {
|
|
185
|
-
readonly type: "
|
|
186
|
-
readonly
|
|
187
|
-
readonly tool_use_id: string;
|
|
381
|
+
readonly type: "redacted_thinking";
|
|
382
|
+
readonly data: string;
|
|
188
383
|
readonly cache_control?: {
|
|
189
384
|
readonly type: "ephemeral";
|
|
190
385
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
191
386
|
} | undefined;
|
|
192
387
|
} | {
|
|
193
|
-
readonly type: "
|
|
194
|
-
readonly
|
|
195
|
-
readonly
|
|
388
|
+
readonly type: "tool_use";
|
|
389
|
+
readonly id: string;
|
|
390
|
+
readonly name: string;
|
|
391
|
+
readonly input: unknown;
|
|
196
392
|
readonly cache_control?: {
|
|
197
393
|
readonly type: "ephemeral";
|
|
198
394
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
199
395
|
} | undefined;
|
|
200
396
|
} | {
|
|
201
|
-
readonly
|
|
202
|
-
readonly
|
|
397
|
+
readonly type: "server_tool_use";
|
|
398
|
+
readonly id: string;
|
|
399
|
+
readonly name: string;
|
|
400
|
+
readonly input: unknown;
|
|
203
401
|
readonly cache_control?: {
|
|
204
402
|
readonly type: "ephemeral";
|
|
205
403
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
206
404
|
} | undefined;
|
|
207
|
-
} | {
|
|
208
|
-
readonly type: "compaction";
|
|
209
|
-
readonly content: string | null;
|
|
210
405
|
})[];
|
|
211
406
|
} | {
|
|
407
|
+
readonly role: "system";
|
|
212
408
|
readonly content: readonly {
|
|
213
409
|
readonly type: "text";
|
|
214
410
|
readonly text: string;
|
|
@@ -217,19 +413,13 @@ export declare const routes: (Route<{
|
|
|
217
413
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
218
414
|
} | undefined;
|
|
219
415
|
}[];
|
|
220
|
-
readonly role: "system";
|
|
221
416
|
readonly output_config?: {
|
|
222
417
|
readonly effort: string;
|
|
223
418
|
} | undefined;
|
|
224
419
|
})[];
|
|
225
|
-
readonly stream: true;
|
|
226
|
-
readonly metadata?: {
|
|
227
|
-
readonly user_id?: string | null | undefined;
|
|
228
|
-
} | undefined;
|
|
229
|
-
readonly temperature?: number | undefined;
|
|
230
420
|
readonly tools?: readonly {
|
|
231
|
-
readonly description: string;
|
|
232
421
|
readonly name: string;
|
|
422
|
+
readonly description: string;
|
|
233
423
|
readonly input_schema: {
|
|
234
424
|
readonly [x: string]: unknown;
|
|
235
425
|
};
|
|
@@ -238,250 +428,60 @@ export declare const routes: (Route<{
|
|
|
238
428
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
239
429
|
} | undefined;
|
|
240
430
|
}[] | undefined;
|
|
241
|
-
readonly
|
|
242
|
-
readonly type: "
|
|
243
|
-
readonly
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
}
|
|
431
|
+
readonly tool_choice?: {
|
|
432
|
+
readonly type: "any" | "auto" | "none";
|
|
433
|
+
readonly disable_parallel_tool_use?: boolean | undefined;
|
|
434
|
+
} | {
|
|
435
|
+
readonly type: "tool";
|
|
436
|
+
readonly name: string;
|
|
437
|
+
readonly disable_parallel_tool_use?: boolean | undefined;
|
|
438
|
+
} | undefined;
|
|
439
|
+
readonly stream: true;
|
|
440
|
+
readonly max_tokens: number;
|
|
441
|
+
readonly temperature?: number | undefined;
|
|
442
|
+
readonly top_p?: number | undefined;
|
|
443
|
+
readonly top_k?: number | undefined;
|
|
444
|
+
readonly stop_sequences?: readonly string[] | undefined;
|
|
249
445
|
readonly thinking?: {
|
|
250
|
-
readonly
|
|
251
|
-
readonly budget_tokens: number;
|
|
252
|
-
readonly display?: import("../schema/options.js").OpenString<"summarized" | "omitted"> | undefined;
|
|
446
|
+
readonly display?: import("../schema/options.js").OpenString<"omitted" | "summarized"> | undefined;
|
|
253
447
|
readonly block_binding?: {
|
|
254
|
-
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"
|
|
448
|
+
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"drop_block" | "error"> | undefined;
|
|
255
449
|
} | undefined;
|
|
450
|
+
readonly type: "enabled";
|
|
451
|
+
readonly budget_tokens: number;
|
|
256
452
|
} | {
|
|
257
|
-
readonly
|
|
258
|
-
readonly display?: import("../schema/options.js").OpenString<"summarized" | "omitted"> | undefined;
|
|
453
|
+
readonly display?: import("../schema/options.js").OpenString<"omitted" | "summarized"> | undefined;
|
|
259
454
|
readonly block_binding?: {
|
|
260
|
-
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"
|
|
455
|
+
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"drop_block" | "error"> | undefined;
|
|
261
456
|
} | undefined;
|
|
457
|
+
readonly type: "adaptive";
|
|
262
458
|
} | {
|
|
263
|
-
readonly type: "
|
|
264
|
-
} | undefined;
|
|
265
|
-
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
|
|
266
|
-
readonly container?: string | {
|
|
267
|
-
readonly id?: string | null | undefined;
|
|
268
|
-
readonly skills?: readonly {
|
|
269
|
-
readonly [x: string]: unknown;
|
|
270
|
-
}[] | null | undefined;
|
|
271
|
-
} | null | undefined;
|
|
272
|
-
readonly inference_geo?: string | null | undefined;
|
|
273
|
-
readonly cache_control?: {
|
|
274
|
-
readonly type: "ephemeral";
|
|
275
|
-
readonly ttl?: "1h" | "5m" | undefined;
|
|
459
|
+
readonly type: "between_tools" | "disabled";
|
|
276
460
|
} | undefined;
|
|
277
461
|
readonly output_config?: {
|
|
462
|
+
readonly effort?: string | undefined;
|
|
278
463
|
readonly format?: {
|
|
279
464
|
readonly type: "json_schema";
|
|
280
465
|
readonly schema: {
|
|
281
466
|
readonly [x: string]: unknown;
|
|
282
467
|
};
|
|
283
468
|
} | null | undefined;
|
|
284
|
-
readonly effort?: string | undefined;
|
|
285
|
-
} | undefined;
|
|
286
|
-
readonly context_management?: {
|
|
287
|
-
readonly edits: readonly {
|
|
288
|
-
readonly type: "compact_20260112";
|
|
289
|
-
readonly instructions?: string | undefined;
|
|
290
|
-
readonly trigger?: {
|
|
291
|
-
readonly type: "input_tokens";
|
|
292
|
-
readonly value: number;
|
|
293
|
-
} | undefined;
|
|
294
|
-
readonly pause_after_compaction?: boolean | undefined;
|
|
295
|
-
}[];
|
|
296
469
|
} | undefined;
|
|
297
|
-
readonly
|
|
298
|
-
readonly type: "
|
|
299
|
-
readonly
|
|
300
|
-
} | {
|
|
301
|
-
readonly type: "tool";
|
|
302
|
-
readonly name: string;
|
|
303
|
-
readonly disable_parallel_tool_use?: boolean | undefined;
|
|
470
|
+
readonly cache_control?: {
|
|
471
|
+
readonly type: "ephemeral";
|
|
472
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
304
473
|
} | undefined;
|
|
305
|
-
readonly
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
|
|
309
|
-
readonly input: readonly ({
|
|
310
|
-
readonly [x: string]: unknown;
|
|
311
|
-
readonly id: string;
|
|
312
|
-
readonly type: "web_search_call";
|
|
313
|
-
readonly status?: string | undefined;
|
|
314
|
-
readonly action?: {
|
|
315
|
-
readonly [x: string]: unknown;
|
|
316
|
-
} | null | undefined;
|
|
317
|
-
} | {
|
|
318
|
-
readonly [x: string]: unknown;
|
|
319
|
-
readonly id: string;
|
|
320
|
-
readonly type: "file_search_call";
|
|
321
|
-
readonly status?: string | undefined;
|
|
322
|
-
readonly queries?: readonly string[] | undefined;
|
|
323
|
-
readonly results?: readonly {
|
|
324
|
-
readonly [x: string]: unknown;
|
|
325
|
-
}[] | null | undefined;
|
|
326
|
-
} | {
|
|
327
|
-
readonly [x: string]: unknown;
|
|
328
|
-
readonly id: string;
|
|
329
|
-
readonly type: "code_interpreter_call";
|
|
330
|
-
readonly status?: string | undefined;
|
|
331
|
-
readonly code?: string | null | undefined;
|
|
332
|
-
readonly container_id?: string | null | undefined;
|
|
333
|
-
readonly outputs?: readonly {
|
|
474
|
+
readonly container?: string | {
|
|
475
|
+
readonly id?: string | null | undefined;
|
|
476
|
+
readonly skills?: readonly {
|
|
334
477
|
readonly [x: string]: unknown;
|
|
335
478
|
}[] | null | undefined;
|
|
336
|
-
} |
|
|
337
|
-
|
|
338
|
-
readonly id: string;
|
|
339
|
-
readonly type: "mcp_call";
|
|
340
|
-
readonly status?: string | undefined;
|
|
341
|
-
readonly name?: string | undefined;
|
|
342
|
-
readonly output?: string | null | undefined;
|
|
343
|
-
readonly error?: unknown;
|
|
344
|
-
readonly arguments?: string | undefined;
|
|
345
|
-
readonly server_label?: string | undefined;
|
|
346
|
-
} | {
|
|
347
|
-
readonly type: "configuration_update";
|
|
348
|
-
readonly reasoning: {
|
|
349
|
-
readonly effort: import("../schema/options.js").ReasoningEffort;
|
|
350
|
-
};
|
|
351
|
-
} | {
|
|
352
|
-
readonly [x: string]: unknown;
|
|
353
|
-
readonly type: string;
|
|
354
|
-
readonly id: string;
|
|
355
|
-
} | {
|
|
356
|
-
readonly type: "reasoning";
|
|
357
|
-
readonly summary: readonly {
|
|
358
|
-
readonly type: "summary_text";
|
|
359
|
-
readonly text: string;
|
|
360
|
-
}[];
|
|
361
|
-
readonly id?: string | undefined;
|
|
362
|
-
readonly encrypted_content?: string | null | undefined;
|
|
363
|
-
} | {
|
|
364
|
-
readonly type: "compaction";
|
|
365
|
-
readonly encrypted_content: string;
|
|
366
|
-
readonly id?: string | null | undefined;
|
|
367
|
-
} | {
|
|
368
|
-
readonly type: "message";
|
|
369
|
-
readonly role: "system";
|
|
370
|
-
readonly content: string;
|
|
371
|
-
} | {
|
|
372
|
-
readonly type: "message";
|
|
373
|
-
readonly role: "developer";
|
|
374
|
-
readonly content: string;
|
|
375
|
-
} | {
|
|
376
|
-
readonly type: "message";
|
|
377
|
-
readonly content: readonly ({
|
|
378
|
-
readonly type: "input_image";
|
|
379
|
-
readonly image_url: string;
|
|
380
|
-
readonly detail?: string | undefined;
|
|
381
|
-
} | {
|
|
382
|
-
readonly type: "input_file";
|
|
383
|
-
readonly filename: string;
|
|
384
|
-
readonly detail?: string | undefined;
|
|
385
|
-
readonly file_data?: string | undefined;
|
|
386
|
-
readonly file_url?: string | undefined;
|
|
387
|
-
} | {
|
|
388
|
-
readonly type: "input_text";
|
|
389
|
-
readonly text: string;
|
|
390
|
-
})[];
|
|
391
|
-
readonly role: "user";
|
|
392
|
-
readonly id?: string | undefined;
|
|
393
|
-
readonly status?: string | undefined;
|
|
394
|
-
} | {
|
|
395
|
-
readonly type: "message";
|
|
396
|
-
readonly content: readonly {
|
|
397
|
-
readonly type: "output_text";
|
|
398
|
-
readonly text: string;
|
|
399
|
-
}[];
|
|
400
|
-
readonly role: "assistant";
|
|
401
|
-
readonly id?: string | undefined;
|
|
402
|
-
readonly status?: string | undefined;
|
|
403
|
-
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
404
|
-
} | {
|
|
405
|
-
readonly type: "function_call";
|
|
406
|
-
readonly name: string;
|
|
407
|
-
readonly arguments: string;
|
|
408
|
-
readonly call_id: string;
|
|
409
|
-
readonly id?: string | undefined;
|
|
410
|
-
readonly namespace?: string | undefined;
|
|
411
|
-
} | {
|
|
412
|
-
readonly type: "function_call_output";
|
|
413
|
-
readonly call_id: string;
|
|
414
|
-
readonly output: string | readonly ({
|
|
415
|
-
readonly type: "input_image";
|
|
416
|
-
readonly image_url: string;
|
|
417
|
-
readonly detail?: string | undefined;
|
|
418
|
-
} | {
|
|
419
|
-
readonly type: "input_file";
|
|
420
|
-
readonly filename: string;
|
|
421
|
-
readonly detail?: string | undefined;
|
|
422
|
-
readonly file_data?: string | undefined;
|
|
423
|
-
readonly file_url?: string | undefined;
|
|
424
|
-
} | {
|
|
425
|
-
readonly type: "input_text";
|
|
426
|
-
readonly text: string;
|
|
427
|
-
} | {
|
|
428
|
-
readonly type: "input_video";
|
|
429
|
-
readonly video_url: string;
|
|
430
|
-
})[];
|
|
431
|
-
})[];
|
|
432
|
-
readonly model: string;
|
|
433
|
-
readonly stream: true;
|
|
479
|
+
} | null | undefined;
|
|
480
|
+
readonly inference_geo?: string | null | undefined;
|
|
434
481
|
readonly metadata?: {
|
|
435
|
-
readonly
|
|
436
|
-
} | undefined;
|
|
437
|
-
readonly instructions?: string | undefined;
|
|
438
|
-
readonly reasoning?: {
|
|
439
|
-
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
440
|
-
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
441
|
-
} | undefined;
|
|
442
|
-
readonly temperature?: number | undefined;
|
|
443
|
-
readonly tools?: readonly ({
|
|
444
|
-
readonly [x: string]: unknown;
|
|
445
|
-
readonly type: string;
|
|
446
|
-
} | {
|
|
447
|
-
readonly type: "function";
|
|
448
|
-
readonly description: string;
|
|
449
|
-
readonly name: string;
|
|
450
|
-
readonly parameters: {
|
|
451
|
-
readonly [x: string]: unknown;
|
|
452
|
-
};
|
|
453
|
-
readonly strict?: boolean | undefined;
|
|
454
|
-
})[] | undefined;
|
|
455
|
-
readonly text?: {
|
|
456
|
-
readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
|
|
457
|
-
} | undefined;
|
|
458
|
-
readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
|
|
459
|
-
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
460
|
-
readonly type: "function";
|
|
461
|
-
readonly name: string;
|
|
462
|
-
} | {
|
|
463
|
-
readonly type: "allowed_tools";
|
|
464
|
-
readonly mode: "required" | "auto" | "none";
|
|
465
|
-
readonly tools: readonly {
|
|
466
|
-
readonly type: "function";
|
|
467
|
-
readonly name: string;
|
|
468
|
-
}[];
|
|
469
|
-
} | undefined;
|
|
470
|
-
readonly top_p?: number | undefined;
|
|
471
|
-
readonly frequency_penalty?: number | undefined;
|
|
472
|
-
readonly presence_penalty?: number | undefined;
|
|
473
|
-
readonly store?: boolean | undefined;
|
|
474
|
-
readonly max_output_tokens?: number | undefined;
|
|
475
|
-
readonly prompt_cache_key?: string | undefined;
|
|
476
|
-
readonly parallel_tool_calls?: boolean | undefined;
|
|
477
|
-
readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
|
|
478
|
-
readonly truncation?: "auto" | "disabled" | undefined;
|
|
479
|
-
readonly stream_options?: {
|
|
480
|
-
readonly include_obfuscation?: boolean | undefined;
|
|
482
|
+
readonly user_id?: string | null | undefined;
|
|
481
483
|
} | undefined;
|
|
482
|
-
readonly
|
|
483
|
-
readonly top_logprobs?: number | undefined;
|
|
484
|
-
readonly max_tool_calls?: number | undefined;
|
|
484
|
+
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
|
|
485
485
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
|
|
486
486
|
readonly model: string;
|
|
487
487
|
readonly messages: readonly ({
|
|
@@ -526,8 +526,20 @@ export declare const routes: (Route<{
|
|
|
526
526
|
readonly file_data: string;
|
|
527
527
|
};
|
|
528
528
|
})[];
|
|
529
|
+
} | {
|
|
530
|
+
readonly role: "tool";
|
|
531
|
+
readonly tool_call_id: string;
|
|
532
|
+
readonly content: string | readonly {
|
|
533
|
+
readonly type: "text";
|
|
534
|
+
readonly text: string;
|
|
535
|
+
readonly cache_control?: {
|
|
536
|
+
readonly type: "ephemeral";
|
|
537
|
+
readonly ttl?: string | undefined;
|
|
538
|
+
} | undefined;
|
|
539
|
+
}[];
|
|
529
540
|
} | {
|
|
530
541
|
readonly [x: string]: unknown;
|
|
542
|
+
readonly role: "assistant";
|
|
531
543
|
readonly content: string | readonly {
|
|
532
544
|
readonly type: "text";
|
|
533
545
|
readonly text: string;
|
|
@@ -536,77 +548,65 @@ export declare const routes: (Route<{
|
|
|
536
548
|
readonly ttl?: string | undefined;
|
|
537
549
|
} | undefined;
|
|
538
550
|
}[] | null;
|
|
539
|
-
readonly role: "assistant";
|
|
540
|
-
readonly reasoning?: string | undefined;
|
|
541
|
-
readonly reasoning_content?: string | undefined;
|
|
542
|
-
readonly reasoning_text?: string | undefined;
|
|
543
551
|
readonly tool_calls?: readonly {
|
|
552
|
+
readonly id: string;
|
|
553
|
+
readonly type: "function";
|
|
544
554
|
readonly function: {
|
|
545
555
|
readonly name: string;
|
|
546
556
|
readonly arguments: string;
|
|
547
557
|
};
|
|
548
|
-
readonly id: string;
|
|
549
|
-
readonly type: "function";
|
|
550
558
|
readonly extra_content?: {
|
|
551
559
|
readonly google: {
|
|
552
560
|
readonly thought_signature: string;
|
|
553
561
|
};
|
|
554
562
|
} | undefined;
|
|
555
563
|
}[] | undefined;
|
|
564
|
+
readonly reasoning_content?: string | undefined;
|
|
565
|
+
readonly reasoning?: string | undefined;
|
|
566
|
+
readonly reasoning_text?: string | undefined;
|
|
556
567
|
readonly reasoning_details?: unknown;
|
|
557
|
-
} | {
|
|
558
|
-
readonly role: "tool";
|
|
559
|
-
readonly tool_call_id: string;
|
|
560
|
-
readonly content: string | readonly {
|
|
561
|
-
readonly type: "text";
|
|
562
|
-
readonly text: string;
|
|
563
|
-
readonly cache_control?: {
|
|
564
|
-
readonly type: "ephemeral";
|
|
565
|
-
readonly ttl?: string | undefined;
|
|
566
|
-
} | undefined;
|
|
567
|
-
}[];
|
|
568
568
|
})[];
|
|
569
|
-
readonly stream: true;
|
|
570
|
-
readonly reasoning_split: boolean;
|
|
571
|
-
readonly max_completion_tokens?: number | undefined;
|
|
572
|
-
readonly max_tokens?: number | undefined;
|
|
573
|
-
readonly temperature?: number | undefined;
|
|
574
569
|
readonly tools?: readonly {
|
|
570
|
+
readonly type: "function";
|
|
575
571
|
readonly function: {
|
|
576
|
-
readonly description: string;
|
|
577
572
|
readonly name: string;
|
|
573
|
+
readonly description: string;
|
|
578
574
|
readonly parameters: {
|
|
579
575
|
readonly [x: string]: unknown;
|
|
580
576
|
};
|
|
581
577
|
readonly strict?: boolean | undefined;
|
|
582
578
|
};
|
|
583
|
-
readonly type: "function";
|
|
584
579
|
readonly cache_control?: {
|
|
585
580
|
readonly type: "ephemeral";
|
|
586
581
|
readonly ttl?: string | undefined;
|
|
587
582
|
} | undefined;
|
|
588
583
|
}[] | undefined;
|
|
589
|
-
readonly
|
|
590
|
-
readonly seed?: number | undefined;
|
|
591
|
-
readonly thinking?: {
|
|
592
|
-
readonly type: string;
|
|
593
|
-
} | undefined;
|
|
594
|
-
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
584
|
+
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
595
585
|
readonly type: "function";
|
|
596
586
|
readonly function: {
|
|
597
587
|
readonly name: string;
|
|
598
588
|
};
|
|
599
589
|
} | undefined;
|
|
600
|
-
readonly
|
|
601
|
-
readonly frequency_penalty?: number | undefined;
|
|
602
|
-
readonly presence_penalty?: number | undefined;
|
|
603
|
-
readonly store?: boolean | undefined;
|
|
604
|
-
readonly prompt_cache_key?: string | undefined;
|
|
605
|
-
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
590
|
+
readonly stream: true;
|
|
606
591
|
readonly stream_options?: {
|
|
607
592
|
readonly include_usage: boolean;
|
|
608
593
|
} | undefined;
|
|
594
|
+
readonly store?: boolean | undefined;
|
|
595
|
+
readonly prompt_cache_key?: string | undefined;
|
|
596
|
+
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
609
597
|
readonly tool_stream?: boolean | undefined;
|
|
598
|
+
readonly max_completion_tokens?: number | undefined;
|
|
599
|
+
readonly max_tokens?: number | undefined;
|
|
600
|
+
readonly temperature?: number | undefined;
|
|
601
|
+
readonly top_p?: number | undefined;
|
|
602
|
+
readonly frequency_penalty?: number | undefined;
|
|
603
|
+
readonly presence_penalty?: number | undefined;
|
|
604
|
+
readonly seed?: number | undefined;
|
|
605
|
+
readonly stop?: readonly string[] | undefined;
|
|
606
|
+
readonly thinking?: {
|
|
607
|
+
readonly type: string;
|
|
608
|
+
} | undefined;
|
|
609
|
+
readonly reasoning_split: boolean;
|
|
610
610
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>)[];
|
|
611
611
|
export declare const configure: (input?: Config) => {
|
|
612
612
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
@@ -614,7 +614,7 @@ export declare const configure: (input?: Config) => {
|
|
|
614
614
|
messages: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<MessagesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
615
615
|
chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<ChatOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
616
616
|
responses: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<ResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
617
|
-
configure:
|
|
617
|
+
configure: typeof configure;
|
|
618
618
|
};
|
|
619
619
|
export declare const provider: {
|
|
620
620
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
@@ -622,14 +622,7 @@ export declare const provider: {
|
|
|
622
622
|
messages: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<MessagesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
623
623
|
chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<ChatOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
624
624
|
responses: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<ResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
625
|
-
configure:
|
|
626
|
-
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
627
|
-
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<MessagesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
628
|
-
messages: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<MessagesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
629
|
-
chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<ChatOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
630
|
-
responses: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<ResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
631
|
-
configure: /*elided*/ any;
|
|
632
|
-
};
|
|
625
|
+
configure: typeof configure;
|
|
633
626
|
};
|
|
634
627
|
export declare const model: ProviderPackage.Definition<Settings<MessagesOptionsInput>, MessagesOptionsInput>["model"];
|
|
635
628
|
export declare const messages: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<MessagesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|