@opencode/ai 2.1.3 → 2.1.4
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/experimental/evaluation.js +3 -10
- package/dist/image-client.d.ts +8 -8
- package/dist/image.d.ts +148 -148
- package/dist/promise.d.ts +120 -120
- package/dist/protocols/alibaba-chat.d.ts +12 -12
- package/dist/protocols/alibaba-messages.d.ts +11 -11
- package/dist/protocols/alibaba-responses.d.ts +35 -35
- package/dist/protocols/anthropic-messages.d.ts +40 -44
- package/dist/protocols/anthropic-messages.js +3 -3
- package/dist/protocols/bedrock-converse.d.ts +30 -32
- package/dist/protocols/bedrock-converse.js +2 -3
- package/dist/protocols/cartesia-speech.d.ts +32 -32
- package/dist/protocols/cohere-chat.d.ts +7 -8
- package/dist/protocols/deepgram-speech.d.ts +32 -32
- package/dist/protocols/elevenlabs-speech.d.ts +32 -32
- package/dist/protocols/gemini.d.ts +34 -34
- package/dist/protocols/gemini.js +2 -2
- package/dist/protocols/google-interactions.d.ts +14 -14
- package/dist/protocols/google-interactions.js +2 -2
- package/dist/protocols/google-speech.d.ts +32 -32
- package/dist/protocols/google-transcription.d.ts +32 -32
- package/dist/protocols/meta-messages.d.ts +23 -23
- package/dist/protocols/meta-responses.d.ts +78 -78
- 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 +398 -398
- package/dist/protocols/open-responses.js +8 -7
- package/dist/protocols/openai-chat.d.ts +60 -60
- package/dist/protocols/openai-chat.js +3 -3
- package/dist/protocols/openai-compatible-chat.d.ts +13 -14
- package/dist/protocols/openai-compatible-responses.d.ts +36 -37
- package/dist/protocols/openai-images.d.ts +32 -32
- package/dist/protocols/openai-responses.d.ts +235 -235
- package/dist/protocols/openai-responses.js +1 -1
- package/dist/protocols/openai-speech.d.ts +32 -32
- package/dist/protocols/openai-transcription.d.ts +32 -32
- package/dist/protocols/openai-transcription.js +12 -7
- 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/tool-stream.d.ts +1 -1
- package/dist/protocols/venice-chat.d.ts +52 -53
- package/dist/protocols/venice-chat.js +6 -5
- package/dist/protocols/xai-responses.d.ts +78 -78
- package/dist/protocols/zai-chat.d.ts +33 -30
- package/dist/protocols/zai-chat.js +8 -3
- package/dist/protocols/zai-messages.d.ts +21 -19
- package/dist/protocols/zai-messages.js +3 -2
- package/dist/provider-error.js +5 -3
- package/dist/providers/alibaba.d.ts +69 -69
- package/dist/providers/amazon-bedrock-mantle.d.ts +202 -202
- package/dist/providers/amazon-bedrock.d.ts +15 -15
- package/dist/providers/anthropic-compatible.d.ts +13 -13
- package/dist/providers/anthropic.d.ts +13 -13
- package/dist/providers/azure.d.ts +106 -106
- package/dist/providers/baseten.d.ts +24 -24
- package/dist/providers/cerebras.d.ts +24 -24
- package/dist/providers/cloudflare-ai-gateway.d.ts +230 -227
- package/dist/providers/cloudflare-ai-gateway.js +1 -2
- package/dist/providers/cloudflare-workers-ai.d.ts +24 -24
- package/dist/providers/cohere.d.ts +75 -75
- package/dist/providers/deepinfra.d.ts +24 -24
- package/dist/providers/deepseek.d.ts +24 -24
- package/dist/providers/digitalocean.d.ts +36 -36
- package/dist/providers/fireworks.d.ts +24 -24
- package/dist/providers/google-vertex-chat.d.ts +12 -12
- package/dist/providers/google-vertex-messages.d.ts +13 -13
- package/dist/providers/google-vertex-mistral.d.ts +17 -17
- package/dist/providers/google-vertex-responses.d.ts +35 -35
- package/dist/providers/google-vertex.d.ts +17 -17
- package/dist/providers/google-vertex.js +2 -2
- package/dist/providers/google.d.ts +17 -17
- package/dist/providers/groq.d.ts +24 -24
- package/dist/providers/meta.d.ts +179 -179
- package/dist/providers/minimax.d.ts +71 -71
- package/dist/providers/mistral.d.ts +28 -28
- package/dist/providers/moonshot.d.ts +202 -202
- package/dist/providers/open-responses-options.d.ts +0 -1
- package/dist/providers/open-responses-options.js +1 -1
- package/dist/providers/openai-compatible-responses.d.ts +35 -35
- package/dist/providers/openai-compatible.d.ts +12 -12
- package/dist/providers/openai-compatible.js +1 -1
- package/dist/providers/openai-options.d.ts +0 -1
- package/dist/providers/openai-options.js +0 -1
- package/dist/providers/openai.d.ts +100 -100
- package/dist/providers/openrouter.d.ts +36 -36
- package/dist/providers/togetherai.d.ts +24 -24
- package/dist/providers/venice.d.ts +195 -20
- package/dist/providers/xai.d.ts +12 -12
- package/dist/providers/zai-coding-plan.d.ts +149 -69
- package/dist/providers/zai.d.ts +84 -19
- 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 +0 -2
- package/dist/route/client.js +3 -4
- package/dist/route/executor-service.js +1 -1
- package/dist/speech-client.d.ts +8 -8
- package/dist/speech.d.ts +148 -148
- package/dist/transcription-client.d.ts +8 -8
- package/dist/transcription.d.ts +148 -148
- package/dist/video-client.d.ts +8 -8
- package/dist/video.d.ts +114 -114
- package/package.json +6 -5
|
@@ -19,13 +19,6 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
19
19
|
readonly messages: readonly ({
|
|
20
20
|
readonly role: "system";
|
|
21
21
|
readonly content: string | readonly ({
|
|
22
|
-
readonly type: "text";
|
|
23
|
-
readonly text: string;
|
|
24
|
-
readonly cache_control?: {
|
|
25
|
-
readonly type: "ephemeral";
|
|
26
|
-
readonly ttl?: string | undefined;
|
|
27
|
-
} | undefined;
|
|
28
|
-
} | {
|
|
29
22
|
readonly type: "image_url";
|
|
30
23
|
readonly image_url: {
|
|
31
24
|
readonly url: string;
|
|
@@ -36,17 +29,17 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
36
29
|
readonly filename: string;
|
|
37
30
|
readonly file_data: string;
|
|
38
31
|
};
|
|
39
|
-
}
|
|
40
|
-
} | {
|
|
41
|
-
readonly role: "user";
|
|
42
|
-
readonly content: string | readonly ({
|
|
32
|
+
} | {
|
|
43
33
|
readonly type: "text";
|
|
44
34
|
readonly text: string;
|
|
45
35
|
readonly cache_control?: {
|
|
46
36
|
readonly type: "ephemeral";
|
|
47
37
|
readonly ttl?: string | undefined;
|
|
48
38
|
} | undefined;
|
|
49
|
-
}
|
|
39
|
+
})[];
|
|
40
|
+
} | {
|
|
41
|
+
readonly role: "user";
|
|
42
|
+
readonly content: string | readonly ({
|
|
50
43
|
readonly type: "image_url";
|
|
51
44
|
readonly image_url: {
|
|
52
45
|
readonly url: string;
|
|
@@ -57,6 +50,13 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
57
50
|
readonly filename: string;
|
|
58
51
|
readonly file_data: string;
|
|
59
52
|
};
|
|
53
|
+
} | {
|
|
54
|
+
readonly type: "text";
|
|
55
|
+
readonly text: string;
|
|
56
|
+
readonly cache_control?: {
|
|
57
|
+
readonly type: "ephemeral";
|
|
58
|
+
readonly ttl?: string | undefined;
|
|
59
|
+
} | undefined;
|
|
60
60
|
})[];
|
|
61
61
|
} | {
|
|
62
62
|
readonly role: "tool";
|
|
@@ -14,13 +14,6 @@ export declare const routes: (Route<{
|
|
|
14
14
|
readonly messages: readonly ({
|
|
15
15
|
readonly role: "system";
|
|
16
16
|
readonly content: string | readonly ({
|
|
17
|
-
readonly type: "text";
|
|
18
|
-
readonly text: string;
|
|
19
|
-
readonly cache_control?: {
|
|
20
|
-
readonly type: "ephemeral";
|
|
21
|
-
readonly ttl?: string | undefined;
|
|
22
|
-
} | undefined;
|
|
23
|
-
} | {
|
|
24
17
|
readonly type: "image_url";
|
|
25
18
|
readonly image_url: {
|
|
26
19
|
readonly url: string;
|
|
@@ -31,17 +24,17 @@ export declare const routes: (Route<{
|
|
|
31
24
|
readonly filename: string;
|
|
32
25
|
readonly file_data: string;
|
|
33
26
|
};
|
|
34
|
-
}
|
|
35
|
-
} | {
|
|
36
|
-
readonly role: "user";
|
|
37
|
-
readonly content: string | readonly ({
|
|
27
|
+
} | {
|
|
38
28
|
readonly type: "text";
|
|
39
29
|
readonly text: string;
|
|
40
30
|
readonly cache_control?: {
|
|
41
31
|
readonly type: "ephemeral";
|
|
42
32
|
readonly ttl?: string | undefined;
|
|
43
33
|
} | undefined;
|
|
44
|
-
}
|
|
34
|
+
})[];
|
|
35
|
+
} | {
|
|
36
|
+
readonly role: "user";
|
|
37
|
+
readonly content: string | readonly ({
|
|
45
38
|
readonly type: "image_url";
|
|
46
39
|
readonly image_url: {
|
|
47
40
|
readonly url: string;
|
|
@@ -52,6 +45,13 @@ export declare const routes: (Route<{
|
|
|
52
45
|
readonly filename: string;
|
|
53
46
|
readonly file_data: string;
|
|
54
47
|
};
|
|
48
|
+
} | {
|
|
49
|
+
readonly type: "text";
|
|
50
|
+
readonly text: string;
|
|
51
|
+
readonly cache_control?: {
|
|
52
|
+
readonly type: "ephemeral";
|
|
53
|
+
readonly ttl?: string | undefined;
|
|
54
|
+
} | undefined;
|
|
55
55
|
})[];
|
|
56
56
|
} | {
|
|
57
57
|
readonly role: "tool";
|
|
@@ -133,55 +133,10 @@ export declare const routes: (Route<{
|
|
|
133
133
|
}, import("../route/transport/http.js").HttpPrepared<string>, CompactionOperations | undefined> | Route<{
|
|
134
134
|
readonly model: string;
|
|
135
135
|
readonly input: readonly ({
|
|
136
|
-
readonly [x: string]: unknown;
|
|
137
|
-
readonly type: "web_search_call";
|
|
138
|
-
readonly id: string;
|
|
139
|
-
readonly status?: string | undefined;
|
|
140
|
-
readonly action?: {
|
|
141
|
-
readonly [x: string]: unknown;
|
|
142
|
-
} | null | undefined;
|
|
143
|
-
} | {
|
|
144
|
-
readonly [x: string]: unknown;
|
|
145
|
-
readonly type: "file_search_call";
|
|
146
|
-
readonly id: string;
|
|
147
|
-
readonly status?: string | undefined;
|
|
148
|
-
readonly queries?: readonly string[] | undefined;
|
|
149
|
-
readonly results?: readonly {
|
|
150
|
-
readonly [x: string]: unknown;
|
|
151
|
-
}[] | null | undefined;
|
|
152
|
-
} | {
|
|
153
|
-
readonly [x: string]: unknown;
|
|
154
|
-
readonly type: "code_interpreter_call";
|
|
155
|
-
readonly id: string;
|
|
156
|
-
readonly status?: string | undefined;
|
|
157
|
-
readonly code?: string | null | undefined;
|
|
158
|
-
readonly container_id?: string | null | undefined;
|
|
159
|
-
readonly outputs?: readonly {
|
|
160
|
-
readonly [x: string]: unknown;
|
|
161
|
-
}[] | null | undefined;
|
|
162
|
-
} | {
|
|
163
|
-
readonly [x: string]: unknown;
|
|
164
|
-
readonly type: "mcp_call";
|
|
165
|
-
readonly id: string;
|
|
166
|
-
readonly status?: string | undefined;
|
|
167
|
-
readonly server_label?: string | undefined;
|
|
168
|
-
readonly name?: string | undefined;
|
|
169
|
-
readonly arguments?: string | undefined;
|
|
170
|
-
readonly output?: string | null | undefined;
|
|
171
|
-
readonly error?: unknown;
|
|
172
|
-
} | {
|
|
173
136
|
readonly type: "configuration_update";
|
|
174
137
|
readonly reasoning: {
|
|
175
138
|
readonly effort: import("../schema/options.js").ReasoningEffort;
|
|
176
139
|
};
|
|
177
|
-
} | {
|
|
178
|
-
readonly [x: string]: unknown;
|
|
179
|
-
readonly type: string;
|
|
180
|
-
readonly id: string;
|
|
181
|
-
} | {
|
|
182
|
-
readonly type: "compaction";
|
|
183
|
-
readonly id?: string | null | undefined;
|
|
184
|
-
readonly encrypted_content: string;
|
|
185
140
|
} | {
|
|
186
141
|
readonly type: "message";
|
|
187
142
|
readonly role: "system";
|
|
@@ -190,10 +145,45 @@ export declare const routes: (Route<{
|
|
|
190
145
|
readonly type: "message";
|
|
191
146
|
readonly role: "developer";
|
|
192
147
|
readonly content: string;
|
|
148
|
+
} | {
|
|
149
|
+
readonly type: "function_call_output";
|
|
150
|
+
readonly call_id: string;
|
|
151
|
+
readonly output: string | readonly ({
|
|
152
|
+
readonly type: "input_text";
|
|
153
|
+
readonly text: string;
|
|
154
|
+
} | {
|
|
155
|
+
readonly type: "input_video";
|
|
156
|
+
readonly video_url: string;
|
|
157
|
+
} | {
|
|
158
|
+
readonly type: "input_image";
|
|
159
|
+
readonly image_url: string;
|
|
160
|
+
readonly detail?: string | undefined;
|
|
161
|
+
} | {
|
|
162
|
+
readonly type: "input_file";
|
|
163
|
+
readonly filename: string;
|
|
164
|
+
readonly detail?: string | undefined;
|
|
165
|
+
readonly file_data?: string | undefined;
|
|
166
|
+
readonly file_url?: string | undefined;
|
|
167
|
+
})[];
|
|
168
|
+
} | {
|
|
169
|
+
readonly type: "reasoning";
|
|
170
|
+
readonly id?: string | undefined;
|
|
171
|
+
readonly summary: readonly {
|
|
172
|
+
readonly type: "summary_text";
|
|
173
|
+
readonly text: string;
|
|
174
|
+
}[];
|
|
175
|
+
readonly encrypted_content?: string | null | undefined;
|
|
176
|
+
} | {
|
|
177
|
+
readonly type: "compaction";
|
|
178
|
+
readonly id?: string | null | undefined;
|
|
179
|
+
readonly encrypted_content: string;
|
|
193
180
|
} | {
|
|
194
181
|
readonly type: "message";
|
|
195
182
|
readonly role: "user";
|
|
196
183
|
readonly content: readonly ({
|
|
184
|
+
readonly type: "input_text";
|
|
185
|
+
readonly text: string;
|
|
186
|
+
} | {
|
|
197
187
|
readonly type: "input_image";
|
|
198
188
|
readonly image_url: string;
|
|
199
189
|
readonly detail?: string | undefined;
|
|
@@ -203,9 +193,6 @@ export declare const routes: (Route<{
|
|
|
203
193
|
readonly detail?: string | undefined;
|
|
204
194
|
readonly file_data?: string | undefined;
|
|
205
195
|
readonly file_url?: string | undefined;
|
|
206
|
-
} | {
|
|
207
|
-
readonly type: "input_text";
|
|
208
|
-
readonly text: string;
|
|
209
196
|
})[];
|
|
210
197
|
readonly id?: string | undefined;
|
|
211
198
|
readonly status?: string | undefined;
|
|
@@ -219,14 +206,6 @@ export declare const routes: (Route<{
|
|
|
219
206
|
}[];
|
|
220
207
|
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
221
208
|
readonly status?: string | undefined;
|
|
222
|
-
} | {
|
|
223
|
-
readonly type: "reasoning";
|
|
224
|
-
readonly id?: string | undefined;
|
|
225
|
-
readonly summary: readonly {
|
|
226
|
-
readonly type: "summary_text";
|
|
227
|
-
readonly text: string;
|
|
228
|
-
}[];
|
|
229
|
-
readonly encrypted_content?: string | null | undefined;
|
|
230
209
|
} | {
|
|
231
210
|
readonly type: "function_call";
|
|
232
211
|
readonly id?: string | undefined;
|
|
@@ -235,25 +214,46 @@ export declare const routes: (Route<{
|
|
|
235
214
|
readonly namespace?: string | undefined;
|
|
236
215
|
readonly arguments: string;
|
|
237
216
|
} | {
|
|
238
|
-
readonly
|
|
239
|
-
readonly
|
|
240
|
-
readonly
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
readonly
|
|
244
|
-
} |
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
readonly
|
|
253
|
-
} |
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
217
|
+
readonly [x: string]: unknown;
|
|
218
|
+
readonly type: "web_search_call";
|
|
219
|
+
readonly id: string;
|
|
220
|
+
readonly status?: string | undefined;
|
|
221
|
+
readonly action?: {
|
|
222
|
+
readonly [x: string]: unknown;
|
|
223
|
+
} | null | undefined;
|
|
224
|
+
} | {
|
|
225
|
+
readonly [x: string]: unknown;
|
|
226
|
+
readonly type: "file_search_call";
|
|
227
|
+
readonly id: string;
|
|
228
|
+
readonly status?: string | undefined;
|
|
229
|
+
readonly queries?: readonly string[] | undefined;
|
|
230
|
+
readonly results?: readonly {
|
|
231
|
+
readonly [x: string]: unknown;
|
|
232
|
+
}[] | null | undefined;
|
|
233
|
+
} | {
|
|
234
|
+
readonly [x: string]: unknown;
|
|
235
|
+
readonly type: "code_interpreter_call";
|
|
236
|
+
readonly id: string;
|
|
237
|
+
readonly status?: string | undefined;
|
|
238
|
+
readonly code?: string | null | undefined;
|
|
239
|
+
readonly container_id?: string | null | undefined;
|
|
240
|
+
readonly outputs?: readonly {
|
|
241
|
+
readonly [x: string]: unknown;
|
|
242
|
+
}[] | null | undefined;
|
|
243
|
+
} | {
|
|
244
|
+
readonly [x: string]: unknown;
|
|
245
|
+
readonly type: "mcp_call";
|
|
246
|
+
readonly id: string;
|
|
247
|
+
readonly status?: string | undefined;
|
|
248
|
+
readonly server_label?: string | undefined;
|
|
249
|
+
readonly name?: string | undefined;
|
|
250
|
+
readonly arguments?: string | undefined;
|
|
251
|
+
readonly output?: string | null | undefined;
|
|
252
|
+
readonly error?: unknown;
|
|
253
|
+
} | {
|
|
254
|
+
readonly [x: string]: unknown;
|
|
255
|
+
readonly type: string;
|
|
256
|
+
readonly id: string;
|
|
257
257
|
})[];
|
|
258
258
|
readonly instructions?: string | undefined;
|
|
259
259
|
readonly store?: boolean | undefined;
|
|
@@ -284,6 +284,19 @@ export declare const routes: (Route<{
|
|
|
284
284
|
readonly presence_penalty?: number | undefined;
|
|
285
285
|
readonly frequency_penalty?: number | undefined;
|
|
286
286
|
readonly tools?: readonly ({
|
|
287
|
+
readonly type: "namespace";
|
|
288
|
+
readonly name: string;
|
|
289
|
+
readonly description: string;
|
|
290
|
+
readonly tools: readonly {
|
|
291
|
+
readonly type: "function";
|
|
292
|
+
readonly name: string;
|
|
293
|
+
readonly description: string;
|
|
294
|
+
readonly parameters: {
|
|
295
|
+
readonly [x: string]: unknown;
|
|
296
|
+
};
|
|
297
|
+
readonly strict?: boolean | undefined;
|
|
298
|
+
}[];
|
|
299
|
+
} | {
|
|
287
300
|
readonly type: "function";
|
|
288
301
|
readonly name: string;
|
|
289
302
|
readonly description: string;
|
|
@@ -301,19 +314,6 @@ export declare const routes: (Route<{
|
|
|
301
314
|
readonly partial_images?: number | undefined;
|
|
302
315
|
readonly quality?: "auto" | "high" | "low" | "medium" | undefined;
|
|
303
316
|
readonly size?: string | undefined;
|
|
304
|
-
} | {
|
|
305
|
-
readonly type: "namespace";
|
|
306
|
-
readonly name: string;
|
|
307
|
-
readonly description: string;
|
|
308
|
-
readonly tools: readonly {
|
|
309
|
-
readonly type: "function";
|
|
310
|
-
readonly name: string;
|
|
311
|
-
readonly description: string;
|
|
312
|
-
readonly parameters: {
|
|
313
|
-
readonly [x: string]: unknown;
|
|
314
|
-
};
|
|
315
|
-
readonly strict?: boolean | undefined;
|
|
316
|
-
}[];
|
|
317
317
|
})[] | undefined;
|
|
318
318
|
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
319
319
|
readonly type: "function";
|
|
@@ -220,13 +220,6 @@ export declare const protocol: Protocol<{
|
|
|
220
220
|
messages: readonly ({
|
|
221
221
|
readonly role: "system";
|
|
222
222
|
readonly content: string | readonly ({
|
|
223
|
-
readonly type: "text";
|
|
224
|
-
readonly text: string;
|
|
225
|
-
readonly cache_control?: {
|
|
226
|
-
readonly type: "ephemeral";
|
|
227
|
-
readonly ttl?: string | undefined;
|
|
228
|
-
} | undefined;
|
|
229
|
-
} | {
|
|
230
223
|
readonly type: "image_url";
|
|
231
224
|
readonly image_url: {
|
|
232
225
|
readonly url: string;
|
|
@@ -237,17 +230,17 @@ export declare const protocol: Protocol<{
|
|
|
237
230
|
readonly filename: string;
|
|
238
231
|
readonly file_data: string;
|
|
239
232
|
};
|
|
240
|
-
}
|
|
241
|
-
} | {
|
|
242
|
-
readonly role: "user";
|
|
243
|
-
readonly content: string | readonly ({
|
|
233
|
+
} | {
|
|
244
234
|
readonly type: "text";
|
|
245
235
|
readonly text: string;
|
|
246
236
|
readonly cache_control?: {
|
|
247
237
|
readonly type: "ephemeral";
|
|
248
238
|
readonly ttl?: string | undefined;
|
|
249
239
|
} | undefined;
|
|
250
|
-
}
|
|
240
|
+
})[];
|
|
241
|
+
} | {
|
|
242
|
+
readonly role: "user";
|
|
243
|
+
readonly content: string | readonly ({
|
|
251
244
|
readonly type: "image_url";
|
|
252
245
|
readonly image_url: {
|
|
253
246
|
readonly url: string;
|
|
@@ -258,6 +251,13 @@ export declare const protocol: Protocol<{
|
|
|
258
251
|
readonly filename: string;
|
|
259
252
|
readonly file_data: string;
|
|
260
253
|
};
|
|
254
|
+
} | {
|
|
255
|
+
readonly type: "text";
|
|
256
|
+
readonly text: string;
|
|
257
|
+
readonly cache_control?: {
|
|
258
|
+
readonly type: "ephemeral";
|
|
259
|
+
readonly ttl?: string | undefined;
|
|
260
|
+
} | undefined;
|
|
261
261
|
})[];
|
|
262
262
|
} | {
|
|
263
263
|
readonly role: "tool";
|
|
@@ -432,13 +432,6 @@ export declare const route: Route<{
|
|
|
432
432
|
messages: readonly ({
|
|
433
433
|
readonly role: "system";
|
|
434
434
|
readonly content: string | readonly ({
|
|
435
|
-
readonly type: "text";
|
|
436
|
-
readonly text: string;
|
|
437
|
-
readonly cache_control?: {
|
|
438
|
-
readonly type: "ephemeral";
|
|
439
|
-
readonly ttl?: string | undefined;
|
|
440
|
-
} | undefined;
|
|
441
|
-
} | {
|
|
442
435
|
readonly type: "image_url";
|
|
443
436
|
readonly image_url: {
|
|
444
437
|
readonly url: string;
|
|
@@ -449,17 +442,17 @@ export declare const route: Route<{
|
|
|
449
442
|
readonly filename: string;
|
|
450
443
|
readonly file_data: string;
|
|
451
444
|
};
|
|
452
|
-
}
|
|
453
|
-
} | {
|
|
454
|
-
readonly role: "user";
|
|
455
|
-
readonly content: string | readonly ({
|
|
445
|
+
} | {
|
|
456
446
|
readonly type: "text";
|
|
457
447
|
readonly text: string;
|
|
458
448
|
readonly cache_control?: {
|
|
459
449
|
readonly type: "ephemeral";
|
|
460
450
|
readonly ttl?: string | undefined;
|
|
461
451
|
} | undefined;
|
|
462
|
-
}
|
|
452
|
+
})[];
|
|
453
|
+
} | {
|
|
454
|
+
readonly role: "user";
|
|
455
|
+
readonly content: string | readonly ({
|
|
463
456
|
readonly type: "image_url";
|
|
464
457
|
readonly image_url: {
|
|
465
458
|
readonly url: string;
|
|
@@ -470,6 +463,13 @@ export declare const route: Route<{
|
|
|
470
463
|
readonly filename: string;
|
|
471
464
|
readonly file_data: string;
|
|
472
465
|
};
|
|
466
|
+
} | {
|
|
467
|
+
readonly type: "text";
|
|
468
|
+
readonly text: string;
|
|
469
|
+
readonly cache_control?: {
|
|
470
|
+
readonly type: "ephemeral";
|
|
471
|
+
readonly ttl?: string | undefined;
|
|
472
|
+
} | undefined;
|
|
473
473
|
})[];
|
|
474
474
|
} | {
|
|
475
475
|
readonly role: "tool";
|
|
@@ -572,13 +572,6 @@ export declare const routes: Route<{
|
|
|
572
572
|
messages: readonly ({
|
|
573
573
|
readonly role: "system";
|
|
574
574
|
readonly content: string | readonly ({
|
|
575
|
-
readonly type: "text";
|
|
576
|
-
readonly text: string;
|
|
577
|
-
readonly cache_control?: {
|
|
578
|
-
readonly type: "ephemeral";
|
|
579
|
-
readonly ttl?: string | undefined;
|
|
580
|
-
} | undefined;
|
|
581
|
-
} | {
|
|
582
575
|
readonly type: "image_url";
|
|
583
576
|
readonly image_url: {
|
|
584
577
|
readonly url: string;
|
|
@@ -589,17 +582,17 @@ export declare const routes: Route<{
|
|
|
589
582
|
readonly filename: string;
|
|
590
583
|
readonly file_data: string;
|
|
591
584
|
};
|
|
592
|
-
}
|
|
593
|
-
} | {
|
|
594
|
-
readonly role: "user";
|
|
595
|
-
readonly content: string | readonly ({
|
|
585
|
+
} | {
|
|
596
586
|
readonly type: "text";
|
|
597
587
|
readonly text: string;
|
|
598
588
|
readonly cache_control?: {
|
|
599
589
|
readonly type: "ephemeral";
|
|
600
590
|
readonly ttl?: string | undefined;
|
|
601
591
|
} | undefined;
|
|
602
|
-
}
|
|
592
|
+
})[];
|
|
593
|
+
} | {
|
|
594
|
+
readonly role: "user";
|
|
595
|
+
readonly content: string | readonly ({
|
|
603
596
|
readonly type: "image_url";
|
|
604
597
|
readonly image_url: {
|
|
605
598
|
readonly url: string;
|
|
@@ -610,6 +603,13 @@ export declare const routes: Route<{
|
|
|
610
603
|
readonly filename: string;
|
|
611
604
|
readonly file_data: string;
|
|
612
605
|
};
|
|
606
|
+
} | {
|
|
607
|
+
readonly type: "text";
|
|
608
|
+
readonly text: string;
|
|
609
|
+
readonly cache_control?: {
|
|
610
|
+
readonly type: "ephemeral";
|
|
611
|
+
readonly ttl?: string | undefined;
|
|
612
|
+
} | undefined;
|
|
613
613
|
})[];
|
|
614
614
|
} | {
|
|
615
615
|
readonly role: "tool";
|
|
@@ -17,13 +17,6 @@ export declare const route: Route<{
|
|
|
17
17
|
readonly messages: readonly ({
|
|
18
18
|
readonly role: "system";
|
|
19
19
|
readonly content: string | readonly ({
|
|
20
|
-
readonly type: "text";
|
|
21
|
-
readonly text: string;
|
|
22
|
-
readonly cache_control?: {
|
|
23
|
-
readonly type: "ephemeral";
|
|
24
|
-
readonly ttl?: string | undefined;
|
|
25
|
-
} | undefined;
|
|
26
|
-
} | {
|
|
27
20
|
readonly type: "image_url";
|
|
28
21
|
readonly image_url: {
|
|
29
22
|
readonly url: string;
|
|
@@ -34,17 +27,17 @@ export declare const route: Route<{
|
|
|
34
27
|
readonly filename: string;
|
|
35
28
|
readonly file_data: string;
|
|
36
29
|
};
|
|
37
|
-
}
|
|
38
|
-
} | {
|
|
39
|
-
readonly role: "user";
|
|
40
|
-
readonly content: string | readonly ({
|
|
30
|
+
} | {
|
|
41
31
|
readonly type: "text";
|
|
42
32
|
readonly text: string;
|
|
43
33
|
readonly cache_control?: {
|
|
44
34
|
readonly type: "ephemeral";
|
|
45
35
|
readonly ttl?: string | undefined;
|
|
46
36
|
} | undefined;
|
|
47
|
-
}
|
|
37
|
+
})[];
|
|
38
|
+
} | {
|
|
39
|
+
readonly role: "user";
|
|
40
|
+
readonly content: string | readonly ({
|
|
48
41
|
readonly type: "image_url";
|
|
49
42
|
readonly image_url: {
|
|
50
43
|
readonly url: string;
|
|
@@ -55,6 +48,13 @@ export declare const route: Route<{
|
|
|
55
48
|
readonly filename: string;
|
|
56
49
|
readonly file_data: string;
|
|
57
50
|
};
|
|
51
|
+
} | {
|
|
52
|
+
readonly type: "text";
|
|
53
|
+
readonly text: string;
|
|
54
|
+
readonly cache_control?: {
|
|
55
|
+
readonly type: "ephemeral";
|
|
56
|
+
readonly ttl?: string | undefined;
|
|
57
|
+
} | undefined;
|
|
58
58
|
})[];
|
|
59
59
|
} | {
|
|
60
60
|
readonly role: "tool";
|
|
@@ -139,13 +139,6 @@ export declare const routes: Route<{
|
|
|
139
139
|
readonly messages: readonly ({
|
|
140
140
|
readonly role: "system";
|
|
141
141
|
readonly content: string | readonly ({
|
|
142
|
-
readonly type: "text";
|
|
143
|
-
readonly text: string;
|
|
144
|
-
readonly cache_control?: {
|
|
145
|
-
readonly type: "ephemeral";
|
|
146
|
-
readonly ttl?: string | undefined;
|
|
147
|
-
} | undefined;
|
|
148
|
-
} | {
|
|
149
142
|
readonly type: "image_url";
|
|
150
143
|
readonly image_url: {
|
|
151
144
|
readonly url: string;
|
|
@@ -156,17 +149,17 @@ export declare const routes: Route<{
|
|
|
156
149
|
readonly filename: string;
|
|
157
150
|
readonly file_data: string;
|
|
158
151
|
};
|
|
159
|
-
}
|
|
160
|
-
} | {
|
|
161
|
-
readonly role: "user";
|
|
162
|
-
readonly content: string | readonly ({
|
|
152
|
+
} | {
|
|
163
153
|
readonly type: "text";
|
|
164
154
|
readonly text: string;
|
|
165
155
|
readonly cache_control?: {
|
|
166
156
|
readonly type: "ephemeral";
|
|
167
157
|
readonly ttl?: string | undefined;
|
|
168
158
|
} | undefined;
|
|
169
|
-
}
|
|
159
|
+
})[];
|
|
160
|
+
} | {
|
|
161
|
+
readonly role: "user";
|
|
162
|
+
readonly content: string | readonly ({
|
|
170
163
|
readonly type: "image_url";
|
|
171
164
|
readonly image_url: {
|
|
172
165
|
readonly url: string;
|
|
@@ -177,6 +170,13 @@ export declare const routes: Route<{
|
|
|
177
170
|
readonly filename: string;
|
|
178
171
|
readonly file_data: string;
|
|
179
172
|
};
|
|
173
|
+
} | {
|
|
174
|
+
readonly type: "text";
|
|
175
|
+
readonly text: string;
|
|
176
|
+
readonly cache_control?: {
|
|
177
|
+
readonly type: "ephemeral";
|
|
178
|
+
readonly ttl?: string | undefined;
|
|
179
|
+
} | undefined;
|
|
180
180
|
})[];
|
|
181
181
|
} | {
|
|
182
182
|
readonly role: "tool";
|