@opencode/ai 2.0.31 → 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.
- package/dist/ai-client.d.ts +2 -2
- package/dist/experimental/evaluation-client.d.ts +1 -1
- package/dist/experimental/evaluation.d.ts +20 -20
- package/dist/experimental/realtime.d.ts +47 -0
- package/dist/experimental/realtime.js +99 -0
- package/dist/experimental/system-one.d.ts +1 -1
- package/dist/experimental.d.ts +2 -0
- package/dist/experimental.js +1 -0
- package/dist/image-client.d.ts +8 -8
- package/dist/image.d.ts +593 -437
- package/dist/llm.d.ts +51 -51
- package/dist/media-client.d.ts +1 -1
- package/dist/media.d.ts +4 -4
- package/dist/promise.d.ts +199 -198
- package/dist/protocols/alibaba-chat.d.ts +81 -82
- package/dist/protocols/alibaba-chat.js +0 -1
- package/dist/protocols/alibaba-messages.d.ts +99 -99
- package/dist/protocols/alibaba-responses.d.ts +120 -120
- package/dist/protocols/anthropic-messages.d.ts +187 -187
- package/dist/protocols/anthropic-messages.js +3 -2
- package/dist/protocols/assemblyai-transcription.d.ts +1 -1
- package/dist/protocols/bedrock-converse.d.ts +75 -79
- package/dist/protocols/bfl-images.d.ts +1 -1
- package/dist/protocols/cartesia-speech.d.ts +17 -17
- package/dist/protocols/cohere-chat.d.ts +26 -23
- package/dist/protocols/cohere-chat.js +22 -1
- package/dist/protocols/deepgram-speech.d.ts +17 -17
- package/dist/protocols/deepgram-transcription.d.ts +1 -1
- package/dist/protocols/elevenlabs-speech.d.ts +17 -17
- package/dist/protocols/elevenlabs-transcription.d.ts +1 -1
- package/dist/protocols/fal-images.d.ts +1 -1
- package/dist/protocols/fal-video.d.ts +1 -1
- package/dist/protocols/gemini.d.ts +55 -55
- package/dist/protocols/gemini.js +11 -1
- package/dist/protocols/google-images.d.ts +1 -1
- package/dist/protocols/google-interactions.d.ts +64 -62
- package/dist/protocols/google-interactions.js +19 -1
- package/dist/protocols/google-speech.d.ts +17 -17
- package/dist/protocols/google-transcription.d.ts +47 -47
- package/dist/protocols/google-video.d.ts +1 -1
- package/dist/protocols/meta-messages.d.ts +121 -121
- package/dist/protocols/meta-responses.d.ts +201 -201
- package/dist/protocols/mistral-chat.d.ts +45 -45
- package/dist/protocols/open-responses-channel.d.ts +1 -1
- package/dist/protocols/open-responses.d.ts +584 -450
- package/dist/protocols/open-responses.js +27 -35
- package/dist/protocols/openai-chat.d.ts +248 -248
- package/dist/protocols/openai-chat.js +11 -42
- package/dist/protocols/openai-compatible-chat.d.ts +32 -32
- package/dist/protocols/openai-compatible-responses.d.ts +88 -88
- package/dist/protocols/openai-images.d.ts +17 -17
- package/dist/protocols/openai-responses.d.ts +567 -567
- package/dist/protocols/openai-responses.js +1 -1
- package/dist/protocols/openai-speech.d.ts +17 -17
- package/dist/protocols/openai-transcription.d.ts +47 -47
- package/dist/protocols/replicate-images.d.ts +1 -1
- package/dist/protocols/runway-video.d.ts +1 -1
- package/dist/protocols/shared.d.ts +12 -1
- package/dist/protocols/shared.js +17 -1
- package/dist/protocols/stability-images.d.ts +2 -2
- package/dist/protocols/utils/bedrock-cache.d.ts +2 -2
- package/dist/protocols/utils/bedrock-media.d.ts +4 -4
- package/dist/protocols/utils/openai-options.d.ts +1 -1
- package/dist/protocols/utils/speech-stream.d.ts +1 -1
- package/dist/protocols/utils/tool-schema.d.ts +10 -5
- package/dist/protocols/utils/tool-stream.d.ts +152 -152
- package/dist/protocols/venice-chat.d.ts +109 -110
- package/dist/protocols/venice-chat.js +0 -1
- package/dist/protocols/xai-images.d.ts +1 -1
- package/dist/protocols/xai-responses.d.ts +79 -79
- package/dist/protocols/xai-video.d.ts +1 -1
- package/dist/protocols/zai-chat.d.ts +77 -78
- package/dist/protocols/zai-chat.js +0 -1
- package/dist/protocols/zai-images.d.ts +1 -1
- package/dist/protocols/zai-messages.d.ts +97 -97
- package/dist/providers/alibaba.d.ts +222 -283
- package/dist/providers/amazon-bedrock-mantle.d.ts +291 -298
- package/dist/providers/amazon-bedrock.d.ts +22 -28
- package/dist/providers/anthropic-compatible.d.ts +86 -90
- package/dist/providers/anthropic.d.ts +86 -90
- package/dist/providers/assemblyai.d.ts +2 -6
- package/dist/providers/azure.d.ts +228 -238
- package/dist/providers/baseten.d.ts +66 -70
- package/dist/providers/black-forest-labs.d.ts +2 -6
- package/dist/providers/cartesia.d.ts +2 -6
- package/dist/providers/cerebras.d.ts +66 -70
- package/dist/providers/cerebras.js +0 -1
- package/dist/providers/cloudflare-ai-gateway.d.ts +352 -356
- package/dist/providers/cloudflare-workers-ai.d.ts +66 -70
- package/dist/providers/cohere.d.ts +122 -132
- package/dist/providers/cohere.js +0 -2
- package/dist/providers/deepgram.d.ts +2 -7
- package/dist/providers/deepinfra.d.ts +66 -70
- package/dist/providers/deepinfra.js +0 -1
- package/dist/providers/deepseek.d.ts +66 -70
- package/dist/providers/deepseek.js +1 -1
- package/dist/providers/digitalocean.d.ts +137 -141
- package/dist/providers/elevenlabs.d.ts +2 -7
- package/dist/providers/fal.d.ts +2 -7
- package/dist/providers/fireworks.d.ts +66 -70
- package/dist/providers/google-vertex-chat.d.ts +34 -38
- package/dist/providers/google-vertex-interactions.d.ts +31 -41
- package/dist/providers/google-vertex-messages.d.ts +81 -85
- package/dist/providers/google-vertex-mistral.d.ts +23 -27
- package/dist/providers/google-vertex-responses.d.ts +90 -94
- package/dist/providers/google-vertex.d.ts +26 -30
- package/dist/providers/google.d.ts +94 -109
- package/dist/providers/groq.d.ts +111 -115
- package/dist/providers/groq.js +0 -1
- package/dist/providers/meta.d.ts +309 -317
- package/dist/providers/meta.js +1 -1
- package/dist/providers/minimax.d.ts +296 -303
- package/dist/providers/minimax.js +1 -1
- package/dist/providers/mistral.d.ts +22 -26
- package/dist/providers/moonshot.d.ts +296 -303
- package/dist/providers/moonshot.js +0 -1
- package/dist/providers/openai-compatible-responses.d.ts +90 -94
- package/dist/providers/openai-compatible.d.ts +34 -38
- package/dist/providers/openai.d.ts +93 -108
- package/dist/providers/opencode.d.ts +2 -8
- package/dist/providers/openrouter.d.ts +137 -144
- package/dist/providers/replicate.d.ts +2 -6
- package/dist/providers/runway.d.ts +2 -6
- package/dist/providers/stability.d.ts +2 -7
- package/dist/providers/togetherai.d.ts +66 -70
- package/dist/providers/togetherai.js +1 -1
- package/dist/providers/typesafe-ai.d.ts +2 -8
- package/dist/providers/venice.d.ts +58 -63
- package/dist/providers/vercel-ai-gateway.d.ts +2 -12
- package/dist/providers/xai.d.ts +38 -50
- package/dist/providers/zai-coding-plan.d.ts +206 -213
- package/dist/providers/zai.d.ts +40 -46
- package/dist/route/client.d.ts +51 -51
- package/dist/route/media-protocol.d.ts +1 -1
- package/dist/route/transport/http.d.ts +1 -1
- package/dist/route/transport/websocket.d.ts +8 -8
- package/dist/schema/errors.d.ts +19 -19
- package/dist/schema/events.d.ts +3090 -3288
- package/dist/schema/messages.d.ts +8 -7
- package/dist/schema/options.d.ts +2 -1
- package/dist/schema/options.js +2 -1
- package/dist/speech-client.d.ts +8 -8
- package/dist/speech.d.ts +434 -398
- package/dist/testing.d.ts +338 -338
- package/dist/tool-runtime.d.ts +1 -1
- package/dist/transcription-client.d.ts +23 -23
- package/dist/transcription.d.ts +562 -646
- package/dist/utils/sanitize.d.ts +4 -0
- package/dist/utils/sanitize.js +23 -6
- package/dist/video-client.d.ts +8 -8
- package/dist/video.d.ts +416 -372
- package/package.json +6 -6
|
@@ -8,8 +8,26 @@ export type AnthropicProviderOptionsInput = AnthropicMessages.ProviderOptionsInp
|
|
|
8
8
|
export type AnthropicThinkingInput = AnthropicMessages.ThinkingInput;
|
|
9
9
|
export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
10
10
|
export declare const routes: import("../route/client.js").Route<{
|
|
11
|
-
readonly
|
|
11
|
+
readonly context_management?: {
|
|
12
|
+
readonly edits: readonly {
|
|
13
|
+
readonly type: "compact_20260112";
|
|
14
|
+
readonly trigger?: {
|
|
15
|
+
readonly type: "input_tokens";
|
|
16
|
+
readonly value: number;
|
|
17
|
+
} | undefined;
|
|
18
|
+
readonly pause_after_compaction?: boolean | undefined;
|
|
19
|
+
readonly instructions?: string | undefined;
|
|
20
|
+
}[];
|
|
21
|
+
} | undefined;
|
|
12
22
|
readonly model: string;
|
|
23
|
+
readonly system?: readonly {
|
|
24
|
+
readonly type: "text";
|
|
25
|
+
readonly text: string;
|
|
26
|
+
readonly cache_control?: {
|
|
27
|
+
readonly type: "ephemeral";
|
|
28
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
}[] | undefined;
|
|
13
31
|
readonly messages: readonly ({
|
|
14
32
|
readonly role: "user";
|
|
15
33
|
readonly content: readonly ({
|
|
@@ -37,7 +55,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
37
55
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
38
56
|
} | undefined;
|
|
39
57
|
readonly transformations?: {
|
|
40
|
-
readonly oversized_image?: "
|
|
58
|
+
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
41
59
|
} | undefined;
|
|
42
60
|
} | {
|
|
43
61
|
readonly type: "document";
|
|
@@ -56,17 +74,18 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
56
74
|
readonly type: "file";
|
|
57
75
|
readonly file_id: string;
|
|
58
76
|
};
|
|
59
|
-
readonly title?: string | undefined;
|
|
60
|
-
readonly context?: string | undefined;
|
|
61
77
|
readonly cache_control?: {
|
|
62
78
|
readonly type: "ephemeral";
|
|
63
79
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
64
80
|
} | undefined;
|
|
81
|
+
readonly title?: string | undefined;
|
|
82
|
+
readonly context?: string | undefined;
|
|
65
83
|
readonly citations?: {
|
|
66
84
|
readonly enabled: boolean;
|
|
67
85
|
} | undefined;
|
|
68
86
|
} | {
|
|
69
87
|
readonly type: "tool_result";
|
|
88
|
+
readonly tool_use_id: string;
|
|
70
89
|
readonly content: string | readonly ({
|
|
71
90
|
readonly type: "text";
|
|
72
91
|
readonly text: string;
|
|
@@ -92,7 +111,7 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
92
111
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
93
112
|
} | undefined;
|
|
94
113
|
readonly transformations?: {
|
|
95
|
-
readonly oversized_image?: "
|
|
114
|
+
readonly oversized_image?: "downsize" | "error" | undefined;
|
|
96
115
|
} | undefined;
|
|
97
116
|
} | {
|
|
98
117
|
readonly type: "document";
|
|
@@ -111,22 +130,21 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
111
130
|
readonly type: "file";
|
|
112
131
|
readonly file_id: string;
|
|
113
132
|
};
|
|
114
|
-
readonly title?: string | undefined;
|
|
115
|
-
readonly context?: string | undefined;
|
|
116
133
|
readonly cache_control?: {
|
|
117
134
|
readonly type: "ephemeral";
|
|
118
135
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
119
136
|
} | undefined;
|
|
137
|
+
readonly title?: string | undefined;
|
|
138
|
+
readonly context?: string | undefined;
|
|
120
139
|
readonly citations?: {
|
|
121
140
|
readonly enabled: boolean;
|
|
122
141
|
} | undefined;
|
|
123
142
|
})[];
|
|
124
|
-
readonly
|
|
143
|
+
readonly is_error?: boolean | undefined;
|
|
125
144
|
readonly cache_control?: {
|
|
126
145
|
readonly type: "ephemeral";
|
|
127
146
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
128
147
|
} | undefined;
|
|
129
|
-
readonly is_error?: boolean | undefined;
|
|
130
148
|
})[];
|
|
131
149
|
} | {
|
|
132
150
|
readonly role: "assistant";
|
|
@@ -138,51 +156,52 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
138
156
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
139
157
|
} | undefined;
|
|
140
158
|
} | {
|
|
141
|
-
readonly
|
|
142
|
-
readonly
|
|
143
|
-
readonly
|
|
144
|
-
readonly input: unknown;
|
|
159
|
+
readonly type: "code_execution_tool_result" | "web_fetch_tool_result" | "web_search_tool_result";
|
|
160
|
+
readonly tool_use_id: string;
|
|
161
|
+
readonly content: unknown;
|
|
145
162
|
readonly cache_control?: {
|
|
146
163
|
readonly type: "ephemeral";
|
|
147
164
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
148
165
|
} | undefined;
|
|
149
166
|
} | {
|
|
150
|
-
readonly
|
|
151
|
-
readonly
|
|
152
|
-
|
|
153
|
-
readonly
|
|
167
|
+
readonly type: "compaction";
|
|
168
|
+
readonly content: string | null;
|
|
169
|
+
} | {
|
|
170
|
+
readonly type: "thinking";
|
|
171
|
+
readonly thinking: string;
|
|
172
|
+
readonly signature: string;
|
|
154
173
|
readonly cache_control?: {
|
|
155
174
|
readonly type: "ephemeral";
|
|
156
175
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
157
176
|
} | undefined;
|
|
158
177
|
} | {
|
|
159
|
-
readonly type: "
|
|
160
|
-
readonly
|
|
161
|
-
readonly tool_use_id: string;
|
|
178
|
+
readonly type: "redacted_thinking";
|
|
179
|
+
readonly data: string;
|
|
162
180
|
readonly cache_control?: {
|
|
163
181
|
readonly type: "ephemeral";
|
|
164
182
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
165
183
|
} | undefined;
|
|
166
184
|
} | {
|
|
167
|
-
readonly type: "
|
|
168
|
-
readonly
|
|
169
|
-
readonly
|
|
185
|
+
readonly type: "tool_use";
|
|
186
|
+
readonly id: string;
|
|
187
|
+
readonly name: string;
|
|
188
|
+
readonly input: unknown;
|
|
170
189
|
readonly cache_control?: {
|
|
171
190
|
readonly type: "ephemeral";
|
|
172
191
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
173
192
|
} | undefined;
|
|
174
193
|
} | {
|
|
175
|
-
readonly
|
|
176
|
-
readonly
|
|
194
|
+
readonly type: "server_tool_use";
|
|
195
|
+
readonly id: string;
|
|
196
|
+
readonly name: string;
|
|
197
|
+
readonly input: unknown;
|
|
177
198
|
readonly cache_control?: {
|
|
178
199
|
readonly type: "ephemeral";
|
|
179
200
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
180
201
|
} | undefined;
|
|
181
|
-
} | {
|
|
182
|
-
readonly type: "compaction";
|
|
183
|
-
readonly content: string | null;
|
|
184
202
|
})[];
|
|
185
203
|
} | {
|
|
204
|
+
readonly role: "system";
|
|
186
205
|
readonly content: readonly {
|
|
187
206
|
readonly type: "text";
|
|
188
207
|
readonly text: string;
|
|
@@ -191,19 +210,13 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
191
210
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
192
211
|
} | undefined;
|
|
193
212
|
}[];
|
|
194
|
-
readonly role: "system";
|
|
195
213
|
readonly output_config?: {
|
|
196
214
|
readonly effort: string;
|
|
197
215
|
} | undefined;
|
|
198
216
|
})[];
|
|
199
|
-
readonly stream: true;
|
|
200
|
-
readonly metadata?: {
|
|
201
|
-
readonly user_id?: string | null | undefined;
|
|
202
|
-
} | undefined;
|
|
203
|
-
readonly temperature?: number | undefined;
|
|
204
217
|
readonly tools?: readonly {
|
|
205
|
-
readonly description: string;
|
|
206
218
|
readonly name: string;
|
|
219
|
+
readonly description: string;
|
|
207
220
|
readonly input_schema: {
|
|
208
221
|
readonly [x: string]: unknown;
|
|
209
222
|
};
|
|
@@ -212,73 +225,60 @@ export declare const routes: import("../route/client.js").Route<{
|
|
|
212
225
|
readonly ttl?: "1h" | "5m" | undefined;
|
|
213
226
|
} | undefined;
|
|
214
227
|
}[] | undefined;
|
|
215
|
-
readonly
|
|
216
|
-
readonly type: "
|
|
217
|
-
readonly
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}
|
|
228
|
+
readonly tool_choice?: {
|
|
229
|
+
readonly type: "any" | "auto" | "none";
|
|
230
|
+
readonly disable_parallel_tool_use?: boolean | undefined;
|
|
231
|
+
} | {
|
|
232
|
+
readonly type: "tool";
|
|
233
|
+
readonly name: string;
|
|
234
|
+
readonly disable_parallel_tool_use?: boolean | undefined;
|
|
235
|
+
} | undefined;
|
|
236
|
+
readonly stream: true;
|
|
237
|
+
readonly max_tokens: number;
|
|
238
|
+
readonly temperature?: number | undefined;
|
|
239
|
+
readonly top_p?: number | undefined;
|
|
240
|
+
readonly top_k?: number | undefined;
|
|
241
|
+
readonly stop_sequences?: readonly string[] | undefined;
|
|
223
242
|
readonly thinking?: {
|
|
224
|
-
readonly
|
|
225
|
-
readonly budget_tokens: number;
|
|
226
|
-
readonly display?: import("../schema/options.js").OpenString<"summarized" | "omitted"> | undefined;
|
|
243
|
+
readonly display?: import("../schema/options.js").OpenString<"omitted" | "summarized"> | undefined;
|
|
227
244
|
readonly block_binding?: {
|
|
228
|
-
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"
|
|
245
|
+
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"drop_block" | "error"> | undefined;
|
|
229
246
|
} | undefined;
|
|
247
|
+
readonly type: "enabled";
|
|
248
|
+
readonly budget_tokens: number;
|
|
230
249
|
} | {
|
|
231
|
-
readonly
|
|
232
|
-
readonly display?: import("../schema/options.js").OpenString<"summarized" | "omitted"> | undefined;
|
|
250
|
+
readonly display?: import("../schema/options.js").OpenString<"omitted" | "summarized"> | undefined;
|
|
233
251
|
readonly block_binding?: {
|
|
234
|
-
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"
|
|
252
|
+
readonly prefix_mismatch_behavior?: import("../schema/options.js").OpenString<"drop_block" | "error"> | undefined;
|
|
235
253
|
} | undefined;
|
|
254
|
+
readonly type: "adaptive";
|
|
236
255
|
} | {
|
|
237
|
-
readonly type: "
|
|
238
|
-
} | undefined;
|
|
239
|
-
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
|
|
240
|
-
readonly container?: string | {
|
|
241
|
-
readonly id?: string | null | undefined;
|
|
242
|
-
readonly skills?: readonly {
|
|
243
|
-
readonly [x: string]: unknown;
|
|
244
|
-
}[] | null | undefined;
|
|
245
|
-
} | null | undefined;
|
|
246
|
-
readonly inference_geo?: string | null | undefined;
|
|
247
|
-
readonly cache_control?: {
|
|
248
|
-
readonly type: "ephemeral";
|
|
249
|
-
readonly ttl?: "1h" | "5m" | undefined;
|
|
256
|
+
readonly type: "between_tools" | "disabled";
|
|
250
257
|
} | undefined;
|
|
251
258
|
readonly output_config?: {
|
|
259
|
+
readonly effort?: string | undefined;
|
|
252
260
|
readonly format?: {
|
|
253
261
|
readonly type: "json_schema";
|
|
254
262
|
readonly schema: {
|
|
255
263
|
readonly [x: string]: unknown;
|
|
256
264
|
};
|
|
257
265
|
} | null | undefined;
|
|
258
|
-
readonly effort?: string | undefined;
|
|
259
266
|
} | undefined;
|
|
260
|
-
readonly
|
|
261
|
-
readonly
|
|
262
|
-
|
|
263
|
-
readonly instructions?: string | undefined;
|
|
264
|
-
readonly trigger?: {
|
|
265
|
-
readonly type: "input_tokens";
|
|
266
|
-
readonly value: number;
|
|
267
|
-
} | undefined;
|
|
268
|
-
readonly pause_after_compaction?: boolean | undefined;
|
|
269
|
-
}[];
|
|
267
|
+
readonly cache_control?: {
|
|
268
|
+
readonly type: "ephemeral";
|
|
269
|
+
readonly ttl?: "1h" | "5m" | undefined;
|
|
270
270
|
} | undefined;
|
|
271
|
-
readonly
|
|
272
|
-
readonly
|
|
273
|
-
readonly
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
271
|
+
readonly container?: string | {
|
|
272
|
+
readonly id?: string | null | undefined;
|
|
273
|
+
readonly skills?: readonly {
|
|
274
|
+
readonly [x: string]: unknown;
|
|
275
|
+
}[] | null | undefined;
|
|
276
|
+
} | null | undefined;
|
|
277
|
+
readonly inference_geo?: string | null | undefined;
|
|
278
|
+
readonly metadata?: {
|
|
279
|
+
readonly user_id?: string | null | undefined;
|
|
278
280
|
} | undefined;
|
|
279
|
-
readonly
|
|
280
|
-
readonly top_k?: number | undefined;
|
|
281
|
-
readonly stop_sequences?: readonly string[] | undefined;
|
|
281
|
+
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "standard_only"> | undefined;
|
|
282
282
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>[];
|
|
283
283
|
export type Config = RouteDefaultsInput & ProviderAuthOption<"optional"> & {
|
|
284
284
|
readonly baseURL?: string;
|
|
@@ -296,15 +296,11 @@ export type Settings = ProviderPackage.Settings & AnthropicMessages.ProviderOpti
|
|
|
296
296
|
export declare const configure: (input?: Config) => {
|
|
297
297
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
298
298
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<AnthropicMessages.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
299
|
-
configure:
|
|
299
|
+
configure: typeof configure;
|
|
300
300
|
};
|
|
301
301
|
export declare const provider: {
|
|
302
302
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
303
303
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<AnthropicMessages.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
304
|
-
configure:
|
|
305
|
-
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
306
|
-
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<AnthropicMessages.OptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
307
|
-
configure: /*elided*/ any;
|
|
308
|
-
};
|
|
304
|
+
configure: typeof configure;
|
|
309
305
|
};
|
|
310
306
|
export declare const model: ProviderPackage.Definition<Settings, AnthropicMessages.ProviderOptionsInput>["model"];
|
|
@@ -11,15 +11,11 @@ export type Config = ProviderAuthOption<"optional"> & {
|
|
|
11
11
|
export declare const configure: (input?: Config) => {
|
|
12
12
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
13
13
|
transcription: (modelID: string | ModelID) => import("../transcription.js").TranscriptionModel<import("../protocols/assemblyai-transcription.js").AssemblyAITranscriptionOptions>;
|
|
14
|
-
configure:
|
|
14
|
+
configure: typeof configure;
|
|
15
15
|
};
|
|
16
16
|
export declare const provider: {
|
|
17
17
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
18
18
|
transcription: (modelID: string | ModelID) => import("../transcription.js").TranscriptionModel<import("../protocols/assemblyai-transcription.js").AssemblyAITranscriptionOptions>;
|
|
19
|
-
configure:
|
|
20
|
-
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
21
|
-
transcription: (modelID: string | ModelID) => import("../transcription.js").TranscriptionModel<import("../protocols/assemblyai-transcription.js").AssemblyAITranscriptionOptions>;
|
|
22
|
-
configure: /*elided*/ any;
|
|
23
|
-
};
|
|
19
|
+
configure: typeof configure;
|
|
24
20
|
};
|
|
25
21
|
export declare const transcription: (modelID: string | ModelID) => import("../transcription.js").TranscriptionModel<import("../protocols/assemblyai-transcription.js").AssemblyAITranscriptionOptions>;
|