@opencode/ai 0.0.0-dev-20052 → 0.0.0-dev-20053
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 +12 -0
- package/dist/protocols/alibaba-responses.d.ts +2 -2
- package/dist/protocols/meta-responses.d.ts +4 -4
- package/dist/protocols/open-responses.d.ts +6 -6
- package/dist/protocols/openai-chat.d.ts +84 -0
- package/dist/protocols/openai-chat.js +25 -12
- package/dist/protocols/openai-compatible-chat.d.ts +12 -0
- package/dist/protocols/openai-compatible-responses.d.ts +2 -2
- package/dist/protocols/openai-responses.d.ts +10 -10
- package/dist/protocols/xai-responses.d.ts +2 -2
- package/dist/protocols/zai-chat.d.ts +12 -0
- package/dist/providers/alibaba.d.ts +14 -2
- package/dist/providers/amazon-bedrock-mantle.d.ts +14 -2
- package/dist/providers/azure.d.ts +16 -4
- package/dist/providers/baseten.d.ts +24 -0
- package/dist/providers/cerebras.d.ts +24 -0
- package/dist/providers/cloudflare-ai-gateway.d.ts +28 -4
- package/dist/providers/cloudflare-workers-ai.d.ts +24 -0
- package/dist/providers/deepinfra.d.ts +24 -0
- package/dist/providers/deepseek.d.ts +24 -0
- package/dist/providers/fireworks.d.ts +24 -0
- package/dist/providers/google-vertex-chat.d.ts +12 -0
- package/dist/providers/google-vertex-responses.d.ts +2 -2
- package/dist/providers/groq.d.ts +24 -0
- package/dist/providers/meta.d.ts +14 -2
- package/dist/providers/minimax.d.ts +14 -2
- package/dist/providers/moonshot.d.ts +14 -2
- package/dist/providers/openai-compatible-responses.d.ts +2 -2
- package/dist/providers/openai-compatible.d.ts +12 -0
- package/dist/providers/openai.d.ts +14 -2
- package/dist/providers/openrouter.d.ts +48 -0
- package/dist/providers/togetherai.d.ts +24 -0
- package/dist/providers/xai.d.ts +12 -0
- package/dist/providers/zai-coding-plan.d.ts +14 -2
- package/dist/providers/zai.d.ts +12 -0
- package/package.json +3 -3
|
@@ -42,6 +42,12 @@ export declare const routes: (Route<{
|
|
|
42
42
|
readonly image_url: {
|
|
43
43
|
readonly url: string;
|
|
44
44
|
};
|
|
45
|
+
} | {
|
|
46
|
+
readonly type: "file";
|
|
47
|
+
readonly file: {
|
|
48
|
+
readonly filename: string;
|
|
49
|
+
readonly file_data: string;
|
|
50
|
+
};
|
|
45
51
|
})[];
|
|
46
52
|
} | {
|
|
47
53
|
readonly role: "user";
|
|
@@ -57,6 +63,12 @@ export declare const routes: (Route<{
|
|
|
57
63
|
readonly image_url: {
|
|
58
64
|
readonly url: string;
|
|
59
65
|
};
|
|
66
|
+
} | {
|
|
67
|
+
readonly type: "file";
|
|
68
|
+
readonly file: {
|
|
69
|
+
readonly filename: string;
|
|
70
|
+
readonly file_data: string;
|
|
71
|
+
};
|
|
60
72
|
})[];
|
|
61
73
|
} | {
|
|
62
74
|
readonly [x: string]: unknown;
|
|
@@ -191,8 +203,8 @@ export declare const routes: (Route<{
|
|
|
191
203
|
} | {
|
|
192
204
|
readonly type: "input_file";
|
|
193
205
|
readonly filename: string;
|
|
194
|
-
readonly detail?: string | undefined;
|
|
195
206
|
readonly file_data?: string | undefined;
|
|
207
|
+
readonly detail?: string | undefined;
|
|
196
208
|
readonly file_url?: string | undefined;
|
|
197
209
|
} | {
|
|
198
210
|
readonly type: "input_text";
|
|
@@ -228,8 +240,8 @@ export declare const routes: (Route<{
|
|
|
228
240
|
} | {
|
|
229
241
|
readonly type: "input_file";
|
|
230
242
|
readonly filename: string;
|
|
231
|
-
readonly detail?: string | undefined;
|
|
232
243
|
readonly file_data?: string | undefined;
|
|
244
|
+
readonly detail?: string | undefined;
|
|
233
245
|
readonly file_url?: string | undefined;
|
|
234
246
|
} | {
|
|
235
247
|
readonly type: "input_text";
|
|
@@ -93,8 +93,8 @@ declare const responsesRoute: Route<{
|
|
|
93
93
|
} | {
|
|
94
94
|
readonly type: "input_file";
|
|
95
95
|
readonly filename: string;
|
|
96
|
-
readonly detail?: string | undefined;
|
|
97
96
|
readonly file_data?: string | undefined;
|
|
97
|
+
readonly detail?: string | undefined;
|
|
98
98
|
readonly file_url?: string | undefined;
|
|
99
99
|
} | {
|
|
100
100
|
readonly type: "input_text";
|
|
@@ -130,8 +130,8 @@ declare const responsesRoute: Route<{
|
|
|
130
130
|
} | {
|
|
131
131
|
readonly type: "input_file";
|
|
132
132
|
readonly filename: string;
|
|
133
|
-
readonly detail?: string | undefined;
|
|
134
133
|
readonly file_data?: string | undefined;
|
|
134
|
+
readonly detail?: string | undefined;
|
|
135
135
|
readonly file_url?: string | undefined;
|
|
136
136
|
} | {
|
|
137
137
|
readonly type: "input_text";
|
|
@@ -267,6 +267,12 @@ export declare const routes: (Route<{
|
|
|
267
267
|
readonly image_url: {
|
|
268
268
|
readonly url: string;
|
|
269
269
|
};
|
|
270
|
+
} | {
|
|
271
|
+
readonly type: "file";
|
|
272
|
+
readonly file: {
|
|
273
|
+
readonly filename: string;
|
|
274
|
+
readonly file_data: string;
|
|
275
|
+
};
|
|
270
276
|
})[];
|
|
271
277
|
} | {
|
|
272
278
|
readonly role: "user";
|
|
@@ -282,6 +288,12 @@ export declare const routes: (Route<{
|
|
|
282
288
|
readonly image_url: {
|
|
283
289
|
readonly url: string;
|
|
284
290
|
};
|
|
291
|
+
} | {
|
|
292
|
+
readonly type: "file";
|
|
293
|
+
readonly file: {
|
|
294
|
+
readonly filename: string;
|
|
295
|
+
readonly file_data: string;
|
|
296
|
+
};
|
|
285
297
|
})[];
|
|
286
298
|
} | {
|
|
287
299
|
readonly [x: string]: unknown;
|
|
@@ -421,8 +433,8 @@ export declare const routes: (Route<{
|
|
|
421
433
|
} | {
|
|
422
434
|
readonly type: "input_file";
|
|
423
435
|
readonly filename: string;
|
|
424
|
-
readonly detail?: string | undefined;
|
|
425
436
|
readonly file_data?: string | undefined;
|
|
437
|
+
readonly detail?: string | undefined;
|
|
426
438
|
readonly file_url?: string | undefined;
|
|
427
439
|
} | {
|
|
428
440
|
readonly type: "input_text";
|
|
@@ -458,8 +470,8 @@ export declare const routes: (Route<{
|
|
|
458
470
|
} | {
|
|
459
471
|
readonly type: "input_file";
|
|
460
472
|
readonly filename: string;
|
|
461
|
-
readonly detail?: string | undefined;
|
|
462
473
|
readonly file_data?: string | undefined;
|
|
474
|
+
readonly detail?: string | undefined;
|
|
463
475
|
readonly file_url?: string | undefined;
|
|
464
476
|
} | {
|
|
465
477
|
readonly type: "input_text";
|
|
@@ -28,6 +28,12 @@ export declare const route: Route<{
|
|
|
28
28
|
readonly image_url: {
|
|
29
29
|
readonly url: string;
|
|
30
30
|
};
|
|
31
|
+
} | {
|
|
32
|
+
readonly type: "file";
|
|
33
|
+
readonly file: {
|
|
34
|
+
readonly filename: string;
|
|
35
|
+
readonly file_data: string;
|
|
36
|
+
};
|
|
31
37
|
})[];
|
|
32
38
|
} | {
|
|
33
39
|
readonly role: "user";
|
|
@@ -43,6 +49,12 @@ export declare const route: Route<{
|
|
|
43
49
|
readonly image_url: {
|
|
44
50
|
readonly url: string;
|
|
45
51
|
};
|
|
52
|
+
} | {
|
|
53
|
+
readonly type: "file";
|
|
54
|
+
readonly file: {
|
|
55
|
+
readonly filename: string;
|
|
56
|
+
readonly file_data: string;
|
|
57
|
+
};
|
|
46
58
|
})[];
|
|
47
59
|
} | {
|
|
48
60
|
readonly [x: string]: unknown;
|
|
@@ -127,6 +139,12 @@ export declare const routes: Route<{
|
|
|
127
139
|
readonly image_url: {
|
|
128
140
|
readonly url: string;
|
|
129
141
|
};
|
|
142
|
+
} | {
|
|
143
|
+
readonly type: "file";
|
|
144
|
+
readonly file: {
|
|
145
|
+
readonly filename: string;
|
|
146
|
+
readonly file_data: string;
|
|
147
|
+
};
|
|
130
148
|
})[];
|
|
131
149
|
} | {
|
|
132
150
|
readonly role: "user";
|
|
@@ -142,6 +160,12 @@ export declare const routes: Route<{
|
|
|
142
160
|
readonly image_url: {
|
|
143
161
|
readonly url: string;
|
|
144
162
|
};
|
|
163
|
+
} | {
|
|
164
|
+
readonly type: "file";
|
|
165
|
+
readonly file: {
|
|
166
|
+
readonly filename: string;
|
|
167
|
+
readonly file_data: string;
|
|
168
|
+
};
|
|
145
169
|
})[];
|
|
146
170
|
} | {
|
|
147
171
|
readonly [x: string]: unknown;
|
|
@@ -28,6 +28,12 @@ export declare const route: Route<{
|
|
|
28
28
|
readonly image_url: {
|
|
29
29
|
readonly url: string;
|
|
30
30
|
};
|
|
31
|
+
} | {
|
|
32
|
+
readonly type: "file";
|
|
33
|
+
readonly file: {
|
|
34
|
+
readonly filename: string;
|
|
35
|
+
readonly file_data: string;
|
|
36
|
+
};
|
|
31
37
|
})[];
|
|
32
38
|
} | {
|
|
33
39
|
readonly role: "user";
|
|
@@ -43,6 +49,12 @@ export declare const route: Route<{
|
|
|
43
49
|
readonly image_url: {
|
|
44
50
|
readonly url: string;
|
|
45
51
|
};
|
|
52
|
+
} | {
|
|
53
|
+
readonly type: "file";
|
|
54
|
+
readonly file: {
|
|
55
|
+
readonly filename: string;
|
|
56
|
+
readonly file_data: string;
|
|
57
|
+
};
|
|
46
58
|
})[];
|
|
47
59
|
} | {
|
|
48
60
|
readonly [x: string]: unknown;
|
|
@@ -127,6 +139,12 @@ export declare const routes: Route<{
|
|
|
127
139
|
readonly image_url: {
|
|
128
140
|
readonly url: string;
|
|
129
141
|
};
|
|
142
|
+
} | {
|
|
143
|
+
readonly type: "file";
|
|
144
|
+
readonly file: {
|
|
145
|
+
readonly filename: string;
|
|
146
|
+
readonly file_data: string;
|
|
147
|
+
};
|
|
130
148
|
})[];
|
|
131
149
|
} | {
|
|
132
150
|
readonly role: "user";
|
|
@@ -142,6 +160,12 @@ export declare const routes: Route<{
|
|
|
142
160
|
readonly image_url: {
|
|
143
161
|
readonly url: string;
|
|
144
162
|
};
|
|
163
|
+
} | {
|
|
164
|
+
readonly type: "file";
|
|
165
|
+
readonly file: {
|
|
166
|
+
readonly filename: string;
|
|
167
|
+
readonly file_data: string;
|
|
168
|
+
};
|
|
145
169
|
})[];
|
|
146
170
|
} | {
|
|
147
171
|
readonly [x: string]: unknown;
|
|
@@ -99,8 +99,8 @@ export declare const responsesRoute: import("../route/client.js").Route<{
|
|
|
99
99
|
} | {
|
|
100
100
|
readonly type: "input_file";
|
|
101
101
|
readonly filename: string;
|
|
102
|
-
readonly detail?: string | undefined;
|
|
103
102
|
readonly file_data?: string | undefined;
|
|
103
|
+
readonly detail?: string | undefined;
|
|
104
104
|
readonly file_url?: string | undefined;
|
|
105
105
|
} | {
|
|
106
106
|
readonly type: "input_text";
|
|
@@ -136,8 +136,8 @@ export declare const responsesRoute: import("../route/client.js").Route<{
|
|
|
136
136
|
} | {
|
|
137
137
|
readonly type: "input_file";
|
|
138
138
|
readonly filename: string;
|
|
139
|
-
readonly detail?: string | undefined;
|
|
140
139
|
readonly file_data?: string | undefined;
|
|
140
|
+
readonly detail?: string | undefined;
|
|
141
141
|
readonly file_url?: string | undefined;
|
|
142
142
|
} | {
|
|
143
143
|
readonly type: "input_text";
|
|
@@ -547,6 +547,12 @@ export declare const route: import("../route/client.js").Route<{
|
|
|
547
547
|
readonly image_url: {
|
|
548
548
|
readonly url: string;
|
|
549
549
|
};
|
|
550
|
+
} | {
|
|
551
|
+
readonly type: "file";
|
|
552
|
+
readonly file: {
|
|
553
|
+
readonly filename: string;
|
|
554
|
+
readonly file_data: string;
|
|
555
|
+
};
|
|
550
556
|
})[];
|
|
551
557
|
} | {
|
|
552
558
|
readonly role: "user";
|
|
@@ -562,6 +568,12 @@ export declare const route: import("../route/client.js").Route<{
|
|
|
562
568
|
readonly image_url: {
|
|
563
569
|
readonly url: string;
|
|
564
570
|
};
|
|
571
|
+
} | {
|
|
572
|
+
readonly type: "file";
|
|
573
|
+
readonly file: {
|
|
574
|
+
readonly filename: string;
|
|
575
|
+
readonly file_data: string;
|
|
576
|
+
};
|
|
565
577
|
})[];
|
|
566
578
|
} | {
|
|
567
579
|
readonly [x: string]: unknown;
|
|
@@ -918,6 +930,12 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
918
930
|
readonly image_url: {
|
|
919
931
|
readonly url: string;
|
|
920
932
|
};
|
|
933
|
+
} | {
|
|
934
|
+
readonly type: "file";
|
|
935
|
+
readonly file: {
|
|
936
|
+
readonly filename: string;
|
|
937
|
+
readonly file_data: string;
|
|
938
|
+
};
|
|
921
939
|
})[];
|
|
922
940
|
} | {
|
|
923
941
|
readonly role: "user";
|
|
@@ -933,6 +951,12 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
933
951
|
readonly image_url: {
|
|
934
952
|
readonly url: string;
|
|
935
953
|
};
|
|
954
|
+
} | {
|
|
955
|
+
readonly type: "file";
|
|
956
|
+
readonly file: {
|
|
957
|
+
readonly filename: string;
|
|
958
|
+
readonly file_data: string;
|
|
959
|
+
};
|
|
936
960
|
})[];
|
|
937
961
|
} | {
|
|
938
962
|
readonly [x: string]: unknown;
|
|
@@ -1072,8 +1096,8 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
1072
1096
|
} | {
|
|
1073
1097
|
readonly type: "input_file";
|
|
1074
1098
|
readonly filename: string;
|
|
1075
|
-
readonly detail?: string | undefined;
|
|
1076
1099
|
readonly file_data?: string | undefined;
|
|
1100
|
+
readonly detail?: string | undefined;
|
|
1077
1101
|
readonly file_url?: string | undefined;
|
|
1078
1102
|
} | {
|
|
1079
1103
|
readonly type: "input_text";
|
|
@@ -1109,8 +1133,8 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
1109
1133
|
} | {
|
|
1110
1134
|
readonly type: "input_file";
|
|
1111
1135
|
readonly filename: string;
|
|
1112
|
-
readonly detail?: string | undefined;
|
|
1113
1136
|
readonly file_data?: string | undefined;
|
|
1137
|
+
readonly detail?: string | undefined;
|
|
1114
1138
|
readonly file_url?: string | undefined;
|
|
1115
1139
|
} | {
|
|
1116
1140
|
readonly type: "input_text";
|
|
@@ -32,6 +32,12 @@ export declare const route: Route<{
|
|
|
32
32
|
readonly image_url: {
|
|
33
33
|
readonly url: string;
|
|
34
34
|
};
|
|
35
|
+
} | {
|
|
36
|
+
readonly type: "file";
|
|
37
|
+
readonly file: {
|
|
38
|
+
readonly filename: string;
|
|
39
|
+
readonly file_data: string;
|
|
40
|
+
};
|
|
35
41
|
})[];
|
|
36
42
|
} | {
|
|
37
43
|
readonly role: "user";
|
|
@@ -47,6 +53,12 @@ export declare const route: Route<{
|
|
|
47
53
|
readonly image_url: {
|
|
48
54
|
readonly url: string;
|
|
49
55
|
};
|
|
56
|
+
} | {
|
|
57
|
+
readonly type: "file";
|
|
58
|
+
readonly file: {
|
|
59
|
+
readonly filename: string;
|
|
60
|
+
readonly file_data: string;
|
|
61
|
+
};
|
|
50
62
|
})[];
|
|
51
63
|
} | {
|
|
52
64
|
readonly [x: string]: unknown;
|
|
@@ -131,6 +143,12 @@ export declare const routes: Route<{
|
|
|
131
143
|
readonly image_url: {
|
|
132
144
|
readonly url: string;
|
|
133
145
|
};
|
|
146
|
+
} | {
|
|
147
|
+
readonly type: "file";
|
|
148
|
+
readonly file: {
|
|
149
|
+
readonly filename: string;
|
|
150
|
+
readonly file_data: string;
|
|
151
|
+
};
|
|
134
152
|
})[];
|
|
135
153
|
} | {
|
|
136
154
|
readonly role: "user";
|
|
@@ -146,6 +164,12 @@ export declare const routes: Route<{
|
|
|
146
164
|
readonly image_url: {
|
|
147
165
|
readonly url: string;
|
|
148
166
|
};
|
|
167
|
+
} | {
|
|
168
|
+
readonly type: "file";
|
|
169
|
+
readonly file: {
|
|
170
|
+
readonly filename: string;
|
|
171
|
+
readonly file_data: string;
|
|
172
|
+
};
|
|
149
173
|
})[];
|
|
150
174
|
} | {
|
|
151
175
|
readonly [x: string]: unknown;
|
|
@@ -28,6 +28,12 @@ export declare const route: Route<{
|
|
|
28
28
|
readonly image_url: {
|
|
29
29
|
readonly url: string;
|
|
30
30
|
};
|
|
31
|
+
} | {
|
|
32
|
+
readonly type: "file";
|
|
33
|
+
readonly file: {
|
|
34
|
+
readonly filename: string;
|
|
35
|
+
readonly file_data: string;
|
|
36
|
+
};
|
|
31
37
|
})[];
|
|
32
38
|
} | {
|
|
33
39
|
readonly role: "user";
|
|
@@ -43,6 +49,12 @@ export declare const route: Route<{
|
|
|
43
49
|
readonly image_url: {
|
|
44
50
|
readonly url: string;
|
|
45
51
|
};
|
|
52
|
+
} | {
|
|
53
|
+
readonly type: "file";
|
|
54
|
+
readonly file: {
|
|
55
|
+
readonly filename: string;
|
|
56
|
+
readonly file_data: string;
|
|
57
|
+
};
|
|
46
58
|
})[];
|
|
47
59
|
} | {
|
|
48
60
|
readonly [x: string]: unknown;
|
|
@@ -127,6 +139,12 @@ export declare const routes: Route<{
|
|
|
127
139
|
readonly image_url: {
|
|
128
140
|
readonly url: string;
|
|
129
141
|
};
|
|
142
|
+
} | {
|
|
143
|
+
readonly type: "file";
|
|
144
|
+
readonly file: {
|
|
145
|
+
readonly filename: string;
|
|
146
|
+
readonly file_data: string;
|
|
147
|
+
};
|
|
130
148
|
})[];
|
|
131
149
|
} | {
|
|
132
150
|
readonly role: "user";
|
|
@@ -142,6 +160,12 @@ export declare const routes: Route<{
|
|
|
142
160
|
readonly image_url: {
|
|
143
161
|
readonly url: string;
|
|
144
162
|
};
|
|
163
|
+
} | {
|
|
164
|
+
readonly type: "file";
|
|
165
|
+
readonly file: {
|
|
166
|
+
readonly filename: string;
|
|
167
|
+
readonly file_data: string;
|
|
168
|
+
};
|
|
145
169
|
})[];
|
|
146
170
|
} | {
|
|
147
171
|
readonly [x: string]: unknown;
|
|
@@ -28,6 +28,12 @@ export declare const route: Route<{
|
|
|
28
28
|
readonly image_url: {
|
|
29
29
|
readonly url: string;
|
|
30
30
|
};
|
|
31
|
+
} | {
|
|
32
|
+
readonly type: "file";
|
|
33
|
+
readonly file: {
|
|
34
|
+
readonly filename: string;
|
|
35
|
+
readonly file_data: string;
|
|
36
|
+
};
|
|
31
37
|
})[];
|
|
32
38
|
} | {
|
|
33
39
|
readonly role: "user";
|
|
@@ -43,6 +49,12 @@ export declare const route: Route<{
|
|
|
43
49
|
readonly image_url: {
|
|
44
50
|
readonly url: string;
|
|
45
51
|
};
|
|
52
|
+
} | {
|
|
53
|
+
readonly type: "file";
|
|
54
|
+
readonly file: {
|
|
55
|
+
readonly filename: string;
|
|
56
|
+
readonly file_data: string;
|
|
57
|
+
};
|
|
46
58
|
})[];
|
|
47
59
|
} | {
|
|
48
60
|
readonly [x: string]: unknown;
|
|
@@ -127,6 +139,12 @@ export declare const routes: Route<{
|
|
|
127
139
|
readonly image_url: {
|
|
128
140
|
readonly url: string;
|
|
129
141
|
};
|
|
142
|
+
} | {
|
|
143
|
+
readonly type: "file";
|
|
144
|
+
readonly file: {
|
|
145
|
+
readonly filename: string;
|
|
146
|
+
readonly file_data: string;
|
|
147
|
+
};
|
|
130
148
|
})[];
|
|
131
149
|
} | {
|
|
132
150
|
readonly role: "user";
|
|
@@ -142,6 +160,12 @@ export declare const routes: Route<{
|
|
|
142
160
|
readonly image_url: {
|
|
143
161
|
readonly url: string;
|
|
144
162
|
};
|
|
163
|
+
} | {
|
|
164
|
+
readonly type: "file";
|
|
165
|
+
readonly file: {
|
|
166
|
+
readonly filename: string;
|
|
167
|
+
readonly file_data: string;
|
|
168
|
+
};
|
|
145
169
|
})[];
|
|
146
170
|
} | {
|
|
147
171
|
readonly [x: string]: unknown;
|
|
@@ -28,6 +28,12 @@ export declare const route: Route<{
|
|
|
28
28
|
readonly image_url: {
|
|
29
29
|
readonly url: string;
|
|
30
30
|
};
|
|
31
|
+
} | {
|
|
32
|
+
readonly type: "file";
|
|
33
|
+
readonly file: {
|
|
34
|
+
readonly filename: string;
|
|
35
|
+
readonly file_data: string;
|
|
36
|
+
};
|
|
31
37
|
})[];
|
|
32
38
|
} | {
|
|
33
39
|
readonly role: "user";
|
|
@@ -43,6 +49,12 @@ export declare const route: Route<{
|
|
|
43
49
|
readonly image_url: {
|
|
44
50
|
readonly url: string;
|
|
45
51
|
};
|
|
52
|
+
} | {
|
|
53
|
+
readonly type: "file";
|
|
54
|
+
readonly file: {
|
|
55
|
+
readonly filename: string;
|
|
56
|
+
readonly file_data: string;
|
|
57
|
+
};
|
|
46
58
|
})[];
|
|
47
59
|
} | {
|
|
48
60
|
readonly [x: string]: unknown;
|
|
@@ -127,6 +139,12 @@ export declare const routes: Route<{
|
|
|
127
139
|
readonly image_url: {
|
|
128
140
|
readonly url: string;
|
|
129
141
|
};
|
|
142
|
+
} | {
|
|
143
|
+
readonly type: "file";
|
|
144
|
+
readonly file: {
|
|
145
|
+
readonly filename: string;
|
|
146
|
+
readonly file_data: string;
|
|
147
|
+
};
|
|
130
148
|
})[];
|
|
131
149
|
} | {
|
|
132
150
|
readonly role: "user";
|
|
@@ -142,6 +160,12 @@ export declare const routes: Route<{
|
|
|
142
160
|
readonly image_url: {
|
|
143
161
|
readonly url: string;
|
|
144
162
|
};
|
|
163
|
+
} | {
|
|
164
|
+
readonly type: "file";
|
|
165
|
+
readonly file: {
|
|
166
|
+
readonly filename: string;
|
|
167
|
+
readonly file_data: string;
|
|
168
|
+
};
|
|
145
169
|
})[];
|
|
146
170
|
} | {
|
|
147
171
|
readonly [x: string]: unknown;
|
|
@@ -33,6 +33,12 @@ export declare const routes: Route<{
|
|
|
33
33
|
readonly image_url: {
|
|
34
34
|
readonly url: string;
|
|
35
35
|
};
|
|
36
|
+
} | {
|
|
37
|
+
readonly type: "file";
|
|
38
|
+
readonly file: {
|
|
39
|
+
readonly filename: string;
|
|
40
|
+
readonly file_data: string;
|
|
41
|
+
};
|
|
36
42
|
})[];
|
|
37
43
|
} | {
|
|
38
44
|
readonly role: "user";
|
|
@@ -48,6 +54,12 @@ export declare const routes: Route<{
|
|
|
48
54
|
readonly image_url: {
|
|
49
55
|
readonly url: string;
|
|
50
56
|
};
|
|
57
|
+
} | {
|
|
58
|
+
readonly type: "file";
|
|
59
|
+
readonly file: {
|
|
60
|
+
readonly filename: string;
|
|
61
|
+
readonly file_data: string;
|
|
62
|
+
};
|
|
51
63
|
})[];
|
|
52
64
|
} | {
|
|
53
65
|
readonly [x: string]: unknown;
|
|
@@ -84,8 +84,8 @@ export declare const routes: Route<{
|
|
|
84
84
|
} | {
|
|
85
85
|
readonly type: "input_file";
|
|
86
86
|
readonly filename: string;
|
|
87
|
-
readonly detail?: string | undefined;
|
|
88
87
|
readonly file_data?: string | undefined;
|
|
88
|
+
readonly detail?: string | undefined;
|
|
89
89
|
readonly file_url?: string | undefined;
|
|
90
90
|
} | {
|
|
91
91
|
readonly type: "input_text";
|
|
@@ -121,8 +121,8 @@ export declare const routes: Route<{
|
|
|
121
121
|
} | {
|
|
122
122
|
readonly type: "input_file";
|
|
123
123
|
readonly filename: string;
|
|
124
|
-
readonly detail?: string | undefined;
|
|
125
124
|
readonly file_data?: string | undefined;
|
|
125
|
+
readonly detail?: string | undefined;
|
|
126
126
|
readonly file_url?: string | undefined;
|
|
127
127
|
} | {
|
|
128
128
|
readonly type: "input_text";
|
package/dist/providers/groq.d.ts
CHANGED
|
@@ -37,6 +37,12 @@ export declare const protocol: Protocol<{
|
|
|
37
37
|
readonly image_url: {
|
|
38
38
|
readonly url: string;
|
|
39
39
|
};
|
|
40
|
+
} | {
|
|
41
|
+
readonly type: "file";
|
|
42
|
+
readonly file: {
|
|
43
|
+
readonly filename: string;
|
|
44
|
+
readonly file_data: string;
|
|
45
|
+
};
|
|
40
46
|
})[];
|
|
41
47
|
} | {
|
|
42
48
|
readonly role: "user";
|
|
@@ -52,6 +58,12 @@ export declare const protocol: Protocol<{
|
|
|
52
58
|
readonly image_url: {
|
|
53
59
|
readonly url: string;
|
|
54
60
|
};
|
|
61
|
+
} | {
|
|
62
|
+
readonly type: "file";
|
|
63
|
+
readonly file: {
|
|
64
|
+
readonly filename: string;
|
|
65
|
+
readonly file_data: string;
|
|
66
|
+
};
|
|
55
67
|
})[];
|
|
56
68
|
} | {
|
|
57
69
|
readonly [x: string]: unknown;
|
|
@@ -208,6 +220,12 @@ export declare const route: Route<{
|
|
|
208
220
|
readonly image_url: {
|
|
209
221
|
readonly url: string;
|
|
210
222
|
};
|
|
223
|
+
} | {
|
|
224
|
+
readonly type: "file";
|
|
225
|
+
readonly file: {
|
|
226
|
+
readonly filename: string;
|
|
227
|
+
readonly file_data: string;
|
|
228
|
+
};
|
|
211
229
|
})[];
|
|
212
230
|
} | {
|
|
213
231
|
readonly role: "user";
|
|
@@ -223,6 +241,12 @@ export declare const route: Route<{
|
|
|
223
241
|
readonly image_url: {
|
|
224
242
|
readonly url: string;
|
|
225
243
|
};
|
|
244
|
+
} | {
|
|
245
|
+
readonly type: "file";
|
|
246
|
+
readonly file: {
|
|
247
|
+
readonly filename: string;
|
|
248
|
+
readonly file_data: string;
|
|
249
|
+
};
|
|
226
250
|
})[];
|
|
227
251
|
} | {
|
|
228
252
|
readonly [x: string]: unknown;
|
package/dist/providers/meta.d.ts
CHANGED
|
@@ -54,6 +54,12 @@ export declare const routes: (Route<{
|
|
|
54
54
|
readonly image_url: {
|
|
55
55
|
readonly url: string;
|
|
56
56
|
};
|
|
57
|
+
} | {
|
|
58
|
+
readonly type: "file";
|
|
59
|
+
readonly file: {
|
|
60
|
+
readonly filename: string;
|
|
61
|
+
readonly file_data: string;
|
|
62
|
+
};
|
|
57
63
|
})[];
|
|
58
64
|
} | {
|
|
59
65
|
readonly role: "user";
|
|
@@ -69,6 +75,12 @@ export declare const routes: (Route<{
|
|
|
69
75
|
readonly image_url: {
|
|
70
76
|
readonly url: string;
|
|
71
77
|
};
|
|
78
|
+
} | {
|
|
79
|
+
readonly type: "file";
|
|
80
|
+
readonly file: {
|
|
81
|
+
readonly filename: string;
|
|
82
|
+
readonly file_data: string;
|
|
83
|
+
};
|
|
72
84
|
})[];
|
|
73
85
|
} | {
|
|
74
86
|
readonly [x: string]: unknown;
|
|
@@ -203,8 +215,8 @@ export declare const routes: (Route<{
|
|
|
203
215
|
} | {
|
|
204
216
|
readonly type: "input_file";
|
|
205
217
|
readonly filename: string;
|
|
206
|
-
readonly detail?: string | undefined;
|
|
207
218
|
readonly file_data?: string | undefined;
|
|
219
|
+
readonly detail?: string | undefined;
|
|
208
220
|
readonly file_url?: string | undefined;
|
|
209
221
|
} | {
|
|
210
222
|
readonly type: "input_text";
|
|
@@ -240,8 +252,8 @@ export declare const routes: (Route<{
|
|
|
240
252
|
} | {
|
|
241
253
|
readonly type: "input_file";
|
|
242
254
|
readonly filename: string;
|
|
243
|
-
readonly detail?: string | undefined;
|
|
244
255
|
readonly file_data?: string | undefined;
|
|
256
|
+
readonly detail?: string | undefined;
|
|
245
257
|
readonly file_url?: string | undefined;
|
|
246
258
|
} | {
|
|
247
259
|
readonly type: "input_text";
|
|
@@ -372,8 +372,8 @@ export declare const routes: (Route<{
|
|
|
372
372
|
} | {
|
|
373
373
|
readonly type: "input_file";
|
|
374
374
|
readonly filename: string;
|
|
375
|
-
readonly detail?: string | undefined;
|
|
376
375
|
readonly file_data?: string | undefined;
|
|
376
|
+
readonly detail?: string | undefined;
|
|
377
377
|
readonly file_url?: string | undefined;
|
|
378
378
|
} | {
|
|
379
379
|
readonly type: "input_text";
|
|
@@ -409,8 +409,8 @@ export declare const routes: (Route<{
|
|
|
409
409
|
} | {
|
|
410
410
|
readonly type: "input_file";
|
|
411
411
|
readonly filename: string;
|
|
412
|
-
readonly detail?: string | undefined;
|
|
413
412
|
readonly file_data?: string | undefined;
|
|
413
|
+
readonly detail?: string | undefined;
|
|
414
414
|
readonly file_url?: string | undefined;
|
|
415
415
|
} | {
|
|
416
416
|
readonly type: "input_text";
|
|
@@ -486,6 +486,12 @@ export declare const routes: (Route<{
|
|
|
486
486
|
readonly image_url: {
|
|
487
487
|
readonly url: string;
|
|
488
488
|
};
|
|
489
|
+
} | {
|
|
490
|
+
readonly type: "file";
|
|
491
|
+
readonly file: {
|
|
492
|
+
readonly filename: string;
|
|
493
|
+
readonly file_data: string;
|
|
494
|
+
};
|
|
489
495
|
})[];
|
|
490
496
|
} | {
|
|
491
497
|
readonly role: "user";
|
|
@@ -501,6 +507,12 @@ export declare const routes: (Route<{
|
|
|
501
507
|
readonly image_url: {
|
|
502
508
|
readonly url: string;
|
|
503
509
|
};
|
|
510
|
+
} | {
|
|
511
|
+
readonly type: "file";
|
|
512
|
+
readonly file: {
|
|
513
|
+
readonly filename: string;
|
|
514
|
+
readonly file_data: string;
|
|
515
|
+
};
|
|
504
516
|
})[];
|
|
505
517
|
} | {
|
|
506
518
|
readonly [x: string]: unknown;
|