@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.
- 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 +6 -14
- package/dist/experimental/realtime.js +28 -3
- package/dist/experimental/system-one.d.ts +1 -1
- 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/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
|
@@ -57,8 +57,20 @@ export declare const protocol: Protocol<{
|
|
|
57
57
|
readonly file_data: string;
|
|
58
58
|
};
|
|
59
59
|
})[];
|
|
60
|
+
} | {
|
|
61
|
+
readonly role: "tool";
|
|
62
|
+
readonly tool_call_id: string;
|
|
63
|
+
readonly content: string | readonly {
|
|
64
|
+
readonly type: "text";
|
|
65
|
+
readonly text: string;
|
|
66
|
+
readonly cache_control?: {
|
|
67
|
+
readonly type: "ephemeral";
|
|
68
|
+
readonly ttl?: string | undefined;
|
|
69
|
+
} | undefined;
|
|
70
|
+
}[];
|
|
60
71
|
} | {
|
|
61
72
|
readonly [x: string]: unknown;
|
|
73
|
+
readonly role: "assistant";
|
|
62
74
|
readonly content: string | readonly {
|
|
63
75
|
readonly type: "text";
|
|
64
76
|
readonly text: string;
|
|
@@ -67,135 +79,99 @@ export declare const protocol: Protocol<{
|
|
|
67
79
|
readonly ttl?: string | undefined;
|
|
68
80
|
} | undefined;
|
|
69
81
|
}[] | null;
|
|
70
|
-
readonly role: "assistant";
|
|
71
|
-
readonly reasoning?: string | undefined;
|
|
72
|
-
readonly reasoning_content?: string | undefined;
|
|
73
|
-
readonly reasoning_text?: string | undefined;
|
|
74
82
|
readonly tool_calls?: readonly {
|
|
83
|
+
readonly id: string;
|
|
84
|
+
readonly type: "function";
|
|
75
85
|
readonly function: {
|
|
76
86
|
readonly name: string;
|
|
77
87
|
readonly arguments: string;
|
|
78
88
|
};
|
|
79
|
-
readonly id: string;
|
|
80
|
-
readonly type: "function";
|
|
81
89
|
readonly extra_content?: {
|
|
82
90
|
readonly google: {
|
|
83
91
|
readonly thought_signature: string;
|
|
84
92
|
};
|
|
85
93
|
} | undefined;
|
|
86
94
|
}[] | undefined;
|
|
95
|
+
readonly reasoning_content?: string | undefined;
|
|
96
|
+
readonly reasoning?: string | undefined;
|
|
97
|
+
readonly reasoning_text?: string | undefined;
|
|
87
98
|
readonly reasoning_details?: unknown;
|
|
88
|
-
} | {
|
|
89
|
-
readonly role: "tool";
|
|
90
|
-
readonly tool_call_id: string;
|
|
91
|
-
readonly content: string | readonly {
|
|
92
|
-
readonly type: "text";
|
|
93
|
-
readonly text: string;
|
|
94
|
-
readonly cache_control?: {
|
|
95
|
-
readonly type: "ephemeral";
|
|
96
|
-
readonly ttl?: string | undefined;
|
|
97
|
-
} | undefined;
|
|
98
|
-
}[];
|
|
99
99
|
})[];
|
|
100
|
-
readonly stream: true;
|
|
101
|
-
readonly max_completion_tokens?: number | undefined;
|
|
102
|
-
readonly max_tokens?: number | undefined;
|
|
103
|
-
readonly temperature?: number | undefined;
|
|
104
100
|
readonly tools?: readonly {
|
|
101
|
+
readonly type: "function";
|
|
105
102
|
readonly function: {
|
|
106
|
-
readonly description: string;
|
|
107
103
|
readonly name: string;
|
|
104
|
+
readonly description: string;
|
|
108
105
|
readonly parameters: {
|
|
109
106
|
readonly [x: string]: unknown;
|
|
110
107
|
};
|
|
111
108
|
readonly strict?: boolean | undefined;
|
|
112
109
|
};
|
|
113
|
-
readonly type: "function";
|
|
114
110
|
readonly cache_control?: {
|
|
115
111
|
readonly type: "ephemeral";
|
|
116
112
|
readonly ttl?: string | undefined;
|
|
117
113
|
} | undefined;
|
|
118
114
|
}[] | undefined;
|
|
119
|
-
readonly
|
|
120
|
-
readonly seed?: number | undefined;
|
|
121
|
-
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
115
|
+
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
122
116
|
readonly type: "function";
|
|
123
117
|
readonly function: {
|
|
124
118
|
readonly name: string;
|
|
125
119
|
};
|
|
126
120
|
} | undefined;
|
|
127
|
-
readonly
|
|
128
|
-
readonly frequency_penalty?: number | undefined;
|
|
129
|
-
readonly presence_penalty?: number | undefined;
|
|
130
|
-
readonly store?: boolean | undefined;
|
|
131
|
-
readonly prompt_cache_key?: string | undefined;
|
|
132
|
-
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
121
|
+
readonly stream: true;
|
|
133
122
|
readonly stream_options?: {
|
|
134
123
|
readonly include_usage: boolean;
|
|
135
124
|
} | undefined;
|
|
125
|
+
readonly store?: boolean | undefined;
|
|
126
|
+
readonly prompt_cache_key?: string | undefined;
|
|
127
|
+
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
136
128
|
readonly tool_stream?: boolean | undefined;
|
|
129
|
+
readonly max_completion_tokens?: number | undefined;
|
|
130
|
+
readonly max_tokens?: number | undefined;
|
|
131
|
+
readonly temperature?: number | undefined;
|
|
132
|
+
readonly top_p?: number | undefined;
|
|
133
|
+
readonly frequency_penalty?: number | undefined;
|
|
134
|
+
readonly presence_penalty?: number | undefined;
|
|
135
|
+
readonly seed?: number | undefined;
|
|
136
|
+
readonly stop?: readonly string[] | undefined;
|
|
137
137
|
}, string, "[DONE]" | {
|
|
138
138
|
readonly [x: string]: unknown;
|
|
139
|
-
readonly error?: {
|
|
140
|
-
readonly [x: string]: unknown;
|
|
141
|
-
readonly message: string;
|
|
142
|
-
readonly code?: string | number | null | undefined;
|
|
143
|
-
} | null | undefined;
|
|
144
|
-
readonly usage?: {
|
|
145
|
-
readonly [x: string]: unknown;
|
|
146
|
-
readonly cache_read_input_tokens?: number | null | undefined;
|
|
147
|
-
readonly cached_tokens?: number | null | undefined;
|
|
148
|
-
readonly total_tokens?: number | null | undefined;
|
|
149
|
-
readonly prompt_tokens?: number | null | undefined;
|
|
150
|
-
readonly completion_tokens?: number | null | undefined;
|
|
151
|
-
readonly prompt_tokens_details?: {
|
|
152
|
-
readonly [x: string]: unknown;
|
|
153
|
-
readonly cached_tokens?: number | null | undefined;
|
|
154
|
-
readonly cache_write_tokens?: number | null | undefined;
|
|
155
|
-
} | null | undefined;
|
|
156
|
-
readonly prompt_cache_hit_tokens?: number | null | undefined;
|
|
157
|
-
readonly cache_created_input_tokens?: number | null | undefined;
|
|
158
|
-
readonly completion_tokens_details?: {
|
|
159
|
-
readonly [x: string]: unknown;
|
|
160
|
-
readonly reasoning_tokens?: number | null | undefined;
|
|
161
|
-
readonly accepted_prediction_tokens?: number | null | undefined;
|
|
162
|
-
readonly rejected_prediction_tokens?: number | null | undefined;
|
|
163
|
-
} | null | undefined;
|
|
164
|
-
} | null | undefined;
|
|
165
139
|
readonly choices?: readonly {
|
|
166
140
|
readonly [x: string]: unknown;
|
|
167
141
|
readonly delta?: {
|
|
168
142
|
readonly [x: string]: unknown;
|
|
169
|
-
readonly reasoning?: string | null | undefined;
|
|
170
|
-
readonly reasoning_content?: string | null | undefined;
|
|
171
|
-
readonly reasoning_text?: string | null | undefined;
|
|
172
143
|
readonly content?: string | null | undefined;
|
|
173
144
|
readonly refusal?: string | null | undefined;
|
|
145
|
+
readonly reasoning_content?: string | null | undefined;
|
|
146
|
+
readonly reasoning?: string | null | undefined;
|
|
147
|
+
readonly reasoning_text?: string | null | undefined;
|
|
148
|
+
readonly reasoning_details?: unknown;
|
|
174
149
|
readonly tool_calls?: readonly {
|
|
150
|
+
readonly index?: number | null | undefined;
|
|
151
|
+
readonly id?: string | null | undefined;
|
|
175
152
|
readonly function?: {
|
|
176
153
|
readonly name?: string | null | undefined;
|
|
177
154
|
readonly arguments?: string | null | undefined;
|
|
178
155
|
} | null | undefined;
|
|
179
|
-
readonly id?: string | null | undefined;
|
|
180
|
-
readonly index?: number | null | undefined;
|
|
181
156
|
readonly extra_content?: unknown;
|
|
182
157
|
}[] | null | undefined;
|
|
183
|
-
readonly reasoning_details?: unknown;
|
|
184
158
|
} | null | undefined;
|
|
159
|
+
readonly finish_reason?: string | null | undefined;
|
|
160
|
+
readonly native_finish_reason?: string | null | undefined;
|
|
185
161
|
readonly usage?: {
|
|
186
162
|
readonly [x: string]: unknown;
|
|
187
|
-
readonly cache_read_input_tokens?: number | null | undefined;
|
|
188
|
-
readonly cached_tokens?: number | null | undefined;
|
|
189
|
-
readonly total_tokens?: number | null | undefined;
|
|
190
163
|
readonly prompt_tokens?: number | null | undefined;
|
|
191
164
|
readonly completion_tokens?: number | null | undefined;
|
|
165
|
+
readonly total_tokens?: number | null | undefined;
|
|
166
|
+
readonly cached_tokens?: number | null | undefined;
|
|
167
|
+
readonly prompt_cache_hit_tokens?: number | null | undefined;
|
|
168
|
+
readonly cache_read_input_tokens?: number | null | undefined;
|
|
169
|
+
readonly cache_created_input_tokens?: number | null | undefined;
|
|
192
170
|
readonly prompt_tokens_details?: {
|
|
193
171
|
readonly [x: string]: unknown;
|
|
194
172
|
readonly cached_tokens?: number | null | undefined;
|
|
195
173
|
readonly cache_write_tokens?: number | null | undefined;
|
|
196
174
|
} | null | undefined;
|
|
197
|
-
readonly prompt_cache_hit_tokens?: number | null | undefined;
|
|
198
|
-
readonly cache_created_input_tokens?: number | null | undefined;
|
|
199
175
|
readonly completion_tokens_details?: {
|
|
200
176
|
readonly [x: string]: unknown;
|
|
201
177
|
readonly reasoning_tokens?: number | null | undefined;
|
|
@@ -203,9 +179,33 @@ export declare const protocol: Protocol<{
|
|
|
203
179
|
readonly rejected_prediction_tokens?: number | null | undefined;
|
|
204
180
|
} | null | undefined;
|
|
205
181
|
} | null | undefined;
|
|
206
|
-
readonly finish_reason?: string | null | undefined;
|
|
207
|
-
readonly native_finish_reason?: string | null | undefined;
|
|
208
182
|
}[] | null | undefined;
|
|
183
|
+
readonly usage?: {
|
|
184
|
+
readonly [x: string]: unknown;
|
|
185
|
+
readonly prompt_tokens?: number | null | undefined;
|
|
186
|
+
readonly completion_tokens?: number | null | undefined;
|
|
187
|
+
readonly total_tokens?: number | null | undefined;
|
|
188
|
+
readonly cached_tokens?: number | null | undefined;
|
|
189
|
+
readonly prompt_cache_hit_tokens?: number | null | undefined;
|
|
190
|
+
readonly cache_read_input_tokens?: number | null | undefined;
|
|
191
|
+
readonly cache_created_input_tokens?: number | null | undefined;
|
|
192
|
+
readonly prompt_tokens_details?: {
|
|
193
|
+
readonly [x: string]: unknown;
|
|
194
|
+
readonly cached_tokens?: number | null | undefined;
|
|
195
|
+
readonly cache_write_tokens?: number | null | undefined;
|
|
196
|
+
} | null | undefined;
|
|
197
|
+
readonly completion_tokens_details?: {
|
|
198
|
+
readonly [x: string]: unknown;
|
|
199
|
+
readonly reasoning_tokens?: number | null | undefined;
|
|
200
|
+
readonly accepted_prediction_tokens?: number | null | undefined;
|
|
201
|
+
readonly rejected_prediction_tokens?: number | null | undefined;
|
|
202
|
+
} | null | undefined;
|
|
203
|
+
} | null | undefined;
|
|
204
|
+
readonly error?: {
|
|
205
|
+
readonly [x: string]: unknown;
|
|
206
|
+
readonly code?: string | number | null | undefined;
|
|
207
|
+
readonly message: string;
|
|
208
|
+
} | null | undefined;
|
|
209
209
|
}, OpenAIChat.ParserState>;
|
|
210
210
|
export declare const route: Route<{
|
|
211
211
|
readonly model: string;
|
|
@@ -251,8 +251,20 @@ export declare const route: Route<{
|
|
|
251
251
|
readonly file_data: string;
|
|
252
252
|
};
|
|
253
253
|
})[];
|
|
254
|
+
} | {
|
|
255
|
+
readonly role: "tool";
|
|
256
|
+
readonly tool_call_id: string;
|
|
257
|
+
readonly content: string | readonly {
|
|
258
|
+
readonly type: "text";
|
|
259
|
+
readonly text: string;
|
|
260
|
+
readonly cache_control?: {
|
|
261
|
+
readonly type: "ephemeral";
|
|
262
|
+
readonly ttl?: string | undefined;
|
|
263
|
+
} | undefined;
|
|
264
|
+
}[];
|
|
254
265
|
} | {
|
|
255
266
|
readonly [x: string]: unknown;
|
|
267
|
+
readonly role: "assistant";
|
|
256
268
|
readonly content: string | readonly {
|
|
257
269
|
readonly type: "text";
|
|
258
270
|
readonly text: string;
|
|
@@ -261,73 +273,61 @@ export declare const route: Route<{
|
|
|
261
273
|
readonly ttl?: string | undefined;
|
|
262
274
|
} | undefined;
|
|
263
275
|
}[] | null;
|
|
264
|
-
readonly role: "assistant";
|
|
265
|
-
readonly reasoning?: string | undefined;
|
|
266
|
-
readonly reasoning_content?: string | undefined;
|
|
267
|
-
readonly reasoning_text?: string | undefined;
|
|
268
276
|
readonly tool_calls?: readonly {
|
|
277
|
+
readonly id: string;
|
|
278
|
+
readonly type: "function";
|
|
269
279
|
readonly function: {
|
|
270
280
|
readonly name: string;
|
|
271
281
|
readonly arguments: string;
|
|
272
282
|
};
|
|
273
|
-
readonly id: string;
|
|
274
|
-
readonly type: "function";
|
|
275
283
|
readonly extra_content?: {
|
|
276
284
|
readonly google: {
|
|
277
285
|
readonly thought_signature: string;
|
|
278
286
|
};
|
|
279
287
|
} | undefined;
|
|
280
288
|
}[] | undefined;
|
|
289
|
+
readonly reasoning_content?: string | undefined;
|
|
290
|
+
readonly reasoning?: string | undefined;
|
|
291
|
+
readonly reasoning_text?: string | undefined;
|
|
281
292
|
readonly reasoning_details?: unknown;
|
|
282
|
-
} | {
|
|
283
|
-
readonly role: "tool";
|
|
284
|
-
readonly tool_call_id: string;
|
|
285
|
-
readonly content: string | readonly {
|
|
286
|
-
readonly type: "text";
|
|
287
|
-
readonly text: string;
|
|
288
|
-
readonly cache_control?: {
|
|
289
|
-
readonly type: "ephemeral";
|
|
290
|
-
readonly ttl?: string | undefined;
|
|
291
|
-
} | undefined;
|
|
292
|
-
}[];
|
|
293
293
|
})[];
|
|
294
|
-
readonly stream: true;
|
|
295
|
-
readonly max_completion_tokens?: number | undefined;
|
|
296
|
-
readonly max_tokens?: number | undefined;
|
|
297
|
-
readonly temperature?: number | undefined;
|
|
298
294
|
readonly tools?: readonly {
|
|
295
|
+
readonly type: "function";
|
|
299
296
|
readonly function: {
|
|
300
|
-
readonly description: string;
|
|
301
297
|
readonly name: string;
|
|
298
|
+
readonly description: string;
|
|
302
299
|
readonly parameters: {
|
|
303
300
|
readonly [x: string]: unknown;
|
|
304
301
|
};
|
|
305
302
|
readonly strict?: boolean | undefined;
|
|
306
303
|
};
|
|
307
|
-
readonly type: "function";
|
|
308
304
|
readonly cache_control?: {
|
|
309
305
|
readonly type: "ephemeral";
|
|
310
306
|
readonly ttl?: string | undefined;
|
|
311
307
|
} | undefined;
|
|
312
308
|
}[] | undefined;
|
|
313
|
-
readonly
|
|
314
|
-
readonly seed?: number | undefined;
|
|
315
|
-
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
309
|
+
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
316
310
|
readonly type: "function";
|
|
317
311
|
readonly function: {
|
|
318
312
|
readonly name: string;
|
|
319
313
|
};
|
|
320
314
|
} | undefined;
|
|
321
|
-
readonly
|
|
322
|
-
readonly frequency_penalty?: number | undefined;
|
|
323
|
-
readonly presence_penalty?: number | undefined;
|
|
324
|
-
readonly store?: boolean | undefined;
|
|
325
|
-
readonly prompt_cache_key?: string | undefined;
|
|
326
|
-
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
315
|
+
readonly stream: true;
|
|
327
316
|
readonly stream_options?: {
|
|
328
317
|
readonly include_usage: boolean;
|
|
329
318
|
} | undefined;
|
|
319
|
+
readonly store?: boolean | undefined;
|
|
320
|
+
readonly prompt_cache_key?: string | undefined;
|
|
321
|
+
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
330
322
|
readonly tool_stream?: boolean | undefined;
|
|
323
|
+
readonly max_completion_tokens?: number | undefined;
|
|
324
|
+
readonly max_tokens?: number | undefined;
|
|
325
|
+
readonly temperature?: number | undefined;
|
|
326
|
+
readonly top_p?: number | undefined;
|
|
327
|
+
readonly frequency_penalty?: number | undefined;
|
|
328
|
+
readonly presence_penalty?: number | undefined;
|
|
329
|
+
readonly seed?: number | undefined;
|
|
330
|
+
readonly stop?: readonly string[] | undefined;
|
|
331
331
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>;
|
|
332
332
|
export declare const routes: Route<{
|
|
333
333
|
readonly model: string;
|
|
@@ -373,8 +373,20 @@ export declare const routes: Route<{
|
|
|
373
373
|
readonly file_data: string;
|
|
374
374
|
};
|
|
375
375
|
})[];
|
|
376
|
+
} | {
|
|
377
|
+
readonly role: "tool";
|
|
378
|
+
readonly tool_call_id: string;
|
|
379
|
+
readonly content: string | readonly {
|
|
380
|
+
readonly type: "text";
|
|
381
|
+
readonly text: string;
|
|
382
|
+
readonly cache_control?: {
|
|
383
|
+
readonly type: "ephemeral";
|
|
384
|
+
readonly ttl?: string | undefined;
|
|
385
|
+
} | undefined;
|
|
386
|
+
}[];
|
|
376
387
|
} | {
|
|
377
388
|
readonly [x: string]: unknown;
|
|
389
|
+
readonly role: "assistant";
|
|
378
390
|
readonly content: string | readonly {
|
|
379
391
|
readonly type: "text";
|
|
380
392
|
readonly text: string;
|
|
@@ -383,87 +395,71 @@ export declare const routes: Route<{
|
|
|
383
395
|
readonly ttl?: string | undefined;
|
|
384
396
|
} | undefined;
|
|
385
397
|
}[] | null;
|
|
386
|
-
readonly role: "assistant";
|
|
387
|
-
readonly reasoning?: string | undefined;
|
|
388
|
-
readonly reasoning_content?: string | undefined;
|
|
389
|
-
readonly reasoning_text?: string | undefined;
|
|
390
398
|
readonly tool_calls?: readonly {
|
|
399
|
+
readonly id: string;
|
|
400
|
+
readonly type: "function";
|
|
391
401
|
readonly function: {
|
|
392
402
|
readonly name: string;
|
|
393
403
|
readonly arguments: string;
|
|
394
404
|
};
|
|
395
|
-
readonly id: string;
|
|
396
|
-
readonly type: "function";
|
|
397
405
|
readonly extra_content?: {
|
|
398
406
|
readonly google: {
|
|
399
407
|
readonly thought_signature: string;
|
|
400
408
|
};
|
|
401
409
|
} | undefined;
|
|
402
410
|
}[] | undefined;
|
|
411
|
+
readonly reasoning_content?: string | undefined;
|
|
412
|
+
readonly reasoning?: string | undefined;
|
|
413
|
+
readonly reasoning_text?: string | undefined;
|
|
403
414
|
readonly reasoning_details?: unknown;
|
|
404
|
-
} | {
|
|
405
|
-
readonly role: "tool";
|
|
406
|
-
readonly tool_call_id: string;
|
|
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
|
-
}[];
|
|
415
415
|
})[];
|
|
416
|
-
readonly stream: true;
|
|
417
|
-
readonly max_completion_tokens?: number | undefined;
|
|
418
|
-
readonly max_tokens?: number | undefined;
|
|
419
|
-
readonly temperature?: number | undefined;
|
|
420
416
|
readonly tools?: readonly {
|
|
417
|
+
readonly type: "function";
|
|
421
418
|
readonly function: {
|
|
422
|
-
readonly description: string;
|
|
423
419
|
readonly name: string;
|
|
420
|
+
readonly description: string;
|
|
424
421
|
readonly parameters: {
|
|
425
422
|
readonly [x: string]: unknown;
|
|
426
423
|
};
|
|
427
424
|
readonly strict?: boolean | undefined;
|
|
428
425
|
};
|
|
429
|
-
readonly type: "function";
|
|
430
426
|
readonly cache_control?: {
|
|
431
427
|
readonly type: "ephemeral";
|
|
432
428
|
readonly ttl?: string | undefined;
|
|
433
429
|
} | undefined;
|
|
434
430
|
}[] | undefined;
|
|
435
|
-
readonly
|
|
436
|
-
readonly seed?: number | undefined;
|
|
437
|
-
readonly tool_choice?: "required" | "auto" | "none" | {
|
|
431
|
+
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
438
432
|
readonly type: "function";
|
|
439
433
|
readonly function: {
|
|
440
434
|
readonly name: string;
|
|
441
435
|
};
|
|
442
436
|
} | undefined;
|
|
443
|
-
readonly
|
|
444
|
-
readonly frequency_penalty?: number | undefined;
|
|
445
|
-
readonly presence_penalty?: number | undefined;
|
|
446
|
-
readonly store?: boolean | undefined;
|
|
447
|
-
readonly prompt_cache_key?: string | undefined;
|
|
448
|
-
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
437
|
+
readonly stream: true;
|
|
449
438
|
readonly stream_options?: {
|
|
450
439
|
readonly include_usage: boolean;
|
|
451
440
|
} | undefined;
|
|
441
|
+
readonly store?: boolean | undefined;
|
|
442
|
+
readonly prompt_cache_key?: string | undefined;
|
|
443
|
+
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
452
444
|
readonly tool_stream?: boolean | undefined;
|
|
445
|
+
readonly max_completion_tokens?: number | undefined;
|
|
446
|
+
readonly max_tokens?: number | undefined;
|
|
447
|
+
readonly temperature?: number | undefined;
|
|
448
|
+
readonly top_p?: number | undefined;
|
|
449
|
+
readonly frequency_penalty?: number | undefined;
|
|
450
|
+
readonly presence_penalty?: number | undefined;
|
|
451
|
+
readonly seed?: number | undefined;
|
|
452
|
+
readonly stop?: readonly string[] | undefined;
|
|
453
453
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>[];
|
|
454
454
|
export declare const configure: (input?: LanguageModelOptions) => {
|
|
455
455
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
456
456
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
457
|
-
configure:
|
|
457
|
+
configure: typeof configure;
|
|
458
458
|
};
|
|
459
459
|
export declare const provider: {
|
|
460
460
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
461
461
|
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
462
|
-
configure:
|
|
463
|
-
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
464
|
-
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./openai-options.js").OpenAIOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
465
|
-
configure: /*elided*/ any;
|
|
466
|
-
};
|
|
462
|
+
configure: typeof configure;
|
|
467
463
|
};
|
|
468
464
|
export declare const model: ProviderPackage.Definition<Settings, OpenAIProviderOptionsInput>["model"];
|
|
469
465
|
export * as DigitalOcean from "./digitalocean.js";
|
|
@@ -12,18 +12,13 @@ export declare const configure: (input?: Config) => {
|
|
|
12
12
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
13
13
|
speech: (modelID: string | ModelID) => import("../speech.js").SpeechModel<import("../protocols/elevenlabs-speech.js").ElevenLabsSpeechOptions>;
|
|
14
14
|
transcription: (modelID: string | ModelID) => import("../transcription.js").TranscriptionModel<import("../protocols/elevenlabs-transcription.js").ElevenLabsTranscriptionOptions>;
|
|
15
|
-
configure:
|
|
15
|
+
configure: typeof configure;
|
|
16
16
|
};
|
|
17
17
|
export declare const provider: {
|
|
18
18
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
19
19
|
speech: (modelID: string | ModelID) => import("../speech.js").SpeechModel<import("../protocols/elevenlabs-speech.js").ElevenLabsSpeechOptions>;
|
|
20
20
|
transcription: (modelID: string | ModelID) => import("../transcription.js").TranscriptionModel<import("../protocols/elevenlabs-transcription.js").ElevenLabsTranscriptionOptions>;
|
|
21
|
-
configure:
|
|
22
|
-
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
23
|
-
speech: (modelID: string | ModelID) => import("../speech.js").SpeechModel<import("../protocols/elevenlabs-speech.js").ElevenLabsSpeechOptions>;
|
|
24
|
-
transcription: (modelID: string | ModelID) => import("../transcription.js").TranscriptionModel<import("../protocols/elevenlabs-transcription.js").ElevenLabsTranscriptionOptions>;
|
|
25
|
-
configure: /*elided*/ any;
|
|
26
|
-
};
|
|
21
|
+
configure: typeof configure;
|
|
27
22
|
};
|
|
28
23
|
export declare const speech: (modelID: string | ModelID) => import("../speech.js").SpeechModel<import("../protocols/elevenlabs-speech.js").ElevenLabsSpeechOptions>;
|
|
29
24
|
export declare const transcription: (modelID: string | ModelID) => import("../transcription.js").TranscriptionModel<import("../protocols/elevenlabs-transcription.js").ElevenLabsTranscriptionOptions>;
|
package/dist/providers/fal.d.ts
CHANGED
|
@@ -12,18 +12,13 @@ export declare const configure: (input?: Config) => {
|
|
|
12
12
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
13
13
|
image: (modelID: string | ModelID) => import("../image.js").ImageModel<import("../protocols/fal-images.js").FalImageOptions>;
|
|
14
14
|
video: (modelID: string | ModelID) => import("../video.js").VideoModel<import("../protocols/fal-video.js").FalVideoOptions>;
|
|
15
|
-
configure:
|
|
15
|
+
configure: typeof configure;
|
|
16
16
|
};
|
|
17
17
|
export declare const provider: {
|
|
18
18
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
19
19
|
image: (modelID: string | ModelID) => import("../image.js").ImageModel<import("../protocols/fal-images.js").FalImageOptions>;
|
|
20
20
|
video: (modelID: string | ModelID) => import("../video.js").VideoModel<import("../protocols/fal-video.js").FalVideoOptions>;
|
|
21
|
-
configure:
|
|
22
|
-
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
23
|
-
image: (modelID: string | ModelID) => import("../image.js").ImageModel<import("../protocols/fal-images.js").FalImageOptions>;
|
|
24
|
-
video: (modelID: string | ModelID) => import("../video.js").VideoModel<import("../protocols/fal-video.js").FalVideoOptions>;
|
|
25
|
-
configure: /*elided*/ any;
|
|
26
|
-
};
|
|
21
|
+
configure: typeof configure;
|
|
27
22
|
};
|
|
28
23
|
export declare const image: (modelID: string | ModelID) => import("../image.js").ImageModel<import("../protocols/fal-images.js").FalImageOptions>;
|
|
29
24
|
export declare const video: (modelID: string | ModelID) => import("../video.js").VideoModel<import("../protocols/fal-video.js").FalVideoOptions>;
|