@opencode/ai 0.0.0-dev-21920 → 0.0.0-dev-44
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 +61 -19
- package/dist/ai-client.d.ts +2 -2
- package/dist/cache-policy.d.ts +4 -0
- package/dist/cache-policy.js +20 -6
- package/dist/decision-client.d.ts +3 -3
- package/dist/decision.d.ts +4 -1
- package/dist/decision.js +3 -0
- package/dist/effect.d.ts +4 -5
- package/dist/effect.js +2 -3
- package/dist/experimental/realtime.d.ts +3 -2
- package/dist/image-client.d.ts +1 -1
- package/dist/image.js +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/llm.d.ts +3 -0
- package/dist/media-client.d.ts +2 -1
- package/dist/media-model.d.ts +3 -0
- package/dist/media-model.js +4 -1
- package/dist/protocols/alibaba-chat.d.ts +4 -0
- package/dist/protocols/alibaba-messages.d.ts +19 -19
- package/dist/protocols/alibaba-responses.d.ts +3 -3
- package/dist/protocols/anthropic-messages.d.ts +59 -59
- package/dist/protocols/anthropic-messages.js +3 -5
- package/dist/protocols/bedrock-converse.d.ts +110 -15
- package/dist/protocols/bedrock-converse.js +112 -15
- package/dist/protocols/bedrock-event-stream.js +1 -0
- package/dist/protocols/meta-messages.d.ts +19 -19
- package/dist/protocols/meta-messages.js +2 -1
- package/dist/protocols/open-responses.d.ts +3 -0
- package/dist/protocols/openai-chat.d.ts +588 -1
- package/dist/protocols/openai-chat.js +7 -2
- package/dist/protocols/openai-compatible-chat.d.ts +6 -2
- package/dist/protocols/openai-compatible-responses.d.ts +3 -3
- package/dist/protocols/openai-responses.d.ts +24 -0
- package/dist/protocols/openai-responses.js +5 -0
- package/dist/protocols/utils/bedrock-cache.d.ts +2 -2
- package/dist/protocols/utils/bedrock-cache.js +7 -6
- package/dist/protocols/utils/cache.d.ts +14 -3
- package/dist/protocols/utils/cache.js +11 -4
- package/dist/protocols/utils/gemini-json-schema.d.ts +5 -0
- package/dist/protocols/utils/gemini-json-schema.js +3 -3
- package/dist/protocols/utils/tool-schema.js +15 -5
- package/dist/protocols/utils/tool-stream.d.ts +9 -0
- package/dist/protocols/venice-chat.d.ts +3 -0
- package/dist/protocols/venice-chat.js +1 -1
- package/dist/protocols/zai-chat.d.ts +4 -0
- package/dist/protocols/zai-messages.d.ts +19 -19
- package/dist/providers/alibaba/images.d.ts +2 -0
- package/dist/providers/alibaba/images.js +1 -0
- package/dist/providers/alibaba.d.ts +26 -21
- package/dist/providers/alibaba.js +12 -8
- package/dist/providers/amazon-bedrock-mantle.d.ts +23 -19
- package/dist/providers/amazon-bedrock.d.ts +34 -14
- package/dist/providers/amazon-bedrock.js +11 -11
- package/dist/providers/anthropic-compatible.d.ts +19 -19
- package/dist/providers/anthropic.d.ts +19 -19
- package/dist/providers/azure/images.d.ts +2 -0
- package/dist/providers/azure/images.js +1 -0
- package/dist/providers/azure.d.ts +15 -1
- package/dist/providers/azure.js +19 -1
- package/dist/providers/baseten/decisions.d.ts +2 -0
- package/dist/providers/baseten/decisions.js +1 -0
- package/dist/providers/baseten.d.ts +13 -4
- package/dist/providers/baseten.js +15 -8
- package/dist/providers/cerebras.d.ts +8 -0
- package/dist/providers/cloudflare-ai-gateway/decisions.d.ts +2 -0
- package/dist/providers/cloudflare-ai-gateway/decisions.js +1 -0
- package/dist/providers/cloudflare-ai-gateway.d.ts +57 -40
- package/dist/providers/cloudflare-ai-gateway.js +11 -6
- package/dist/providers/cloudflare-workers-ai/decisions.d.ts +2 -0
- package/dist/providers/cloudflare-workers-ai/decisions.js +1 -0
- package/dist/providers/cloudflare-workers-ai/images.d.ts +2 -0
- package/dist/providers/cloudflare-workers-ai/images.js +1 -0
- package/dist/providers/cloudflare-workers-ai.d.ts +13 -3
- package/dist/providers/cloudflare-workers-ai.js +16 -7
- package/dist/providers/cohere.d.ts +8 -0
- package/dist/providers/deepinfra.d.ts +8 -0
- package/dist/providers/deepseek.d.ts +8 -0
- package/dist/providers/digitalocean/decisions.d.ts +2 -0
- package/dist/providers/digitalocean/decisions.js +1 -0
- package/dist/providers/digitalocean/images.d.ts +2 -0
- package/dist/providers/digitalocean/images.js +1 -0
- package/dist/providers/digitalocean.d.ts +21 -4
- package/dist/providers/digitalocean.js +25 -8
- package/dist/providers/fireworks.d.ts +8 -0
- package/dist/providers/google/images.d.ts +2 -0
- package/dist/providers/google/images.js +1 -0
- package/dist/providers/google-vertex/images.d.ts +2 -0
- package/dist/providers/google-vertex/images.js +1 -0
- package/dist/providers/google-vertex-chat.d.ts +4 -0
- package/dist/providers/google-vertex-messages.d.ts +19 -19
- package/dist/providers/google-vertex.d.ts +3 -1
- package/dist/providers/google-vertex.js +30 -13
- package/dist/providers/google.d.ts +5 -4
- package/dist/providers/google.js +15 -8
- package/dist/providers/groq.d.ts +8 -0
- package/dist/providers/meta.d.ts +23 -19
- package/dist/providers/minimax.d.ts +23 -19
- package/dist/providers/moonshot.d.ts +23 -19
- package/dist/providers/openai/images.d.ts +2 -0
- package/dist/providers/openai/images.js +1 -0
- package/dist/providers/openai-compatible/images.d.ts +2 -0
- package/dist/providers/openai-compatible/images.js +1 -0
- package/dist/providers/openai-compatible.d.ts +7 -1
- package/dist/providers/openai-compatible.js +21 -9
- package/dist/providers/openai.d.ts +18 -8
- package/dist/providers/openai.js +10 -2
- package/dist/providers/opencode/decisions.d.ts +2 -0
- package/dist/providers/opencode/decisions.js +1 -0
- package/dist/providers/opencode.d.ts +9 -4
- package/dist/providers/opencode.js +2 -1
- package/dist/providers/openrouter/decisions.d.ts +2 -0
- package/dist/providers/openrouter/decisions.js +1 -0
- package/dist/providers/openrouter/images.d.ts +2 -0
- package/dist/providers/openrouter/images.js +1 -0
- package/dist/providers/openrouter.d.ts +25 -4
- package/dist/providers/openrouter.js +31 -9
- package/dist/providers/togetherai.d.ts +8 -0
- package/dist/providers/typesafe-ai/decisions.d.ts +2 -0
- package/dist/providers/typesafe-ai/decisions.js +1 -0
- package/dist/providers/typesafe-ai.d.ts +9 -4
- package/dist/providers/typesafe-ai.js +2 -1
- package/dist/providers/venice.d.ts +3 -0
- package/dist/providers/vercel-ai-gateway/decisions.d.ts +2 -0
- package/dist/providers/vercel-ai-gateway/decisions.js +1 -0
- package/dist/providers/vercel-ai-gateway/images.d.ts +2 -0
- package/dist/providers/vercel-ai-gateway/images.js +1 -0
- package/dist/providers/vercel-ai-gateway.d.ts +9 -7
- package/dist/providers/vercel-ai-gateway.js +18 -10
- package/dist/providers/xai/images.d.ts +2 -0
- package/dist/providers/xai/images.js +1 -0
- package/dist/providers/xai.d.ts +9 -4
- package/dist/providers/xai.js +15 -8
- package/dist/providers/zai/images.d.ts +2 -0
- package/dist/providers/zai/images.js +1 -0
- package/dist/providers/zai-coding-plan.d.ts +23 -19
- package/dist/providers/zai.d.ts +9 -4
- package/dist/providers/zai.js +15 -8
- package/dist/route/client.d.ts +2 -2
- package/dist/route/client.js +15 -4
- package/dist/route/decision.d.ts +2 -1
- package/dist/route/decision.js +1 -0
- package/dist/route/executor.d.ts +1 -1
- package/dist/route/framing.d.ts +2 -0
- package/dist/route/index.d.ts +3 -0
- package/dist/route/index.js +3 -0
- package/dist/route/media.d.ts +5 -1
- package/dist/route/media.js +6 -2
- package/dist/route/transport/http.js +1 -0
- package/dist/route/transport/index.d.ts +1 -0
- package/dist/schema/events.d.ts +135 -6
- package/dist/schema/events.js +10 -0
- package/dist/schema/messages.d.ts +6 -2
- package/dist/schema/messages.js +3 -0
- package/dist/schema/options.d.ts +5 -3
- package/dist/schema/options.js +8 -3
- package/dist/speech-client.d.ts +1 -1
- package/dist/speech.js +2 -1
- package/dist/testing.d.ts +25 -24
- package/dist/testing.js +3 -21
- package/dist/transcription-client.d.ts +1 -1
- package/dist/transcription.js +1 -0
- package/dist/video-client.d.ts +1 -1
- package/dist/video.js +1 -0
- package/package.json +510 -8
- package/dist/provider.d.ts +0 -23
- package/dist/provider.js +0 -2
|
@@ -2,7 +2,7 @@ import type { Config, Redacted } from "effect";
|
|
|
2
2
|
import type { ProviderPackage } from "../provider-package.js";
|
|
3
3
|
import type { AtLeastOne, ProviderAuthOption } from "../route/auth-options.js";
|
|
4
4
|
import type { RouteDefaultsInput } from "../route/client.js";
|
|
5
|
-
import { type ModelID } from "../schema/index.js";
|
|
5
|
+
import { type ModelID, type ProviderOptions } from "../schema/index.js";
|
|
6
6
|
import type { OpenAIProviderOptionsInput } from "./openai-options.js";
|
|
7
7
|
export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
8
8
|
export declare const authEnvVars: readonly ["CLOUDFLARE_API_TOKEN", "CF_AIG_TOKEN"];
|
|
@@ -181,6 +181,10 @@ export declare const responsesRoute: import("../route/client.js").Route<{
|
|
|
181
181
|
readonly top_p?: number | undefined;
|
|
182
182
|
readonly presence_penalty?: number | undefined;
|
|
183
183
|
readonly frequency_penalty?: number | undefined;
|
|
184
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
185
|
+
readonly prompt_cache_options?: {
|
|
186
|
+
readonly ttl?: string | undefined;
|
|
187
|
+
} | undefined;
|
|
184
188
|
readonly tools?: readonly ({
|
|
185
189
|
readonly type: "namespace";
|
|
186
190
|
readonly name: string;
|
|
@@ -259,7 +263,7 @@ export declare const messagesRoute: import("../route/client.js").Route<{
|
|
|
259
263
|
readonly text: string;
|
|
260
264
|
readonly cache_control?: {
|
|
261
265
|
readonly type: "ephemeral";
|
|
262
|
-
readonly ttl?:
|
|
266
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
263
267
|
} | undefined;
|
|
264
268
|
}[] | undefined;
|
|
265
269
|
readonly messages: readonly ({
|
|
@@ -269,7 +273,7 @@ export declare const messagesRoute: import("../route/client.js").Route<{
|
|
|
269
273
|
readonly text: string;
|
|
270
274
|
readonly cache_control?: {
|
|
271
275
|
readonly type: "ephemeral";
|
|
272
|
-
readonly ttl?:
|
|
276
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
273
277
|
} | undefined;
|
|
274
278
|
} | {
|
|
275
279
|
readonly type: "image";
|
|
@@ -286,7 +290,7 @@ export declare const messagesRoute: import("../route/client.js").Route<{
|
|
|
286
290
|
};
|
|
287
291
|
readonly cache_control?: {
|
|
288
292
|
readonly type: "ephemeral";
|
|
289
|
-
readonly ttl?:
|
|
293
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
290
294
|
} | undefined;
|
|
291
295
|
readonly transformations?: {
|
|
292
296
|
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
@@ -306,7 +310,7 @@ export declare const messagesRoute: import("../route/client.js").Route<{
|
|
|
306
310
|
};
|
|
307
311
|
readonly cache_control?: {
|
|
308
312
|
readonly type: "ephemeral";
|
|
309
|
-
readonly ttl?:
|
|
313
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
310
314
|
} | undefined;
|
|
311
315
|
} | {
|
|
312
316
|
readonly type: "document";
|
|
@@ -327,7 +331,7 @@ export declare const messagesRoute: import("../route/client.js").Route<{
|
|
|
327
331
|
};
|
|
328
332
|
readonly cache_control?: {
|
|
329
333
|
readonly type: "ephemeral";
|
|
330
|
-
readonly ttl?:
|
|
334
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
331
335
|
} | undefined;
|
|
332
336
|
readonly title?: string | undefined;
|
|
333
337
|
readonly context?: string | undefined;
|
|
@@ -342,7 +346,7 @@ export declare const messagesRoute: import("../route/client.js").Route<{
|
|
|
342
346
|
readonly text: string;
|
|
343
347
|
readonly cache_control?: {
|
|
344
348
|
readonly type: "ephemeral";
|
|
345
|
-
readonly ttl?:
|
|
349
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
346
350
|
} | undefined;
|
|
347
351
|
} | {
|
|
348
352
|
readonly type: "image";
|
|
@@ -359,7 +363,7 @@ export declare const messagesRoute: import("../route/client.js").Route<{
|
|
|
359
363
|
};
|
|
360
364
|
readonly cache_control?: {
|
|
361
365
|
readonly type: "ephemeral";
|
|
362
|
-
readonly ttl?:
|
|
366
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
363
367
|
} | undefined;
|
|
364
368
|
readonly transformations?: {
|
|
365
369
|
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
@@ -379,7 +383,7 @@ export declare const messagesRoute: import("../route/client.js").Route<{
|
|
|
379
383
|
};
|
|
380
384
|
readonly cache_control?: {
|
|
381
385
|
readonly type: "ephemeral";
|
|
382
|
-
readonly ttl?:
|
|
386
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
383
387
|
} | undefined;
|
|
384
388
|
} | {
|
|
385
389
|
readonly type: "document";
|
|
@@ -400,7 +404,7 @@ export declare const messagesRoute: import("../route/client.js").Route<{
|
|
|
400
404
|
};
|
|
401
405
|
readonly cache_control?: {
|
|
402
406
|
readonly type: "ephemeral";
|
|
403
|
-
readonly ttl?:
|
|
407
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
404
408
|
} | undefined;
|
|
405
409
|
readonly title?: string | undefined;
|
|
406
410
|
readonly context?: string | undefined;
|
|
@@ -411,7 +415,7 @@ export declare const messagesRoute: import("../route/client.js").Route<{
|
|
|
411
415
|
readonly is_error?: boolean | undefined;
|
|
412
416
|
readonly cache_control?: {
|
|
413
417
|
readonly type: "ephemeral";
|
|
414
|
-
readonly ttl?:
|
|
418
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
415
419
|
} | undefined;
|
|
416
420
|
})[];
|
|
417
421
|
} | {
|
|
@@ -424,7 +428,7 @@ export declare const messagesRoute: import("../route/client.js").Route<{
|
|
|
424
428
|
readonly text: string;
|
|
425
429
|
readonly cache_control?: {
|
|
426
430
|
readonly type: "ephemeral";
|
|
427
|
-
readonly ttl?:
|
|
431
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
428
432
|
} | undefined;
|
|
429
433
|
} | {
|
|
430
434
|
readonly type: "thinking";
|
|
@@ -432,14 +436,14 @@ export declare const messagesRoute: import("../route/client.js").Route<{
|
|
|
432
436
|
readonly signature: string;
|
|
433
437
|
readonly cache_control?: {
|
|
434
438
|
readonly type: "ephemeral";
|
|
435
|
-
readonly ttl?:
|
|
439
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
436
440
|
} | undefined;
|
|
437
441
|
} | {
|
|
438
442
|
readonly type: "redacted_thinking";
|
|
439
443
|
readonly data: string;
|
|
440
444
|
readonly cache_control?: {
|
|
441
445
|
readonly type: "ephemeral";
|
|
442
|
-
readonly ttl?:
|
|
446
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
443
447
|
} | undefined;
|
|
444
448
|
} | {
|
|
445
449
|
readonly type: "tool_use";
|
|
@@ -448,7 +452,7 @@ export declare const messagesRoute: import("../route/client.js").Route<{
|
|
|
448
452
|
readonly input: unknown;
|
|
449
453
|
readonly cache_control?: {
|
|
450
454
|
readonly type: "ephemeral";
|
|
451
|
-
readonly ttl?:
|
|
455
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
452
456
|
} | undefined;
|
|
453
457
|
} | {
|
|
454
458
|
readonly type: "server_tool_use";
|
|
@@ -457,7 +461,7 @@ export declare const messagesRoute: import("../route/client.js").Route<{
|
|
|
457
461
|
readonly input: unknown;
|
|
458
462
|
readonly cache_control?: {
|
|
459
463
|
readonly type: "ephemeral";
|
|
460
|
-
readonly ttl?:
|
|
464
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
461
465
|
} | undefined;
|
|
462
466
|
} | {
|
|
463
467
|
readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
|
|
@@ -465,7 +469,7 @@ export declare const messagesRoute: import("../route/client.js").Route<{
|
|
|
465
469
|
readonly content: unknown;
|
|
466
470
|
readonly cache_control?: {
|
|
467
471
|
readonly type: "ephemeral";
|
|
468
|
-
readonly ttl?:
|
|
472
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
469
473
|
} | undefined;
|
|
470
474
|
})[];
|
|
471
475
|
} | {
|
|
@@ -475,7 +479,7 @@ export declare const messagesRoute: import("../route/client.js").Route<{
|
|
|
475
479
|
readonly text: string;
|
|
476
480
|
readonly cache_control?: {
|
|
477
481
|
readonly type: "ephemeral";
|
|
478
|
-
readonly ttl?:
|
|
482
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
479
483
|
} | undefined;
|
|
480
484
|
}[];
|
|
481
485
|
readonly output_config?: {
|
|
@@ -490,7 +494,7 @@ export declare const messagesRoute: import("../route/client.js").Route<{
|
|
|
490
494
|
};
|
|
491
495
|
readonly cache_control?: {
|
|
492
496
|
readonly type: "ephemeral";
|
|
493
|
-
readonly ttl?:
|
|
497
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
494
498
|
} | undefined;
|
|
495
499
|
}[] | undefined;
|
|
496
500
|
readonly tool_choice?: {
|
|
@@ -534,7 +538,7 @@ export declare const messagesRoute: import("../route/client.js").Route<{
|
|
|
534
538
|
} | undefined;
|
|
535
539
|
readonly cache_control?: {
|
|
536
540
|
readonly type: "ephemeral";
|
|
537
|
-
readonly ttl?:
|
|
541
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
538
542
|
} | undefined;
|
|
539
543
|
readonly container?: string | {
|
|
540
544
|
readonly id?: string | null | undefined;
|
|
@@ -670,6 +674,10 @@ export declare const route: import("../route/client.js").Route<{
|
|
|
670
674
|
} | undefined;
|
|
671
675
|
readonly store?: boolean | undefined;
|
|
672
676
|
readonly prompt_cache_key?: string | undefined;
|
|
677
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
678
|
+
readonly prompt_cache_options?: {
|
|
679
|
+
readonly ttl?: string | undefined;
|
|
680
|
+
} | undefined;
|
|
673
681
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
674
682
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
675
683
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
@@ -706,7 +714,7 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
706
714
|
readonly text: string;
|
|
707
715
|
readonly cache_control?: {
|
|
708
716
|
readonly type: "ephemeral";
|
|
709
|
-
readonly ttl?:
|
|
717
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
710
718
|
} | undefined;
|
|
711
719
|
}[] | undefined;
|
|
712
720
|
readonly messages: readonly ({
|
|
@@ -716,7 +724,7 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
716
724
|
readonly text: string;
|
|
717
725
|
readonly cache_control?: {
|
|
718
726
|
readonly type: "ephemeral";
|
|
719
|
-
readonly ttl?:
|
|
727
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
720
728
|
} | undefined;
|
|
721
729
|
} | {
|
|
722
730
|
readonly type: "image";
|
|
@@ -733,7 +741,7 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
733
741
|
};
|
|
734
742
|
readonly cache_control?: {
|
|
735
743
|
readonly type: "ephemeral";
|
|
736
|
-
readonly ttl?:
|
|
744
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
737
745
|
} | undefined;
|
|
738
746
|
readonly transformations?: {
|
|
739
747
|
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
@@ -753,7 +761,7 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
753
761
|
};
|
|
754
762
|
readonly cache_control?: {
|
|
755
763
|
readonly type: "ephemeral";
|
|
756
|
-
readonly ttl?:
|
|
764
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
757
765
|
} | undefined;
|
|
758
766
|
} | {
|
|
759
767
|
readonly type: "document";
|
|
@@ -774,7 +782,7 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
774
782
|
};
|
|
775
783
|
readonly cache_control?: {
|
|
776
784
|
readonly type: "ephemeral";
|
|
777
|
-
readonly ttl?:
|
|
785
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
778
786
|
} | undefined;
|
|
779
787
|
readonly title?: string | undefined;
|
|
780
788
|
readonly context?: string | undefined;
|
|
@@ -789,7 +797,7 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
789
797
|
readonly text: string;
|
|
790
798
|
readonly cache_control?: {
|
|
791
799
|
readonly type: "ephemeral";
|
|
792
|
-
readonly ttl?:
|
|
800
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
793
801
|
} | undefined;
|
|
794
802
|
} | {
|
|
795
803
|
readonly type: "image";
|
|
@@ -806,7 +814,7 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
806
814
|
};
|
|
807
815
|
readonly cache_control?: {
|
|
808
816
|
readonly type: "ephemeral";
|
|
809
|
-
readonly ttl?:
|
|
817
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
810
818
|
} | undefined;
|
|
811
819
|
readonly transformations?: {
|
|
812
820
|
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
@@ -826,7 +834,7 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
826
834
|
};
|
|
827
835
|
readonly cache_control?: {
|
|
828
836
|
readonly type: "ephemeral";
|
|
829
|
-
readonly ttl?:
|
|
837
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
830
838
|
} | undefined;
|
|
831
839
|
} | {
|
|
832
840
|
readonly type: "document";
|
|
@@ -847,7 +855,7 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
847
855
|
};
|
|
848
856
|
readonly cache_control?: {
|
|
849
857
|
readonly type: "ephemeral";
|
|
850
|
-
readonly ttl?:
|
|
858
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
851
859
|
} | undefined;
|
|
852
860
|
readonly title?: string | undefined;
|
|
853
861
|
readonly context?: string | undefined;
|
|
@@ -858,7 +866,7 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
858
866
|
readonly is_error?: boolean | undefined;
|
|
859
867
|
readonly cache_control?: {
|
|
860
868
|
readonly type: "ephemeral";
|
|
861
|
-
readonly ttl?:
|
|
869
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
862
870
|
} | undefined;
|
|
863
871
|
})[];
|
|
864
872
|
} | {
|
|
@@ -871,7 +879,7 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
871
879
|
readonly text: string;
|
|
872
880
|
readonly cache_control?: {
|
|
873
881
|
readonly type: "ephemeral";
|
|
874
|
-
readonly ttl?:
|
|
882
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
875
883
|
} | undefined;
|
|
876
884
|
} | {
|
|
877
885
|
readonly type: "thinking";
|
|
@@ -879,14 +887,14 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
879
887
|
readonly signature: string;
|
|
880
888
|
readonly cache_control?: {
|
|
881
889
|
readonly type: "ephemeral";
|
|
882
|
-
readonly ttl?:
|
|
890
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
883
891
|
} | undefined;
|
|
884
892
|
} | {
|
|
885
893
|
readonly type: "redacted_thinking";
|
|
886
894
|
readonly data: string;
|
|
887
895
|
readonly cache_control?: {
|
|
888
896
|
readonly type: "ephemeral";
|
|
889
|
-
readonly ttl?:
|
|
897
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
890
898
|
} | undefined;
|
|
891
899
|
} | {
|
|
892
900
|
readonly type: "tool_use";
|
|
@@ -895,7 +903,7 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
895
903
|
readonly input: unknown;
|
|
896
904
|
readonly cache_control?: {
|
|
897
905
|
readonly type: "ephemeral";
|
|
898
|
-
readonly ttl?:
|
|
906
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
899
907
|
} | undefined;
|
|
900
908
|
} | {
|
|
901
909
|
readonly type: "server_tool_use";
|
|
@@ -904,7 +912,7 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
904
912
|
readonly input: unknown;
|
|
905
913
|
readonly cache_control?: {
|
|
906
914
|
readonly type: "ephemeral";
|
|
907
|
-
readonly ttl?:
|
|
915
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
908
916
|
} | undefined;
|
|
909
917
|
} | {
|
|
910
918
|
readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
|
|
@@ -912,7 +920,7 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
912
920
|
readonly content: unknown;
|
|
913
921
|
readonly cache_control?: {
|
|
914
922
|
readonly type: "ephemeral";
|
|
915
|
-
readonly ttl?:
|
|
923
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
916
924
|
} | undefined;
|
|
917
925
|
})[];
|
|
918
926
|
} | {
|
|
@@ -922,7 +930,7 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
922
930
|
readonly text: string;
|
|
923
931
|
readonly cache_control?: {
|
|
924
932
|
readonly type: "ephemeral";
|
|
925
|
-
readonly ttl?:
|
|
933
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
926
934
|
} | undefined;
|
|
927
935
|
}[];
|
|
928
936
|
readonly output_config?: {
|
|
@@ -937,7 +945,7 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
937
945
|
};
|
|
938
946
|
readonly cache_control?: {
|
|
939
947
|
readonly type: "ephemeral";
|
|
940
|
-
readonly ttl?:
|
|
948
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
941
949
|
} | undefined;
|
|
942
950
|
}[] | undefined;
|
|
943
951
|
readonly tool_choice?: {
|
|
@@ -981,7 +989,7 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
981
989
|
} | undefined;
|
|
982
990
|
readonly cache_control?: {
|
|
983
991
|
readonly type: "ephemeral";
|
|
984
|
-
readonly ttl?:
|
|
992
|
+
readonly ttl?: `${number}d` | `${number}h` | `${number}m` | `${number}ms` | `${number}s` | undefined;
|
|
985
993
|
} | undefined;
|
|
986
994
|
readonly container?: string | {
|
|
987
995
|
readonly id?: string | null | undefined;
|
|
@@ -1116,6 +1124,10 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
1116
1124
|
} | undefined;
|
|
1117
1125
|
readonly store?: boolean | undefined;
|
|
1118
1126
|
readonly prompt_cache_key?: string | undefined;
|
|
1127
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
1128
|
+
readonly prompt_cache_options?: {
|
|
1129
|
+
readonly ttl?: string | undefined;
|
|
1130
|
+
} | undefined;
|
|
1119
1131
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
1120
1132
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
1121
1133
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
@@ -1285,6 +1297,10 @@ export declare const routes: (import("../route/client.js").Route<{
|
|
|
1285
1297
|
readonly top_p?: number | undefined;
|
|
1286
1298
|
readonly presence_penalty?: number | undefined;
|
|
1287
1299
|
readonly frequency_penalty?: number | undefined;
|
|
1300
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
1301
|
+
readonly prompt_cache_options?: {
|
|
1302
|
+
readonly ttl?: string | undefined;
|
|
1303
|
+
} | undefined;
|
|
1288
1304
|
readonly tools?: readonly ({
|
|
1289
1305
|
readonly type: "namespace";
|
|
1290
1306
|
readonly name: string;
|
|
@@ -1351,7 +1367,7 @@ export declare const configure: (input: LanguageModelOptions) => {
|
|
|
1351
1367
|
endpoint: import("../route/client.js").CompactOperation;
|
|
1352
1368
|
trigger: import("../route/client.js").TriggerCompactOperation;
|
|
1353
1369
|
}>;
|
|
1354
|
-
decision: (value: string | ModelID) => import("../decision.js").DecisionModel<import("../decision.js").DecisionOptions>;
|
|
1370
|
+
decision: (value: string | ModelID, providerOptions?: ProviderOptions) => import("../decision.js").DecisionModel<import("../decision.js").DecisionOptions>;
|
|
1355
1371
|
configure: typeof configure;
|
|
1356
1372
|
};
|
|
1357
1373
|
export declare const provider: {
|
|
@@ -1359,4 +1375,5 @@ export declare const provider: {
|
|
|
1359
1375
|
configure: typeof configure;
|
|
1360
1376
|
};
|
|
1361
1377
|
export declare const model: ProviderPackage.Definition<Settings, OpenAIProviderOptionsInput>["model"];
|
|
1378
|
+
export declare const decisionModel: (modelID: string, settings: Settings) => import("../decision.js").DecisionModel<import("../decision.js").DecisionOptions>;
|
|
1362
1379
|
export * as CloudflareAIGateway from "./cloudflare-ai-gateway.js";
|
|
@@ -83,7 +83,7 @@ export const configure = (input) => {
|
|
|
83
83
|
const messages = messagesRoute.with(passthrough("anthropic/v1"));
|
|
84
84
|
const chat = route.with(rest);
|
|
85
85
|
// The Run API base is derived per call so a chat-only configuration without an account still constructs.
|
|
86
|
-
const decision = (value) => CloudflareRunDecisions.route
|
|
86
|
+
const decision = (value, providerOptions) => CloudflareRunDecisions.route
|
|
87
87
|
.with({
|
|
88
88
|
provider: id,
|
|
89
89
|
endpoint: { baseURL: runBaseURL(input) },
|
|
@@ -91,7 +91,7 @@ export const configure = (input) => {
|
|
|
91
91
|
headers: rest.headers,
|
|
92
92
|
http: input.http,
|
|
93
93
|
})
|
|
94
|
-
.model({ id: value });
|
|
94
|
+
.model({ id: value, providerOptions });
|
|
95
95
|
return {
|
|
96
96
|
id,
|
|
97
97
|
model: (value) => {
|
|
@@ -110,9 +110,14 @@ export const configure = (input) => {
|
|
|
110
110
|
};
|
|
111
111
|
};
|
|
112
112
|
export const provider = { id, configure };
|
|
113
|
-
export const model = (modelID,
|
|
113
|
+
export const model = (modelID, settings) => configure(config(settings)).model(modelID);
|
|
114
|
+
export const decisionModel = (modelID, settings) => {
|
|
115
|
+
const input = config(settings);
|
|
116
|
+
return configure(input).decision(modelID, input.providerOptions);
|
|
117
|
+
};
|
|
118
|
+
function config({ accountId, apiKey, baseURL: configuredBaseURL, body, cacheKey, cacheTtl, collectLog, gatewayApiKey, gatewayId, headers, metadata, skipCache, ...providerOptions }) {
|
|
114
119
|
const connection = configuredBaseURL === undefined ? { accountId: accountId ?? "" } : { baseURL: configuredBaseURL };
|
|
115
|
-
return
|
|
120
|
+
return {
|
|
116
121
|
...connection,
|
|
117
122
|
apiKey,
|
|
118
123
|
cacheKey,
|
|
@@ -125,6 +130,6 @@ export const model = (modelID, { accountId, apiKey, baseURL: configuredBaseURL,
|
|
|
125
130
|
metadata,
|
|
126
131
|
providerOptions,
|
|
127
132
|
skipCache,
|
|
128
|
-
}
|
|
129
|
-
}
|
|
133
|
+
};
|
|
134
|
+
}
|
|
130
135
|
export * as CloudflareAIGateway from "./cloudflare-ai-gateway.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { decisionModel as model } from "../cloudflare-workers-ai.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { imageModel as model } from "../cloudflare-workers-ai.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ProviderPackage } from "../provider-package.js";
|
|
2
2
|
import { type AtLeastOne, type ProviderAuthOption } from "../route/auth-options.js";
|
|
3
3
|
import { Route, type RouteDefaultsInput } from "../route/client.js";
|
|
4
|
-
import { type ModelID } from "../schema/index.js";
|
|
4
|
+
import { type ModelID, type ProviderOptions } from "../schema/index.js";
|
|
5
5
|
import type { OpenAIProviderOptionsInput } from "./openai-options.js";
|
|
6
6
|
export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
7
7
|
export declare const authEnvVars: readonly ["CLOUDFLARE_API_KEY", "CLOUDFLARE_WORKERS_AI_TOKEN", "CLOUDFLARE_API_TOKEN"];
|
|
@@ -140,6 +140,10 @@ export declare const route: Route<{
|
|
|
140
140
|
} | undefined;
|
|
141
141
|
readonly store?: boolean | undefined;
|
|
142
142
|
readonly prompt_cache_key?: string | undefined;
|
|
143
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
144
|
+
readonly prompt_cache_options?: {
|
|
145
|
+
readonly ttl?: string | undefined;
|
|
146
|
+
} | undefined;
|
|
143
147
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
144
148
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
145
149
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
@@ -279,6 +283,10 @@ export declare const routes: Route<{
|
|
|
279
283
|
} | undefined;
|
|
280
284
|
readonly store?: boolean | undefined;
|
|
281
285
|
readonly prompt_cache_key?: string | undefined;
|
|
286
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
287
|
+
readonly prompt_cache_options?: {
|
|
288
|
+
readonly ttl?: string | undefined;
|
|
289
|
+
} | undefined;
|
|
282
290
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
283
291
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
284
292
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
@@ -300,8 +308,8 @@ export declare const routes: Route<{
|
|
|
300
308
|
export declare const configure: (input: LanguageModelOptions) => {
|
|
301
309
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
302
310
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
303
|
-
decision: (modelID: string | ModelID) => import("../decision.js").DecisionModel<import("../decision.js").DecisionOptions>;
|
|
304
|
-
image: (modelID: string | ModelID) => import("../image.js").ImageModel<import("./cloudflare-workers-ai.js").CloudflareWorkersAIImageOptions>;
|
|
311
|
+
decision: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../decision.js").DecisionModel<import("../decision.js").DecisionOptions>;
|
|
312
|
+
image: (modelID: string | ModelID, providerOptions?: ProviderOptions) => import("../image.js").ImageModel<import("./cloudflare-workers-ai.js").CloudflareWorkersAIImageOptions>;
|
|
305
313
|
experimental: {
|
|
306
314
|
extraction: (modelID: string | ModelID) => import("../experimental.js").ExtractionModel<{
|
|
307
315
|
readonly [x: string]: unknown;
|
|
@@ -314,4 +322,6 @@ export declare const provider: {
|
|
|
314
322
|
configure: typeof configure;
|
|
315
323
|
};
|
|
316
324
|
export declare const model: ProviderPackage.Definition<Settings, OpenAIProviderOptionsInput>["model"];
|
|
325
|
+
export declare const imageModel: (modelID: string, settings: Settings) => import("../image.js").ImageModel<import("./cloudflare-workers-ai.js").CloudflareWorkersAIImageOptions>;
|
|
326
|
+
export declare const decisionModel: (modelID: string, settings: Settings) => import("../decision.js").DecisionModel<import("../decision.js").DecisionOptions>;
|
|
317
327
|
export * as CloudflareWorkersAI from "./cloudflare-workers-ai.js";
|
|
@@ -44,7 +44,7 @@ export const configure = (input) => {
|
|
|
44
44
|
const configured = route.with({ ...defaults, endpoint: { baseURL: baseURL(input) }, auth });
|
|
45
45
|
// The Run API base is derived per call so a chat-only configuration without an account still constructs.
|
|
46
46
|
const runDeployment = () => MediaRoute.deployment({ ...input, baseURL: runBaseURL(input) }, auth);
|
|
47
|
-
const decision = (modelID) => CloudflareRunDecisions.route
|
|
47
|
+
const decision = (modelID, providerOptions) => CloudflareRunDecisions.route
|
|
48
48
|
.with({
|
|
49
49
|
provider: id,
|
|
50
50
|
endpoint: { baseURL: runBaseURL(input) },
|
|
@@ -52,12 +52,12 @@ export const configure = (input) => {
|
|
|
52
52
|
headers: input.headers,
|
|
53
53
|
http: input.http,
|
|
54
54
|
})
|
|
55
|
-
.model({ id: modelID });
|
|
55
|
+
.model({ id: modelID, providerOptions });
|
|
56
56
|
return {
|
|
57
57
|
id,
|
|
58
58
|
model: (modelID) => configured.model({ id: modelID }),
|
|
59
59
|
decision,
|
|
60
|
-
image: (modelID) => CloudflareWorkersAIImages.model({ ...runDeployment(), id: modelID }),
|
|
60
|
+
image: (modelID, providerOptions) => CloudflareWorkersAIImages.model({ ...runDeployment(), id: modelID, providerOptions }),
|
|
61
61
|
experimental: {
|
|
62
62
|
extraction: (modelID) => CloudflareRunExtraction.model({ ...runDeployment(), id: modelID }),
|
|
63
63
|
},
|
|
@@ -65,14 +65,23 @@ export const configure = (input) => {
|
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
67
|
export const provider = { id, configure };
|
|
68
|
-
export const model = (modelID, settings) =>
|
|
68
|
+
export const model = (modelID, settings) => configure(config(settings)).model(modelID);
|
|
69
|
+
export const imageModel = (modelID, settings) => {
|
|
70
|
+
const input = config(settings);
|
|
71
|
+
return configure(input).image(modelID, input.providerOptions);
|
|
72
|
+
};
|
|
73
|
+
export const decisionModel = (modelID, settings) => {
|
|
74
|
+
const input = config(settings);
|
|
75
|
+
return configure(input).decision(modelID, input.providerOptions);
|
|
76
|
+
};
|
|
77
|
+
function config(settings) {
|
|
69
78
|
const { accountId: _, apiKey, baseURL: _url, body, headers, ...providerOptions } = settings;
|
|
70
|
-
return
|
|
79
|
+
return {
|
|
71
80
|
apiKey,
|
|
72
81
|
baseURL: baseURL(settings),
|
|
73
82
|
headers,
|
|
74
83
|
http: body === undefined ? undefined : { body },
|
|
75
84
|
providerOptions,
|
|
76
|
-
}
|
|
77
|
-
}
|
|
85
|
+
};
|
|
86
|
+
}
|
|
78
87
|
export * as CloudflareWorkersAI from "./cloudflare-workers-ai.js";
|
|
@@ -189,6 +189,10 @@ export declare const chatRoute: Route<{
|
|
|
189
189
|
} | undefined;
|
|
190
190
|
readonly store?: boolean | undefined;
|
|
191
191
|
readonly prompt_cache_key?: string | undefined;
|
|
192
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
193
|
+
readonly prompt_cache_options?: {
|
|
194
|
+
readonly ttl?: string | undefined;
|
|
195
|
+
} | undefined;
|
|
192
196
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
193
197
|
readonly verbosity?: OpenString<"high" | "low" | "medium"> | undefined;
|
|
194
198
|
readonly service_tier?: OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
@@ -379,6 +383,10 @@ export declare const routes: (Route<{
|
|
|
379
383
|
} | undefined;
|
|
380
384
|
readonly store?: boolean | undefined;
|
|
381
385
|
readonly prompt_cache_key?: string | undefined;
|
|
386
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
387
|
+
readonly prompt_cache_options?: {
|
|
388
|
+
readonly ttl?: string | undefined;
|
|
389
|
+
} | undefined;
|
|
382
390
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
383
391
|
readonly verbosity?: OpenString<"high" | "low" | "medium"> | undefined;
|
|
384
392
|
readonly service_tier?: OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
@@ -133,6 +133,10 @@ export declare const route: Route<{
|
|
|
133
133
|
} | undefined;
|
|
134
134
|
readonly store?: boolean | undefined;
|
|
135
135
|
readonly prompt_cache_key?: string | undefined;
|
|
136
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
137
|
+
readonly prompt_cache_options?: {
|
|
138
|
+
readonly ttl?: string | undefined;
|
|
139
|
+
} | undefined;
|
|
136
140
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
137
141
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
138
142
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
@@ -272,6 +276,10 @@ export declare const routes: Route<{
|
|
|
272
276
|
} | undefined;
|
|
273
277
|
readonly store?: boolean | undefined;
|
|
274
278
|
readonly prompt_cache_key?: string | undefined;
|
|
279
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
280
|
+
readonly prompt_cache_options?: {
|
|
281
|
+
readonly ttl?: string | undefined;
|
|
282
|
+
} | undefined;
|
|
275
283
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
276
284
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
277
285
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
@@ -133,6 +133,10 @@ export declare const route: Route<{
|
|
|
133
133
|
} | undefined;
|
|
134
134
|
readonly store?: boolean | undefined;
|
|
135
135
|
readonly prompt_cache_key?: string | undefined;
|
|
136
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
137
|
+
readonly prompt_cache_options?: {
|
|
138
|
+
readonly ttl?: string | undefined;
|
|
139
|
+
} | undefined;
|
|
136
140
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
137
141
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
138
142
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
@@ -272,6 +276,10 @@ export declare const routes: Route<{
|
|
|
272
276
|
} | undefined;
|
|
273
277
|
readonly store?: boolean | undefined;
|
|
274
278
|
readonly prompt_cache_key?: string | undefined;
|
|
279
|
+
readonly prompt_cache_retention?: string | undefined;
|
|
280
|
+
readonly prompt_cache_options?: {
|
|
281
|
+
readonly ttl?: string | undefined;
|
|
282
|
+
} | undefined;
|
|
275
283
|
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
276
284
|
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
277
285
|
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { decisionModel as model } from "../digitalocean.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { imageModel as model } from "../digitalocean.js";
|