@opencode/ai 0.0.0-dev-20349 → 0.0.0-dev-20352
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-error.js +4 -1
- package/package.json +3 -3
package/dist/provider-error.js
CHANGED
|
@@ -13,9 +13,12 @@ const patterns = [
|
|
|
13
13
|
/tokens in request more than max tokens allowed/i,
|
|
14
14
|
/maximum prompt length is \d+/i,
|
|
15
15
|
/reduce the length of the messages/i,
|
|
16
|
+
// DeepInfra
|
|
17
|
+
/requested input length \d+ exceeds maximum input length/i,
|
|
16
18
|
/maximum context length is \d+ tokens/i,
|
|
17
19
|
/exceeds (?:the )?maximum allowed input length of [\d,]+ tokens?/i,
|
|
18
|
-
|
|
20
|
+
// Novita omits the token counts.
|
|
21
|
+
/input(?: \(\d+ tokens\))? is longer than the model'?s context length/i,
|
|
19
22
|
/exceeds the limit of \d+/i,
|
|
20
23
|
/exceeds the available context size/i,
|
|
21
24
|
/greater than the context length/i,
|
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-20352",
|
|
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.0-rc.112",
|
|
37
|
-
"@opencode/http-recorder": "0.0.0-dev-
|
|
37
|
+
"@opencode/http-recorder": "0.0.0-dev-20352",
|
|
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": "0.0.0-dev-
|
|
47
|
+
"@opencode/schema": "0.0.0-dev-20352",
|
|
48
48
|
"aws4fetch": "1.0.20",
|
|
49
49
|
"effect": "4.0.0-rc.112",
|
|
50
50
|
"google-auth-library": "10.5.0"
|