@opencode/ai 2.0.30 → 2.0.31

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 (55) hide show
  1. package/dist/protocols/alibaba-chat.d.ts +1 -1
  2. package/dist/protocols/alibaba-messages.d.ts +1 -1
  3. package/dist/protocols/alibaba-responses.d.ts +1 -1
  4. package/dist/protocols/anthropic-messages.d.ts +2 -2
  5. package/dist/protocols/bedrock-converse.d.ts +2 -2
  6. package/dist/protocols/bedrock-converse.js +1 -1
  7. package/dist/protocols/cohere-chat.d.ts +2 -2
  8. package/dist/protocols/meta-messages.d.ts +1 -1
  9. package/dist/protocols/meta-responses.d.ts +2 -2
  10. package/dist/protocols/mistral-chat.d.ts +3 -3
  11. package/dist/protocols/open-responses.d.ts +2 -2
  12. package/dist/protocols/openai-chat.d.ts +3 -3
  13. package/dist/protocols/openai-compatible-chat.d.ts +1 -1
  14. package/dist/protocols/openai-compatible-responses.d.ts +1 -1
  15. package/dist/protocols/openai-responses.d.ts +5 -5
  16. package/dist/protocols/utils/bedrock-cache.d.ts +2 -2
  17. package/dist/protocols/utils/bedrock-cache.js +5 -3
  18. package/dist/protocols/venice-chat.d.ts +1 -1
  19. package/dist/protocols/xai-responses.d.ts +1 -1
  20. package/dist/protocols/zai-chat.d.ts +1 -1
  21. package/dist/protocols/zai-messages.d.ts +1 -1
  22. package/dist/providers/alibaba.d.ts +3 -3
  23. package/dist/providers/amazon-bedrock-mantle.d.ts +3 -3
  24. package/dist/providers/amazon-bedrock.d.ts +1 -1
  25. package/dist/providers/anthropic-compatible.d.ts +1 -1
  26. package/dist/providers/anthropic.d.ts +1 -1
  27. package/dist/providers/azure.d.ts +3 -3
  28. package/dist/providers/baseten.d.ts +2 -2
  29. package/dist/providers/cerebras.d.ts +2 -2
  30. package/dist/providers/cloudflare-ai-gateway.d.ts +6 -6
  31. package/dist/providers/cloudflare-workers-ai.d.ts +2 -2
  32. package/dist/providers/cohere.d.ts +4 -4
  33. package/dist/providers/deepinfra.d.ts +2 -2
  34. package/dist/providers/deepseek.d.ts +2 -2
  35. package/dist/providers/digitalocean.d.ts +3 -3
  36. package/dist/providers/fireworks.d.ts +2 -2
  37. package/dist/providers/google-vertex-chat.d.ts +1 -1
  38. package/dist/providers/google-vertex-messages.d.ts +1 -1
  39. package/dist/providers/google-vertex-mistral.d.ts +1 -1
  40. package/dist/providers/google-vertex-responses.d.ts +1 -1
  41. package/dist/providers/groq.d.ts +2 -2
  42. package/dist/providers/meta.d.ts +3 -3
  43. package/dist/providers/minimax.d.ts +3 -3
  44. package/dist/providers/mistral.d.ts +2 -2
  45. package/dist/providers/moonshot.d.ts +3 -3
  46. package/dist/providers/openai-compatible-responses.d.ts +1 -1
  47. package/dist/providers/openai-compatible.d.ts +1 -1
  48. package/dist/providers/openai.d.ts +2 -2
  49. package/dist/providers/openrouter.d.ts +3 -3
  50. package/dist/providers/togetherai.d.ts +2 -2
  51. package/dist/providers/venice.d.ts +1 -1
  52. package/dist/providers/xai.d.ts +1 -1
  53. package/dist/providers/zai-coding-plan.d.ts +3 -3
  54. package/dist/providers/zai.d.ts +1 -1
  55. package/package.json +3 -3
@@ -73,6 +73,7 @@ export declare const route: import("../route/client.js").Route<{
73
73
  })[];
74
74
  readonly stream: true;
75
75
  readonly max_tokens?: number | undefined;
76
+ readonly temperature?: number | undefined;
76
77
  readonly tools?: readonly {
77
78
  readonly type: "function";
78
79
  readonly function: {
@@ -85,7 +86,6 @@ export declare const route: import("../route/client.js").Route<{
85
86
  };
86
87
  }[] | undefined;
87
88
  readonly stop?: readonly string[] | undefined;
88
- readonly temperature?: number | undefined;
89
89
  readonly tool_choice?: "auto" | "none" | "any" | {
90
90
  readonly type: "function";
91
91
  readonly function: {
@@ -164,6 +164,7 @@ export declare const routes: import("../route/client.js").Route<{
164
164
  })[];
165
165
  readonly stream: true;
166
166
  readonly max_tokens?: number | undefined;
167
+ readonly temperature?: number | undefined;
167
168
  readonly tools?: readonly {
168
169
  readonly type: "function";
169
170
  readonly function: {
@@ -176,7 +177,6 @@ export declare const routes: import("../route/client.js").Route<{
176
177
  };
177
178
  }[] | undefined;
178
179
  readonly stop?: readonly string[] | undefined;
179
- readonly temperature?: number | undefined;
180
180
  readonly tool_choice?: "auto" | "none" | "any" | {
181
181
  readonly type: "function";
182
182
  readonly function: {
@@ -224,6 +224,7 @@ export declare const routes: (Route<{
224
224
  readonly metadata?: {
225
225
  readonly user_id?: string | null | undefined;
226
226
  } | undefined;
227
+ readonly temperature?: number | undefined;
227
228
  readonly tools?: readonly {
228
229
  readonly description: string;
229
230
  readonly name: string;
@@ -243,7 +244,6 @@ export declare const routes: (Route<{
243
244
  readonly ttl?: "1h" | "5m" | undefined;
244
245
  } | undefined;
245
246
  }[] | undefined;
246
- readonly temperature?: number | undefined;
247
247
  readonly thinking?: {
248
248
  readonly type: "enabled";
249
249
  readonly budget_tokens: number;
@@ -437,6 +437,7 @@ export declare const routes: (Route<{
437
437
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
438
438
  readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
439
439
  } | undefined;
440
+ readonly temperature?: number | undefined;
440
441
  readonly tools?: readonly ({
441
442
  readonly [x: string]: unknown;
442
443
  readonly type: string;
@@ -452,7 +453,6 @@ export declare const routes: (Route<{
452
453
  readonly text?: {
453
454
  readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
454
455
  } | undefined;
455
- readonly temperature?: number | undefined;
456
456
  readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
457
457
  readonly tool_choice?: "required" | "auto" | "none" | {
458
458
  readonly type: "function";
@@ -567,6 +567,7 @@ export declare const routes: (Route<{
567
567
  readonly stream: true;
568
568
  readonly max_completion_tokens?: number | undefined;
569
569
  readonly max_tokens?: number | undefined;
570
+ readonly temperature?: number | undefined;
570
571
  readonly tools?: readonly {
571
572
  readonly function: {
572
573
  readonly description: string;
@@ -583,7 +584,6 @@ export declare const routes: (Route<{
583
584
  } | undefined;
584
585
  }[] | undefined;
585
586
  readonly stop?: readonly string[] | undefined;
586
- readonly temperature?: number | undefined;
587
587
  readonly seed?: number | undefined;
588
588
  readonly thinking?: {
589
589
  readonly type: string;
@@ -149,6 +149,7 @@ export declare const routes: import("../route/client.js").Route<{
149
149
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
150
150
  readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
151
151
  } | undefined;
152
+ readonly temperature?: number | undefined;
152
153
  readonly tools?: readonly ({
153
154
  readonly [x: string]: unknown;
154
155
  readonly type: string;
@@ -164,7 +165,6 @@ export declare const routes: import("../route/client.js").Route<{
164
165
  readonly text?: {
165
166
  readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
166
167
  } | undefined;
167
- readonly temperature?: number | undefined;
168
168
  readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
169
169
  readonly tool_choice?: "required" | "auto" | "none" | {
170
170
  readonly type: "function";
@@ -101,6 +101,7 @@ export declare const routes: import("../route/client.js").Route<{
101
101
  readonly stream: true;
102
102
  readonly max_completion_tokens?: number | undefined;
103
103
  readonly max_tokens?: number | undefined;
104
+ readonly temperature?: number | undefined;
104
105
  readonly tools?: readonly {
105
106
  readonly function: {
106
107
  readonly description: string;
@@ -117,7 +118,6 @@ export declare const routes: import("../route/client.js").Route<{
117
118
  } | undefined;
118
119
  }[] | undefined;
119
120
  readonly stop?: readonly string[] | undefined;
120
- readonly temperature?: number | undefined;
121
121
  readonly seed?: number | undefined;
122
122
  readonly tool_choice?: "required" | "auto" | "none" | {
123
123
  readonly type: "function";
@@ -96,6 +96,7 @@ export declare const routes: (Route<{
96
96
  readonly stream: true;
97
97
  readonly max_completion_tokens?: number | undefined;
98
98
  readonly max_tokens?: number | undefined;
99
+ readonly temperature?: number | undefined;
99
100
  readonly tools?: readonly {
100
101
  readonly function: {
101
102
  readonly description: string;
@@ -112,7 +113,6 @@ export declare const routes: (Route<{
112
113
  } | undefined;
113
114
  }[] | undefined;
114
115
  readonly stop?: readonly string[] | undefined;
115
- readonly temperature?: number | undefined;
116
116
  readonly seed?: number | undefined;
117
117
  readonly tool_choice?: "required" | "auto" | "none" | {
118
118
  readonly type: "function";
@@ -264,6 +264,7 @@ export declare const routes: (Route<{
264
264
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
265
265
  readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
266
266
  } | undefined;
267
+ readonly temperature?: number | undefined;
267
268
  readonly tools?: readonly ({
268
269
  readonly type: "function";
269
270
  readonly description: string;
@@ -299,7 +300,6 @@ export declare const routes: (Route<{
299
300
  readonly text?: {
300
301
  readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
301
302
  } | undefined;
302
- readonly temperature?: number | undefined;
303
303
  readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
304
304
  readonly context_management?: readonly {
305
305
  readonly type: "compaction";
@@ -295,6 +295,7 @@ export declare const protocol: Protocol<{
295
295
  readonly stream: true;
296
296
  readonly max_completion_tokens?: number | undefined;
297
297
  readonly max_tokens?: number | undefined;
298
+ readonly temperature?: number | undefined;
298
299
  readonly tools?: readonly {
299
300
  readonly function: {
300
301
  readonly description: string;
@@ -311,7 +312,6 @@ export declare const protocol: Protocol<{
311
312
  } | undefined;
312
313
  }[] | undefined;
313
314
  readonly stop?: readonly string[] | undefined;
314
- readonly temperature?: number | undefined;
315
315
  readonly seed?: number | undefined;
316
316
  readonly tool_choice?: "required" | "auto" | "none" | {
317
317
  readonly type: "function";
@@ -490,6 +490,7 @@ export declare const route: Route<{
490
490
  readonly stream: true;
491
491
  readonly max_completion_tokens?: number | undefined;
492
492
  readonly max_tokens?: number | undefined;
493
+ readonly temperature?: number | undefined;
493
494
  readonly tools?: readonly {
494
495
  readonly function: {
495
496
  readonly description: string;
@@ -506,7 +507,6 @@ export declare const route: Route<{
506
507
  } | undefined;
507
508
  }[] | undefined;
508
509
  readonly stop?: readonly string[] | undefined;
509
- readonly temperature?: number | undefined;
510
510
  readonly seed?: number | undefined;
511
511
  readonly tool_choice?: "required" | "auto" | "none" | {
512
512
  readonly type: "function";
@@ -613,6 +613,7 @@ export declare const routes: Route<{
613
613
  readonly stream: true;
614
614
  readonly max_completion_tokens?: number | undefined;
615
615
  readonly max_tokens?: number | undefined;
616
+ readonly temperature?: number | undefined;
616
617
  readonly tools?: readonly {
617
618
  readonly function: {
618
619
  readonly description: string;
@@ -629,7 +630,6 @@ export declare const routes: Route<{
629
630
  } | undefined;
630
631
  }[] | undefined;
631
632
  readonly stop?: readonly string[] | undefined;
632
- readonly temperature?: number | undefined;
633
633
  readonly seed?: number | undefined;
634
634
  readonly tool_choice?: "required" | "auto" | "none" | {
635
635
  readonly type: "function";
@@ -99,6 +99,7 @@ export declare const route: Route<{
99
99
  readonly stream: true;
100
100
  readonly max_completion_tokens?: number | undefined;
101
101
  readonly max_tokens?: number | undefined;
102
+ readonly temperature?: number | undefined;
102
103
  readonly tools?: readonly {
103
104
  readonly function: {
104
105
  readonly description: string;
@@ -115,7 +116,6 @@ export declare const route: Route<{
115
116
  } | undefined;
116
117
  }[] | undefined;
117
118
  readonly stop?: readonly string[] | undefined;
118
- readonly temperature?: number | undefined;
119
119
  readonly seed?: number | undefined;
120
120
  readonly tool_choice?: "required" | "auto" | "none" | {
121
121
  readonly type: "function";
@@ -221,6 +221,7 @@ export declare const routes: Route<{
221
221
  readonly stream: true;
222
222
  readonly max_completion_tokens?: number | undefined;
223
223
  readonly max_tokens?: number | undefined;
224
+ readonly temperature?: number | undefined;
224
225
  readonly tools?: readonly {
225
226
  readonly function: {
226
227
  readonly description: string;
@@ -237,7 +238,6 @@ export declare const routes: Route<{
237
238
  } | undefined;
238
239
  }[] | undefined;
239
240
  readonly stop?: readonly string[] | undefined;
240
- readonly temperature?: number | undefined;
241
241
  readonly seed?: number | undefined;
242
242
  readonly tool_choice?: "required" | "auto" | "none" | {
243
243
  readonly type: "function";
@@ -112,6 +112,7 @@ export declare const routes: Route<{
112
112
  } | undefined;
113
113
  readonly max_completion_tokens?: number | undefined;
114
114
  readonly max_tokens?: number | undefined;
115
+ readonly temperature?: number | undefined;
115
116
  readonly tools?: readonly {
116
117
  readonly function: {
117
118
  readonly description: string;
@@ -129,7 +130,6 @@ export declare const routes: Route<{
129
130
  }[] | undefined;
130
131
  readonly stop?: readonly string[] | undefined;
131
132
  readonly user?: string | undefined;
132
- readonly temperature?: number | undefined;
133
133
  readonly seed?: number | undefined;
134
134
  readonly tool_choice?: "required" | "auto" | "none" | {
135
135
  readonly type: "function";
@@ -107,6 +107,7 @@ export declare const routes: (Route<{
107
107
  readonly stream: true;
108
108
  readonly max_completion_tokens?: number | undefined;
109
109
  readonly max_tokens?: number | undefined;
110
+ readonly temperature?: number | undefined;
110
111
  readonly tools?: readonly {
111
112
  readonly function: {
112
113
  readonly description: string;
@@ -123,7 +124,6 @@ export declare const routes: (Route<{
123
124
  } | undefined;
124
125
  }[] | undefined;
125
126
  readonly stop?: readonly string[] | undefined;
126
- readonly temperature?: number | undefined;
127
127
  readonly seed?: number | undefined;
128
128
  readonly tool_choice?: "required" | "auto" | "none" | {
129
129
  readonly type: "function";
@@ -153,6 +153,7 @@ export declare const routes: (Route<{
153
153
  readonly summary?: "auto" | "concise" | "detailed" | undefined;
154
154
  readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
155
155
  } | undefined;
156
+ readonly temperature?: number | undefined;
156
157
  readonly tools?: readonly ({
157
158
  readonly [x: string]: unknown;
158
159
  readonly type: string;
@@ -168,7 +169,6 @@ export declare const routes: (Route<{
168
169
  readonly text?: {
169
170
  readonly verbosity?: import("../protocols/utils/open-responses-options.js").TextVerbosity | undefined;
170
171
  } | undefined;
171
- readonly temperature?: number | undefined;
172
172
  readonly service_tier?: import("../protocols/utils/open-responses-options.js").ServiceTier | undefined;
173
173
  readonly tool_choice?: "required" | "auto" | "none" | {
174
174
  readonly type: "function";
@@ -283,6 +283,7 @@ export declare const routes: (Route<{
283
283
  readonly stream: true;
284
284
  readonly max_completion_tokens?: number | undefined;
285
285
  readonly max_tokens?: number | undefined;
286
+ readonly temperature?: number | undefined;
286
287
  readonly tools?: readonly {
287
288
  readonly function: {
288
289
  readonly description: string;
@@ -299,7 +300,6 @@ export declare const routes: (Route<{
299
300
  } | undefined;
300
301
  }[] | undefined;
301
302
  readonly stop?: readonly string[] | undefined;
302
- readonly temperature?: number | undefined;
303
303
  readonly seed?: number | undefined;
304
304
  readonly thinking?: {
305
305
  readonly type?: string | undefined;
@@ -520,6 +520,7 @@ export declare const routes: (Route<{
520
520
  readonly metadata?: {
521
521
  readonly user_id?: string | null | undefined;
522
522
  } | undefined;
523
+ readonly temperature?: number | undefined;
523
524
  readonly tools?: readonly {
524
525
  readonly description: string;
525
526
  readonly name: string;
@@ -539,7 +540,6 @@ export declare const routes: (Route<{
539
540
  readonly ttl?: "1h" | "5m" | undefined;
540
541
  } | undefined;
541
542
  }[] | undefined;
542
- readonly temperature?: number | undefined;
543
543
  readonly thinking?: {
544
544
  readonly type: string;
545
545
  } | undefined;
@@ -101,6 +101,7 @@ export declare const routes: Route<{
101
101
  readonly stream: true;
102
102
  readonly max_completion_tokens?: number | undefined;
103
103
  readonly max_tokens?: number | undefined;
104
+ readonly temperature?: number | undefined;
104
105
  readonly tools?: readonly {
105
106
  readonly function: {
106
107
  readonly description: string;
@@ -117,7 +118,6 @@ export declare const routes: Route<{
117
118
  } | undefined;
118
119
  }[] | undefined;
119
120
  readonly stop?: readonly string[] | undefined;
120
- readonly temperature?: number | undefined;
121
121
  readonly seed?: number | undefined;
122
122
  readonly thinking?: {
123
123
  readonly type?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "2.0.30",
3
+ "version": "2.0.31",
4
4
  "name": "@opencode/ai",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  "devDependencies": {
35
35
  "@clack/prompts": "1.0.0-alpha.1",
36
36
  "@effect/platform-node": "4.0.1",
37
- "@opencode/http-recorder": "2.0.30",
37
+ "@opencode/http-recorder": "2.0.31",
38
38
  "@tsconfig/bun": "1.0.9",
39
39
  "@types/bun": "1.4.0",
40
40
  "@typescript/native-preview": "7.0.0-dev.20251207.1",
@@ -44,7 +44,7 @@
44
44
  "@aws-sdk/credential-providers": "3.1057.0",
45
45
  "@smithy/eventstream-codec": "4.2.14",
46
46
  "@smithy/util-utf8": "4.2.2",
47
- "@opencode/schema": "2.0.30",
47
+ "@opencode/schema": "2.0.31",
48
48
  "aws4fetch": "1.0.20",
49
49
  "effect": "4.0.1",
50
50
  "google-auth-library": "10.5.0"