@opencode/ai 0.0.0-dev-21627 → 0.0.0-dev-21641
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/experimental/evaluation.js +3 -10
- package/dist/image-client.d.ts +8 -8
- package/dist/image.d.ts +148 -148
- package/dist/promise.d.ts +120 -120
- package/dist/protocols/alibaba-chat.d.ts +12 -12
- package/dist/protocols/alibaba-messages.d.ts +11 -11
- package/dist/protocols/alibaba-responses.d.ts +35 -35
- package/dist/protocols/anthropic-messages.d.ts +40 -40
- package/dist/protocols/bedrock-converse.d.ts +30 -30
- package/dist/protocols/cartesia-speech.d.ts +32 -32
- package/dist/protocols/cohere-chat.d.ts +7 -8
- package/dist/protocols/deepgram-speech.d.ts +32 -32
- package/dist/protocols/elevenlabs-speech.d.ts +32 -32
- package/dist/protocols/gemini.d.ts +34 -34
- package/dist/protocols/google-interactions.d.ts +14 -14
- package/dist/protocols/google-speech.d.ts +32 -32
- package/dist/protocols/google-transcription.d.ts +32 -32
- package/dist/protocols/meta-messages.d.ts +23 -23
- package/dist/protocols/meta-responses.d.ts +78 -78
- package/dist/protocols/mistral-chat.d.ts +81 -78
- package/dist/protocols/mistral-chat.js +2 -1
- package/dist/protocols/open-responses-channel.js +47 -46
- package/dist/protocols/open-responses-continuation.d.ts +8 -2
- package/dist/protocols/open-responses-continuation.js +3 -1
- package/dist/protocols/open-responses.d.ts +396 -396
- package/dist/protocols/openai-chat.d.ts +60 -60
- package/dist/protocols/openai-compatible-chat.d.ts +12 -12
- package/dist/protocols/openai-compatible-responses.d.ts +35 -35
- package/dist/protocols/openai-images.d.ts +32 -32
- package/dist/protocols/openai-responses.d.ts +235 -235
- package/dist/protocols/openai-speech.d.ts +32 -32
- package/dist/protocols/openai-transcription.d.ts +32 -32
- package/dist/protocols/utils/tool-stream.d.ts +1 -1
- package/dist/protocols/venice-chat.d.ts +52 -53
- package/dist/protocols/venice-chat.js +6 -5
- package/dist/protocols/xai-responses.d.ts +78 -78
- package/dist/protocols/zai-chat.d.ts +33 -30
- package/dist/protocols/zai-chat.js +8 -3
- package/dist/protocols/zai-messages.d.ts +21 -19
- package/dist/protocols/zai-messages.js +3 -2
- package/dist/providers/alibaba.d.ts +69 -69
- package/dist/providers/amazon-bedrock-mantle.d.ts +202 -202
- package/dist/providers/amazon-bedrock.d.ts +15 -15
- package/dist/providers/anthropic-compatible.d.ts +13 -13
- package/dist/providers/anthropic.d.ts +13 -13
- package/dist/providers/azure.d.ts +106 -106
- package/dist/providers/baseten.d.ts +24 -24
- package/dist/providers/cerebras.d.ts +24 -24
- package/dist/providers/cloudflare-ai-gateway.d.ts +230 -227
- package/dist/providers/cloudflare-workers-ai.d.ts +24 -24
- package/dist/providers/cohere.d.ts +75 -75
- package/dist/providers/deepinfra.d.ts +24 -24
- package/dist/providers/deepseek.d.ts +24 -24
- package/dist/providers/digitalocean.d.ts +36 -36
- package/dist/providers/fireworks.d.ts +24 -24
- package/dist/providers/google-vertex-chat.d.ts +12 -12
- package/dist/providers/google-vertex-messages.d.ts +13 -13
- package/dist/providers/google-vertex-mistral.d.ts +17 -17
- package/dist/providers/google-vertex-responses.d.ts +35 -35
- package/dist/providers/google-vertex.d.ts +17 -17
- package/dist/providers/google.d.ts +17 -17
- package/dist/providers/groq.d.ts +24 -24
- package/dist/providers/meta.d.ts +179 -179
- package/dist/providers/minimax.d.ts +71 -71
- package/dist/providers/mistral.d.ts +28 -28
- package/dist/providers/moonshot.d.ts +202 -202
- package/dist/providers/openai-compatible-responses.d.ts +35 -35
- package/dist/providers/openai-compatible.d.ts +12 -12
- package/dist/providers/openai.d.ts +100 -100
- package/dist/providers/openrouter.d.ts +36 -36
- package/dist/providers/togetherai.d.ts +24 -24
- package/dist/providers/venice.d.ts +195 -20
- package/dist/providers/xai.d.ts +12 -12
- package/dist/providers/zai-coding-plan.d.ts +149 -69
- package/dist/providers/zai.d.ts +84 -19
- package/dist/speech-client.d.ts +8 -8
- package/dist/speech.d.ts +148 -148
- package/dist/transcription-client.d.ts +8 -8
- package/dist/transcription.d.ts +148 -148
- package/dist/video-client.d.ts +8 -8
- package/dist/video.d.ts +114 -114
- package/package.json +6 -5
package/dist/providers/zai.d.ts
CHANGED
|
@@ -19,13 +19,6 @@ export declare const routes: Route<{
|
|
|
19
19
|
readonly messages: readonly ({
|
|
20
20
|
readonly role: "system";
|
|
21
21
|
readonly content: string | readonly ({
|
|
22
|
-
readonly type: "text";
|
|
23
|
-
readonly text: string;
|
|
24
|
-
readonly cache_control?: {
|
|
25
|
-
readonly type: "ephemeral";
|
|
26
|
-
readonly ttl?: string | undefined;
|
|
27
|
-
} | undefined;
|
|
28
|
-
} | {
|
|
29
22
|
readonly type: "image_url";
|
|
30
23
|
readonly image_url: {
|
|
31
24
|
readonly url: string;
|
|
@@ -36,17 +29,17 @@ export declare const routes: Route<{
|
|
|
36
29
|
readonly filename: string;
|
|
37
30
|
readonly file_data: string;
|
|
38
31
|
};
|
|
39
|
-
}
|
|
40
|
-
} | {
|
|
41
|
-
readonly role: "user";
|
|
42
|
-
readonly content: string | readonly ({
|
|
32
|
+
} | {
|
|
43
33
|
readonly type: "text";
|
|
44
34
|
readonly text: string;
|
|
45
35
|
readonly cache_control?: {
|
|
46
36
|
readonly type: "ephemeral";
|
|
47
37
|
readonly ttl?: string | undefined;
|
|
48
38
|
} | undefined;
|
|
49
|
-
}
|
|
39
|
+
})[];
|
|
40
|
+
} | {
|
|
41
|
+
readonly role: "user";
|
|
42
|
+
readonly content: string | readonly ({
|
|
50
43
|
readonly type: "image_url";
|
|
51
44
|
readonly image_url: {
|
|
52
45
|
readonly url: string;
|
|
@@ -57,6 +50,13 @@ export declare const routes: Route<{
|
|
|
57
50
|
readonly filename: string;
|
|
58
51
|
readonly file_data: string;
|
|
59
52
|
};
|
|
53
|
+
} | {
|
|
54
|
+
readonly type: "text";
|
|
55
|
+
readonly text: string;
|
|
56
|
+
readonly cache_control?: {
|
|
57
|
+
readonly type: "ephemeral";
|
|
58
|
+
readonly ttl?: string | undefined;
|
|
59
|
+
} | undefined;
|
|
60
60
|
})[];
|
|
61
61
|
} | {
|
|
62
62
|
readonly role: "tool";
|
|
@@ -136,31 +136,96 @@ export declare const routes: Route<{
|
|
|
136
136
|
readonly seed?: number | undefined;
|
|
137
137
|
readonly stop?: readonly string[] | undefined;
|
|
138
138
|
readonly thinking?: {
|
|
139
|
-
readonly type?:
|
|
139
|
+
readonly type?: import("../schema/options.js").OpenString<"disabled" | "enabled"> | undefined;
|
|
140
140
|
readonly clear_thinking?: boolean | undefined;
|
|
141
141
|
} | undefined;
|
|
142
142
|
readonly do_sample?: boolean | undefined;
|
|
143
143
|
readonly response_format?: {
|
|
144
|
-
readonly type:
|
|
144
|
+
readonly type: import("../schema/options.js").OpenString<"json_object" | "text">;
|
|
145
145
|
} | undefined;
|
|
146
146
|
readonly request_id?: string | undefined;
|
|
147
147
|
readonly user_id?: string | undefined;
|
|
148
148
|
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>[];
|
|
149
149
|
export declare const configure: (input?: Config) => {
|
|
150
150
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
151
|
-
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<
|
|
152
|
-
|
|
151
|
+
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
|
|
152
|
+
readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
153
|
+
readonly thinking?: {
|
|
154
|
+
readonly type?: import("../schema/options.js").OpenString<"disabled" | "enabled"> | undefined;
|
|
155
|
+
readonly clear_thinking?: boolean | undefined;
|
|
156
|
+
} | undefined;
|
|
157
|
+
readonly toolStream?: boolean | undefined;
|
|
158
|
+
readonly doSample?: boolean | undefined;
|
|
159
|
+
readonly responseFormat?: {
|
|
160
|
+
readonly type: import("../schema/options.js").OpenString<"json_object" | "text">;
|
|
161
|
+
} | undefined;
|
|
162
|
+
readonly requestID?: string | undefined;
|
|
163
|
+
readonly userID?: string | undefined;
|
|
164
|
+
}, import("../route/client.js").CompactionOperations | undefined>;
|
|
165
|
+
chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
|
|
166
|
+
readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
167
|
+
readonly thinking?: {
|
|
168
|
+
readonly type?: import("../schema/options.js").OpenString<"disabled" | "enabled"> | undefined;
|
|
169
|
+
readonly clear_thinking?: boolean | undefined;
|
|
170
|
+
} | undefined;
|
|
171
|
+
readonly toolStream?: boolean | undefined;
|
|
172
|
+
readonly doSample?: boolean | undefined;
|
|
173
|
+
readonly responseFormat?: {
|
|
174
|
+
readonly type: import("../schema/options.js").OpenString<"json_object" | "text">;
|
|
175
|
+
} | undefined;
|
|
176
|
+
readonly requestID?: string | undefined;
|
|
177
|
+
readonly userID?: string | undefined;
|
|
178
|
+
}, import("../route/client.js").CompactionOperations | undefined>;
|
|
153
179
|
image: (modelID: string | ModelID) => import("../image.js").ImageModel<import("./zai.js").ZAIImageOptions>;
|
|
154
180
|
configure: typeof configure;
|
|
155
181
|
};
|
|
156
182
|
export declare const provider: {
|
|
157
183
|
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
158
|
-
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<
|
|
159
|
-
|
|
184
|
+
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
|
|
185
|
+
readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
186
|
+
readonly thinking?: {
|
|
187
|
+
readonly type?: import("../schema/options.js").OpenString<"disabled" | "enabled"> | undefined;
|
|
188
|
+
readonly clear_thinking?: boolean | undefined;
|
|
189
|
+
} | undefined;
|
|
190
|
+
readonly toolStream?: boolean | undefined;
|
|
191
|
+
readonly doSample?: boolean | undefined;
|
|
192
|
+
readonly responseFormat?: {
|
|
193
|
+
readonly type: import("../schema/options.js").OpenString<"json_object" | "text">;
|
|
194
|
+
} | undefined;
|
|
195
|
+
readonly requestID?: string | undefined;
|
|
196
|
+
readonly userID?: string | undefined;
|
|
197
|
+
}, import("../route/client.js").CompactionOperations | undefined>;
|
|
198
|
+
chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
|
|
199
|
+
readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
200
|
+
readonly thinking?: {
|
|
201
|
+
readonly type?: import("../schema/options.js").OpenString<"disabled" | "enabled"> | undefined;
|
|
202
|
+
readonly clear_thinking?: boolean | undefined;
|
|
203
|
+
} | undefined;
|
|
204
|
+
readonly toolStream?: boolean | undefined;
|
|
205
|
+
readonly doSample?: boolean | undefined;
|
|
206
|
+
readonly responseFormat?: {
|
|
207
|
+
readonly type: import("../schema/options.js").OpenString<"json_object" | "text">;
|
|
208
|
+
} | undefined;
|
|
209
|
+
readonly requestID?: string | undefined;
|
|
210
|
+
readonly userID?: string | undefined;
|
|
211
|
+
}, import("../route/client.js").CompactionOperations | undefined>;
|
|
160
212
|
image: (modelID: string | ModelID) => import("../image.js").ImageModel<import("./zai.js").ZAIImageOptions>;
|
|
161
213
|
configure: typeof configure;
|
|
162
214
|
};
|
|
163
215
|
export declare const image: (modelID: string | ModelID) => import("../image.js").ImageModel<import("./zai.js").ZAIImageOptions>;
|
|
164
|
-
export declare const chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<
|
|
216
|
+
export declare const chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
|
|
217
|
+
readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
218
|
+
readonly thinking?: {
|
|
219
|
+
readonly type?: import("../schema/options.js").OpenString<"disabled" | "enabled"> | undefined;
|
|
220
|
+
readonly clear_thinking?: boolean | undefined;
|
|
221
|
+
} | undefined;
|
|
222
|
+
readonly toolStream?: boolean | undefined;
|
|
223
|
+
readonly doSample?: boolean | undefined;
|
|
224
|
+
readonly responseFormat?: {
|
|
225
|
+
readonly type: import("../schema/options.js").OpenString<"json_object" | "text">;
|
|
226
|
+
} | undefined;
|
|
227
|
+
readonly requestID?: string | undefined;
|
|
228
|
+
readonly userID?: string | undefined;
|
|
229
|
+
}, import("../route/client.js").CompactionOperations | undefined>;
|
|
165
230
|
export declare const model: ProviderPackage.Definition<Settings, ChatOptionsInput>["model"];
|
|
166
231
|
export * as ZAI from "./zai.js";
|
package/dist/speech-client.d.ts
CHANGED
|
@@ -24,14 +24,6 @@ export declare const SpeechClient: {
|
|
|
24
24
|
readonly type: "finish";
|
|
25
25
|
readonly audio: import("./media.js").Asset;
|
|
26
26
|
readonly usage?: {
|
|
27
|
-
readonly type: "tokens";
|
|
28
|
-
readonly input?: number | undefined;
|
|
29
|
-
readonly output?: number | undefined;
|
|
30
|
-
readonly total?: number | undefined;
|
|
31
|
-
readonly details?: {
|
|
32
|
-
readonly [x: string]: unknown;
|
|
33
|
-
} | undefined;
|
|
34
|
-
} | {
|
|
35
27
|
readonly type: "seconds";
|
|
36
28
|
readonly seconds: number;
|
|
37
29
|
} | {
|
|
@@ -43,6 +35,14 @@ export declare const SpeechClient: {
|
|
|
43
35
|
} | {
|
|
44
36
|
readonly type: "compute";
|
|
45
37
|
readonly seconds: number;
|
|
38
|
+
} | {
|
|
39
|
+
readonly type: "tokens";
|
|
40
|
+
readonly input?: number | undefined;
|
|
41
|
+
readonly output?: number | undefined;
|
|
42
|
+
readonly total?: number | undefined;
|
|
43
|
+
readonly details?: {
|
|
44
|
+
readonly [x: string]: unknown;
|
|
45
|
+
} | undefined;
|
|
46
46
|
} | undefined;
|
|
47
47
|
readonly notices?: readonly {
|
|
48
48
|
readonly type: "filtered" | "moderated" | "other";
|