@opencode/ai 0.0.0-dev-21779 → 0.0.0-dev-21787
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/protocols/alibaba-chat.d.ts +10 -0
- package/dist/protocols/anthropic-messages.js +0 -1
- package/dist/protocols/gemini.d.ts +0 -9
- package/dist/protocols/gemini.js +0 -2
- package/dist/protocols/openai-chat.d.ts +80 -0
- package/dist/protocols/openai-chat.js +7 -1
- package/dist/protocols/openai-compatible-chat.d.ts +10 -0
- package/dist/protocols/shared.d.ts +1 -8
- package/dist/protocols/shared.js +2 -6
- package/dist/protocols/venice-chat.d.ts +10 -0
- package/dist/protocols/zai-chat.d.ts +10 -0
- package/dist/provider-error.js +2 -0
- package/dist/providers/alibaba.d.ts +10 -0
- package/dist/providers/amazon-bedrock-mantle.d.ts +10 -0
- package/dist/providers/azure.d.ts +10 -0
- package/dist/providers/baseten.d.ts +20 -0
- package/dist/providers/cerebras.d.ts +20 -0
- package/dist/providers/cloudflare-ai-gateway.d.ts +20 -0
- package/dist/providers/cloudflare-workers-ai.d.ts +20 -0
- package/dist/providers/cohere.d.ts +20 -0
- package/dist/providers/deepinfra.d.ts +20 -0
- package/dist/providers/deepseek.d.ts +20 -0
- package/dist/providers/digitalocean.d.ts +30 -0
- package/dist/providers/fireworks.d.ts +20 -0
- package/dist/providers/google-vertex-chat.d.ts +10 -0
- package/dist/providers/groq.d.ts +20 -0
- package/dist/providers/meta.d.ts +10 -0
- package/dist/providers/minimax.d.ts +10 -0
- package/dist/providers/moonshot.d.ts +10 -0
- package/dist/providers/openai-compatible.d.ts +10 -0
- package/dist/providers/openai.d.ts +10 -0
- package/dist/providers/openrouter.d.ts +40 -0
- package/dist/providers/togetherai.d.ts +20 -0
- package/dist/providers/venice.d.ts +10 -0
- package/dist/providers/xai.d.ts +10 -0
- package/dist/providers/zai-coding-plan.d.ts +10 -0
- package/dist/providers/zai.d.ts +10 -0
- package/dist/schema/events.d.ts +0 -2
- package/dist/schema/events.js +0 -2
- package/package.json +3 -3
|
@@ -205,6 +205,11 @@ export declare const routes: (Route<{
|
|
|
205
205
|
readonly image_url: {
|
|
206
206
|
readonly url: string;
|
|
207
207
|
};
|
|
208
|
+
} | {
|
|
209
|
+
readonly type: "video_url";
|
|
210
|
+
readonly video_url: {
|
|
211
|
+
readonly url: string;
|
|
212
|
+
};
|
|
208
213
|
} | {
|
|
209
214
|
readonly type: "file";
|
|
210
215
|
readonly file: {
|
|
@@ -226,6 +231,11 @@ export declare const routes: (Route<{
|
|
|
226
231
|
readonly image_url: {
|
|
227
232
|
readonly url: string;
|
|
228
233
|
};
|
|
234
|
+
} | {
|
|
235
|
+
readonly type: "video_url";
|
|
236
|
+
readonly video_url: {
|
|
237
|
+
readonly url: string;
|
|
238
|
+
};
|
|
229
239
|
} | {
|
|
230
240
|
readonly type: "file";
|
|
231
241
|
readonly file: {
|
package/dist/providers/zai.d.ts
CHANGED
|
@@ -23,6 +23,11 @@ export declare const routes: Route<{
|
|
|
23
23
|
readonly image_url: {
|
|
24
24
|
readonly url: string;
|
|
25
25
|
};
|
|
26
|
+
} | {
|
|
27
|
+
readonly type: "video_url";
|
|
28
|
+
readonly video_url: {
|
|
29
|
+
readonly url: string;
|
|
30
|
+
};
|
|
26
31
|
} | {
|
|
27
32
|
readonly type: "file";
|
|
28
33
|
readonly file: {
|
|
@@ -44,6 +49,11 @@ export declare const routes: Route<{
|
|
|
44
49
|
readonly image_url: {
|
|
45
50
|
readonly url: string;
|
|
46
51
|
};
|
|
52
|
+
} | {
|
|
53
|
+
readonly type: "video_url";
|
|
54
|
+
readonly video_url: {
|
|
55
|
+
readonly url: string;
|
|
56
|
+
};
|
|
47
57
|
} | {
|
|
48
58
|
readonly type: "file";
|
|
49
59
|
readonly file: {
|
package/dist/schema/events.d.ts
CHANGED
|
@@ -21,8 +21,6 @@ declare const Usage_base: Schema.Class<Usage, Schema.Struct<{
|
|
|
21
21
|
* tokens themselves.
|
|
22
22
|
*/
|
|
23
23
|
readonly cost: Schema.optional<Schema.Number>;
|
|
24
|
-
/** USD of subscription allowance the request used, as OpenCode Go reports it in `usage.opencode.allowance`. */
|
|
25
|
-
readonly allowance: Schema.optional<Schema.Number>;
|
|
26
24
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
27
25
|
}>, {}>;
|
|
28
26
|
/**
|
package/dist/schema/events.js
CHANGED
|
@@ -67,8 +67,6 @@ export class Usage extends Schema.Class("AI.Usage")({
|
|
|
67
67
|
* tokens themselves.
|
|
68
68
|
*/
|
|
69
69
|
cost: Schema.optional(Schema.Number),
|
|
70
|
-
/** USD of subscription allowance the request used, as OpenCode Go reports it in `usage.opencode.allowance`. */
|
|
71
|
-
allowance: Schema.optional(Schema.Number),
|
|
72
70
|
providerMetadata: Schema.optional(ProviderMetadata),
|
|
73
71
|
}) {
|
|
74
72
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-21787",
|
|
4
4
|
"name": "@opencode/ai",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@clack/prompts": "1.0.0-alpha.1",
|
|
37
37
|
"@effect/platform-node": "4.0.1",
|
|
38
|
-
"@opencode/http-recorder": "0.0.0-dev-
|
|
38
|
+
"@opencode/http-recorder": "0.0.0-dev-21787",
|
|
39
39
|
"@tsconfig/bun": "1.0.9",
|
|
40
40
|
"@types/bun": "1.4.3",
|
|
41
41
|
"@typescript/native": "npm:typescript@7.1.0-beta",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@aws-sdk/credential-providers": "3.1057.0",
|
|
46
46
|
"@smithy/eventstream-codec": "4.2.14",
|
|
47
47
|
"@smithy/util-utf8": "4.2.2",
|
|
48
|
-
"@opencode/schema": "0.0.0-dev-
|
|
48
|
+
"@opencode/schema": "0.0.0-dev-21787",
|
|
49
49
|
"aws4fetch": "1.0.20",
|
|
50
50
|
"effect": "4.0.1",
|
|
51
51
|
"google-auth-library": "10.5.0"
|