@opencode/ai 2.0.32 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/dist/ai-client.d.ts +2 -2
  2. package/dist/experimental/evaluation-client.d.ts +1 -1
  3. package/dist/experimental/evaluation.d.ts +20 -20
  4. package/dist/experimental/realtime.d.ts +6 -14
  5. package/dist/experimental/realtime.js +28 -3
  6. package/dist/experimental/system-one.d.ts +1 -1
  7. package/dist/image-client.d.ts +8 -8
  8. package/dist/image.d.ts +593 -437
  9. package/dist/llm.d.ts +51 -51
  10. package/dist/media-client.d.ts +1 -1
  11. package/dist/media.d.ts +4 -4
  12. package/dist/promise.d.ts +199 -198
  13. package/dist/protocols/alibaba-chat.d.ts +81 -82
  14. package/dist/protocols/alibaba-chat.js +0 -1
  15. package/dist/protocols/alibaba-messages.d.ts +99 -99
  16. package/dist/protocols/alibaba-responses.d.ts +120 -120
  17. package/dist/protocols/anthropic-messages.d.ts +187 -187
  18. package/dist/protocols/anthropic-messages.js +3 -2
  19. package/dist/protocols/assemblyai-transcription.d.ts +1 -1
  20. package/dist/protocols/bedrock-converse.d.ts +75 -79
  21. package/dist/protocols/bfl-images.d.ts +1 -1
  22. package/dist/protocols/cartesia-speech.d.ts +17 -17
  23. package/dist/protocols/cohere-chat.d.ts +26 -23
  24. package/dist/protocols/cohere-chat.js +22 -1
  25. package/dist/protocols/deepgram-speech.d.ts +17 -17
  26. package/dist/protocols/deepgram-transcription.d.ts +1 -1
  27. package/dist/protocols/elevenlabs-speech.d.ts +17 -17
  28. package/dist/protocols/elevenlabs-transcription.d.ts +1 -1
  29. package/dist/protocols/fal-images.d.ts +1 -1
  30. package/dist/protocols/fal-video.d.ts +1 -1
  31. package/dist/protocols/gemini.d.ts +55 -55
  32. package/dist/protocols/google-images.d.ts +1 -1
  33. package/dist/protocols/google-interactions.d.ts +64 -62
  34. package/dist/protocols/google-interactions.js +19 -1
  35. package/dist/protocols/google-speech.d.ts +17 -17
  36. package/dist/protocols/google-transcription.d.ts +47 -47
  37. package/dist/protocols/google-video.d.ts +1 -1
  38. package/dist/protocols/meta-messages.d.ts +121 -121
  39. package/dist/protocols/meta-responses.d.ts +201 -201
  40. package/dist/protocols/mistral-chat.d.ts +45 -45
  41. package/dist/protocols/open-responses-channel.d.ts +1 -1
  42. package/dist/protocols/open-responses.d.ts +584 -450
  43. package/dist/protocols/open-responses.js +27 -35
  44. package/dist/protocols/openai-chat.d.ts +248 -248
  45. package/dist/protocols/openai-chat.js +11 -42
  46. package/dist/protocols/openai-compatible-chat.d.ts +32 -32
  47. package/dist/protocols/openai-compatible-responses.d.ts +88 -88
  48. package/dist/protocols/openai-images.d.ts +17 -17
  49. package/dist/protocols/openai-responses.d.ts +567 -567
  50. package/dist/protocols/openai-responses.js +1 -1
  51. package/dist/protocols/openai-speech.d.ts +17 -17
  52. package/dist/protocols/openai-transcription.d.ts +47 -47
  53. package/dist/protocols/replicate-images.d.ts +1 -1
  54. package/dist/protocols/runway-video.d.ts +1 -1
  55. package/dist/protocols/shared.d.ts +12 -1
  56. package/dist/protocols/shared.js +17 -1
  57. package/dist/protocols/stability-images.d.ts +2 -2
  58. package/dist/protocols/utils/bedrock-cache.d.ts +2 -2
  59. package/dist/protocols/utils/bedrock-media.d.ts +4 -4
  60. package/dist/protocols/utils/openai-options.d.ts +1 -1
  61. package/dist/protocols/utils/speech-stream.d.ts +1 -1
  62. package/dist/protocols/utils/tool-schema.d.ts +10 -5
  63. package/dist/protocols/utils/tool-stream.d.ts +152 -152
  64. package/dist/protocols/venice-chat.d.ts +109 -110
  65. package/dist/protocols/venice-chat.js +0 -1
  66. package/dist/protocols/xai-images.d.ts +1 -1
  67. package/dist/protocols/xai-responses.d.ts +79 -79
  68. package/dist/protocols/xai-video.d.ts +1 -1
  69. package/dist/protocols/zai-chat.d.ts +77 -78
  70. package/dist/protocols/zai-chat.js +0 -1
  71. package/dist/protocols/zai-images.d.ts +1 -1
  72. package/dist/protocols/zai-messages.d.ts +97 -97
  73. package/dist/providers/alibaba.d.ts +222 -283
  74. package/dist/providers/amazon-bedrock-mantle.d.ts +291 -298
  75. package/dist/providers/amazon-bedrock.d.ts +22 -28
  76. package/dist/providers/anthropic-compatible.d.ts +86 -90
  77. package/dist/providers/anthropic.d.ts +86 -90
  78. package/dist/providers/assemblyai.d.ts +2 -6
  79. package/dist/providers/azure.d.ts +228 -238
  80. package/dist/providers/baseten.d.ts +66 -70
  81. package/dist/providers/black-forest-labs.d.ts +2 -6
  82. package/dist/providers/cartesia.d.ts +2 -6
  83. package/dist/providers/cerebras.d.ts +66 -70
  84. package/dist/providers/cerebras.js +0 -1
  85. package/dist/providers/cloudflare-ai-gateway.d.ts +352 -356
  86. package/dist/providers/cloudflare-workers-ai.d.ts +66 -70
  87. package/dist/providers/cohere.d.ts +122 -132
  88. package/dist/providers/cohere.js +0 -2
  89. package/dist/providers/deepgram.d.ts +2 -7
  90. package/dist/providers/deepinfra.d.ts +66 -70
  91. package/dist/providers/deepinfra.js +0 -1
  92. package/dist/providers/deepseek.d.ts +66 -70
  93. package/dist/providers/deepseek.js +1 -1
  94. package/dist/providers/digitalocean.d.ts +137 -141
  95. package/dist/providers/elevenlabs.d.ts +2 -7
  96. package/dist/providers/fal.d.ts +2 -7
  97. package/dist/providers/fireworks.d.ts +66 -70
  98. package/dist/providers/google-vertex-chat.d.ts +34 -38
  99. package/dist/providers/google-vertex-interactions.d.ts +31 -41
  100. package/dist/providers/google-vertex-messages.d.ts +81 -85
  101. package/dist/providers/google-vertex-mistral.d.ts +23 -27
  102. package/dist/providers/google-vertex-responses.d.ts +90 -94
  103. package/dist/providers/google-vertex.d.ts +26 -30
  104. package/dist/providers/google.d.ts +94 -109
  105. package/dist/providers/groq.d.ts +111 -115
  106. package/dist/providers/groq.js +0 -1
  107. package/dist/providers/meta.d.ts +309 -317
  108. package/dist/providers/meta.js +1 -1
  109. package/dist/providers/minimax.d.ts +296 -303
  110. package/dist/providers/minimax.js +1 -1
  111. package/dist/providers/mistral.d.ts +22 -26
  112. package/dist/providers/moonshot.d.ts +296 -303
  113. package/dist/providers/moonshot.js +0 -1
  114. package/dist/providers/openai-compatible-responses.d.ts +90 -94
  115. package/dist/providers/openai-compatible.d.ts +34 -38
  116. package/dist/providers/openai.d.ts +93 -108
  117. package/dist/providers/opencode.d.ts +2 -8
  118. package/dist/providers/openrouter.d.ts +137 -144
  119. package/dist/providers/replicate.d.ts +2 -6
  120. package/dist/providers/runway.d.ts +2 -6
  121. package/dist/providers/stability.d.ts +2 -7
  122. package/dist/providers/togetherai.d.ts +66 -70
  123. package/dist/providers/togetherai.js +1 -1
  124. package/dist/providers/typesafe-ai.d.ts +2 -8
  125. package/dist/providers/venice.d.ts +58 -63
  126. package/dist/providers/vercel-ai-gateway.d.ts +2 -12
  127. package/dist/providers/xai.d.ts +38 -50
  128. package/dist/providers/zai-coding-plan.d.ts +206 -213
  129. package/dist/providers/zai.d.ts +40 -46
  130. package/dist/route/client.d.ts +51 -51
  131. package/dist/route/media-protocol.d.ts +1 -1
  132. package/dist/route/transport/http.d.ts +1 -1
  133. package/dist/route/transport/websocket.d.ts +8 -8
  134. package/dist/schema/errors.d.ts +19 -19
  135. package/dist/schema/events.d.ts +3090 -3288
  136. package/dist/schema/messages.d.ts +8 -7
  137. package/dist/schema/options.d.ts +2 -1
  138. package/dist/schema/options.js +2 -1
  139. package/dist/speech-client.d.ts +8 -8
  140. package/dist/speech.d.ts +434 -398
  141. package/dist/testing.d.ts +338 -338
  142. package/dist/tool-runtime.d.ts +1 -1
  143. package/dist/transcription-client.d.ts +23 -23
  144. package/dist/transcription.d.ts +562 -646
  145. package/dist/utils/sanitize.d.ts +4 -0
  146. package/dist/utils/sanitize.js +23 -6
  147. package/dist/video-client.d.ts +8 -8
  148. package/dist/video.d.ts +416 -372
  149. package/package.json +6 -6
@@ -53,8 +53,20 @@ export declare const routes: (Route<{
53
53
  readonly file_data: string;
54
54
  };
55
55
  })[];
56
+ } | {
57
+ readonly role: "tool";
58
+ readonly tool_call_id: string;
59
+ readonly content: string | readonly {
60
+ readonly type: "text";
61
+ readonly text: string;
62
+ readonly cache_control?: {
63
+ readonly type: "ephemeral";
64
+ readonly ttl?: string | undefined;
65
+ } | undefined;
66
+ }[];
56
67
  } | {
57
68
  readonly [x: string]: unknown;
69
+ readonly role: "assistant";
58
70
  readonly content: string | readonly {
59
71
  readonly type: "text";
60
72
  readonly text: string;
@@ -63,86 +75,75 @@ export declare const routes: (Route<{
63
75
  readonly ttl?: string | undefined;
64
76
  } | undefined;
65
77
  }[] | null;
66
- readonly role: "assistant";
67
- readonly reasoning?: string | undefined;
68
- readonly reasoning_content?: string | undefined;
69
- readonly reasoning_text?: string | undefined;
70
78
  readonly tool_calls?: readonly {
79
+ readonly id: string;
80
+ readonly type: "function";
71
81
  readonly function: {
72
82
  readonly name: string;
73
83
  readonly arguments: string;
74
84
  };
75
- readonly id: string;
76
- readonly type: "function";
77
85
  readonly extra_content?: {
78
86
  readonly google: {
79
87
  readonly thought_signature: string;
80
88
  };
81
89
  } | undefined;
82
90
  }[] | undefined;
91
+ readonly reasoning_content?: string | undefined;
92
+ readonly reasoning?: string | undefined;
93
+ readonly reasoning_text?: string | undefined;
83
94
  readonly reasoning_details?: unknown;
84
- } | {
85
- readonly role: "tool";
86
- readonly tool_call_id: string;
87
- readonly content: string | readonly {
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
95
  })[];
96
- readonly stream: true;
97
- readonly max_completion_tokens?: number | undefined;
98
- readonly max_tokens?: number | undefined;
99
- readonly temperature?: number | undefined;
100
96
  readonly tools?: readonly {
97
+ readonly type: "function";
101
98
  readonly function: {
102
- readonly description: string;
103
99
  readonly name: string;
100
+ readonly description: string;
104
101
  readonly parameters: {
105
102
  readonly [x: string]: unknown;
106
103
  };
107
104
  readonly strict?: boolean | undefined;
108
105
  };
109
- readonly type: "function";
110
106
  readonly cache_control?: {
111
107
  readonly type: "ephemeral";
112
108
  readonly ttl?: string | undefined;
113
109
  } | undefined;
114
110
  }[] | undefined;
115
- readonly stop?: readonly string[] | undefined;
116
- readonly seed?: number | undefined;
117
- readonly tool_choice?: "required" | "auto" | "none" | {
111
+ readonly tool_choice?: "auto" | "none" | "required" | {
118
112
  readonly type: "function";
119
113
  readonly function: {
120
114
  readonly name: string;
121
115
  };
122
116
  } | undefined;
123
- readonly top_p?: number | undefined;
124
- readonly frequency_penalty?: number | undefined;
125
- readonly presence_penalty?: number | undefined;
126
- readonly store?: boolean | undefined;
127
- readonly prompt_cache_key?: string | undefined;
128
- readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
117
+ readonly stream: true;
129
118
  readonly stream_options?: {
130
119
  readonly include_usage: boolean;
131
120
  } | undefined;
121
+ readonly store?: boolean | undefined;
122
+ readonly prompt_cache_key?: string | undefined;
123
+ readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
132
124
  readonly tool_stream?: boolean | undefined;
125
+ readonly max_completion_tokens?: number | undefined;
126
+ readonly max_tokens?: number | undefined;
127
+ readonly temperature?: number | undefined;
128
+ readonly top_p?: number | undefined;
129
+ readonly frequency_penalty?: number | undefined;
130
+ readonly presence_penalty?: number | undefined;
131
+ readonly seed?: number | undefined;
132
+ readonly stop?: readonly string[] | undefined;
133
133
  }, import("../route/transport/http.js").HttpPrepared<string>, CompactionOperations | undefined> | Route<{
134
+ readonly model: string;
134
135
  readonly input: readonly ({
135
136
  readonly [x: string]: unknown;
136
- readonly id: string;
137
137
  readonly type: "web_search_call";
138
+ readonly id: string;
138
139
  readonly status?: string | undefined;
139
140
  readonly action?: {
140
141
  readonly [x: string]: unknown;
141
142
  } | null | undefined;
142
143
  } | {
143
144
  readonly [x: string]: unknown;
144
- readonly id: string;
145
145
  readonly type: "file_search_call";
146
+ readonly id: string;
146
147
  readonly status?: string | undefined;
147
148
  readonly queries?: readonly string[] | undefined;
148
149
  readonly results?: readonly {
@@ -150,8 +151,8 @@ export declare const routes: (Route<{
150
151
  }[] | null | undefined;
151
152
  } | {
152
153
  readonly [x: string]: unknown;
153
- readonly id: string;
154
154
  readonly type: "code_interpreter_call";
155
+ readonly id: string;
155
156
  readonly status?: string | undefined;
156
157
  readonly code?: string | null | undefined;
157
158
  readonly container_id?: string | null | undefined;
@@ -160,14 +161,14 @@ export declare const routes: (Route<{
160
161
  }[] | null | undefined;
161
162
  } | {
162
163
  readonly [x: string]: unknown;
163
- readonly id: string;
164
164
  readonly type: "mcp_call";
165
+ readonly id: string;
165
166
  readonly status?: string | undefined;
167
+ readonly server_label?: string | undefined;
166
168
  readonly name?: string | undefined;
169
+ readonly arguments?: string | undefined;
167
170
  readonly output?: string | null | undefined;
168
171
  readonly error?: unknown;
169
- readonly arguments?: string | undefined;
170
- readonly server_label?: string | undefined;
171
172
  } | {
172
173
  readonly type: "configuration_update";
173
174
  readonly reasoning: {
@@ -177,18 +178,10 @@ export declare const routes: (Route<{
177
178
  readonly [x: string]: unknown;
178
179
  readonly type: string;
179
180
  readonly id: string;
180
- } | {
181
- readonly type: "reasoning";
182
- readonly summary: readonly {
183
- readonly type: "summary_text";
184
- readonly text: string;
185
- }[];
186
- readonly id?: string | undefined;
187
- readonly encrypted_content?: string | null | undefined;
188
181
  } | {
189
182
  readonly type: "compaction";
190
- readonly encrypted_content: string;
191
183
  readonly id?: string | null | undefined;
184
+ readonly encrypted_content: string;
192
185
  } | {
193
186
  readonly type: "message";
194
187
  readonly role: "system";
@@ -199,6 +192,7 @@ export declare const routes: (Route<{
199
192
  readonly content: string;
200
193
  } | {
201
194
  readonly type: "message";
195
+ readonly role: "user";
202
196
  readonly content: readonly ({
203
197
  readonly type: "input_image";
204
198
  readonly image_url: string;
@@ -213,26 +207,33 @@ export declare const routes: (Route<{
213
207
  readonly type: "input_text";
214
208
  readonly text: string;
215
209
  })[];
216
- readonly role: "user";
217
210
  readonly id?: string | undefined;
218
211
  readonly status?: string | undefined;
219
212
  } | {
220
213
  readonly type: "message";
214
+ readonly id?: string | undefined;
215
+ readonly role: "assistant";
221
216
  readonly content: readonly {
222
217
  readonly type: "output_text";
223
218
  readonly text: string;
224
219
  }[];
225
- readonly role: "assistant";
226
- readonly id?: string | undefined;
227
- readonly status?: string | undefined;
228
220
  readonly phase?: "commentary" | "final_answer" | null | undefined;
221
+ readonly status?: string | undefined;
222
+ } | {
223
+ readonly type: "reasoning";
224
+ readonly id?: string | undefined;
225
+ readonly summary: readonly {
226
+ readonly type: "summary_text";
227
+ readonly text: string;
228
+ }[];
229
+ readonly encrypted_content?: string | null | undefined;
229
230
  } | {
230
231
  readonly type: "function_call";
231
- readonly name: string;
232
- readonly arguments: string;
233
- readonly call_id: string;
234
232
  readonly id?: string | undefined;
233
+ readonly call_id: string;
234
+ readonly name: string;
235
235
  readonly namespace?: string | undefined;
236
+ readonly arguments: string;
236
237
  } | {
237
238
  readonly type: "function_call_output";
238
239
  readonly call_id: string;
@@ -254,63 +255,72 @@ export declare const routes: (Route<{
254
255
  readonly video_url: string;
255
256
  })[];
256
257
  })[];
257
- readonly model: string;
258
- readonly stream: true;
258
+ readonly instructions?: string | undefined;
259
+ readonly store?: boolean | undefined;
259
260
  readonly metadata?: {
260
261
  readonly [x: string]: string;
261
262
  } | undefined;
262
- readonly instructions?: string | undefined;
263
+ readonly safety_identifier?: string | undefined;
264
+ readonly stream_options?: {
265
+ readonly include_obfuscation?: boolean | undefined;
266
+ } | undefined;
267
+ readonly top_logprobs?: number | undefined;
268
+ readonly truncation?: "auto" | "disabled" | undefined;
269
+ readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
270
+ readonly prompt_cache_key?: string | undefined;
271
+ readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
263
272
  readonly reasoning?: {
264
- readonly summary?: "auto" | "concise" | "detailed" | undefined;
265
273
  readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
274
+ readonly summary?: "auto" | "concise" | "detailed" | undefined;
275
+ } | undefined;
276
+ readonly text?: {
277
+ readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
266
278
  } | undefined;
279
+ readonly max_output_tokens?: number | undefined;
280
+ readonly max_tool_calls?: number | undefined;
281
+ readonly parallel_tool_calls?: boolean | undefined;
267
282
  readonly temperature?: number | undefined;
283
+ readonly top_p?: number | undefined;
284
+ readonly presence_penalty?: number | undefined;
285
+ readonly frequency_penalty?: number | undefined;
268
286
  readonly tools?: readonly ({
269
287
  readonly type: "function";
270
- readonly description: string;
271
288
  readonly name: string;
289
+ readonly description: string;
272
290
  readonly parameters: {
273
291
  readonly [x: string]: unknown;
274
292
  };
275
293
  readonly strict?: boolean | undefined;
276
294
  } | {
277
295
  readonly type: "image_generation";
278
- readonly size?: string | undefined;
279
- readonly action?: "auto" | "generate" | "edit" | undefined;
280
- readonly output_format?: "png" | "jpeg" | "webp" | undefined;
281
- readonly quality?: "auto" | "low" | "medium" | "high" | undefined;
296
+ readonly action?: "auto" | "edit" | "generate" | undefined;
282
297
  readonly background?: "auto" | "opaque" | "transparent" | undefined;
283
- readonly partial_images?: number | undefined;
298
+ readonly input_fidelity?: "high" | "low" | undefined;
284
299
  readonly output_compression?: number | undefined;
285
- readonly input_fidelity?: "low" | "high" | undefined;
300
+ readonly output_format?: "jpeg" | "png" | "webp" | undefined;
301
+ readonly partial_images?: number | undefined;
302
+ readonly quality?: "auto" | "high" | "low" | "medium" | undefined;
303
+ readonly size?: string | undefined;
286
304
  } | {
287
305
  readonly type: "namespace";
288
306
  readonly name: string;
289
307
  readonly description: string;
290
308
  readonly tools: readonly {
291
309
  readonly type: "function";
292
- readonly description: string;
293
310
  readonly name: string;
311
+ readonly description: string;
294
312
  readonly parameters: {
295
313
  readonly [x: string]: unknown;
296
314
  };
297
315
  readonly strict?: boolean | undefined;
298
316
  }[];
299
317
  })[] | undefined;
300
- readonly text?: {
301
- readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
302
- } | undefined;
303
- readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
304
- readonly context_management?: readonly {
305
- readonly type: "compaction";
306
- readonly compact_threshold?: number | undefined;
307
- }[] | undefined;
308
- readonly tool_choice?: "required" | "auto" | "none" | {
318
+ readonly tool_choice?: "auto" | "none" | "required" | {
309
319
  readonly type: "function";
310
320
  readonly name: string;
311
321
  } | {
312
322
  readonly type: "allowed_tools";
313
- readonly mode: "required" | "auto" | "none";
323
+ readonly mode: "auto" | "none" | "required";
314
324
  readonly tools: readonly {
315
325
  readonly type: "function";
316
326
  readonly name: string;
@@ -318,21 +328,11 @@ export declare const routes: (Route<{
318
328
  } | {
319
329
  readonly type: "image_generation";
320
330
  } | undefined;
321
- readonly top_p?: number | undefined;
322
- readonly frequency_penalty?: number | undefined;
323
- readonly presence_penalty?: number | undefined;
324
- readonly store?: boolean | undefined;
325
- readonly max_output_tokens?: number | undefined;
326
- readonly prompt_cache_key?: string | undefined;
327
- readonly parallel_tool_calls?: boolean | undefined;
328
- readonly include?: readonly import("../protocols/utils/open-responses-options.js").ResponseIncludable[] | undefined;
329
- readonly truncation?: "auto" | "disabled" | undefined;
330
- readonly stream_options?: {
331
- readonly include_obfuscation?: boolean | undefined;
332
- } | undefined;
333
- readonly safety_identifier?: string | undefined;
334
- readonly top_logprobs?: number | undefined;
335
- readonly max_tool_calls?: number | undefined;
331
+ readonly context_management?: readonly {
332
+ readonly type: "compaction";
333
+ readonly compact_threshold?: number | undefined;
334
+ }[] | undefined;
335
+ readonly stream: true;
336
336
  }, import("../protocols/open-responses-channel.js").Prepared, {
337
337
  endpoint: import("../route/client.js").CompactOperation;
338
338
  trigger: import("../route/client.js").TriggerCompactOperation;
@@ -374,7 +374,7 @@ export declare const configure: (input?: Config) => {
374
374
  image: (modelID: string | ModelID) => import("../image.js").ImageModel<import("../protocols/openai-images.js").OpenAIImageOptions>;
375
375
  speech: (modelID: string | ModelID) => import("../speech.js").SpeechModel<import("../protocols/openai-speech.js").OpenAISpeechOptions>;
376
376
  transcription: (modelID: string | ModelID) => import("../transcription.js").TranscriptionModel<import("../protocols/openai-transcription.js").OpenAITranscriptionOptions>;
377
- configure: (input?: Config) => /*elided*/ any;
377
+ configure: typeof configure;
378
378
  };
379
379
  export declare const provider: {
380
380
  id: string & import("effect/Brand").Brand<"AI.ProviderID">;
@@ -390,22 +390,7 @@ export declare const provider: {
390
390
  image: (modelID: string | ModelID) => import("../image.js").ImageModel<import("../protocols/openai-images.js").OpenAIImageOptions>;
391
391
  speech: (modelID: string | ModelID) => import("../speech.js").SpeechModel<import("../protocols/openai-speech.js").OpenAISpeechOptions>;
392
392
  transcription: (modelID: string | ModelID) => import("../transcription.js").TranscriptionModel<import("../protocols/openai-transcription.js").OpenAITranscriptionOptions>;
393
- configure: (input?: Config) => {
394
- id: string & import("effect/Brand").Brand<"AI.ProviderID">;
395
- model: (id: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, {
396
- endpoint: import("../route/client.js").CompactOperation;
397
- trigger: import("../route/client.js").TriggerCompactOperation;
398
- }>;
399
- responses: (id: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, {
400
- endpoint: import("../route/client.js").CompactOperation;
401
- trigger: import("../route/client.js").TriggerCompactOperation;
402
- }>;
403
- chat: (id: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, CompactionOperations | undefined>;
404
- image: (modelID: string | ModelID) => import("../image.js").ImageModel<import("../protocols/openai-images.js").OpenAIImageOptions>;
405
- speech: (modelID: string | ModelID) => import("../speech.js").SpeechModel<import("../protocols/openai-speech.js").OpenAISpeechOptions>;
406
- transcription: (modelID: string | ModelID) => import("../transcription.js").TranscriptionModel<import("../protocols/openai-transcription.js").OpenAITranscriptionOptions>;
407
- configure: /*elided*/ any;
408
- };
393
+ configure: typeof configure;
409
394
  };
410
395
  export declare const model: ProviderPackage.Definition<Settings, OpenAIProviderOptionsInput, typeof OpenAIResponses.route.compact>["model"];
411
396
  export declare const chatModel: ProviderPackage.Definition<Settings, OpenAIProviderOptionsInput>["model"];
@@ -11,20 +11,14 @@ export declare const configure: (input?: Options) => {
11
11
  experimental: {
12
12
  evaluation: (modelID: string | ModelID) => import("../experimental.js").EvaluationModel<import("../experimental.js").EvaluationOptions>;
13
13
  };
14
- configure: (input?: Options) => /*elided*/ any;
14
+ configure: typeof configure;
15
15
  };
16
16
  export declare const provider: {
17
17
  id: string & import("effect/Brand").Brand<"AI.ProviderID">;
18
18
  experimental: {
19
19
  evaluation: (modelID: string | ModelID) => import("../experimental.js").EvaluationModel<import("../experimental.js").EvaluationOptions>;
20
20
  };
21
- configure: (input?: Options) => {
22
- id: string & import("effect/Brand").Brand<"AI.ProviderID">;
23
- experimental: {
24
- evaluation: (modelID: string | ModelID) => import("../experimental.js").EvaluationModel<import("../experimental.js").EvaluationOptions>;
25
- };
26
- configure: /*elided*/ any;
27
- };
21
+ configure: typeof configure;
28
22
  };
29
23
  export declare const experimental: {
30
24
  evaluation: (modelID: string | ModelID) => import("../experimental.js").EvaluationModel<import("../experimental.js").EvaluationOptions>;