@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
@@ -135,6 +135,13 @@ export declare const protocol: Protocol<{
135
135
  readonly store?: boolean | undefined;
136
136
  readonly prompt_cache_key?: string | undefined;
137
137
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
138
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
139
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
140
+ readonly parallel_tool_calls?: boolean | undefined;
141
+ readonly metadata?: {
142
+ readonly [x: string]: string;
143
+ } | undefined;
144
+ readonly safety_identifier?: string | undefined;
138
145
  readonly tool_stream?: boolean | undefined;
139
146
  readonly max_completion_tokens?: number | undefined;
140
147
  readonly max_tokens?: number | undefined;
@@ -339,6 +346,13 @@ export declare const route: Route<{
339
346
  readonly store?: boolean | undefined;
340
347
  readonly prompt_cache_key?: string | undefined;
341
348
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
349
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
350
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
351
+ readonly parallel_tool_calls?: boolean | undefined;
352
+ readonly metadata?: {
353
+ readonly [x: string]: string;
354
+ } | undefined;
355
+ readonly safety_identifier?: string | undefined;
342
356
  readonly tool_stream?: boolean | undefined;
343
357
  readonly max_completion_tokens?: number | undefined;
344
358
  readonly max_tokens?: number | undefined;
@@ -471,6 +485,13 @@ export declare const routes: Route<{
471
485
  readonly store?: boolean | undefined;
472
486
  readonly prompt_cache_key?: string | undefined;
473
487
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
488
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
489
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
490
+ readonly parallel_tool_calls?: boolean | undefined;
491
+ readonly metadata?: {
492
+ readonly [x: string]: string;
493
+ } | undefined;
494
+ readonly safety_identifier?: string | undefined;
474
495
  readonly tool_stream?: boolean | undefined;
475
496
  readonly max_completion_tokens?: number | undefined;
476
497
  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;
@@ -139,6 +139,13 @@ export declare const routes: Route<{
139
139
  readonly store?: boolean | undefined;
140
140
  readonly prompt_cache_key?: string | undefined;
141
141
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
142
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
143
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
144
+ readonly parallel_tool_calls?: boolean | undefined;
145
+ readonly metadata?: {
146
+ readonly [x: string]: string;
147
+ } | undefined;
148
+ readonly safety_identifier?: string | undefined;
142
149
  readonly tool_stream?: boolean | undefined;
143
150
  readonly max_completion_tokens?: number | undefined;
144
151
  readonly max_tokens?: number | undefined;
@@ -325,6 +325,7 @@ export declare const routes: Route<{
325
325
  readonly user_id?: string | null | undefined;
326
326
  } | undefined;
327
327
  readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
328
+ readonly speed?: import("../schema/options.js").OpenString<"fast" | "standard"> | undefined;
328
329
  readonly anthropic_version: "vertex-2023-10-16";
329
330
  }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>[];
330
331
  export declare const configure: (input?: Config) => {
@@ -143,6 +143,13 @@ export declare const protocol: Protocol<{
143
143
  readonly store?: boolean | undefined;
144
144
  readonly prompt_cache_key?: string | undefined;
145
145
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
146
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
147
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
148
+ readonly parallel_tool_calls?: boolean | undefined;
149
+ readonly metadata?: {
150
+ readonly [x: string]: string;
151
+ } | undefined;
152
+ readonly safety_identifier?: string | undefined;
146
153
  readonly tool_stream?: boolean | undefined;
147
154
  readonly max_completion_tokens?: number | undefined;
148
155
  readonly max_tokens?: number | undefined;
@@ -154,8 +161,6 @@ export declare const protocol: Protocol<{
154
161
  readonly stop?: readonly string[] | undefined;
155
162
  readonly reasoning_format?: "parsed" | undefined;
156
163
  readonly include_reasoning?: boolean | undefined;
157
- readonly parallel_tool_calls?: boolean | undefined;
158
- readonly service_tier?: string | undefined;
159
164
  readonly user?: string | undefined;
160
165
  }, string, "[DONE]" | {
161
166
  readonly [x: string]: unknown;
@@ -352,6 +357,13 @@ export declare const route: Route<{
352
357
  readonly store?: boolean | undefined;
353
358
  readonly prompt_cache_key?: string | undefined;
354
359
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
360
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
361
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
362
+ readonly parallel_tool_calls?: boolean | undefined;
363
+ readonly metadata?: {
364
+ readonly [x: string]: string;
365
+ } | undefined;
366
+ readonly safety_identifier?: string | undefined;
355
367
  readonly tool_stream?: boolean | undefined;
356
368
  readonly max_completion_tokens?: number | undefined;
357
369
  readonly max_tokens?: number | undefined;
@@ -363,8 +375,6 @@ export declare const route: Route<{
363
375
  readonly stop?: readonly string[] | undefined;
364
376
  readonly reasoning_format?: "parsed" | undefined;
365
377
  readonly include_reasoning?: boolean | undefined;
366
- readonly parallel_tool_calls?: boolean | undefined;
367
- readonly service_tier?: string | undefined;
368
378
  readonly user?: string | undefined;
369
379
  }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>;
370
380
  export declare const configure: (input?: LanguageModelOptions) => {
@@ -10,8 +10,6 @@ export const id = ProviderID.make("groq");
10
10
  const baseURL = "https://api.groq.com/openai/v1";
11
11
  const Options = Schema.Struct({
12
12
  includeReasoning: Schema.optional(Schema.Boolean),
13
- parallelToolCalls: Schema.optional(Schema.Boolean),
14
- serviceTier: Schema.optional(Schema.String),
15
13
  user: Schema.optional(Schema.String),
16
14
  });
17
15
  export const protocol = Protocol.make({
@@ -21,8 +19,6 @@ export const protocol = Protocol.make({
21
19
  ...OpenAIChat.bodyFields,
22
20
  reasoning_format: Schema.optional(Schema.Literal("parsed")),
23
21
  include_reasoning: Schema.optional(Schema.Boolean),
24
- parallel_tool_calls: Schema.optional(Schema.Boolean),
25
- service_tier: Schema.optional(Schema.String),
26
22
  user: Schema.optional(Schema.String),
27
23
  }),
28
24
  from: Effect.fn("Groq.fromRequest")(function* (request) {
@@ -32,8 +28,6 @@ export const protocol = Protocol.make({
32
28
  ...(yield* OpenAIChat.fromRequest(request)),
33
29
  reasoning_format: gptOSS ? undefined : "parsed",
34
30
  include_reasoning: gptOSS ? options.includeReasoning : undefined,
35
- parallel_tool_calls: options.parallelToolCalls,
36
- service_tier: options.serviceTier,
37
31
  user: options.user,
38
32
  };
39
33
  }),
@@ -39,137 +39,6 @@ export type Settings = ProviderPackage.Settings & ProviderOptionsInput & {
39
39
  readonly baseURL?: string;
40
40
  };
41
41
  export declare const routes: (Route<{
42
- readonly model: string;
43
- readonly messages: readonly ({
44
- readonly role: "system";
45
- readonly content: string | readonly ({
46
- readonly type: "image_url";
47
- readonly image_url: {
48
- readonly url: string;
49
- };
50
- } | {
51
- readonly type: "video_url";
52
- readonly video_url: {
53
- readonly url: string;
54
- };
55
- } | {
56
- readonly type: "file";
57
- readonly file: {
58
- readonly filename: string;
59
- readonly file_data: string;
60
- };
61
- } | {
62
- readonly type: "text";
63
- readonly text: string;
64
- readonly cache_control?: {
65
- readonly type: "ephemeral";
66
- readonly ttl?: string | undefined;
67
- } | undefined;
68
- })[];
69
- } | {
70
- readonly role: "user";
71
- readonly content: string | readonly ({
72
- readonly type: "image_url";
73
- readonly image_url: {
74
- readonly url: string;
75
- };
76
- } | {
77
- readonly type: "video_url";
78
- readonly video_url: {
79
- readonly url: string;
80
- };
81
- } | {
82
- readonly type: "file";
83
- readonly file: {
84
- readonly filename: string;
85
- readonly file_data: string;
86
- };
87
- } | {
88
- readonly type: "text";
89
- readonly text: string;
90
- readonly cache_control?: {
91
- readonly type: "ephemeral";
92
- readonly ttl?: string | undefined;
93
- } | undefined;
94
- })[];
95
- } | {
96
- readonly role: "tool";
97
- readonly tool_call_id: string;
98
- readonly content: string | readonly {
99
- readonly type: "text";
100
- readonly text: string;
101
- readonly cache_control?: {
102
- readonly type: "ephemeral";
103
- readonly ttl?: string | undefined;
104
- } | undefined;
105
- }[];
106
- } | {
107
- readonly [x: string]: unknown;
108
- readonly role: "assistant";
109
- readonly content: string | readonly {
110
- readonly type: "text";
111
- readonly text: string;
112
- readonly cache_control?: {
113
- readonly type: "ephemeral";
114
- readonly ttl?: string | undefined;
115
- } | undefined;
116
- }[] | null;
117
- readonly tool_calls?: readonly {
118
- readonly id: string;
119
- readonly type: "function";
120
- readonly function: {
121
- readonly name: string;
122
- readonly arguments: string;
123
- };
124
- readonly extra_content?: {
125
- readonly google: {
126
- readonly thought_signature: string;
127
- };
128
- } | undefined;
129
- }[] | undefined;
130
- readonly reasoning_content?: string | undefined;
131
- readonly reasoning?: string | undefined;
132
- readonly reasoning_text?: string | undefined;
133
- readonly reasoning_details?: unknown;
134
- })[];
135
- readonly tools?: readonly {
136
- readonly type: "function";
137
- readonly function: {
138
- readonly name: string;
139
- readonly description: string;
140
- readonly parameters: {
141
- readonly [x: string]: unknown;
142
- };
143
- readonly strict?: boolean | undefined;
144
- };
145
- readonly cache_control?: {
146
- readonly type: "ephemeral";
147
- readonly ttl?: string | undefined;
148
- } | undefined;
149
- }[] | undefined;
150
- readonly tool_choice?: "auto" | "none" | "required" | {
151
- readonly type: "function";
152
- readonly function: {
153
- readonly name: string;
154
- };
155
- } | undefined;
156
- readonly stream: true;
157
- readonly stream_options?: {
158
- readonly include_usage: boolean;
159
- } | undefined;
160
- readonly store?: boolean | undefined;
161
- readonly prompt_cache_key?: string | undefined;
162
- readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
163
- readonly tool_stream?: boolean | undefined;
164
- readonly max_completion_tokens?: number | undefined;
165
- readonly max_tokens?: number | undefined;
166
- readonly temperature?: number | undefined;
167
- readonly top_p?: number | undefined;
168
- readonly frequency_penalty?: number | undefined;
169
- readonly presence_penalty?: number | undefined;
170
- readonly seed?: number | undefined;
171
- readonly stop?: readonly string[] | undefined;
172
- }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
173
42
  readonly model: string;
174
43
  readonly input: readonly ({
175
44
  readonly type: "configuration_update";
@@ -349,6 +218,144 @@ export declare const routes: (Route<{
349
218
  readonly presence_penalty?: number | undefined;
350
219
  readonly frequency_penalty?: number | undefined;
351
220
  readonly stream: true;
221
+ }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
222
+ readonly model: string;
223
+ readonly messages: readonly ({
224
+ readonly role: "system";
225
+ readonly content: string | readonly ({
226
+ readonly type: "image_url";
227
+ readonly image_url: {
228
+ readonly url: string;
229
+ };
230
+ } | {
231
+ readonly type: "video_url";
232
+ readonly video_url: {
233
+ readonly url: string;
234
+ };
235
+ } | {
236
+ readonly type: "file";
237
+ readonly file: {
238
+ readonly filename: string;
239
+ readonly file_data: string;
240
+ };
241
+ } | {
242
+ readonly type: "text";
243
+ readonly text: string;
244
+ readonly cache_control?: {
245
+ readonly type: "ephemeral";
246
+ readonly ttl?: string | undefined;
247
+ } | undefined;
248
+ })[];
249
+ } | {
250
+ readonly role: "user";
251
+ readonly content: string | readonly ({
252
+ readonly type: "image_url";
253
+ readonly image_url: {
254
+ readonly url: string;
255
+ };
256
+ } | {
257
+ readonly type: "video_url";
258
+ readonly video_url: {
259
+ readonly url: string;
260
+ };
261
+ } | {
262
+ readonly type: "file";
263
+ readonly file: {
264
+ readonly filename: string;
265
+ readonly file_data: string;
266
+ };
267
+ } | {
268
+ readonly type: "text";
269
+ readonly text: string;
270
+ readonly cache_control?: {
271
+ readonly type: "ephemeral";
272
+ readonly ttl?: string | undefined;
273
+ } | undefined;
274
+ })[];
275
+ } | {
276
+ readonly role: "tool";
277
+ readonly tool_call_id: string;
278
+ readonly content: string | readonly {
279
+ readonly type: "text";
280
+ readonly text: string;
281
+ readonly cache_control?: {
282
+ readonly type: "ephemeral";
283
+ readonly ttl?: string | undefined;
284
+ } | undefined;
285
+ }[];
286
+ } | {
287
+ readonly [x: string]: unknown;
288
+ readonly role: "assistant";
289
+ readonly content: string | readonly {
290
+ readonly type: "text";
291
+ readonly text: string;
292
+ readonly cache_control?: {
293
+ readonly type: "ephemeral";
294
+ readonly ttl?: string | undefined;
295
+ } | undefined;
296
+ }[] | null;
297
+ readonly tool_calls?: readonly {
298
+ readonly id: string;
299
+ readonly type: "function";
300
+ readonly function: {
301
+ readonly name: string;
302
+ readonly arguments: string;
303
+ };
304
+ readonly extra_content?: {
305
+ readonly google: {
306
+ readonly thought_signature: string;
307
+ };
308
+ } | undefined;
309
+ }[] | undefined;
310
+ readonly reasoning_content?: string | undefined;
311
+ readonly reasoning?: string | undefined;
312
+ readonly reasoning_text?: string | undefined;
313
+ readonly reasoning_details?: unknown;
314
+ })[];
315
+ readonly tools?: readonly {
316
+ readonly type: "function";
317
+ readonly function: {
318
+ readonly name: string;
319
+ readonly description: string;
320
+ readonly parameters: {
321
+ readonly [x: string]: unknown;
322
+ };
323
+ readonly strict?: boolean | undefined;
324
+ };
325
+ readonly cache_control?: {
326
+ readonly type: "ephemeral";
327
+ readonly ttl?: string | undefined;
328
+ } | undefined;
329
+ }[] | undefined;
330
+ readonly tool_choice?: "auto" | "none" | "required" | {
331
+ readonly type: "function";
332
+ readonly function: {
333
+ readonly name: string;
334
+ };
335
+ } | undefined;
336
+ readonly stream: true;
337
+ readonly stream_options?: {
338
+ readonly include_usage: boolean;
339
+ } | undefined;
340
+ readonly store?: boolean | undefined;
341
+ readonly prompt_cache_key?: string | undefined;
342
+ readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
343
+ readonly verbosity?: OpenString<"high" | "low" | "medium"> | undefined;
344
+ readonly service_tier?: OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
345
+ readonly parallel_tool_calls?: boolean | undefined;
346
+ readonly metadata?: {
347
+ readonly [x: string]: string;
348
+ } | undefined;
349
+ readonly safety_identifier?: string | undefined;
350
+ readonly tool_stream?: boolean | undefined;
351
+ readonly max_completion_tokens?: number | undefined;
352
+ readonly max_tokens?: number | undefined;
353
+ readonly temperature?: number | undefined;
354
+ readonly top_p?: number | undefined;
355
+ readonly frequency_penalty?: number | undefined;
356
+ readonly presence_penalty?: number | undefined;
357
+ readonly seed?: number | undefined;
358
+ readonly stop?: readonly string[] | undefined;
352
359
  }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
353
360
  readonly context_management?: {
354
361
  readonly edits: readonly {
@@ -644,6 +651,7 @@ export declare const routes: (Route<{
644
651
  readonly user_id?: string | null | undefined;
645
652
  } | undefined;
646
653
  readonly service_tier?: OpenString<"auto" | "standard_only"> | undefined;
654
+ readonly speed?: OpenString<"fast" | "standard"> | undefined;
647
655
  readonly tools?: readonly ({
648
656
  readonly type: "web_search";
649
657
  readonly name: "web_search";
@@ -339,6 +339,7 @@ export declare const routes: (Route<{
339
339
  readonly user_id?: string | null | undefined;
340
340
  } | undefined;
341
341
  readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
342
+ readonly speed?: import("../schema/options.js").OpenString<"fast" | "standard"> | undefined;
342
343
  }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
343
344
  readonly model: string;
344
345
  readonly input: readonly ({
@@ -641,6 +642,13 @@ export declare const routes: (Route<{
641
642
  readonly store?: boolean | undefined;
642
643
  readonly prompt_cache_key?: string | undefined;
643
644
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
645
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
646
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
647
+ readonly parallel_tool_calls?: boolean | undefined;
648
+ readonly metadata?: {
649
+ readonly [x: string]: string;
650
+ } | undefined;
651
+ readonly safety_identifier?: string | undefined;
644
652
  readonly tool_stream?: boolean | undefined;
645
653
  readonly max_completion_tokens?: number | undefined;
646
654
  readonly max_tokens?: number | undefined;
@@ -337,6 +337,7 @@ export declare const routes: (Route<{
337
337
  readonly user_id?: string | null | undefined;
338
338
  } | undefined;
339
339
  readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
340
+ readonly speed?: import("../schema/options.js").OpenString<"fast" | "standard"> | undefined;
340
341
  }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
341
342
  readonly model: string;
342
343
  readonly input: readonly ({
@@ -639,6 +640,13 @@ export declare const routes: (Route<{
639
640
  readonly store?: boolean | undefined;
640
641
  readonly prompt_cache_key?: string | undefined;
641
642
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
643
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
644
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
645
+ readonly parallel_tool_calls?: boolean | undefined;
646
+ readonly metadata?: {
647
+ readonly [x: string]: string;
648
+ } | undefined;
649
+ readonly safety_identifier?: string | undefined;
642
650
  readonly tool_stream?: boolean | undefined;
643
651
  readonly max_completion_tokens?: number | undefined;
644
652
  readonly max_tokens?: number | undefined;
@@ -136,6 +136,13 @@ export declare const routes: import("../route/client.js").Route<{
136
136
  readonly store?: boolean | undefined;
137
137
  readonly prompt_cache_key?: string | undefined;
138
138
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
139
+ readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
140
+ readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
141
+ readonly parallel_tool_calls?: boolean | undefined;
142
+ readonly metadata?: {
143
+ readonly [x: string]: string;
144
+ } | undefined;
145
+ readonly safety_identifier?: string | undefined;
139
146
  readonly tool_stream?: boolean | undefined;
140
147
  readonly max_completion_tokens?: number | undefined;
141
148
  readonly max_tokens?: number | undefined;
@@ -1,11 +1,13 @@
1
1
  import { type ProviderOptions } from "../schema/index.js";
2
2
  import type { Options, ResponseIncludable, ServiceTier } from "../protocols/utils/open-responses-options.js";
3
- import type { ContextManagement } from "../protocols/openai-responses.js";
3
+ import type { ContextManagement, ReasoningContext, ReasoningMode } from "../protocols/openai-responses.js";
4
4
  export type OpenAIResponseIncludable = ResponseIncludable;
5
5
  export type OpenAIServiceTier = ServiceTier | "scale" | "fast" | "ultrafast";
6
6
  export type OpenAIOptionsInput = Omit<Options, "serviceTier"> & {
7
7
  /** Advanced in-band compaction. The caller owns checkpoint persistence and recovery. */
8
8
  readonly contextManagement?: ContextManagement;
9
+ readonly reasoningMode?: ReasoningMode;
10
+ readonly reasoningContext?: ReasoningContext;
9
11
  readonly serviceTier?: OpenAIServiceTier;
10
12
  readonly [key: string]: unknown;
11
13
  };
@@ -133,6 +133,13 @@ export declare const routes: (Route<{
133
133
  readonly store?: boolean | undefined;
134
134
  readonly prompt_cache_key?: string | undefined;
135
135
  readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
136
+ readonly verbosity?: OpenString<"high" | "low" | "medium"> | undefined;
137
+ readonly service_tier?: OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
138
+ readonly parallel_tool_calls?: boolean | undefined;
139
+ readonly metadata?: {
140
+ readonly [x: string]: string;
141
+ } | undefined;
142
+ readonly safety_identifier?: string | undefined;
136
143
  readonly tool_stream?: boolean | undefined;
137
144
  readonly max_completion_tokens?: number | undefined;
138
145
  readonly max_tokens?: number | undefined;
@@ -284,10 +291,6 @@ export declare const routes: (Route<{
284
291
  readonly service_tier?: OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
285
292
  readonly prompt_cache_key?: string | undefined;
286
293
  readonly include?: readonly 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;
287
- readonly reasoning?: {
288
- readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
289
- readonly summary?: "auto" | "concise" | "detailed" | undefined;
290
- } | undefined;
291
294
  readonly text?: {
292
295
  readonly verbosity?: OpenString<"high" | "low" | "medium"> | undefined;
293
296
  } | undefined;
@@ -343,6 +346,12 @@ export declare const routes: (Route<{
343
346
  } | {
344
347
  readonly type: "image_generation";
345
348
  } | undefined;
349
+ readonly reasoning?: {
350
+ readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
351
+ readonly summary?: "auto" | "concise" | "detailed" | undefined;
352
+ readonly mode?: OpenString<"pro" | "standard"> | undefined;
353
+ readonly context?: OpenString<"all_turns" | "auto" | "current_turn"> | undefined;
354
+ } | undefined;
346
355
  readonly context_management?: readonly {
347
356
  readonly type: "compaction";
348
357
  readonly compact_threshold?: number | undefined;
@@ -206,6 +206,11 @@ declare const OpenRouterBody: Schema.StructWithRest<Schema.Struct<{
206
206
  readonly store: Schema.optional<Schema.Boolean>;
207
207
  readonly prompt_cache_key: Schema.optional<Schema.String>;
208
208
  readonly reasoning_effort: Schema.optional<Schema.declare<import("../schema/options.js").ReasoningEffort, import("../schema/options.js").ReasoningEffort>>;
209
+ readonly verbosity: Schema.optional<Schema.declare<OpenString<"high" | "low" | "medium">, OpenString<"high" | "low" | "medium">>>;
210
+ readonly service_tier: Schema.optional<Schema.declare<OpenString<"auto" | "default" | "flex" | "priority">, OpenString<"auto" | "default" | "flex" | "priority">>>;
211
+ readonly parallel_tool_calls: Schema.optional<Schema.Boolean>;
212
+ readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.String>>;
213
+ readonly safety_identifier: Schema.optional<Schema.String>;
209
214
  readonly tool_stream: Schema.optional<Schema.Boolean>;
210
215
  readonly max_completion_tokens: Schema.optional<Schema.Number>;
211
216
  readonly max_tokens: Schema.optional<Schema.Number>;
@@ -347,6 +352,13 @@ export declare const protocol: Protocol<{
347
352
  store?: boolean | undefined;
348
353
  prompt_cache_key?: string | undefined;
349
354
  reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
355
+ verbosity?: OpenString<"high" | "low" | "medium"> | undefined;
356
+ service_tier?: OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
357
+ parallel_tool_calls?: boolean | undefined;
358
+ metadata?: {
359
+ readonly [x: string]: string;
360
+ } | undefined;
361
+ safety_identifier?: string | undefined;
350
362
  tool_stream?: boolean | undefined;
351
363
  max_completion_tokens?: number | undefined;
352
364
  max_tokens?: number | undefined;
@@ -569,6 +581,13 @@ export declare const route: Route<{
569
581
  store?: boolean | undefined;
570
582
  prompt_cache_key?: string | undefined;
571
583
  reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
584
+ verbosity?: OpenString<"high" | "low" | "medium"> | undefined;
585
+ service_tier?: OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
586
+ parallel_tool_calls?: boolean | undefined;
587
+ metadata?: {
588
+ readonly [x: string]: string;
589
+ } | undefined;
590
+ safety_identifier?: string | undefined;
572
591
  tool_stream?: boolean | undefined;
573
592
  max_completion_tokens?: number | undefined;
574
593
  max_tokens?: number | undefined;
@@ -719,6 +738,13 @@ export declare const routes: Route<{
719
738
  store?: boolean | undefined;
720
739
  prompt_cache_key?: string | undefined;
721
740
  reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
741
+ verbosity?: OpenString<"high" | "low" | "medium"> | undefined;
742
+ service_tier?: OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
743
+ parallel_tool_calls?: boolean | undefined;
744
+ metadata?: {
745
+ readonly [x: string]: string;
746
+ } | undefined;
747
+ safety_identifier?: string | undefined;
722
748
  tool_stream?: boolean | undefined;
723
749
  max_completion_tokens?: number | undefined;
724
750
  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;