@opencode/ai 0.0.0-dev-21803 → 0.0.0-dev-21812

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.
Files changed (47) hide show
  1. package/dist/protocols/alibaba-chat.d.ts +6 -0
  2. package/dist/protocols/alibaba-messages.d.ts +1 -0
  3. package/dist/protocols/anthropic-messages.d.ts +5 -1
  4. package/dist/protocols/anthropic-messages.js +7 -0
  5. package/dist/protocols/meta-messages.d.ts +1 -0
  6. package/dist/protocols/openai-chat.d.ts +45 -0
  7. package/dist/protocols/openai-chat.js +19 -13
  8. package/dist/protocols/openai-compatible-chat.d.ts +7 -0
  9. package/dist/protocols/openai-responses.d.ts +40 -24
  10. package/dist/protocols/openai-responses.js +27 -2
  11. package/dist/protocols/venice-chat.d.ts +6 -0
  12. package/dist/protocols/xai-responses.d.ts +1 -0
  13. package/dist/protocols/xai-responses.js +13 -2
  14. package/dist/protocols/zai-chat.d.ts +7 -0
  15. package/dist/protocols/zai-messages.d.ts +1 -0
  16. package/dist/provider-error.js +1 -1
  17. package/dist/providers/alibaba.d.ts +7 -0
  18. package/dist/providers/amazon-bedrock-mantle.d.ts +139 -131
  19. package/dist/providers/anthropic-compatible.d.ts +1 -0
  20. package/dist/providers/anthropic.d.ts +1 -0
  21. package/dist/providers/azure.d.ts +19 -8
  22. package/dist/providers/baseten.d.ts +14 -0
  23. package/dist/providers/cerebras.d.ts +14 -0
  24. package/dist/providers/cloudflare-ai-gateway.d.ts +28 -8
  25. package/dist/providers/cloudflare-workers-ai.d.ts +14 -0
  26. package/dist/providers/cohere.d.ts +14 -0
  27. package/dist/providers/deepinfra.d.ts +14 -0
  28. package/dist/providers/deepseek.d.ts +14 -0
  29. package/dist/providers/digitalocean.d.ts +21 -0
  30. package/dist/providers/fireworks.d.ts +14 -0
  31. package/dist/providers/google-vertex-chat.d.ts +7 -0
  32. package/dist/providers/google-vertex-messages.d.ts +1 -0
  33. package/dist/providers/groq.d.ts +14 -4
  34. package/dist/providers/groq.js +0 -6
  35. package/dist/providers/meta.d.ts +139 -131
  36. package/dist/providers/minimax.d.ts +8 -0
  37. package/dist/providers/moonshot.d.ts +8 -0
  38. package/dist/providers/openai-compatible.d.ts +7 -0
  39. package/dist/providers/openai-options.d.ts +3 -1
  40. package/dist/providers/openai.d.ts +13 -4
  41. package/dist/providers/openrouter.d.ts +26 -0
  42. package/dist/providers/togetherai.d.ts +14 -0
  43. package/dist/providers/venice.d.ts +6 -0
  44. package/dist/providers/xai.d.ts +7 -0
  45. package/dist/providers/zai-coding-plan.d.ts +8 -0
  46. package/dist/providers/zai.d.ts +7 -0
  47. package/package.json +3 -3
@@ -146,6 +146,12 @@ export declare const routes: (Route<{
146
146
  readonly store?: boolean | undefined;
147
147
  readonly prompt_cache_key?: string | undefined;
148
148
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
149
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
150
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
151
+ readonly metadata?: {
152
+ readonly [x: string]: string;
153
+ } | undefined;
154
+ readonly safety_identifier?: string | undefined;
149
155
  readonly tool_stream?: boolean | undefined;
150
156
  readonly max_completion_tokens?: number | undefined;
151
157
  readonly max_tokens?: number | undefined;
@@ -467,6 +473,7 @@ export declare const routes: (Route<{
467
473
  readonly user_id?: string | null | undefined;
468
474
  } | undefined;
469
475
  readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
476
+ readonly speed?: import("../schema/options.js").OpenString<"fast" | "standard"> | undefined;
470
477
  readonly thinking?: {
471
478
  readonly type: string;
472
479
  readonly budget_tokens?: number | undefined;
@@ -336,137 +336,7 @@ export declare const routes: (Route<{
336
336
  readonly user_id?: string | null | undefined;
337
337
  } | undefined;
338
338
  readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
339
- }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
340
- readonly model: string;
341
- readonly messages: readonly ({
342
- readonly role: "system";
343
- readonly content: string | readonly ({
344
- readonly type: "image_url";
345
- readonly image_url: {
346
- readonly url: string;
347
- };
348
- } | {
349
- readonly type: "video_url";
350
- readonly video_url: {
351
- readonly url: string;
352
- };
353
- } | {
354
- readonly type: "file";
355
- readonly file: {
356
- readonly filename: string;
357
- readonly file_data: string;
358
- };
359
- } | {
360
- readonly type: "text";
361
- readonly text: string;
362
- readonly cache_control?: {
363
- readonly type: "ephemeral";
364
- readonly ttl?: string | undefined;
365
- } | undefined;
366
- })[];
367
- } | {
368
- readonly role: "user";
369
- readonly content: string | readonly ({
370
- readonly type: "image_url";
371
- readonly image_url: {
372
- readonly url: string;
373
- };
374
- } | {
375
- readonly type: "video_url";
376
- readonly video_url: {
377
- readonly url: string;
378
- };
379
- } | {
380
- readonly type: "file";
381
- readonly file: {
382
- readonly filename: string;
383
- readonly file_data: string;
384
- };
385
- } | {
386
- readonly type: "text";
387
- readonly text: string;
388
- readonly cache_control?: {
389
- readonly type: "ephemeral";
390
- readonly ttl?: string | undefined;
391
- } | undefined;
392
- })[];
393
- } | {
394
- readonly role: "tool";
395
- readonly tool_call_id: string;
396
- readonly content: string | readonly {
397
- readonly type: "text";
398
- readonly text: string;
399
- readonly cache_control?: {
400
- readonly type: "ephemeral";
401
- readonly ttl?: string | undefined;
402
- } | undefined;
403
- }[];
404
- } | {
405
- readonly [x: string]: unknown;
406
- readonly role: "assistant";
407
- readonly content: string | readonly {
408
- readonly type: "text";
409
- readonly text: string;
410
- readonly cache_control?: {
411
- readonly type: "ephemeral";
412
- readonly ttl?: string | undefined;
413
- } | undefined;
414
- }[] | null;
415
- readonly tool_calls?: readonly {
416
- readonly id: string;
417
- readonly type: "function";
418
- readonly function: {
419
- readonly name: string;
420
- readonly arguments: string;
421
- };
422
- readonly extra_content?: {
423
- readonly google: {
424
- readonly thought_signature: string;
425
- };
426
- } | undefined;
427
- }[] | undefined;
428
- readonly reasoning_content?: string | undefined;
429
- readonly reasoning?: string | undefined;
430
- readonly reasoning_text?: string | undefined;
431
- readonly reasoning_details?: unknown;
432
- })[];
433
- readonly tools?: readonly {
434
- readonly type: "function";
435
- readonly function: {
436
- readonly name: string;
437
- readonly description: string;
438
- readonly parameters: {
439
- readonly [x: string]: unknown;
440
- };
441
- readonly strict?: boolean | undefined;
442
- };
443
- readonly cache_control?: {
444
- readonly type: "ephemeral";
445
- readonly ttl?: string | undefined;
446
- } | undefined;
447
- }[] | undefined;
448
- readonly tool_choice?: "auto" | "none" | "required" | {
449
- readonly type: "function";
450
- readonly function: {
451
- readonly name: string;
452
- };
453
- } | undefined;
454
- readonly stream: true;
455
- readonly stream_options?: {
456
- readonly include_usage: boolean;
457
- } | undefined;
458
- readonly store?: boolean | undefined;
459
- readonly prompt_cache_key?: string | undefined;
460
- readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
461
- readonly tool_stream?: boolean | undefined;
462
- readonly max_completion_tokens?: number | undefined;
463
- readonly max_tokens?: number | undefined;
464
- readonly temperature?: number | undefined;
465
- readonly top_p?: number | undefined;
466
- readonly frequency_penalty?: number | undefined;
467
- readonly presence_penalty?: number | undefined;
468
- readonly seed?: number | undefined;
469
- readonly stop?: readonly string[] | undefined;
339
+ readonly speed?: import("../schema/options.js").OpenString<"fast" | "standard"> | undefined;
470
340
  }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
471
341
  readonly model: string;
472
342
  readonly input: readonly ({
@@ -647,6 +517,144 @@ export declare const routes: (Route<{
647
517
  readonly presence_penalty?: number | undefined;
648
518
  readonly frequency_penalty?: number | undefined;
649
519
  readonly stream: true;
520
+ }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
521
+ readonly model: string;
522
+ readonly messages: readonly ({
523
+ readonly role: "system";
524
+ readonly content: string | readonly ({
525
+ readonly type: "image_url";
526
+ readonly image_url: {
527
+ readonly url: string;
528
+ };
529
+ } | {
530
+ readonly type: "video_url";
531
+ readonly video_url: {
532
+ readonly url: string;
533
+ };
534
+ } | {
535
+ readonly type: "file";
536
+ readonly file: {
537
+ readonly filename: string;
538
+ readonly file_data: string;
539
+ };
540
+ } | {
541
+ readonly type: "text";
542
+ readonly text: string;
543
+ readonly cache_control?: {
544
+ readonly type: "ephemeral";
545
+ readonly ttl?: string | undefined;
546
+ } | undefined;
547
+ })[];
548
+ } | {
549
+ readonly role: "user";
550
+ readonly content: string | readonly ({
551
+ readonly type: "image_url";
552
+ readonly image_url: {
553
+ readonly url: string;
554
+ };
555
+ } | {
556
+ readonly type: "video_url";
557
+ readonly video_url: {
558
+ readonly url: string;
559
+ };
560
+ } | {
561
+ readonly type: "file";
562
+ readonly file: {
563
+ readonly filename: string;
564
+ readonly file_data: string;
565
+ };
566
+ } | {
567
+ readonly type: "text";
568
+ readonly text: string;
569
+ readonly cache_control?: {
570
+ readonly type: "ephemeral";
571
+ readonly ttl?: string | undefined;
572
+ } | undefined;
573
+ })[];
574
+ } | {
575
+ readonly role: "tool";
576
+ readonly tool_call_id: string;
577
+ readonly content: string | readonly {
578
+ readonly type: "text";
579
+ readonly text: string;
580
+ readonly cache_control?: {
581
+ readonly type: "ephemeral";
582
+ readonly ttl?: string | undefined;
583
+ } | undefined;
584
+ }[];
585
+ } | {
586
+ readonly [x: string]: unknown;
587
+ readonly role: "assistant";
588
+ readonly content: string | readonly {
589
+ readonly type: "text";
590
+ readonly text: string;
591
+ readonly cache_control?: {
592
+ readonly type: "ephemeral";
593
+ readonly ttl?: string | undefined;
594
+ } | undefined;
595
+ }[] | null;
596
+ readonly tool_calls?: readonly {
597
+ readonly id: string;
598
+ readonly type: "function";
599
+ readonly function: {
600
+ readonly name: string;
601
+ readonly arguments: string;
602
+ };
603
+ readonly extra_content?: {
604
+ readonly google: {
605
+ readonly thought_signature: string;
606
+ };
607
+ } | undefined;
608
+ }[] | undefined;
609
+ readonly reasoning_content?: string | undefined;
610
+ readonly reasoning?: string | undefined;
611
+ readonly reasoning_text?: string | undefined;
612
+ readonly reasoning_details?: unknown;
613
+ })[];
614
+ readonly tools?: readonly {
615
+ readonly type: "function";
616
+ readonly function: {
617
+ readonly name: string;
618
+ readonly description: string;
619
+ readonly parameters: {
620
+ readonly [x: string]: unknown;
621
+ };
622
+ readonly strict?: boolean | undefined;
623
+ };
624
+ readonly cache_control?: {
625
+ readonly type: "ephemeral";
626
+ readonly ttl?: string | undefined;
627
+ } | undefined;
628
+ }[] | undefined;
629
+ readonly tool_choice?: "auto" | "none" | "required" | {
630
+ readonly type: "function";
631
+ readonly function: {
632
+ readonly name: string;
633
+ };
634
+ } | undefined;
635
+ readonly stream: true;
636
+ readonly stream_options?: {
637
+ readonly include_usage: boolean;
638
+ } | undefined;
639
+ readonly store?: boolean | undefined;
640
+ readonly prompt_cache_key?: string | undefined;
641
+ readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
642
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
643
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
644
+ readonly parallel_tool_calls?: boolean | undefined;
645
+ readonly metadata?: {
646
+ readonly [x: string]: string;
647
+ } | undefined;
648
+ readonly safety_identifier?: string | undefined;
649
+ readonly tool_stream?: boolean | undefined;
650
+ readonly max_completion_tokens?: number | undefined;
651
+ readonly max_tokens?: number | undefined;
652
+ readonly temperature?: number | undefined;
653
+ readonly top_p?: number | undefined;
654
+ readonly frequency_penalty?: number | undefined;
655
+ readonly presence_penalty?: number | undefined;
656
+ readonly seed?: number | undefined;
657
+ readonly stop?: readonly string[] | undefined;
650
658
  }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>)[];
651
659
  export declare const configure: (input?: Config) => {
652
660
  id: string & import("effect/Brand").Brand<"AI.ProviderID">;
@@ -328,6 +328,7 @@ export declare const routes: import("../route/client.js").Route<{
328
328
  readonly user_id?: string | null | undefined;
329
329
  } | undefined;
330
330
  readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
331
+ readonly speed?: import("../schema/options.js").OpenString<"fast" | "standard"> | undefined;
331
332
  }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>[];
332
333
  export declare const configure: (input: Config) => {
333
334
  id: string & import("effect/Brand").Brand<"AI.ProviderID">;
@@ -313,6 +313,7 @@ export declare const routes: import("../route/client.js").Route<{
313
313
  readonly user_id?: string | null | undefined;
314
314
  } | undefined;
315
315
  readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
316
+ readonly speed?: import("../schema/options.js").OpenString<"fast" | "standard"> | undefined;
316
317
  }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>[];
317
318
  export type Config = RouteDefaultsInput & ProviderAuthOption<"optional"> & {
318
319
  readonly baseURL?: string;
@@ -163,10 +163,6 @@ declare const responsesRoute: Route<{
163
163
  readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
164
164
  readonly prompt_cache_key?: string | undefined;
165
165
  readonly include?: readonly import("../schema/options.js").OpenString<"code_interpreter_call.outputs" | "computer_call_output.output.image_url" | "file_search_call.results" | "message.input_image.image_url" | "message.output_text.logprobs" | "reasoning.encrypted_content" | "web_search_call.action.sources" | "web_search_call.results">[] | undefined;
166
- readonly reasoning?: {
167
- readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
168
- readonly summary?: "auto" | "concise" | "detailed" | undefined;
169
- } | undefined;
170
166
  readonly text?: {
171
167
  readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
172
168
  } | undefined;
@@ -222,6 +218,12 @@ declare const responsesRoute: Route<{
222
218
  } | {
223
219
  readonly type: "image_generation";
224
220
  } | undefined;
221
+ readonly reasoning?: {
222
+ readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
223
+ readonly summary?: "auto" | "concise" | "detailed" | undefined;
224
+ readonly mode?: import("../schema/options.js").OpenString<"pro" | "standard"> | undefined;
225
+ readonly context?: import("../schema/options.js").OpenString<"all_turns" | "auto" | "current_turn"> | undefined;
226
+ } | undefined;
225
227
  readonly context_management?: readonly {
226
228
  readonly type: "compaction";
227
229
  readonly compact_threshold?: number | undefined;
@@ -352,6 +354,13 @@ export declare const routes: (Route<{
352
354
  readonly store?: boolean | undefined;
353
355
  readonly prompt_cache_key?: string | undefined;
354
356
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
357
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
358
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
359
+ readonly parallel_tool_calls?: boolean | undefined;
360
+ readonly metadata?: {
361
+ readonly [x: string]: string;
362
+ } | undefined;
363
+ readonly safety_identifier?: string | undefined;
355
364
  readonly tool_stream?: boolean | undefined;
356
365
  readonly max_completion_tokens?: number | undefined;
357
366
  readonly max_tokens?: number | undefined;
@@ -503,10 +512,6 @@ export declare const routes: (Route<{
503
512
  readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
504
513
  readonly prompt_cache_key?: string | undefined;
505
514
  readonly include?: readonly import("../schema/options.js").OpenString<"code_interpreter_call.outputs" | "computer_call_output.output.image_url" | "file_search_call.results" | "message.input_image.image_url" | "message.output_text.logprobs" | "reasoning.encrypted_content" | "web_search_call.action.sources" | "web_search_call.results">[] | undefined;
506
- readonly reasoning?: {
507
- readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
508
- readonly summary?: "auto" | "concise" | "detailed" | undefined;
509
- } | undefined;
510
515
  readonly text?: {
511
516
  readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
512
517
  } | undefined;
@@ -562,6 +567,12 @@ export declare const routes: (Route<{
562
567
  } | {
563
568
  readonly type: "image_generation";
564
569
  } | undefined;
570
+ readonly reasoning?: {
571
+ readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
572
+ readonly summary?: "auto" | "concise" | "detailed" | undefined;
573
+ readonly mode?: import("../schema/options.js").OpenString<"pro" | "standard"> | undefined;
574
+ readonly context?: import("../schema/options.js").OpenString<"all_turns" | "auto" | "current_turn"> | undefined;
575
+ } | undefined;
565
576
  readonly context_management?: readonly {
566
577
  readonly type: "compaction";
567
578
  readonly compact_threshold?: number | undefined;
@@ -138,6 +138,13 @@ export declare const route: Route<{
138
138
  readonly store?: boolean | undefined;
139
139
  readonly prompt_cache_key?: string | undefined;
140
140
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
141
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
142
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
143
+ readonly parallel_tool_calls?: boolean | undefined;
144
+ readonly metadata?: {
145
+ readonly [x: string]: string;
146
+ } | undefined;
147
+ readonly safety_identifier?: string | undefined;
141
148
  readonly tool_stream?: boolean | undefined;
142
149
  readonly max_completion_tokens?: number | undefined;
143
150
  readonly max_tokens?: number | undefined;
@@ -270,6 +277,13 @@ export declare const routes: Route<{
270
277
  readonly store?: boolean | undefined;
271
278
  readonly prompt_cache_key?: string | undefined;
272
279
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
280
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
281
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
282
+ readonly parallel_tool_calls?: boolean | undefined;
283
+ readonly metadata?: {
284
+ readonly [x: string]: string;
285
+ } | undefined;
286
+ readonly safety_identifier?: string | undefined;
273
287
  readonly tool_stream?: boolean | undefined;
274
288
  readonly max_completion_tokens?: number | undefined;
275
289
  readonly max_tokens?: number | undefined;
@@ -134,6 +134,13 @@ export declare const route: Route<{
134
134
  readonly store?: boolean | undefined;
135
135
  readonly prompt_cache_key?: string | undefined;
136
136
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
137
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
138
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
139
+ readonly parallel_tool_calls?: boolean | undefined;
140
+ readonly metadata?: {
141
+ readonly [x: string]: string;
142
+ } | undefined;
143
+ readonly safety_identifier?: string | undefined;
137
144
  readonly tool_stream?: boolean | undefined;
138
145
  readonly max_completion_tokens?: number | undefined;
139
146
  readonly max_tokens?: number | undefined;
@@ -266,6 +273,13 @@ export declare const routes: Route<{
266
273
  readonly store?: boolean | undefined;
267
274
  readonly prompt_cache_key?: string | undefined;
268
275
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
276
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
277
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
278
+ readonly parallel_tool_calls?: boolean | undefined;
279
+ readonly metadata?: {
280
+ readonly [x: string]: string;
281
+ } | undefined;
282
+ readonly safety_identifier?: string | undefined;
269
283
  readonly tool_stream?: boolean | undefined;
270
284
  readonly max_completion_tokens?: number | undefined;
271
285
  readonly max_tokens?: number | undefined;
@@ -171,10 +171,6 @@ export declare const responsesRoute: import("../route/client.js").Route<{
171
171
  readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
172
172
  readonly prompt_cache_key?: string | undefined;
173
173
  readonly include?: readonly import("../schema/options.js").OpenString<"code_interpreter_call.outputs" | "computer_call_output.output.image_url" | "file_search_call.results" | "message.input_image.image_url" | "message.output_text.logprobs" | "reasoning.encrypted_content" | "web_search_call.action.sources" | "web_search_call.results">[] | undefined;
174
- readonly reasoning?: {
175
- readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
176
- readonly summary?: "auto" | "concise" | "detailed" | undefined;
177
- } | undefined;
178
174
  readonly text?: {
179
175
  readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
180
176
  } | undefined;
@@ -230,6 +226,12 @@ export declare const responsesRoute: import("../route/client.js").Route<{
230
226
  } | {
231
227
  readonly type: "image_generation";
232
228
  } | undefined;
229
+ readonly reasoning?: {
230
+ readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
231
+ readonly summary?: "auto" | "concise" | "detailed" | undefined;
232
+ readonly mode?: import("../schema/options.js").OpenString<"pro" | "standard"> | undefined;
233
+ readonly context?: import("../schema/options.js").OpenString<"all_turns" | "auto" | "current_turn"> | undefined;
234
+ } | undefined;
233
235
  readonly context_management?: readonly {
234
236
  readonly type: "compaction";
235
237
  readonly compact_threshold?: number | undefined;
@@ -545,6 +547,7 @@ export declare const messagesRoute: import("../route/client.js").Route<{
545
547
  readonly user_id?: string | null | undefined;
546
548
  } | undefined;
547
549
  readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
550
+ readonly speed?: import("../schema/options.js").OpenString<"fast" | "standard"> | undefined;
548
551
  }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>;
549
552
  export declare const route: import("../route/client.js").Route<{
550
553
  readonly model: string;
@@ -668,6 +671,13 @@ export declare const route: import("../route/client.js").Route<{
668
671
  readonly store?: boolean | undefined;
669
672
  readonly prompt_cache_key?: string | undefined;
670
673
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
674
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
675
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
676
+ readonly parallel_tool_calls?: boolean | undefined;
677
+ readonly metadata?: {
678
+ readonly [x: string]: string;
679
+ } | undefined;
680
+ readonly safety_identifier?: string | undefined;
671
681
  readonly tool_stream?: boolean | undefined;
672
682
  readonly max_completion_tokens?: number | undefined;
673
683
  readonly max_tokens?: number | undefined;
@@ -984,6 +994,7 @@ export declare const routes: (import("../route/client.js").Route<{
984
994
  readonly user_id?: string | null | undefined;
985
995
  } | undefined;
986
996
  readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
997
+ readonly speed?: import("../schema/options.js").OpenString<"fast" | "standard"> | undefined;
987
998
  }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | import("../route/client.js").Route<{
988
999
  readonly model: string;
989
1000
  readonly messages: readonly ({
@@ -1106,6 +1117,13 @@ export declare const routes: (import("../route/client.js").Route<{
1106
1117
  readonly store?: boolean | undefined;
1107
1118
  readonly prompt_cache_key?: string | undefined;
1108
1119
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
1120
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
1121
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
1122
+ readonly parallel_tool_calls?: boolean | undefined;
1123
+ readonly metadata?: {
1124
+ readonly [x: string]: string;
1125
+ } | undefined;
1126
+ readonly safety_identifier?: string | undefined;
1109
1127
  readonly tool_stream?: boolean | undefined;
1110
1128
  readonly max_completion_tokens?: number | undefined;
1111
1129
  readonly max_tokens?: number | undefined;
@@ -1257,10 +1275,6 @@ export declare const routes: (import("../route/client.js").Route<{
1257
1275
  readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
1258
1276
  readonly prompt_cache_key?: string | undefined;
1259
1277
  readonly include?: readonly import("../schema/options.js").OpenString<"code_interpreter_call.outputs" | "computer_call_output.output.image_url" | "file_search_call.results" | "message.input_image.image_url" | "message.output_text.logprobs" | "reasoning.encrypted_content" | "web_search_call.action.sources" | "web_search_call.results">[] | undefined;
1260
- readonly reasoning?: {
1261
- readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
1262
- readonly summary?: "auto" | "concise" | "detailed" | undefined;
1263
- } | undefined;
1264
1278
  readonly text?: {
1265
1279
  readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
1266
1280
  } | undefined;
@@ -1316,6 +1330,12 @@ export declare const routes: (import("../route/client.js").Route<{
1316
1330
  } | {
1317
1331
  readonly type: "image_generation";
1318
1332
  } | undefined;
1333
+ readonly reasoning?: {
1334
+ readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
1335
+ readonly summary?: "auto" | "concise" | "detailed" | undefined;
1336
+ readonly mode?: import("../schema/options.js").OpenString<"pro" | "standard"> | undefined;
1337
+ readonly context?: import("../schema/options.js").OpenString<"all_turns" | "auto" | "current_turn"> | undefined;
1338
+ } | undefined;
1319
1339
  readonly context_management?: readonly {
1320
1340
  readonly type: "compaction";
1321
1341
  readonly compact_threshold?: number | undefined;
@@ -141,6 +141,13 @@ export declare const route: Route<{
141
141
  readonly store?: boolean | undefined;
142
142
  readonly prompt_cache_key?: string | undefined;
143
143
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
144
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
145
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
146
+ readonly parallel_tool_calls?: boolean | undefined;
147
+ readonly metadata?: {
148
+ readonly [x: string]: string;
149
+ } | undefined;
150
+ readonly safety_identifier?: string | undefined;
144
151
  readonly tool_stream?: boolean | undefined;
145
152
  readonly max_completion_tokens?: number | undefined;
146
153
  readonly max_tokens?: number | undefined;
@@ -273,6 +280,13 @@ export declare const routes: Route<{
273
280
  readonly store?: boolean | undefined;
274
281
  readonly prompt_cache_key?: string | undefined;
275
282
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
283
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
284
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
285
+ readonly parallel_tool_calls?: boolean | undefined;
286
+ readonly metadata?: {
287
+ readonly [x: string]: string;
288
+ } | undefined;
289
+ readonly safety_identifier?: string | undefined;
276
290
  readonly tool_stream?: boolean | undefined;
277
291
  readonly max_completion_tokens?: number | undefined;
278
292
  readonly max_tokens?: number | undefined;
@@ -190,6 +190,13 @@ export declare const chatRoute: Route<{
190
190
  readonly store?: boolean | undefined;
191
191
  readonly prompt_cache_key?: string | undefined;
192
192
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
193
+ readonly verbosity?: OpenString<"high" | "low" | "medium"> | undefined;
194
+ readonly service_tier?: OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
195
+ readonly parallel_tool_calls?: boolean | undefined;
196
+ readonly metadata?: {
197
+ readonly [x: string]: string;
198
+ } | undefined;
199
+ readonly safety_identifier?: string | undefined;
193
200
  readonly tool_stream?: boolean | undefined;
194
201
  readonly max_completion_tokens?: number | undefined;
195
202
  readonly max_tokens?: number | undefined;
@@ -373,6 +380,13 @@ export declare const routes: (Route<{
373
380
  readonly store?: boolean | undefined;
374
381
  readonly prompt_cache_key?: string | undefined;
375
382
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
383
+ readonly verbosity?: OpenString<"high" | "low" | "medium"> | undefined;
384
+ readonly service_tier?: OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
385
+ readonly parallel_tool_calls?: boolean | undefined;
386
+ readonly metadata?: {
387
+ readonly [x: string]: string;
388
+ } | undefined;
389
+ readonly safety_identifier?: string | undefined;
376
390
  readonly tool_stream?: boolean | undefined;
377
391
  readonly max_completion_tokens?: number | undefined;
378
392
  readonly max_tokens?: number | undefined;
@@ -134,6 +134,13 @@ export declare const route: Route<{
134
134
  readonly store?: boolean | undefined;
135
135
  readonly prompt_cache_key?: string | undefined;
136
136
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
137
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
138
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
139
+ readonly parallel_tool_calls?: boolean | undefined;
140
+ readonly metadata?: {
141
+ readonly [x: string]: string;
142
+ } | undefined;
143
+ readonly safety_identifier?: string | undefined;
137
144
  readonly tool_stream?: boolean | undefined;
138
145
  readonly max_completion_tokens?: number | undefined;
139
146
  readonly max_tokens?: number | undefined;
@@ -266,6 +273,13 @@ export declare const routes: Route<{
266
273
  readonly store?: boolean | undefined;
267
274
  readonly prompt_cache_key?: string | undefined;
268
275
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
276
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
277
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
278
+ readonly parallel_tool_calls?: boolean | undefined;
279
+ readonly metadata?: {
280
+ readonly [x: string]: string;
281
+ } | undefined;
282
+ readonly safety_identifier?: string | undefined;
269
283
  readonly tool_stream?: boolean | undefined;
270
284
  readonly max_completion_tokens?: number | undefined;
271
285
  readonly max_tokens?: number | undefined;
@@ -134,6 +134,13 @@ export declare const route: Route<{
134
134
  readonly store?: boolean | undefined;
135
135
  readonly prompt_cache_key?: string | undefined;
136
136
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
137
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
138
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
139
+ readonly parallel_tool_calls?: boolean | undefined;
140
+ readonly metadata?: {
141
+ readonly [x: string]: string;
142
+ } | undefined;
143
+ readonly safety_identifier?: string | undefined;
137
144
  readonly tool_stream?: boolean | undefined;
138
145
  readonly max_completion_tokens?: number | undefined;
139
146
  readonly max_tokens?: number | undefined;
@@ -266,6 +273,13 @@ export declare const routes: Route<{
266
273
  readonly store?: boolean | undefined;
267
274
  readonly prompt_cache_key?: string | undefined;
268
275
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
276
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
277
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
278
+ readonly parallel_tool_calls?: boolean | undefined;
279
+ readonly metadata?: {
280
+ readonly [x: string]: string;
281
+ } | undefined;
282
+ readonly safety_identifier?: string | undefined;
269
283
  readonly tool_stream?: boolean | undefined;
270
284
  readonly max_completion_tokens?: number | undefined;
271
285
  readonly max_tokens?: number | undefined;