@alisio/plugin-opencode 0.1.0-alpha.6 → 0.1.0-alpha.7
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/provider.js +3 -3
- package/package.json +3 -3
package/dist/provider.js
CHANGED
|
@@ -350,7 +350,7 @@ export class OpenCodeGatewayProvider {
|
|
|
350
350
|
if (completed.some((call) => !call.id || !call.name))
|
|
351
351
|
throw new Error("Incomplete tool call");
|
|
352
352
|
if (finish === "length" && !text.trim())
|
|
353
|
-
throw new Error("OpenCode chat response cut off by max output tokens before any usable content; raise limits.maxOutputTokens");
|
|
353
|
+
throw new Error("OpenCode chat response cut off by max output tokens before any usable content; raise limits.maxOutputTokens (/settings → Agent max output tokens)");
|
|
354
354
|
yield {
|
|
355
355
|
type: "completed",
|
|
356
356
|
message: {
|
|
@@ -426,7 +426,7 @@ export class OpenCodeGatewayProvider {
|
|
|
426
426
|
.map((item) => item.text)
|
|
427
427
|
.join("");
|
|
428
428
|
if (!text.trim())
|
|
429
|
-
throw new Error("OpenCode Responses response cut off by max output tokens before any usable content; raise limits.maxOutputTokens");
|
|
429
|
+
throw new Error("OpenCode Responses response cut off by max output tokens before any usable content; raise limits.maxOutputTokens (/settings → Agent max output tokens)");
|
|
430
430
|
if (calls.some((call) => !call.id || !call.name))
|
|
431
431
|
throw new Error("Incomplete tool call");
|
|
432
432
|
const u = event.response.usage;
|
|
@@ -607,7 +607,7 @@ export class OpenCodeGatewayProvider {
|
|
|
607
607
|
}
|
|
608
608
|
if (truncated) {
|
|
609
609
|
if (!text.trim())
|
|
610
|
-
throw new Error("OpenCode Messages response cut off by max output tokens before any usable content; raise limits.maxOutputTokens");
|
|
610
|
+
throw new Error("OpenCode Messages response cut off by max output tokens before any usable content; raise limits.maxOutputTokens (/settings → Agent max output tokens)");
|
|
611
611
|
yield {
|
|
612
612
|
type: "completed",
|
|
613
613
|
message: { role: "assistant", text, calls, providerData: blocks, truncated: true },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alisio/plugin-opencode",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.7",
|
|
4
4
|
"description": "Built-in OpenCode Console (Zen) model provider for Alisio.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"node": ">=22.16"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@alisio/sdk": "^0.1.0-alpha.
|
|
24
|
+
"@alisio/sdk": "^0.1.0-alpha.6"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@alisio/sdk": "0.1.0-alpha.
|
|
27
|
+
"@alisio/sdk": "0.1.0-alpha.6"
|
|
28
28
|
},
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public",
|