@opencode/ai 0.0.0-dev-21779 → 0.0.0-dev-21787
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/protocols/alibaba-chat.d.ts +10 -0
- package/dist/protocols/anthropic-messages.js +0 -1
- package/dist/protocols/gemini.d.ts +0 -9
- package/dist/protocols/gemini.js +0 -2
- package/dist/protocols/openai-chat.d.ts +80 -0
- package/dist/protocols/openai-chat.js +7 -1
- package/dist/protocols/openai-compatible-chat.d.ts +10 -0
- package/dist/protocols/shared.d.ts +1 -8
- package/dist/protocols/shared.js +2 -6
- package/dist/protocols/venice-chat.d.ts +10 -0
- package/dist/protocols/zai-chat.d.ts +10 -0
- package/dist/provider-error.js +2 -0
- package/dist/providers/alibaba.d.ts +10 -0
- package/dist/providers/amazon-bedrock-mantle.d.ts +10 -0
- package/dist/providers/azure.d.ts +10 -0
- package/dist/providers/baseten.d.ts +20 -0
- package/dist/providers/cerebras.d.ts +20 -0
- package/dist/providers/cloudflare-ai-gateway.d.ts +20 -0
- package/dist/providers/cloudflare-workers-ai.d.ts +20 -0
- package/dist/providers/cohere.d.ts +20 -0
- package/dist/providers/deepinfra.d.ts +20 -0
- package/dist/providers/deepseek.d.ts +20 -0
- package/dist/providers/digitalocean.d.ts +30 -0
- package/dist/providers/fireworks.d.ts +20 -0
- package/dist/providers/google-vertex-chat.d.ts +10 -0
- package/dist/providers/groq.d.ts +20 -0
- package/dist/providers/meta.d.ts +10 -0
- package/dist/providers/minimax.d.ts +10 -0
- package/dist/providers/moonshot.d.ts +10 -0
- package/dist/providers/openai-compatible.d.ts +10 -0
- package/dist/providers/openai.d.ts +10 -0
- package/dist/providers/openrouter.d.ts +40 -0
- package/dist/providers/togetherai.d.ts +20 -0
- package/dist/providers/venice.d.ts +10 -0
- package/dist/providers/xai.d.ts +10 -0
- package/dist/providers/zai-coding-plan.d.ts +10 -0
- package/dist/providers/zai.d.ts +10 -0
- package/dist/schema/events.d.ts +0 -2
- package/dist/schema/events.js +0 -2
- package/package.json +3 -3
|
@@ -28,6 +28,11 @@ export declare const route: Route<{
|
|
|
28
28
|
readonly image_url: {
|
|
29
29
|
readonly url: string;
|
|
30
30
|
};
|
|
31
|
+
} | {
|
|
32
|
+
readonly type: "video_url";
|
|
33
|
+
readonly video_url: {
|
|
34
|
+
readonly url: string;
|
|
35
|
+
};
|
|
31
36
|
} | {
|
|
32
37
|
readonly type: "file";
|
|
33
38
|
readonly file: {
|
|
@@ -49,6 +54,11 @@ export declare const route: Route<{
|
|
|
49
54
|
readonly image_url: {
|
|
50
55
|
readonly url: string;
|
|
51
56
|
};
|
|
57
|
+
} | {
|
|
58
|
+
readonly type: "video_url";
|
|
59
|
+
readonly video_url: {
|
|
60
|
+
readonly url: string;
|
|
61
|
+
};
|
|
52
62
|
} | {
|
|
53
63
|
readonly type: "file";
|
|
54
64
|
readonly file: {
|
|
@@ -150,6 +160,11 @@ export declare const routes: Route<{
|
|
|
150
160
|
readonly image_url: {
|
|
151
161
|
readonly url: string;
|
|
152
162
|
};
|
|
163
|
+
} | {
|
|
164
|
+
readonly type: "video_url";
|
|
165
|
+
readonly video_url: {
|
|
166
|
+
readonly url: string;
|
|
167
|
+
};
|
|
153
168
|
} | {
|
|
154
169
|
readonly type: "file";
|
|
155
170
|
readonly file: {
|
|
@@ -171,6 +186,11 @@ export declare const routes: Route<{
|
|
|
171
186
|
readonly image_url: {
|
|
172
187
|
readonly url: string;
|
|
173
188
|
};
|
|
189
|
+
} | {
|
|
190
|
+
readonly type: "video_url";
|
|
191
|
+
readonly video_url: {
|
|
192
|
+
readonly url: string;
|
|
193
|
+
};
|
|
174
194
|
} | {
|
|
175
195
|
readonly type: "file";
|
|
176
196
|
readonly file: {
|
|
@@ -77,6 +77,11 @@ export declare const chatRoute: Route<{
|
|
|
77
77
|
readonly image_url: {
|
|
78
78
|
readonly url: string;
|
|
79
79
|
};
|
|
80
|
+
} | {
|
|
81
|
+
readonly type: "video_url";
|
|
82
|
+
readonly video_url: {
|
|
83
|
+
readonly url: string;
|
|
84
|
+
};
|
|
80
85
|
} | {
|
|
81
86
|
readonly type: "file";
|
|
82
87
|
readonly file: {
|
|
@@ -98,6 +103,11 @@ export declare const chatRoute: Route<{
|
|
|
98
103
|
readonly image_url: {
|
|
99
104
|
readonly url: string;
|
|
100
105
|
};
|
|
106
|
+
} | {
|
|
107
|
+
readonly type: "video_url";
|
|
108
|
+
readonly video_url: {
|
|
109
|
+
readonly url: string;
|
|
110
|
+
};
|
|
101
111
|
} | {
|
|
102
112
|
readonly type: "file";
|
|
103
113
|
readonly file: {
|
|
@@ -250,6 +260,11 @@ export declare const routes: (Route<{
|
|
|
250
260
|
readonly image_url: {
|
|
251
261
|
readonly url: string;
|
|
252
262
|
};
|
|
263
|
+
} | {
|
|
264
|
+
readonly type: "video_url";
|
|
265
|
+
readonly video_url: {
|
|
266
|
+
readonly url: string;
|
|
267
|
+
};
|
|
253
268
|
} | {
|
|
254
269
|
readonly type: "file";
|
|
255
270
|
readonly file: {
|
|
@@ -271,6 +286,11 @@ export declare const routes: (Route<{
|
|
|
271
286
|
readonly image_url: {
|
|
272
287
|
readonly url: string;
|
|
273
288
|
};
|
|
289
|
+
} | {
|
|
290
|
+
readonly type: "video_url";
|
|
291
|
+
readonly video_url: {
|
|
292
|
+
readonly url: string;
|
|
293
|
+
};
|
|
274
294
|
} | {
|
|
275
295
|
readonly type: "file";
|
|
276
296
|
readonly file: {
|
|
@@ -21,6 +21,11 @@ export declare const route: Route<{
|
|
|
21
21
|
readonly image_url: {
|
|
22
22
|
readonly url: string;
|
|
23
23
|
};
|
|
24
|
+
} | {
|
|
25
|
+
readonly type: "video_url";
|
|
26
|
+
readonly video_url: {
|
|
27
|
+
readonly url: string;
|
|
28
|
+
};
|
|
24
29
|
} | {
|
|
25
30
|
readonly type: "file";
|
|
26
31
|
readonly file: {
|
|
@@ -42,6 +47,11 @@ export declare const route: Route<{
|
|
|
42
47
|
readonly image_url: {
|
|
43
48
|
readonly url: string;
|
|
44
49
|
};
|
|
50
|
+
} | {
|
|
51
|
+
readonly type: "video_url";
|
|
52
|
+
readonly video_url: {
|
|
53
|
+
readonly url: string;
|
|
54
|
+
};
|
|
45
55
|
} | {
|
|
46
56
|
readonly type: "file";
|
|
47
57
|
readonly file: {
|
|
@@ -143,6 +153,11 @@ export declare const routes: Route<{
|
|
|
143
153
|
readonly image_url: {
|
|
144
154
|
readonly url: string;
|
|
145
155
|
};
|
|
156
|
+
} | {
|
|
157
|
+
readonly type: "video_url";
|
|
158
|
+
readonly video_url: {
|
|
159
|
+
readonly url: string;
|
|
160
|
+
};
|
|
146
161
|
} | {
|
|
147
162
|
readonly type: "file";
|
|
148
163
|
readonly file: {
|
|
@@ -164,6 +179,11 @@ export declare const routes: Route<{
|
|
|
164
179
|
readonly image_url: {
|
|
165
180
|
readonly url: string;
|
|
166
181
|
};
|
|
182
|
+
} | {
|
|
183
|
+
readonly type: "video_url";
|
|
184
|
+
readonly video_url: {
|
|
185
|
+
readonly url: string;
|
|
186
|
+
};
|
|
167
187
|
} | {
|
|
168
188
|
readonly type: "file";
|
|
169
189
|
readonly file: {
|
|
@@ -21,6 +21,11 @@ export declare const route: Route<{
|
|
|
21
21
|
readonly image_url: {
|
|
22
22
|
readonly url: string;
|
|
23
23
|
};
|
|
24
|
+
} | {
|
|
25
|
+
readonly type: "video_url";
|
|
26
|
+
readonly video_url: {
|
|
27
|
+
readonly url: string;
|
|
28
|
+
};
|
|
24
29
|
} | {
|
|
25
30
|
readonly type: "file";
|
|
26
31
|
readonly file: {
|
|
@@ -42,6 +47,11 @@ export declare const route: Route<{
|
|
|
42
47
|
readonly image_url: {
|
|
43
48
|
readonly url: string;
|
|
44
49
|
};
|
|
50
|
+
} | {
|
|
51
|
+
readonly type: "video_url";
|
|
52
|
+
readonly video_url: {
|
|
53
|
+
readonly url: string;
|
|
54
|
+
};
|
|
45
55
|
} | {
|
|
46
56
|
readonly type: "file";
|
|
47
57
|
readonly file: {
|
|
@@ -143,6 +153,11 @@ export declare const routes: Route<{
|
|
|
143
153
|
readonly image_url: {
|
|
144
154
|
readonly url: string;
|
|
145
155
|
};
|
|
156
|
+
} | {
|
|
157
|
+
readonly type: "video_url";
|
|
158
|
+
readonly video_url: {
|
|
159
|
+
readonly url: string;
|
|
160
|
+
};
|
|
146
161
|
} | {
|
|
147
162
|
readonly type: "file";
|
|
148
163
|
readonly file: {
|
|
@@ -164,6 +179,11 @@ export declare const routes: Route<{
|
|
|
164
179
|
readonly image_url: {
|
|
165
180
|
readonly url: string;
|
|
166
181
|
};
|
|
182
|
+
} | {
|
|
183
|
+
readonly type: "video_url";
|
|
184
|
+
readonly video_url: {
|
|
185
|
+
readonly url: string;
|
|
186
|
+
};
|
|
167
187
|
} | {
|
|
168
188
|
readonly type: "file";
|
|
169
189
|
readonly file: {
|
|
@@ -22,6 +22,11 @@ export declare const protocol: Protocol<{
|
|
|
22
22
|
readonly image_url: {
|
|
23
23
|
readonly url: string;
|
|
24
24
|
};
|
|
25
|
+
} | {
|
|
26
|
+
readonly type: "video_url";
|
|
27
|
+
readonly video_url: {
|
|
28
|
+
readonly url: string;
|
|
29
|
+
};
|
|
25
30
|
} | {
|
|
26
31
|
readonly type: "file";
|
|
27
32
|
readonly file: {
|
|
@@ -43,6 +48,11 @@ export declare const protocol: Protocol<{
|
|
|
43
48
|
readonly image_url: {
|
|
44
49
|
readonly url: string;
|
|
45
50
|
};
|
|
51
|
+
} | {
|
|
52
|
+
readonly type: "video_url";
|
|
53
|
+
readonly video_url: {
|
|
54
|
+
readonly url: string;
|
|
55
|
+
};
|
|
46
56
|
} | {
|
|
47
57
|
readonly type: "file";
|
|
48
58
|
readonly file: {
|
|
@@ -216,6 +226,11 @@ export declare const route: Route<{
|
|
|
216
226
|
readonly image_url: {
|
|
217
227
|
readonly url: string;
|
|
218
228
|
};
|
|
229
|
+
} | {
|
|
230
|
+
readonly type: "video_url";
|
|
231
|
+
readonly video_url: {
|
|
232
|
+
readonly url: string;
|
|
233
|
+
};
|
|
219
234
|
} | {
|
|
220
235
|
readonly type: "file";
|
|
221
236
|
readonly file: {
|
|
@@ -237,6 +252,11 @@ export declare const route: Route<{
|
|
|
237
252
|
readonly image_url: {
|
|
238
253
|
readonly url: string;
|
|
239
254
|
};
|
|
255
|
+
} | {
|
|
256
|
+
readonly type: "video_url";
|
|
257
|
+
readonly video_url: {
|
|
258
|
+
readonly url: string;
|
|
259
|
+
};
|
|
240
260
|
} | {
|
|
241
261
|
readonly type: "file";
|
|
242
262
|
readonly file: {
|
|
@@ -338,6 +358,11 @@ export declare const routes: Route<{
|
|
|
338
358
|
readonly image_url: {
|
|
339
359
|
readonly url: string;
|
|
340
360
|
};
|
|
361
|
+
} | {
|
|
362
|
+
readonly type: "video_url";
|
|
363
|
+
readonly video_url: {
|
|
364
|
+
readonly url: string;
|
|
365
|
+
};
|
|
341
366
|
} | {
|
|
342
367
|
readonly type: "file";
|
|
343
368
|
readonly file: {
|
|
@@ -359,6 +384,11 @@ export declare const routes: Route<{
|
|
|
359
384
|
readonly image_url: {
|
|
360
385
|
readonly url: string;
|
|
361
386
|
};
|
|
387
|
+
} | {
|
|
388
|
+
readonly type: "video_url";
|
|
389
|
+
readonly video_url: {
|
|
390
|
+
readonly url: string;
|
|
391
|
+
};
|
|
362
392
|
} | {
|
|
363
393
|
readonly type: "file";
|
|
364
394
|
readonly file: {
|
|
@@ -21,6 +21,11 @@ export declare const route: Route<{
|
|
|
21
21
|
readonly image_url: {
|
|
22
22
|
readonly url: string;
|
|
23
23
|
};
|
|
24
|
+
} | {
|
|
25
|
+
readonly type: "video_url";
|
|
26
|
+
readonly video_url: {
|
|
27
|
+
readonly url: string;
|
|
28
|
+
};
|
|
24
29
|
} | {
|
|
25
30
|
readonly type: "file";
|
|
26
31
|
readonly file: {
|
|
@@ -42,6 +47,11 @@ export declare const route: Route<{
|
|
|
42
47
|
readonly image_url: {
|
|
43
48
|
readonly url: string;
|
|
44
49
|
};
|
|
50
|
+
} | {
|
|
51
|
+
readonly type: "video_url";
|
|
52
|
+
readonly video_url: {
|
|
53
|
+
readonly url: string;
|
|
54
|
+
};
|
|
45
55
|
} | {
|
|
46
56
|
readonly type: "file";
|
|
47
57
|
readonly file: {
|
|
@@ -143,6 +153,11 @@ export declare const routes: Route<{
|
|
|
143
153
|
readonly image_url: {
|
|
144
154
|
readonly url: string;
|
|
145
155
|
};
|
|
156
|
+
} | {
|
|
157
|
+
readonly type: "video_url";
|
|
158
|
+
readonly video_url: {
|
|
159
|
+
readonly url: string;
|
|
160
|
+
};
|
|
146
161
|
} | {
|
|
147
162
|
readonly type: "file";
|
|
148
163
|
readonly file: {
|
|
@@ -164,6 +179,11 @@ export declare const routes: Route<{
|
|
|
164
179
|
readonly image_url: {
|
|
165
180
|
readonly url: string;
|
|
166
181
|
};
|
|
182
|
+
} | {
|
|
183
|
+
readonly type: "video_url";
|
|
184
|
+
readonly video_url: {
|
|
185
|
+
readonly url: string;
|
|
186
|
+
};
|
|
167
187
|
} | {
|
|
168
188
|
readonly type: "file";
|
|
169
189
|
readonly file: {
|
|
@@ -26,6 +26,11 @@ export declare const routes: Route<{
|
|
|
26
26
|
readonly image_url: {
|
|
27
27
|
readonly url: string;
|
|
28
28
|
};
|
|
29
|
+
} | {
|
|
30
|
+
readonly type: "video_url";
|
|
31
|
+
readonly video_url: {
|
|
32
|
+
readonly url: string;
|
|
33
|
+
};
|
|
29
34
|
} | {
|
|
30
35
|
readonly type: "file";
|
|
31
36
|
readonly file: {
|
|
@@ -47,6 +52,11 @@ export declare const routes: Route<{
|
|
|
47
52
|
readonly image_url: {
|
|
48
53
|
readonly url: string;
|
|
49
54
|
};
|
|
55
|
+
} | {
|
|
56
|
+
readonly type: "video_url";
|
|
57
|
+
readonly video_url: {
|
|
58
|
+
readonly url: string;
|
|
59
|
+
};
|
|
50
60
|
} | {
|
|
51
61
|
readonly type: "file";
|
|
52
62
|
readonly file: {
|
package/dist/providers/groq.d.ts
CHANGED
|
@@ -30,6 +30,11 @@ export declare const protocol: Protocol<{
|
|
|
30
30
|
readonly image_url: {
|
|
31
31
|
readonly url: string;
|
|
32
32
|
};
|
|
33
|
+
} | {
|
|
34
|
+
readonly type: "video_url";
|
|
35
|
+
readonly video_url: {
|
|
36
|
+
readonly url: string;
|
|
37
|
+
};
|
|
33
38
|
} | {
|
|
34
39
|
readonly type: "file";
|
|
35
40
|
readonly file: {
|
|
@@ -51,6 +56,11 @@ export declare const protocol: Protocol<{
|
|
|
51
56
|
readonly image_url: {
|
|
52
57
|
readonly url: string;
|
|
53
58
|
};
|
|
59
|
+
} | {
|
|
60
|
+
readonly type: "video_url";
|
|
61
|
+
readonly video_url: {
|
|
62
|
+
readonly url: string;
|
|
63
|
+
};
|
|
54
64
|
} | {
|
|
55
65
|
readonly type: "file";
|
|
56
66
|
readonly file: {
|
|
@@ -229,6 +239,11 @@ export declare const route: Route<{
|
|
|
229
239
|
readonly image_url: {
|
|
230
240
|
readonly url: string;
|
|
231
241
|
};
|
|
242
|
+
} | {
|
|
243
|
+
readonly type: "video_url";
|
|
244
|
+
readonly video_url: {
|
|
245
|
+
readonly url: string;
|
|
246
|
+
};
|
|
232
247
|
} | {
|
|
233
248
|
readonly type: "file";
|
|
234
249
|
readonly file: {
|
|
@@ -250,6 +265,11 @@ export declare const route: Route<{
|
|
|
250
265
|
readonly image_url: {
|
|
251
266
|
readonly url: string;
|
|
252
267
|
};
|
|
268
|
+
} | {
|
|
269
|
+
readonly type: "video_url";
|
|
270
|
+
readonly video_url: {
|
|
271
|
+
readonly url: string;
|
|
272
|
+
};
|
|
253
273
|
} | {
|
|
254
274
|
readonly type: "file";
|
|
255
275
|
readonly file: {
|
package/dist/providers/meta.d.ts
CHANGED
|
@@ -47,6 +47,11 @@ export declare const routes: (Route<{
|
|
|
47
47
|
readonly image_url: {
|
|
48
48
|
readonly url: string;
|
|
49
49
|
};
|
|
50
|
+
} | {
|
|
51
|
+
readonly type: "video_url";
|
|
52
|
+
readonly video_url: {
|
|
53
|
+
readonly url: string;
|
|
54
|
+
};
|
|
50
55
|
} | {
|
|
51
56
|
readonly type: "file";
|
|
52
57
|
readonly file: {
|
|
@@ -68,6 +73,11 @@ export declare const routes: (Route<{
|
|
|
68
73
|
readonly image_url: {
|
|
69
74
|
readonly url: string;
|
|
70
75
|
};
|
|
76
|
+
} | {
|
|
77
|
+
readonly type: "video_url";
|
|
78
|
+
readonly video_url: {
|
|
79
|
+
readonly url: string;
|
|
80
|
+
};
|
|
71
81
|
} | {
|
|
72
82
|
readonly type: "file";
|
|
73
83
|
readonly file: {
|
|
@@ -491,6 +491,11 @@ export declare const routes: (Route<{
|
|
|
491
491
|
readonly image_url: {
|
|
492
492
|
readonly url: string;
|
|
493
493
|
};
|
|
494
|
+
} | {
|
|
495
|
+
readonly type: "video_url";
|
|
496
|
+
readonly video_url: {
|
|
497
|
+
readonly url: string;
|
|
498
|
+
};
|
|
494
499
|
} | {
|
|
495
500
|
readonly type: "file";
|
|
496
501
|
readonly file: {
|
|
@@ -512,6 +517,11 @@ export declare const routes: (Route<{
|
|
|
512
517
|
readonly image_url: {
|
|
513
518
|
readonly url: string;
|
|
514
519
|
};
|
|
520
|
+
} | {
|
|
521
|
+
readonly type: "video_url";
|
|
522
|
+
readonly video_url: {
|
|
523
|
+
readonly url: string;
|
|
524
|
+
};
|
|
515
525
|
} | {
|
|
516
526
|
readonly type: "file";
|
|
517
527
|
readonly file: {
|
|
@@ -489,6 +489,11 @@ export declare const routes: (Route<{
|
|
|
489
489
|
readonly image_url: {
|
|
490
490
|
readonly url: string;
|
|
491
491
|
};
|
|
492
|
+
} | {
|
|
493
|
+
readonly type: "video_url";
|
|
494
|
+
readonly video_url: {
|
|
495
|
+
readonly url: string;
|
|
496
|
+
};
|
|
492
497
|
} | {
|
|
493
498
|
readonly type: "file";
|
|
494
499
|
readonly file: {
|
|
@@ -510,6 +515,11 @@ export declare const routes: (Route<{
|
|
|
510
515
|
readonly image_url: {
|
|
511
516
|
readonly url: string;
|
|
512
517
|
};
|
|
518
|
+
} | {
|
|
519
|
+
readonly type: "video_url";
|
|
520
|
+
readonly video_url: {
|
|
521
|
+
readonly url: string;
|
|
522
|
+
};
|
|
513
523
|
} | {
|
|
514
524
|
readonly type: "file";
|
|
515
525
|
readonly file: {
|
|
@@ -23,6 +23,11 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
23
23
|
readonly image_url: {
|
|
24
24
|
readonly url: string;
|
|
25
25
|
};
|
|
26
|
+
} | {
|
|
27
|
+
readonly type: "video_url";
|
|
28
|
+
readonly video_url: {
|
|
29
|
+
readonly url: string;
|
|
30
|
+
};
|
|
26
31
|
} | {
|
|
27
32
|
readonly type: "file";
|
|
28
33
|
readonly file: {
|
|
@@ -44,6 +49,11 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
44
49
|
readonly image_url: {
|
|
45
50
|
readonly url: string;
|
|
46
51
|
};
|
|
52
|
+
} | {
|
|
53
|
+
readonly type: "video_url";
|
|
54
|
+
readonly video_url: {
|
|
55
|
+
readonly url: string;
|
|
56
|
+
};
|
|
47
57
|
} | {
|
|
48
58
|
readonly type: "file";
|
|
49
59
|
readonly file: {
|
|
@@ -19,6 +19,11 @@ export declare const routes: (Route<{
|
|
|
19
19
|
readonly image_url: {
|
|
20
20
|
readonly url: string;
|
|
21
21
|
};
|
|
22
|
+
} | {
|
|
23
|
+
readonly type: "video_url";
|
|
24
|
+
readonly video_url: {
|
|
25
|
+
readonly url: string;
|
|
26
|
+
};
|
|
22
27
|
} | {
|
|
23
28
|
readonly type: "file";
|
|
24
29
|
readonly file: {
|
|
@@ -40,6 +45,11 @@ export declare const routes: (Route<{
|
|
|
40
45
|
readonly image_url: {
|
|
41
46
|
readonly url: string;
|
|
42
47
|
};
|
|
48
|
+
} | {
|
|
49
|
+
readonly type: "video_url";
|
|
50
|
+
readonly video_url: {
|
|
51
|
+
readonly url: string;
|
|
52
|
+
};
|
|
43
53
|
} | {
|
|
44
54
|
readonly type: "file";
|
|
45
55
|
readonly file: {
|
|
@@ -103,6 +103,11 @@ declare const OpenRouterBody: Schema.StructWithRest<Schema.Struct<{
|
|
|
103
103
|
readonly image_url: Schema.Struct<{
|
|
104
104
|
readonly url: Schema.String;
|
|
105
105
|
}>;
|
|
106
|
+
}>, Schema.Struct<{
|
|
107
|
+
readonly type: Schema.Literal<"video_url">;
|
|
108
|
+
readonly video_url: Schema.Struct<{
|
|
109
|
+
readonly url: Schema.String;
|
|
110
|
+
}>;
|
|
106
111
|
}>, Schema.Struct<{
|
|
107
112
|
readonly type: Schema.Literal<"file">;
|
|
108
113
|
readonly file: Schema.Struct<{
|
|
@@ -124,6 +129,11 @@ declare const OpenRouterBody: Schema.StructWithRest<Schema.Struct<{
|
|
|
124
129
|
readonly image_url: Schema.Struct<{
|
|
125
130
|
readonly url: Schema.String;
|
|
126
131
|
}>;
|
|
132
|
+
}>, Schema.Struct<{
|
|
133
|
+
readonly type: Schema.Literal<"video_url">;
|
|
134
|
+
readonly video_url: Schema.Struct<{
|
|
135
|
+
readonly url: Schema.String;
|
|
136
|
+
}>;
|
|
127
137
|
}>, Schema.Struct<{
|
|
128
138
|
readonly type: Schema.Literal<"file">;
|
|
129
139
|
readonly file: Schema.Struct<{
|
|
@@ -224,6 +234,11 @@ export declare const protocol: Protocol<{
|
|
|
224
234
|
readonly image_url: {
|
|
225
235
|
readonly url: string;
|
|
226
236
|
};
|
|
237
|
+
} | {
|
|
238
|
+
readonly type: "video_url";
|
|
239
|
+
readonly video_url: {
|
|
240
|
+
readonly url: string;
|
|
241
|
+
};
|
|
227
242
|
} | {
|
|
228
243
|
readonly type: "file";
|
|
229
244
|
readonly file: {
|
|
@@ -245,6 +260,11 @@ export declare const protocol: Protocol<{
|
|
|
245
260
|
readonly image_url: {
|
|
246
261
|
readonly url: string;
|
|
247
262
|
};
|
|
263
|
+
} | {
|
|
264
|
+
readonly type: "video_url";
|
|
265
|
+
readonly video_url: {
|
|
266
|
+
readonly url: string;
|
|
267
|
+
};
|
|
248
268
|
} | {
|
|
249
269
|
readonly type: "file";
|
|
250
270
|
readonly file: {
|
|
@@ -436,6 +456,11 @@ export declare const route: Route<{
|
|
|
436
456
|
readonly image_url: {
|
|
437
457
|
readonly url: string;
|
|
438
458
|
};
|
|
459
|
+
} | {
|
|
460
|
+
readonly type: "video_url";
|
|
461
|
+
readonly video_url: {
|
|
462
|
+
readonly url: string;
|
|
463
|
+
};
|
|
439
464
|
} | {
|
|
440
465
|
readonly type: "file";
|
|
441
466
|
readonly file: {
|
|
@@ -457,6 +482,11 @@ export declare const route: Route<{
|
|
|
457
482
|
readonly image_url: {
|
|
458
483
|
readonly url: string;
|
|
459
484
|
};
|
|
485
|
+
} | {
|
|
486
|
+
readonly type: "video_url";
|
|
487
|
+
readonly video_url: {
|
|
488
|
+
readonly url: string;
|
|
489
|
+
};
|
|
460
490
|
} | {
|
|
461
491
|
readonly type: "file";
|
|
462
492
|
readonly file: {
|
|
@@ -576,6 +606,11 @@ export declare const routes: Route<{
|
|
|
576
606
|
readonly image_url: {
|
|
577
607
|
readonly url: string;
|
|
578
608
|
};
|
|
609
|
+
} | {
|
|
610
|
+
readonly type: "video_url";
|
|
611
|
+
readonly video_url: {
|
|
612
|
+
readonly url: string;
|
|
613
|
+
};
|
|
579
614
|
} | {
|
|
580
615
|
readonly type: "file";
|
|
581
616
|
readonly file: {
|
|
@@ -597,6 +632,11 @@ export declare const routes: Route<{
|
|
|
597
632
|
readonly image_url: {
|
|
598
633
|
readonly url: string;
|
|
599
634
|
};
|
|
635
|
+
} | {
|
|
636
|
+
readonly type: "video_url";
|
|
637
|
+
readonly video_url: {
|
|
638
|
+
readonly url: string;
|
|
639
|
+
};
|
|
600
640
|
} | {
|
|
601
641
|
readonly type: "file";
|
|
602
642
|
readonly file: {
|
|
@@ -21,6 +21,11 @@ export declare const route: Route<{
|
|
|
21
21
|
readonly image_url: {
|
|
22
22
|
readonly url: string;
|
|
23
23
|
};
|
|
24
|
+
} | {
|
|
25
|
+
readonly type: "video_url";
|
|
26
|
+
readonly video_url: {
|
|
27
|
+
readonly url: string;
|
|
28
|
+
};
|
|
24
29
|
} | {
|
|
25
30
|
readonly type: "file";
|
|
26
31
|
readonly file: {
|
|
@@ -42,6 +47,11 @@ export declare const route: Route<{
|
|
|
42
47
|
readonly image_url: {
|
|
43
48
|
readonly url: string;
|
|
44
49
|
};
|
|
50
|
+
} | {
|
|
51
|
+
readonly type: "video_url";
|
|
52
|
+
readonly video_url: {
|
|
53
|
+
readonly url: string;
|
|
54
|
+
};
|
|
45
55
|
} | {
|
|
46
56
|
readonly type: "file";
|
|
47
57
|
readonly file: {
|
|
@@ -143,6 +153,11 @@ export declare const routes: Route<{
|
|
|
143
153
|
readonly image_url: {
|
|
144
154
|
readonly url: string;
|
|
145
155
|
};
|
|
156
|
+
} | {
|
|
157
|
+
readonly type: "video_url";
|
|
158
|
+
readonly video_url: {
|
|
159
|
+
readonly url: string;
|
|
160
|
+
};
|
|
146
161
|
} | {
|
|
147
162
|
readonly type: "file";
|
|
148
163
|
readonly file: {
|
|
@@ -164,6 +179,11 @@ export declare const routes: Route<{
|
|
|
164
179
|
readonly image_url: {
|
|
165
180
|
readonly url: string;
|
|
166
181
|
};
|
|
182
|
+
} | {
|
|
183
|
+
readonly type: "video_url";
|
|
184
|
+
readonly video_url: {
|
|
185
|
+
readonly url: string;
|
|
186
|
+
};
|
|
167
187
|
} | {
|
|
168
188
|
readonly type: "file";
|
|
169
189
|
readonly file: {
|
|
@@ -61,6 +61,11 @@ export declare const routes: Route<{
|
|
|
61
61
|
readonly image_url: {
|
|
62
62
|
readonly url: string;
|
|
63
63
|
};
|
|
64
|
+
} | {
|
|
65
|
+
readonly type: "video_url";
|
|
66
|
+
readonly video_url: {
|
|
67
|
+
readonly url: string;
|
|
68
|
+
};
|
|
64
69
|
} | {
|
|
65
70
|
readonly type: "file";
|
|
66
71
|
readonly file: {
|
|
@@ -82,6 +87,11 @@ export declare const routes: Route<{
|
|
|
82
87
|
readonly image_url: {
|
|
83
88
|
readonly url: string;
|
|
84
89
|
};
|
|
90
|
+
} | {
|
|
91
|
+
readonly type: "video_url";
|
|
92
|
+
readonly video_url: {
|
|
93
|
+
readonly url: string;
|
|
94
|
+
};
|
|
85
95
|
} | {
|
|
86
96
|
readonly type: "file";
|
|
87
97
|
readonly file: {
|
package/dist/providers/xai.d.ts
CHANGED
|
@@ -31,6 +31,11 @@ export declare const routes: (Route<unknown, import("../protocols/open-responses
|
|
|
31
31
|
readonly image_url: {
|
|
32
32
|
readonly url: string;
|
|
33
33
|
};
|
|
34
|
+
} | {
|
|
35
|
+
readonly type: "video_url";
|
|
36
|
+
readonly video_url: {
|
|
37
|
+
readonly url: string;
|
|
38
|
+
};
|
|
34
39
|
} | {
|
|
35
40
|
readonly type: "file";
|
|
36
41
|
readonly file: {
|
|
@@ -52,6 +57,11 @@ export declare const routes: (Route<unknown, import("../protocols/open-responses
|
|
|
52
57
|
readonly image_url: {
|
|
53
58
|
readonly url: string;
|
|
54
59
|
};
|
|
60
|
+
} | {
|
|
61
|
+
readonly type: "video_url";
|
|
62
|
+
readonly video_url: {
|
|
63
|
+
readonly url: string;
|
|
64
|
+
};
|
|
55
65
|
} | {
|
|
56
66
|
readonly type: "file";
|
|
57
67
|
readonly file: {
|