@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
|
@@ -72,8 +72,7 @@ export const configure = (input) => {
|
|
|
72
72
|
const chat = route.with(rest);
|
|
73
73
|
return {
|
|
74
74
|
id,
|
|
75
|
-
model: (
|
|
76
|
-
const value = String(input);
|
|
75
|
+
model: (value) => {
|
|
77
76
|
if (value.startsWith("openai/"))
|
|
78
77
|
return responses.model({ id: native ? value.slice("openai/".length) : value });
|
|
79
78
|
if (value.startsWith("anthropic/"))
|
|
@@ -21,13 +21,6 @@ export declare const route: Route<{
|
|
|
21
21
|
readonly messages: readonly ({
|
|
22
22
|
readonly role: "system";
|
|
23
23
|
readonly content: string | readonly ({
|
|
24
|
-
readonly type: "text";
|
|
25
|
-
readonly text: string;
|
|
26
|
-
readonly cache_control?: {
|
|
27
|
-
readonly type: "ephemeral";
|
|
28
|
-
readonly ttl?: string | undefined;
|
|
29
|
-
} | undefined;
|
|
30
|
-
} | {
|
|
31
24
|
readonly type: "image_url";
|
|
32
25
|
readonly image_url: {
|
|
33
26
|
readonly url: string;
|
|
@@ -38,17 +31,17 @@ export declare const route: Route<{
|
|
|
38
31
|
readonly filename: string;
|
|
39
32
|
readonly file_data: string;
|
|
40
33
|
};
|
|
41
|
-
}
|
|
42
|
-
} | {
|
|
43
|
-
readonly role: "user";
|
|
44
|
-
readonly content: string | readonly ({
|
|
34
|
+
} | {
|
|
45
35
|
readonly type: "text";
|
|
46
36
|
readonly text: string;
|
|
47
37
|
readonly cache_control?: {
|
|
48
38
|
readonly type: "ephemeral";
|
|
49
39
|
readonly ttl?: string | undefined;
|
|
50
40
|
} | undefined;
|
|
51
|
-
}
|
|
41
|
+
})[];
|
|
42
|
+
} | {
|
|
43
|
+
readonly role: "user";
|
|
44
|
+
readonly content: string | readonly ({
|
|
52
45
|
readonly type: "image_url";
|
|
53
46
|
readonly image_url: {
|
|
54
47
|
readonly url: string;
|
|
@@ -59,6 +52,13 @@ export declare const route: Route<{
|
|
|
59
52
|
readonly filename: string;
|
|
60
53
|
readonly file_data: string;
|
|
61
54
|
};
|
|
55
|
+
} | {
|
|
56
|
+
readonly type: "text";
|
|
57
|
+
readonly text: string;
|
|
58
|
+
readonly cache_control?: {
|
|
59
|
+
readonly type: "ephemeral";
|
|
60
|
+
readonly ttl?: string | undefined;
|
|
61
|
+
} | undefined;
|
|
62
62
|
})[];
|
|
63
63
|
} | {
|
|
64
64
|
readonly role: "tool";
|
|
@@ -143,13 +143,6 @@ export declare const routes: Route<{
|
|
|
143
143
|
readonly messages: readonly ({
|
|
144
144
|
readonly role: "system";
|
|
145
145
|
readonly content: string | readonly ({
|
|
146
|
-
readonly type: "text";
|
|
147
|
-
readonly text: string;
|
|
148
|
-
readonly cache_control?: {
|
|
149
|
-
readonly type: "ephemeral";
|
|
150
|
-
readonly ttl?: string | undefined;
|
|
151
|
-
} | undefined;
|
|
152
|
-
} | {
|
|
153
146
|
readonly type: "image_url";
|
|
154
147
|
readonly image_url: {
|
|
155
148
|
readonly url: string;
|
|
@@ -160,17 +153,17 @@ export declare const routes: Route<{
|
|
|
160
153
|
readonly filename: string;
|
|
161
154
|
readonly file_data: string;
|
|
162
155
|
};
|
|
163
|
-
}
|
|
164
|
-
} | {
|
|
165
|
-
readonly role: "user";
|
|
166
|
-
readonly content: string | readonly ({
|
|
156
|
+
} | {
|
|
167
157
|
readonly type: "text";
|
|
168
158
|
readonly text: string;
|
|
169
159
|
readonly cache_control?: {
|
|
170
160
|
readonly type: "ephemeral";
|
|
171
161
|
readonly ttl?: string | undefined;
|
|
172
162
|
} | undefined;
|
|
173
|
-
}
|
|
163
|
+
})[];
|
|
164
|
+
} | {
|
|
165
|
+
readonly role: "user";
|
|
166
|
+
readonly content: string | readonly ({
|
|
174
167
|
readonly type: "image_url";
|
|
175
168
|
readonly image_url: {
|
|
176
169
|
readonly url: string;
|
|
@@ -181,6 +174,13 @@ export declare const routes: Route<{
|
|
|
181
174
|
readonly filename: string;
|
|
182
175
|
readonly file_data: string;
|
|
183
176
|
};
|
|
177
|
+
} | {
|
|
178
|
+
readonly type: "text";
|
|
179
|
+
readonly text: string;
|
|
180
|
+
readonly cache_control?: {
|
|
181
|
+
readonly type: "ephemeral";
|
|
182
|
+
readonly ttl?: string | undefined;
|
|
183
|
+
} | undefined;
|
|
184
184
|
})[];
|
|
185
185
|
} | {
|
|
186
186
|
readonly role: "tool";
|
|
@@ -73,13 +73,6 @@ export declare const chatRoute: Route<{
|
|
|
73
73
|
readonly messages: readonly ({
|
|
74
74
|
readonly role: "system";
|
|
75
75
|
readonly content: string | readonly ({
|
|
76
|
-
readonly type: "text";
|
|
77
|
-
readonly text: string;
|
|
78
|
-
readonly cache_control?: {
|
|
79
|
-
readonly type: "ephemeral";
|
|
80
|
-
readonly ttl?: string | undefined;
|
|
81
|
-
} | undefined;
|
|
82
|
-
} | {
|
|
83
76
|
readonly type: "image_url";
|
|
84
77
|
readonly image_url: {
|
|
85
78
|
readonly url: string;
|
|
@@ -90,17 +83,17 @@ export declare const chatRoute: Route<{
|
|
|
90
83
|
readonly filename: string;
|
|
91
84
|
readonly file_data: string;
|
|
92
85
|
};
|
|
93
|
-
}
|
|
94
|
-
} | {
|
|
95
|
-
readonly role: "user";
|
|
96
|
-
readonly content: string | readonly ({
|
|
86
|
+
} | {
|
|
97
87
|
readonly type: "text";
|
|
98
88
|
readonly text: string;
|
|
99
89
|
readonly cache_control?: {
|
|
100
90
|
readonly type: "ephemeral";
|
|
101
91
|
readonly ttl?: string | undefined;
|
|
102
92
|
} | undefined;
|
|
103
|
-
}
|
|
93
|
+
})[];
|
|
94
|
+
} | {
|
|
95
|
+
readonly role: "user";
|
|
96
|
+
readonly content: string | readonly ({
|
|
104
97
|
readonly type: "image_url";
|
|
105
98
|
readonly image_url: {
|
|
106
99
|
readonly url: string;
|
|
@@ -111,6 +104,13 @@ export declare const chatRoute: Route<{
|
|
|
111
104
|
readonly filename: string;
|
|
112
105
|
readonly file_data: string;
|
|
113
106
|
};
|
|
107
|
+
} | {
|
|
108
|
+
readonly type: "text";
|
|
109
|
+
readonly text: string;
|
|
110
|
+
readonly cache_control?: {
|
|
111
|
+
readonly type: "ephemeral";
|
|
112
|
+
readonly ttl?: string | undefined;
|
|
113
|
+
} | undefined;
|
|
114
114
|
})[];
|
|
115
115
|
} | {
|
|
116
116
|
readonly role: "tool";
|
|
@@ -192,16 +192,60 @@ export declare const chatRoute: Route<{
|
|
|
192
192
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>;
|
|
193
193
|
export declare const routes: (Route<{
|
|
194
194
|
readonly model: string;
|
|
195
|
-
readonly messages: readonly
|
|
196
|
-
readonly role: "system";
|
|
197
|
-
readonly content
|
|
195
|
+
readonly messages: readonly {
|
|
196
|
+
readonly role: "assistant" | "system" | "tool" | "user";
|
|
197
|
+
readonly content?: string | readonly ({
|
|
198
198
|
readonly type: "text";
|
|
199
199
|
readonly text: string;
|
|
200
|
-
readonly cache_control?: {
|
|
201
|
-
readonly type: "ephemeral";
|
|
202
|
-
readonly ttl?: string | undefined;
|
|
203
|
-
} | undefined;
|
|
204
200
|
} | {
|
|
201
|
+
readonly type: "thinking";
|
|
202
|
+
readonly thinking: string;
|
|
203
|
+
} | {
|
|
204
|
+
readonly type: "image_url";
|
|
205
|
+
readonly image_url: {
|
|
206
|
+
readonly url: string;
|
|
207
|
+
};
|
|
208
|
+
})[] | undefined;
|
|
209
|
+
readonly tool_calls?: readonly {
|
|
210
|
+
readonly id: string;
|
|
211
|
+
readonly type: "function";
|
|
212
|
+
readonly function: {
|
|
213
|
+
readonly name: string;
|
|
214
|
+
readonly arguments: string;
|
|
215
|
+
};
|
|
216
|
+
}[] | undefined;
|
|
217
|
+
readonly tool_call_id?: string | undefined;
|
|
218
|
+
readonly tool_plan?: string | undefined;
|
|
219
|
+
}[];
|
|
220
|
+
readonly stream: true;
|
|
221
|
+
readonly tools?: readonly {
|
|
222
|
+
readonly type: "function";
|
|
223
|
+
readonly function: {
|
|
224
|
+
readonly name: string;
|
|
225
|
+
readonly description?: string | undefined;
|
|
226
|
+
readonly parameters: {
|
|
227
|
+
readonly [x: string]: unknown;
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
}[] | undefined;
|
|
231
|
+
readonly tool_choice?: "NONE" | "REQUIRED" | undefined;
|
|
232
|
+
readonly thinking?: {
|
|
233
|
+
readonly type: string;
|
|
234
|
+
readonly token_budget?: number | undefined;
|
|
235
|
+
} | undefined;
|
|
236
|
+
readonly max_tokens?: number | undefined;
|
|
237
|
+
readonly temperature?: number | undefined;
|
|
238
|
+
readonly p?: number | undefined;
|
|
239
|
+
readonly k?: number | undefined;
|
|
240
|
+
readonly seed?: number | undefined;
|
|
241
|
+
readonly stop_sequences?: readonly string[] | undefined;
|
|
242
|
+
readonly frequency_penalty?: number | undefined;
|
|
243
|
+
readonly presence_penalty?: number | undefined;
|
|
244
|
+
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
|
|
245
|
+
readonly model: string;
|
|
246
|
+
readonly messages: readonly ({
|
|
247
|
+
readonly role: "system";
|
|
248
|
+
readonly content: string | readonly ({
|
|
205
249
|
readonly type: "image_url";
|
|
206
250
|
readonly image_url: {
|
|
207
251
|
readonly url: string;
|
|
@@ -212,17 +256,17 @@ export declare const routes: (Route<{
|
|
|
212
256
|
readonly filename: string;
|
|
213
257
|
readonly file_data: string;
|
|
214
258
|
};
|
|
215
|
-
}
|
|
216
|
-
} | {
|
|
217
|
-
readonly role: "user";
|
|
218
|
-
readonly content: string | readonly ({
|
|
259
|
+
} | {
|
|
219
260
|
readonly type: "text";
|
|
220
261
|
readonly text: string;
|
|
221
262
|
readonly cache_control?: {
|
|
222
263
|
readonly type: "ephemeral";
|
|
223
264
|
readonly ttl?: string | undefined;
|
|
224
265
|
} | undefined;
|
|
225
|
-
}
|
|
266
|
+
})[];
|
|
267
|
+
} | {
|
|
268
|
+
readonly role: "user";
|
|
269
|
+
readonly content: string | readonly ({
|
|
226
270
|
readonly type: "image_url";
|
|
227
271
|
readonly image_url: {
|
|
228
272
|
readonly url: string;
|
|
@@ -233,6 +277,13 @@ export declare const routes: (Route<{
|
|
|
233
277
|
readonly filename: string;
|
|
234
278
|
readonly file_data: string;
|
|
235
279
|
};
|
|
280
|
+
} | {
|
|
281
|
+
readonly type: "text";
|
|
282
|
+
readonly text: string;
|
|
283
|
+
readonly cache_control?: {
|
|
284
|
+
readonly type: "ephemeral";
|
|
285
|
+
readonly ttl?: string | undefined;
|
|
286
|
+
} | undefined;
|
|
236
287
|
})[];
|
|
237
288
|
} | {
|
|
238
289
|
readonly role: "tool";
|
|
@@ -311,57 +362,6 @@ export declare const routes: (Route<{
|
|
|
311
362
|
readonly presence_penalty?: number | undefined;
|
|
312
363
|
readonly seed?: number | undefined;
|
|
313
364
|
readonly stop?: readonly string[] | undefined;
|
|
314
|
-
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
|
|
315
|
-
readonly model: string;
|
|
316
|
-
readonly messages: readonly {
|
|
317
|
-
readonly role: "assistant" | "system" | "tool" | "user";
|
|
318
|
-
readonly content?: string | readonly ({
|
|
319
|
-
readonly type: "text";
|
|
320
|
-
readonly text: string;
|
|
321
|
-
} | {
|
|
322
|
-
readonly type: "thinking";
|
|
323
|
-
readonly thinking: string;
|
|
324
|
-
} | {
|
|
325
|
-
readonly type: "image_url";
|
|
326
|
-
readonly image_url: {
|
|
327
|
-
readonly url: string;
|
|
328
|
-
};
|
|
329
|
-
})[] | undefined;
|
|
330
|
-
readonly tool_calls?: readonly {
|
|
331
|
-
readonly id: string;
|
|
332
|
-
readonly type: "function";
|
|
333
|
-
readonly function: {
|
|
334
|
-
readonly name: string;
|
|
335
|
-
readonly arguments: string;
|
|
336
|
-
};
|
|
337
|
-
}[] | undefined;
|
|
338
|
-
readonly tool_call_id?: string | undefined;
|
|
339
|
-
readonly tool_plan?: string | undefined;
|
|
340
|
-
}[];
|
|
341
|
-
readonly stream: true;
|
|
342
|
-
readonly tools?: readonly {
|
|
343
|
-
readonly type: "function";
|
|
344
|
-
readonly function: {
|
|
345
|
-
readonly name: string;
|
|
346
|
-
readonly description?: string | undefined;
|
|
347
|
-
readonly parameters: {
|
|
348
|
-
readonly [x: string]: unknown;
|
|
349
|
-
};
|
|
350
|
-
};
|
|
351
|
-
}[] | undefined;
|
|
352
|
-
readonly tool_choice?: "NONE" | "REQUIRED" | undefined;
|
|
353
|
-
readonly thinking?: {
|
|
354
|
-
readonly type: string;
|
|
355
|
-
readonly token_budget?: number | undefined;
|
|
356
|
-
} | undefined;
|
|
357
|
-
readonly max_tokens?: number | undefined;
|
|
358
|
-
readonly temperature?: number | undefined;
|
|
359
|
-
readonly p?: number | undefined;
|
|
360
|
-
readonly k?: number | undefined;
|
|
361
|
-
readonly seed?: number | undefined;
|
|
362
|
-
readonly stop_sequences?: readonly string[] | undefined;
|
|
363
|
-
readonly frequency_penalty?: number | undefined;
|
|
364
|
-
readonly presence_penalty?: number | undefined;
|
|
365
365
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>)[];
|
|
366
366
|
export declare const configure: (input?: LanguageModelOptions) => {
|
|
367
367
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -18,13 +18,6 @@ export declare const protocol: Protocol<{
|
|
|
18
18
|
readonly messages: readonly ({
|
|
19
19
|
readonly role: "system";
|
|
20
20
|
readonly content: string | readonly ({
|
|
21
|
-
readonly type: "text";
|
|
22
|
-
readonly text: string;
|
|
23
|
-
readonly cache_control?: {
|
|
24
|
-
readonly type: "ephemeral";
|
|
25
|
-
readonly ttl?: string | undefined;
|
|
26
|
-
} | undefined;
|
|
27
|
-
} | {
|
|
28
21
|
readonly type: "image_url";
|
|
29
22
|
readonly image_url: {
|
|
30
23
|
readonly url: string;
|
|
@@ -35,17 +28,17 @@ export declare const protocol: Protocol<{
|
|
|
35
28
|
readonly filename: string;
|
|
36
29
|
readonly file_data: string;
|
|
37
30
|
};
|
|
38
|
-
}
|
|
39
|
-
} | {
|
|
40
|
-
readonly role: "user";
|
|
41
|
-
readonly content: string | readonly ({
|
|
31
|
+
} | {
|
|
42
32
|
readonly type: "text";
|
|
43
33
|
readonly text: string;
|
|
44
34
|
readonly cache_control?: {
|
|
45
35
|
readonly type: "ephemeral";
|
|
46
36
|
readonly ttl?: string | undefined;
|
|
47
37
|
} | undefined;
|
|
48
|
-
}
|
|
38
|
+
})[];
|
|
39
|
+
} | {
|
|
40
|
+
readonly role: "user";
|
|
41
|
+
readonly content: string | readonly ({
|
|
49
42
|
readonly type: "image_url";
|
|
50
43
|
readonly image_url: {
|
|
51
44
|
readonly url: string;
|
|
@@ -56,6 +49,13 @@ export declare const protocol: Protocol<{
|
|
|
56
49
|
readonly filename: string;
|
|
57
50
|
readonly file_data: string;
|
|
58
51
|
};
|
|
52
|
+
} | {
|
|
53
|
+
readonly type: "text";
|
|
54
|
+
readonly text: string;
|
|
55
|
+
readonly cache_control?: {
|
|
56
|
+
readonly type: "ephemeral";
|
|
57
|
+
readonly ttl?: string | undefined;
|
|
58
|
+
} | undefined;
|
|
59
59
|
})[];
|
|
60
60
|
} | {
|
|
61
61
|
readonly role: "tool";
|
|
@@ -212,13 +212,6 @@ export declare const route: Route<{
|
|
|
212
212
|
readonly messages: readonly ({
|
|
213
213
|
readonly role: "system";
|
|
214
214
|
readonly content: string | readonly ({
|
|
215
|
-
readonly type: "text";
|
|
216
|
-
readonly text: string;
|
|
217
|
-
readonly cache_control?: {
|
|
218
|
-
readonly type: "ephemeral";
|
|
219
|
-
readonly ttl?: string | undefined;
|
|
220
|
-
} | undefined;
|
|
221
|
-
} | {
|
|
222
215
|
readonly type: "image_url";
|
|
223
216
|
readonly image_url: {
|
|
224
217
|
readonly url: string;
|
|
@@ -229,17 +222,17 @@ export declare const route: Route<{
|
|
|
229
222
|
readonly filename: string;
|
|
230
223
|
readonly file_data: string;
|
|
231
224
|
};
|
|
232
|
-
}
|
|
233
|
-
} | {
|
|
234
|
-
readonly role: "user";
|
|
235
|
-
readonly content: string | readonly ({
|
|
225
|
+
} | {
|
|
236
226
|
readonly type: "text";
|
|
237
227
|
readonly text: string;
|
|
238
228
|
readonly cache_control?: {
|
|
239
229
|
readonly type: "ephemeral";
|
|
240
230
|
readonly ttl?: string | undefined;
|
|
241
231
|
} | undefined;
|
|
242
|
-
}
|
|
232
|
+
})[];
|
|
233
|
+
} | {
|
|
234
|
+
readonly role: "user";
|
|
235
|
+
readonly content: string | readonly ({
|
|
243
236
|
readonly type: "image_url";
|
|
244
237
|
readonly image_url: {
|
|
245
238
|
readonly url: string;
|
|
@@ -250,6 +243,13 @@ export declare const route: Route<{
|
|
|
250
243
|
readonly filename: string;
|
|
251
244
|
readonly file_data: string;
|
|
252
245
|
};
|
|
246
|
+
} | {
|
|
247
|
+
readonly type: "text";
|
|
248
|
+
readonly text: string;
|
|
249
|
+
readonly cache_control?: {
|
|
250
|
+
readonly type: "ephemeral";
|
|
251
|
+
readonly ttl?: string | undefined;
|
|
252
|
+
} | undefined;
|
|
253
253
|
})[];
|
|
254
254
|
} | {
|
|
255
255
|
readonly role: "tool";
|
|
@@ -334,13 +334,6 @@ export declare const routes: Route<{
|
|
|
334
334
|
readonly messages: readonly ({
|
|
335
335
|
readonly role: "system";
|
|
336
336
|
readonly content: string | readonly ({
|
|
337
|
-
readonly type: "text";
|
|
338
|
-
readonly text: string;
|
|
339
|
-
readonly cache_control?: {
|
|
340
|
-
readonly type: "ephemeral";
|
|
341
|
-
readonly ttl?: string | undefined;
|
|
342
|
-
} | undefined;
|
|
343
|
-
} | {
|
|
344
337
|
readonly type: "image_url";
|
|
345
338
|
readonly image_url: {
|
|
346
339
|
readonly url: string;
|
|
@@ -351,17 +344,17 @@ export declare const routes: Route<{
|
|
|
351
344
|
readonly filename: string;
|
|
352
345
|
readonly file_data: string;
|
|
353
346
|
};
|
|
354
|
-
}
|
|
355
|
-
} | {
|
|
356
|
-
readonly role: "user";
|
|
357
|
-
readonly content: string | readonly ({
|
|
347
|
+
} | {
|
|
358
348
|
readonly type: "text";
|
|
359
349
|
readonly text: string;
|
|
360
350
|
readonly cache_control?: {
|
|
361
351
|
readonly type: "ephemeral";
|
|
362
352
|
readonly ttl?: string | undefined;
|
|
363
353
|
} | undefined;
|
|
364
|
-
}
|
|
354
|
+
})[];
|
|
355
|
+
} | {
|
|
356
|
+
readonly role: "user";
|
|
357
|
+
readonly content: string | readonly ({
|
|
365
358
|
readonly type: "image_url";
|
|
366
359
|
readonly image_url: {
|
|
367
360
|
readonly url: string;
|
|
@@ -372,6 +365,13 @@ export declare const routes: Route<{
|
|
|
372
365
|
readonly filename: string;
|
|
373
366
|
readonly file_data: string;
|
|
374
367
|
};
|
|
368
|
+
} | {
|
|
369
|
+
readonly type: "text";
|
|
370
|
+
readonly text: string;
|
|
371
|
+
readonly cache_control?: {
|
|
372
|
+
readonly type: "ephemeral";
|
|
373
|
+
readonly ttl?: string | undefined;
|
|
374
|
+
} | undefined;
|
|
375
375
|
})[];
|
|
376
376
|
} | {
|
|
377
377
|
readonly role: "tool";
|