@hebo-ai/gateway 0.9.3 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -12
- package/dist/endpoints/chat-completions/otel.js +0 -1
- package/dist/endpoints/chat-completions/schema.d.ts +289 -57
- package/dist/endpoints/conversations/schema.d.ts +200 -40
- package/dist/endpoints/messages/converters.d.ts +24 -0
- package/dist/endpoints/messages/converters.js +661 -0
- package/dist/endpoints/messages/handler.d.ts +2 -0
- package/dist/endpoints/messages/handler.js +142 -0
- package/dist/endpoints/messages/index.d.ts +4 -0
- package/dist/endpoints/messages/index.js +4 -0
- package/dist/endpoints/messages/otel.d.ts +6 -0
- package/dist/endpoints/messages/otel.js +171 -0
- package/dist/endpoints/messages/schema.d.ts +623 -0
- package/dist/endpoints/messages/schema.js +185 -0
- package/dist/endpoints/responses/otel.js +0 -1
- package/dist/endpoints/responses/schema.d.ts +237 -45
- package/dist/endpoints/shared/schema.d.ts +23 -2
- package/dist/endpoints/shared/schema.js +3 -1
- package/dist/errors/anthropic.d.ts +10 -0
- package/dist/errors/anthropic.js +46 -0
- package/dist/errors/openai.js +1 -10
- package/dist/errors/utils.d.ts +3 -1
- package/dist/errors/utils.js +9 -0
- package/dist/gateway.d.ts +1 -0
- package/dist/gateway.js +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/lifecycle.js +12 -3
- package/dist/models/anthropic/middleware.js +5 -0
- package/dist/providers/bedrock/middleware.js +16 -1
- package/dist/providers/registry.d.ts +1 -1
- package/dist/telemetry/gen-ai.js +4 -0
- package/dist/types.d.ts +6 -5
- package/dist/utils/response.d.ts +1 -0
- package/dist/utils/stream.d.ts +1 -0
- package/dist/utils/stream.js +10 -3
- package/package.json +14 -3
|
@@ -7,7 +7,11 @@ export declare const ChatCompletionsContentPartTextSchema: z.ZodObject<{
|
|
|
7
7
|
text: z.ZodString;
|
|
8
8
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
9
9
|
type: z.ZodLiteral<"ephemeral">;
|
|
10
|
-
ttl: z.ZodOptional<z.
|
|
10
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
"5m": "5m";
|
|
12
|
+
"1h": "1h";
|
|
13
|
+
"24h": "24h";
|
|
14
|
+
}>>;
|
|
11
15
|
}, z.core.$strip>>;
|
|
12
16
|
}, z.core.$strip>;
|
|
13
17
|
export type ChatCompletionsContentPartText = z.infer<typeof ChatCompletionsContentPartTextSchema>;
|
|
@@ -23,7 +27,11 @@ export declare const ChatCompletionsContentPartImageSchema: z.ZodObject<{
|
|
|
23
27
|
}, z.core.$strip>;
|
|
24
28
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
25
29
|
type: z.ZodLiteral<"ephemeral">;
|
|
26
|
-
ttl: z.ZodOptional<z.
|
|
30
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
31
|
+
"5m": "5m";
|
|
32
|
+
"1h": "1h";
|
|
33
|
+
"24h": "24h";
|
|
34
|
+
}>>;
|
|
27
35
|
}, z.core.$strip>>;
|
|
28
36
|
}, z.core.$strip>;
|
|
29
37
|
export declare const ChatCompletionsContentPartFileSchema: z.ZodObject<{
|
|
@@ -35,7 +43,11 @@ export declare const ChatCompletionsContentPartFileSchema: z.ZodObject<{
|
|
|
35
43
|
}, z.core.$strip>;
|
|
36
44
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
37
45
|
type: z.ZodLiteral<"ephemeral">;
|
|
38
|
-
ttl: z.ZodOptional<z.
|
|
46
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
47
|
+
"5m": "5m";
|
|
48
|
+
"1h": "1h";
|
|
49
|
+
"24h": "24h";
|
|
50
|
+
}>>;
|
|
39
51
|
}, z.core.$strip>>;
|
|
40
52
|
}, z.core.$strip>;
|
|
41
53
|
export declare const ChatCompletionsContentPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -43,7 +55,11 @@ export declare const ChatCompletionsContentPartSchema: z.ZodDiscriminatedUnion<[
|
|
|
43
55
|
text: z.ZodString;
|
|
44
56
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
45
57
|
type: z.ZodLiteral<"ephemeral">;
|
|
46
|
-
ttl: z.ZodOptional<z.
|
|
58
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
59
|
+
"5m": "5m";
|
|
60
|
+
"1h": "1h";
|
|
61
|
+
"24h": "24h";
|
|
62
|
+
}>>;
|
|
47
63
|
}, z.core.$strip>>;
|
|
48
64
|
}, z.core.$strip>, z.ZodObject<{
|
|
49
65
|
type: z.ZodLiteral<"image_url">;
|
|
@@ -57,7 +73,11 @@ export declare const ChatCompletionsContentPartSchema: z.ZodDiscriminatedUnion<[
|
|
|
57
73
|
}, z.core.$strip>;
|
|
58
74
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
59
75
|
type: z.ZodLiteral<"ephemeral">;
|
|
60
|
-
ttl: z.ZodOptional<z.
|
|
76
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
77
|
+
"5m": "5m";
|
|
78
|
+
"1h": "1h";
|
|
79
|
+
"24h": "24h";
|
|
80
|
+
}>>;
|
|
61
81
|
}, z.core.$strip>>;
|
|
62
82
|
}, z.core.$strip>, z.ZodObject<{
|
|
63
83
|
type: z.ZodLiteral<"file">;
|
|
@@ -68,7 +88,11 @@ export declare const ChatCompletionsContentPartSchema: z.ZodDiscriminatedUnion<[
|
|
|
68
88
|
}, z.core.$strip>;
|
|
69
89
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
70
90
|
type: z.ZodLiteral<"ephemeral">;
|
|
71
|
-
ttl: z.ZodOptional<z.
|
|
91
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
92
|
+
"5m": "5m";
|
|
93
|
+
"1h": "1h";
|
|
94
|
+
"24h": "24h";
|
|
95
|
+
}>>;
|
|
72
96
|
}, z.core.$strip>>;
|
|
73
97
|
}, z.core.$strip>, z.ZodObject<{
|
|
74
98
|
type: z.ZodLiteral<"input_audio">;
|
|
@@ -90,7 +114,11 @@ export declare const ChatCompletionsContentPartSchema: z.ZodDiscriminatedUnion<[
|
|
|
90
114
|
}, z.core.$strip>;
|
|
91
115
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
92
116
|
type: z.ZodLiteral<"ephemeral">;
|
|
93
|
-
ttl: z.ZodOptional<z.
|
|
117
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
118
|
+
"5m": "5m";
|
|
119
|
+
"1h": "1h";
|
|
120
|
+
"24h": "24h";
|
|
121
|
+
}>>;
|
|
94
122
|
}, z.core.$strip>>;
|
|
95
123
|
}, z.core.$strip>], "type">;
|
|
96
124
|
export type ChatCompletionsContentPart = z.infer<typeof ChatCompletionsContentPartSchema>;
|
|
@@ -110,7 +138,11 @@ export declare const ChatCompletionsSystemMessageSchema: z.ZodObject<{
|
|
|
110
138
|
name: z.ZodOptional<z.ZodString>;
|
|
111
139
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
112
140
|
type: z.ZodLiteral<"ephemeral">;
|
|
113
|
-
ttl: z.ZodOptional<z.
|
|
141
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
142
|
+
"5m": "5m";
|
|
143
|
+
"1h": "1h";
|
|
144
|
+
"24h": "24h";
|
|
145
|
+
}>>;
|
|
114
146
|
}, z.core.$strip>>;
|
|
115
147
|
}, z.core.$strip>;
|
|
116
148
|
export type ChatCompletionsSystemMessage = z.infer<typeof ChatCompletionsSystemMessageSchema>;
|
|
@@ -121,7 +153,11 @@ export declare const ChatCompletionsUserMessageSchema: z.ZodObject<{
|
|
|
121
153
|
text: z.ZodString;
|
|
122
154
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
123
155
|
type: z.ZodLiteral<"ephemeral">;
|
|
124
|
-
ttl: z.ZodOptional<z.
|
|
156
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
157
|
+
"5m": "5m";
|
|
158
|
+
"1h": "1h";
|
|
159
|
+
"24h": "24h";
|
|
160
|
+
}>>;
|
|
125
161
|
}, z.core.$strip>>;
|
|
126
162
|
}, z.core.$strip>, z.ZodObject<{
|
|
127
163
|
type: z.ZodLiteral<"image_url">;
|
|
@@ -135,7 +171,11 @@ export declare const ChatCompletionsUserMessageSchema: z.ZodObject<{
|
|
|
135
171
|
}, z.core.$strip>;
|
|
136
172
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
137
173
|
type: z.ZodLiteral<"ephemeral">;
|
|
138
|
-
ttl: z.ZodOptional<z.
|
|
174
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
175
|
+
"5m": "5m";
|
|
176
|
+
"1h": "1h";
|
|
177
|
+
"24h": "24h";
|
|
178
|
+
}>>;
|
|
139
179
|
}, z.core.$strip>>;
|
|
140
180
|
}, z.core.$strip>, z.ZodObject<{
|
|
141
181
|
type: z.ZodLiteral<"file">;
|
|
@@ -146,7 +186,11 @@ export declare const ChatCompletionsUserMessageSchema: z.ZodObject<{
|
|
|
146
186
|
}, z.core.$strip>;
|
|
147
187
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
148
188
|
type: z.ZodLiteral<"ephemeral">;
|
|
149
|
-
ttl: z.ZodOptional<z.
|
|
189
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
190
|
+
"5m": "5m";
|
|
191
|
+
"1h": "1h";
|
|
192
|
+
"24h": "24h";
|
|
193
|
+
}>>;
|
|
150
194
|
}, z.core.$strip>>;
|
|
151
195
|
}, z.core.$strip>, z.ZodObject<{
|
|
152
196
|
type: z.ZodLiteral<"input_audio">;
|
|
@@ -168,13 +212,21 @@ export declare const ChatCompletionsUserMessageSchema: z.ZodObject<{
|
|
|
168
212
|
}, z.core.$strip>;
|
|
169
213
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
170
214
|
type: z.ZodLiteral<"ephemeral">;
|
|
171
|
-
ttl: z.ZodOptional<z.
|
|
215
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
216
|
+
"5m": "5m";
|
|
217
|
+
"1h": "1h";
|
|
218
|
+
"24h": "24h";
|
|
219
|
+
}>>;
|
|
172
220
|
}, z.core.$strip>>;
|
|
173
221
|
}, z.core.$strip>], "type">>]>;
|
|
174
222
|
name: z.ZodOptional<z.ZodString>;
|
|
175
223
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
176
224
|
type: z.ZodLiteral<"ephemeral">;
|
|
177
|
-
ttl: z.ZodOptional<z.
|
|
225
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
226
|
+
"5m": "5m";
|
|
227
|
+
"1h": "1h";
|
|
228
|
+
"24h": "24h";
|
|
229
|
+
}>>;
|
|
178
230
|
}, z.core.$strip>>;
|
|
179
231
|
}, z.core.$strip>;
|
|
180
232
|
export type ChatCompletionsUserMessage = z.infer<typeof ChatCompletionsUserMessageSchema>;
|
|
@@ -196,7 +248,11 @@ export declare const ChatCompletionsAssistantMessageSchema: z.ZodObject<{
|
|
|
196
248
|
text: z.ZodString;
|
|
197
249
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
198
250
|
type: z.ZodLiteral<"ephemeral">;
|
|
199
|
-
ttl: z.ZodOptional<z.
|
|
251
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
252
|
+
"5m": "5m";
|
|
253
|
+
"1h": "1h";
|
|
254
|
+
"24h": "24h";
|
|
255
|
+
}>>;
|
|
200
256
|
}, z.core.$strip>>;
|
|
201
257
|
}, z.core.$strip>>]>>;
|
|
202
258
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -223,7 +279,11 @@ export declare const ChatCompletionsAssistantMessageSchema: z.ZodObject<{
|
|
|
223
279
|
extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
|
|
224
280
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
225
281
|
type: z.ZodLiteral<"ephemeral">;
|
|
226
|
-
ttl: z.ZodOptional<z.
|
|
282
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
283
|
+
"5m": "5m";
|
|
284
|
+
"1h": "1h";
|
|
285
|
+
"24h": "24h";
|
|
286
|
+
}>>;
|
|
227
287
|
}, z.core.$strip>>;
|
|
228
288
|
}, z.core.$strip>;
|
|
229
289
|
export type ChatCompletionsAssistantMessage = z.infer<typeof ChatCompletionsAssistantMessageSchema>;
|
|
@@ -234,7 +294,11 @@ export declare const ChatCompletionsToolMessageSchema: z.ZodObject<{
|
|
|
234
294
|
text: z.ZodString;
|
|
235
295
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
236
296
|
type: z.ZodLiteral<"ephemeral">;
|
|
237
|
-
ttl: z.ZodOptional<z.
|
|
297
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
298
|
+
"5m": "5m";
|
|
299
|
+
"1h": "1h";
|
|
300
|
+
"24h": "24h";
|
|
301
|
+
}>>;
|
|
238
302
|
}, z.core.$strip>>;
|
|
239
303
|
}, z.core.$strip>>]>;
|
|
240
304
|
tool_call_id: z.ZodString;
|
|
@@ -246,7 +310,11 @@ export declare const ChatCompletionsMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
246
310
|
name: z.ZodOptional<z.ZodString>;
|
|
247
311
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
248
312
|
type: z.ZodLiteral<"ephemeral">;
|
|
249
|
-
ttl: z.ZodOptional<z.
|
|
313
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
314
|
+
"5m": "5m";
|
|
315
|
+
"1h": "1h";
|
|
316
|
+
"24h": "24h";
|
|
317
|
+
}>>;
|
|
250
318
|
}, z.core.$strip>>;
|
|
251
319
|
}, z.core.$strip>, z.ZodObject<{
|
|
252
320
|
role: z.ZodLiteral<"user">;
|
|
@@ -255,7 +323,11 @@ export declare const ChatCompletionsMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
255
323
|
text: z.ZodString;
|
|
256
324
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
257
325
|
type: z.ZodLiteral<"ephemeral">;
|
|
258
|
-
ttl: z.ZodOptional<z.
|
|
326
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
327
|
+
"5m": "5m";
|
|
328
|
+
"1h": "1h";
|
|
329
|
+
"24h": "24h";
|
|
330
|
+
}>>;
|
|
259
331
|
}, z.core.$strip>>;
|
|
260
332
|
}, z.core.$strip>, z.ZodObject<{
|
|
261
333
|
type: z.ZodLiteral<"image_url">;
|
|
@@ -269,7 +341,11 @@ export declare const ChatCompletionsMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
269
341
|
}, z.core.$strip>;
|
|
270
342
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
271
343
|
type: z.ZodLiteral<"ephemeral">;
|
|
272
|
-
ttl: z.ZodOptional<z.
|
|
344
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
345
|
+
"5m": "5m";
|
|
346
|
+
"1h": "1h";
|
|
347
|
+
"24h": "24h";
|
|
348
|
+
}>>;
|
|
273
349
|
}, z.core.$strip>>;
|
|
274
350
|
}, z.core.$strip>, z.ZodObject<{
|
|
275
351
|
type: z.ZodLiteral<"file">;
|
|
@@ -280,7 +356,11 @@ export declare const ChatCompletionsMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
280
356
|
}, z.core.$strip>;
|
|
281
357
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
282
358
|
type: z.ZodLiteral<"ephemeral">;
|
|
283
|
-
ttl: z.ZodOptional<z.
|
|
359
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
360
|
+
"5m": "5m";
|
|
361
|
+
"1h": "1h";
|
|
362
|
+
"24h": "24h";
|
|
363
|
+
}>>;
|
|
284
364
|
}, z.core.$strip>>;
|
|
285
365
|
}, z.core.$strip>, z.ZodObject<{
|
|
286
366
|
type: z.ZodLiteral<"input_audio">;
|
|
@@ -302,13 +382,21 @@ export declare const ChatCompletionsMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
302
382
|
}, z.core.$strip>;
|
|
303
383
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
304
384
|
type: z.ZodLiteral<"ephemeral">;
|
|
305
|
-
ttl: z.ZodOptional<z.
|
|
385
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
386
|
+
"5m": "5m";
|
|
387
|
+
"1h": "1h";
|
|
388
|
+
"24h": "24h";
|
|
389
|
+
}>>;
|
|
306
390
|
}, z.core.$strip>>;
|
|
307
391
|
}, z.core.$strip>], "type">>]>;
|
|
308
392
|
name: z.ZodOptional<z.ZodString>;
|
|
309
393
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
310
394
|
type: z.ZodLiteral<"ephemeral">;
|
|
311
|
-
ttl: z.ZodOptional<z.
|
|
395
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
396
|
+
"5m": "5m";
|
|
397
|
+
"1h": "1h";
|
|
398
|
+
"24h": "24h";
|
|
399
|
+
}>>;
|
|
312
400
|
}, z.core.$strip>>;
|
|
313
401
|
}, z.core.$strip>, z.ZodObject<{
|
|
314
402
|
role: z.ZodLiteral<"assistant">;
|
|
@@ -317,7 +405,11 @@ export declare const ChatCompletionsMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
317
405
|
text: z.ZodString;
|
|
318
406
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
319
407
|
type: z.ZodLiteral<"ephemeral">;
|
|
320
|
-
ttl: z.ZodOptional<z.
|
|
408
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
409
|
+
"5m": "5m";
|
|
410
|
+
"1h": "1h";
|
|
411
|
+
"24h": "24h";
|
|
412
|
+
}>>;
|
|
321
413
|
}, z.core.$strip>>;
|
|
322
414
|
}, z.core.$strip>>]>>;
|
|
323
415
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -344,7 +436,11 @@ export declare const ChatCompletionsMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
344
436
|
extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
|
|
345
437
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
346
438
|
type: z.ZodLiteral<"ephemeral">;
|
|
347
|
-
ttl: z.ZodOptional<z.
|
|
439
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
440
|
+
"5m": "5m";
|
|
441
|
+
"1h": "1h";
|
|
442
|
+
"24h": "24h";
|
|
443
|
+
}>>;
|
|
348
444
|
}, z.core.$strip>>;
|
|
349
445
|
}, z.core.$strip>, z.ZodObject<{
|
|
350
446
|
role: z.ZodLiteral<"tool">;
|
|
@@ -353,7 +449,11 @@ export declare const ChatCompletionsMessageSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
353
449
|
text: z.ZodString;
|
|
354
450
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
355
451
|
type: z.ZodLiteral<"ephemeral">;
|
|
356
|
-
ttl: z.ZodOptional<z.
|
|
452
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
453
|
+
"5m": "5m";
|
|
454
|
+
"1h": "1h";
|
|
455
|
+
"24h": "24h";
|
|
456
|
+
}>>;
|
|
357
457
|
}, z.core.$strip>>;
|
|
358
458
|
}, z.core.$strip>>]>;
|
|
359
459
|
tool_call_id: z.ZodString;
|
|
@@ -428,7 +528,11 @@ declare const ChatCompletionsInputsSchema: z.ZodObject<{
|
|
|
428
528
|
name: z.ZodOptional<z.ZodString>;
|
|
429
529
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
430
530
|
type: z.ZodLiteral<"ephemeral">;
|
|
431
|
-
ttl: z.ZodOptional<z.
|
|
531
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
532
|
+
"5m": "5m";
|
|
533
|
+
"1h": "1h";
|
|
534
|
+
"24h": "24h";
|
|
535
|
+
}>>;
|
|
432
536
|
}, z.core.$strip>>;
|
|
433
537
|
}, z.core.$strip>, z.ZodObject<{
|
|
434
538
|
role: z.ZodLiteral<"user">;
|
|
@@ -437,7 +541,11 @@ declare const ChatCompletionsInputsSchema: z.ZodObject<{
|
|
|
437
541
|
text: z.ZodString;
|
|
438
542
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
439
543
|
type: z.ZodLiteral<"ephemeral">;
|
|
440
|
-
ttl: z.ZodOptional<z.
|
|
544
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
545
|
+
"5m": "5m";
|
|
546
|
+
"1h": "1h";
|
|
547
|
+
"24h": "24h";
|
|
548
|
+
}>>;
|
|
441
549
|
}, z.core.$strip>>;
|
|
442
550
|
}, z.core.$strip>, z.ZodObject<{
|
|
443
551
|
type: z.ZodLiteral<"image_url">;
|
|
@@ -451,7 +559,11 @@ declare const ChatCompletionsInputsSchema: z.ZodObject<{
|
|
|
451
559
|
}, z.core.$strip>;
|
|
452
560
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
453
561
|
type: z.ZodLiteral<"ephemeral">;
|
|
454
|
-
ttl: z.ZodOptional<z.
|
|
562
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
563
|
+
"5m": "5m";
|
|
564
|
+
"1h": "1h";
|
|
565
|
+
"24h": "24h";
|
|
566
|
+
}>>;
|
|
455
567
|
}, z.core.$strip>>;
|
|
456
568
|
}, z.core.$strip>, z.ZodObject<{
|
|
457
569
|
type: z.ZodLiteral<"file">;
|
|
@@ -462,7 +574,11 @@ declare const ChatCompletionsInputsSchema: z.ZodObject<{
|
|
|
462
574
|
}, z.core.$strip>;
|
|
463
575
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
464
576
|
type: z.ZodLiteral<"ephemeral">;
|
|
465
|
-
ttl: z.ZodOptional<z.
|
|
577
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
578
|
+
"5m": "5m";
|
|
579
|
+
"1h": "1h";
|
|
580
|
+
"24h": "24h";
|
|
581
|
+
}>>;
|
|
466
582
|
}, z.core.$strip>>;
|
|
467
583
|
}, z.core.$strip>, z.ZodObject<{
|
|
468
584
|
type: z.ZodLiteral<"input_audio">;
|
|
@@ -484,13 +600,21 @@ declare const ChatCompletionsInputsSchema: z.ZodObject<{
|
|
|
484
600
|
}, z.core.$strip>;
|
|
485
601
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
486
602
|
type: z.ZodLiteral<"ephemeral">;
|
|
487
|
-
ttl: z.ZodOptional<z.
|
|
603
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
604
|
+
"5m": "5m";
|
|
605
|
+
"1h": "1h";
|
|
606
|
+
"24h": "24h";
|
|
607
|
+
}>>;
|
|
488
608
|
}, z.core.$strip>>;
|
|
489
609
|
}, z.core.$strip>], "type">>]>;
|
|
490
610
|
name: z.ZodOptional<z.ZodString>;
|
|
491
611
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
492
612
|
type: z.ZodLiteral<"ephemeral">;
|
|
493
|
-
ttl: z.ZodOptional<z.
|
|
613
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
614
|
+
"5m": "5m";
|
|
615
|
+
"1h": "1h";
|
|
616
|
+
"24h": "24h";
|
|
617
|
+
}>>;
|
|
494
618
|
}, z.core.$strip>>;
|
|
495
619
|
}, z.core.$strip>, z.ZodObject<{
|
|
496
620
|
role: z.ZodLiteral<"assistant">;
|
|
@@ -499,7 +623,11 @@ declare const ChatCompletionsInputsSchema: z.ZodObject<{
|
|
|
499
623
|
text: z.ZodString;
|
|
500
624
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
501
625
|
type: z.ZodLiteral<"ephemeral">;
|
|
502
|
-
ttl: z.ZodOptional<z.
|
|
626
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
627
|
+
"5m": "5m";
|
|
628
|
+
"1h": "1h";
|
|
629
|
+
"24h": "24h";
|
|
630
|
+
}>>;
|
|
503
631
|
}, z.core.$strip>>;
|
|
504
632
|
}, z.core.$strip>>]>>;
|
|
505
633
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -526,7 +654,11 @@ declare const ChatCompletionsInputsSchema: z.ZodObject<{
|
|
|
526
654
|
extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
|
|
527
655
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
528
656
|
type: z.ZodLiteral<"ephemeral">;
|
|
529
|
-
ttl: z.ZodOptional<z.
|
|
657
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
658
|
+
"5m": "5m";
|
|
659
|
+
"1h": "1h";
|
|
660
|
+
"24h": "24h";
|
|
661
|
+
}>>;
|
|
530
662
|
}, z.core.$strip>>;
|
|
531
663
|
}, z.core.$strip>, z.ZodObject<{
|
|
532
664
|
role: z.ZodLiteral<"tool">;
|
|
@@ -535,7 +667,11 @@ declare const ChatCompletionsInputsSchema: z.ZodObject<{
|
|
|
535
667
|
text: z.ZodString;
|
|
536
668
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
537
669
|
type: z.ZodLiteral<"ephemeral">;
|
|
538
|
-
ttl: z.ZodOptional<z.
|
|
670
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
671
|
+
"5m": "5m";
|
|
672
|
+
"1h": "1h";
|
|
673
|
+
"24h": "24h";
|
|
674
|
+
}>>;
|
|
539
675
|
}, z.core.$strip>>;
|
|
540
676
|
}, z.core.$strip>>]>;
|
|
541
677
|
tool_call_id: z.ZodString;
|
|
@@ -611,13 +747,17 @@ declare const ChatCompletionsInputsSchema: z.ZodObject<{
|
|
|
611
747
|
}>>;
|
|
612
748
|
prompt_cache_key: z.ZodOptional<z.ZodString>;
|
|
613
749
|
prompt_cache_retention: z.ZodOptional<z.ZodEnum<{
|
|
614
|
-
"in-memory": "in-memory";
|
|
615
750
|
"24h": "24h";
|
|
751
|
+
"in-memory": "in-memory";
|
|
616
752
|
}>>;
|
|
617
753
|
parallel_tool_calls: z.ZodOptional<z.ZodBoolean>;
|
|
618
754
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
619
755
|
type: z.ZodLiteral<"ephemeral">;
|
|
620
|
-
ttl: z.ZodOptional<z.
|
|
756
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
757
|
+
"5m": "5m";
|
|
758
|
+
"1h": "1h";
|
|
759
|
+
"24h": "24h";
|
|
760
|
+
}>>;
|
|
621
761
|
}, z.core.$strip>>;
|
|
622
762
|
reasoning: z.ZodOptional<z.ZodObject<{
|
|
623
763
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -631,6 +771,12 @@ declare const ChatCompletionsInputsSchema: z.ZodObject<{
|
|
|
631
771
|
}>>;
|
|
632
772
|
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
633
773
|
exclude: z.ZodOptional<z.ZodBoolean>;
|
|
774
|
+
summary: z.ZodOptional<z.ZodEnum<{
|
|
775
|
+
none: "none";
|
|
776
|
+
auto: "auto";
|
|
777
|
+
concise: "concise";
|
|
778
|
+
detailed: "detailed";
|
|
779
|
+
}>>;
|
|
634
780
|
}, z.core.$strip>>;
|
|
635
781
|
extra_body: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
|
|
636
782
|
}, z.core.$strip>;
|
|
@@ -642,7 +788,11 @@ export declare const ChatCompletionsBodySchema: z.ZodObject<{
|
|
|
642
788
|
name: z.ZodOptional<z.ZodString>;
|
|
643
789
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
644
790
|
type: z.ZodLiteral<"ephemeral">;
|
|
645
|
-
ttl: z.ZodOptional<z.
|
|
791
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
792
|
+
"5m": "5m";
|
|
793
|
+
"1h": "1h";
|
|
794
|
+
"24h": "24h";
|
|
795
|
+
}>>;
|
|
646
796
|
}, z.core.$strip>>;
|
|
647
797
|
}, z.core.$strip>, z.ZodObject<{
|
|
648
798
|
role: z.ZodLiteral<"user">;
|
|
@@ -651,7 +801,11 @@ export declare const ChatCompletionsBodySchema: z.ZodObject<{
|
|
|
651
801
|
text: z.ZodString;
|
|
652
802
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
653
803
|
type: z.ZodLiteral<"ephemeral">;
|
|
654
|
-
ttl: z.ZodOptional<z.
|
|
804
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
805
|
+
"5m": "5m";
|
|
806
|
+
"1h": "1h";
|
|
807
|
+
"24h": "24h";
|
|
808
|
+
}>>;
|
|
655
809
|
}, z.core.$strip>>;
|
|
656
810
|
}, z.core.$strip>, z.ZodObject<{
|
|
657
811
|
type: z.ZodLiteral<"image_url">;
|
|
@@ -665,7 +819,11 @@ export declare const ChatCompletionsBodySchema: z.ZodObject<{
|
|
|
665
819
|
}, z.core.$strip>;
|
|
666
820
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
667
821
|
type: z.ZodLiteral<"ephemeral">;
|
|
668
|
-
ttl: z.ZodOptional<z.
|
|
822
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
823
|
+
"5m": "5m";
|
|
824
|
+
"1h": "1h";
|
|
825
|
+
"24h": "24h";
|
|
826
|
+
}>>;
|
|
669
827
|
}, z.core.$strip>>;
|
|
670
828
|
}, z.core.$strip>, z.ZodObject<{
|
|
671
829
|
type: z.ZodLiteral<"file">;
|
|
@@ -676,7 +834,11 @@ export declare const ChatCompletionsBodySchema: z.ZodObject<{
|
|
|
676
834
|
}, z.core.$strip>;
|
|
677
835
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
678
836
|
type: z.ZodLiteral<"ephemeral">;
|
|
679
|
-
ttl: z.ZodOptional<z.
|
|
837
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
838
|
+
"5m": "5m";
|
|
839
|
+
"1h": "1h";
|
|
840
|
+
"24h": "24h";
|
|
841
|
+
}>>;
|
|
680
842
|
}, z.core.$strip>>;
|
|
681
843
|
}, z.core.$strip>, z.ZodObject<{
|
|
682
844
|
type: z.ZodLiteral<"input_audio">;
|
|
@@ -698,13 +860,21 @@ export declare const ChatCompletionsBodySchema: z.ZodObject<{
|
|
|
698
860
|
}, z.core.$strip>;
|
|
699
861
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
700
862
|
type: z.ZodLiteral<"ephemeral">;
|
|
701
|
-
ttl: z.ZodOptional<z.
|
|
863
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
864
|
+
"5m": "5m";
|
|
865
|
+
"1h": "1h";
|
|
866
|
+
"24h": "24h";
|
|
867
|
+
}>>;
|
|
702
868
|
}, z.core.$strip>>;
|
|
703
869
|
}, z.core.$strip>], "type">>]>;
|
|
704
870
|
name: z.ZodOptional<z.ZodString>;
|
|
705
871
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
706
872
|
type: z.ZodLiteral<"ephemeral">;
|
|
707
|
-
ttl: z.ZodOptional<z.
|
|
873
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
874
|
+
"5m": "5m";
|
|
875
|
+
"1h": "1h";
|
|
876
|
+
"24h": "24h";
|
|
877
|
+
}>>;
|
|
708
878
|
}, z.core.$strip>>;
|
|
709
879
|
}, z.core.$strip>, z.ZodObject<{
|
|
710
880
|
role: z.ZodLiteral<"assistant">;
|
|
@@ -713,7 +883,11 @@ export declare const ChatCompletionsBodySchema: z.ZodObject<{
|
|
|
713
883
|
text: z.ZodString;
|
|
714
884
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
715
885
|
type: z.ZodLiteral<"ephemeral">;
|
|
716
|
-
ttl: z.ZodOptional<z.
|
|
886
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
887
|
+
"5m": "5m";
|
|
888
|
+
"1h": "1h";
|
|
889
|
+
"24h": "24h";
|
|
890
|
+
}>>;
|
|
717
891
|
}, z.core.$strip>>;
|
|
718
892
|
}, z.core.$strip>>]>>;
|
|
719
893
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -740,7 +914,11 @@ export declare const ChatCompletionsBodySchema: z.ZodObject<{
|
|
|
740
914
|
extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
|
|
741
915
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
742
916
|
type: z.ZodLiteral<"ephemeral">;
|
|
743
|
-
ttl: z.ZodOptional<z.
|
|
917
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
918
|
+
"5m": "5m";
|
|
919
|
+
"1h": "1h";
|
|
920
|
+
"24h": "24h";
|
|
921
|
+
}>>;
|
|
744
922
|
}, z.core.$strip>>;
|
|
745
923
|
}, z.core.$strip>, z.ZodObject<{
|
|
746
924
|
role: z.ZodLiteral<"tool">;
|
|
@@ -749,7 +927,11 @@ export declare const ChatCompletionsBodySchema: z.ZodObject<{
|
|
|
749
927
|
text: z.ZodString;
|
|
750
928
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
751
929
|
type: z.ZodLiteral<"ephemeral">;
|
|
752
|
-
ttl: z.ZodOptional<z.
|
|
930
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
931
|
+
"5m": "5m";
|
|
932
|
+
"1h": "1h";
|
|
933
|
+
"24h": "24h";
|
|
934
|
+
}>>;
|
|
753
935
|
}, z.core.$strip>>;
|
|
754
936
|
}, z.core.$strip>>]>;
|
|
755
937
|
tool_call_id: z.ZodString;
|
|
@@ -825,13 +1007,17 @@ export declare const ChatCompletionsBodySchema: z.ZodObject<{
|
|
|
825
1007
|
}>>;
|
|
826
1008
|
prompt_cache_key: z.ZodOptional<z.ZodString>;
|
|
827
1009
|
prompt_cache_retention: z.ZodOptional<z.ZodEnum<{
|
|
828
|
-
"in-memory": "in-memory";
|
|
829
1010
|
"24h": "24h";
|
|
1011
|
+
"in-memory": "in-memory";
|
|
830
1012
|
}>>;
|
|
831
1013
|
parallel_tool_calls: z.ZodOptional<z.ZodBoolean>;
|
|
832
1014
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
833
1015
|
type: z.ZodLiteral<"ephemeral">;
|
|
834
|
-
ttl: z.ZodOptional<z.
|
|
1016
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1017
|
+
"5m": "5m";
|
|
1018
|
+
"1h": "1h";
|
|
1019
|
+
"24h": "24h";
|
|
1020
|
+
}>>;
|
|
835
1021
|
}, z.core.$strip>>;
|
|
836
1022
|
reasoning: z.ZodOptional<z.ZodObject<{
|
|
837
1023
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -845,6 +1031,12 @@ export declare const ChatCompletionsBodySchema: z.ZodObject<{
|
|
|
845
1031
|
}>>;
|
|
846
1032
|
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
847
1033
|
exclude: z.ZodOptional<z.ZodBoolean>;
|
|
1034
|
+
summary: z.ZodOptional<z.ZodEnum<{
|
|
1035
|
+
none: "none";
|
|
1036
|
+
auto: "auto";
|
|
1037
|
+
concise: "concise";
|
|
1038
|
+
detailed: "detailed";
|
|
1039
|
+
}>>;
|
|
848
1040
|
}, z.core.$strip>>;
|
|
849
1041
|
extra_body: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
|
|
850
1042
|
model: z.ZodString;
|
|
@@ -867,7 +1059,11 @@ export declare const ChatCompletionsChoiceSchema: z.ZodObject<{
|
|
|
867
1059
|
text: z.ZodString;
|
|
868
1060
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
869
1061
|
type: z.ZodLiteral<"ephemeral">;
|
|
870
|
-
ttl: z.ZodOptional<z.
|
|
1062
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1063
|
+
"5m": "5m";
|
|
1064
|
+
"1h": "1h";
|
|
1065
|
+
"24h": "24h";
|
|
1066
|
+
}>>;
|
|
871
1067
|
}, z.core.$strip>>;
|
|
872
1068
|
}, z.core.$strip>>]>>;
|
|
873
1069
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -894,7 +1090,11 @@ export declare const ChatCompletionsChoiceSchema: z.ZodObject<{
|
|
|
894
1090
|
extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
|
|
895
1091
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
896
1092
|
type: z.ZodLiteral<"ephemeral">;
|
|
897
|
-
ttl: z.ZodOptional<z.
|
|
1093
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1094
|
+
"5m": "5m";
|
|
1095
|
+
"1h": "1h";
|
|
1096
|
+
"24h": "24h";
|
|
1097
|
+
}>>;
|
|
898
1098
|
}, z.core.$strip>>;
|
|
899
1099
|
}, z.core.$strip>;
|
|
900
1100
|
finish_reason: z.ZodEnum<{
|
|
@@ -933,7 +1133,11 @@ export declare const ChatCompletionsSchema: z.ZodObject<{
|
|
|
933
1133
|
text: z.ZodString;
|
|
934
1134
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
935
1135
|
type: z.ZodLiteral<"ephemeral">;
|
|
936
|
-
ttl: z.ZodOptional<z.
|
|
1136
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1137
|
+
"5m": "5m";
|
|
1138
|
+
"1h": "1h";
|
|
1139
|
+
"24h": "24h";
|
|
1140
|
+
}>>;
|
|
937
1141
|
}, z.core.$strip>>;
|
|
938
1142
|
}, z.core.$strip>>]>>;
|
|
939
1143
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -960,7 +1164,11 @@ export declare const ChatCompletionsSchema: z.ZodObject<{
|
|
|
960
1164
|
extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
|
|
961
1165
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
962
1166
|
type: z.ZodLiteral<"ephemeral">;
|
|
963
|
-
ttl: z.ZodOptional<z.
|
|
1167
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1168
|
+
"5m": "5m";
|
|
1169
|
+
"1h": "1h";
|
|
1170
|
+
"24h": "24h";
|
|
1171
|
+
}>>;
|
|
964
1172
|
}, z.core.$strip>>;
|
|
965
1173
|
}, z.core.$strip>;
|
|
966
1174
|
finish_reason: z.ZodEnum<{
|
|
@@ -1011,7 +1219,11 @@ export declare const ChatCompletionsAssistantMessageDeltaSchema: z.ZodObject<{
|
|
|
1011
1219
|
text: z.ZodString;
|
|
1012
1220
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1013
1221
|
type: z.ZodLiteral<"ephemeral">;
|
|
1014
|
-
ttl: z.ZodOptional<z.
|
|
1222
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1223
|
+
"5m": "5m";
|
|
1224
|
+
"1h": "1h";
|
|
1225
|
+
"24h": "24h";
|
|
1226
|
+
}>>;
|
|
1015
1227
|
}, z.core.$strip>>;
|
|
1016
1228
|
}, z.core.$strip>>]>>>;
|
|
1017
1229
|
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -1029,7 +1241,11 @@ export declare const ChatCompletionsAssistantMessageDeltaSchema: z.ZodObject<{
|
|
|
1029
1241
|
extra_content: z.ZodOptional<z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>>;
|
|
1030
1242
|
cache_control: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1031
1243
|
type: z.ZodLiteral<"ephemeral">;
|
|
1032
|
-
ttl: z.ZodOptional<z.
|
|
1244
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1245
|
+
"5m": "5m";
|
|
1246
|
+
"1h": "1h";
|
|
1247
|
+
"24h": "24h";
|
|
1248
|
+
}>>;
|
|
1033
1249
|
}, z.core.$strip>>>;
|
|
1034
1250
|
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1035
1251
|
type: z.ZodOptional<z.ZodLiteral<"function">>;
|
|
@@ -1052,7 +1268,11 @@ export declare const ChatCompletionsChoiceDeltaSchema: z.ZodObject<{
|
|
|
1052
1268
|
text: z.ZodString;
|
|
1053
1269
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1054
1270
|
type: z.ZodLiteral<"ephemeral">;
|
|
1055
|
-
ttl: z.ZodOptional<z.
|
|
1271
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1272
|
+
"5m": "5m";
|
|
1273
|
+
"1h": "1h";
|
|
1274
|
+
"24h": "24h";
|
|
1275
|
+
}>>;
|
|
1056
1276
|
}, z.core.$strip>>;
|
|
1057
1277
|
}, z.core.$strip>>]>>>;
|
|
1058
1278
|
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -1070,7 +1290,11 @@ export declare const ChatCompletionsChoiceDeltaSchema: z.ZodObject<{
|
|
|
1070
1290
|
extra_content: z.ZodOptional<z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>>;
|
|
1071
1291
|
cache_control: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1072
1292
|
type: z.ZodLiteral<"ephemeral">;
|
|
1073
|
-
ttl: z.ZodOptional<z.
|
|
1293
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1294
|
+
"5m": "5m";
|
|
1295
|
+
"1h": "1h";
|
|
1296
|
+
"24h": "24h";
|
|
1297
|
+
}>>;
|
|
1074
1298
|
}, z.core.$strip>>>;
|
|
1075
1299
|
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1076
1300
|
type: z.ZodOptional<z.ZodLiteral<"function">>;
|
|
@@ -1106,7 +1330,11 @@ export declare const ChatCompletionsChunkSchema: z.ZodObject<{
|
|
|
1106
1330
|
text: z.ZodString;
|
|
1107
1331
|
cache_control: z.ZodOptional<z.ZodObject<{
|
|
1108
1332
|
type: z.ZodLiteral<"ephemeral">;
|
|
1109
|
-
ttl: z.ZodOptional<z.
|
|
1333
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1334
|
+
"5m": "5m";
|
|
1335
|
+
"1h": "1h";
|
|
1336
|
+
"24h": "24h";
|
|
1337
|
+
}>>;
|
|
1110
1338
|
}, z.core.$strip>>;
|
|
1111
1339
|
}, z.core.$strip>>]>>>;
|
|
1112
1340
|
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -1124,7 +1352,11 @@ export declare const ChatCompletionsChunkSchema: z.ZodObject<{
|
|
|
1124
1352
|
extra_content: z.ZodOptional<z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>>;
|
|
1125
1353
|
cache_control: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1126
1354
|
type: z.ZodLiteral<"ephemeral">;
|
|
1127
|
-
ttl: z.ZodOptional<z.
|
|
1355
|
+
ttl: z.ZodOptional<z.ZodEnum<{
|
|
1356
|
+
"5m": "5m";
|
|
1357
|
+
"1h": "1h";
|
|
1358
|
+
"24h": "24h";
|
|
1359
|
+
}>>;
|
|
1128
1360
|
}, z.core.$strip>>>;
|
|
1129
1361
|
tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1130
1362
|
type: z.ZodOptional<z.ZodLiteral<"function">>;
|