@felan-ai/ext-discretestack 0.0.0 → 0.1.0
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/README.md +2 -1
- package/dist/provider.d.ts +1 -1
- package/dist/provider.d.ts.map +1 -1
- package/dist/provider.js +4 -1
- package/dist/provider.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -13,7 +13,8 @@ Prices are in USD per million tokens.
|
|
|
13
13
|
| DiscreteStack Compact (`glm-5.3-flash`) | $0.05 | $0.20 | $0.015 | $0 |
|
|
14
14
|
|
|
15
15
|
Both models accept text and images. Their supported thinking levels are `off`,
|
|
16
|
-
`low`, `high`, and `max`.
|
|
16
|
+
`minimal`, `low`, `high`, and `max`. The gateway has no minimal effort, so
|
|
17
|
+
`minimal` sends no reasoning, the same as `off`.
|
|
17
18
|
|
|
18
19
|
The gateway rejects a request when its prompt plus `max_tokens` exceeds
|
|
19
20
|
1,048,576 tokens. Each model therefore reports a 131,072-token output limit and
|
package/dist/provider.d.ts
CHANGED
package/dist/provider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,yBAAyB,kBAAkB,CAAC;AACzD,eAAO,MAAM,yBAAyB,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,yBAAyB,kBAAkB,CAAC;AACzD,eAAO,MAAM,yBAAyB,0BAA0B,CAAC;AA2BjE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBT,CAAC"}
|
package/dist/provider.js
CHANGED
|
@@ -5,13 +5,16 @@ export const DISCRETESTACK_API_KEY_ENV = 'DISCRETESTACK_API_KEY';
|
|
|
5
5
|
// the advertised window leaves room for a full response.
|
|
6
6
|
const GATEWAY_CONTEXT_TOKENS = 1_048_576;
|
|
7
7
|
const MAX_OUTPUT_TOKENS = 131_072;
|
|
8
|
+
// Small budgeted requests such as session titles ask for minimal reasoning. The gateway has no
|
|
9
|
+
// minimal effort, and Pi would otherwise round it up to low, which DeepSeek can spend entirely on
|
|
10
|
+
// reasoning before writing any text.
|
|
8
11
|
const chatModel = {
|
|
9
12
|
type: 'chat',
|
|
10
13
|
reasoning: true,
|
|
11
14
|
input: ['text', 'image'],
|
|
12
15
|
contextWindow: GATEWAY_CONTEXT_TOKENS - MAX_OUTPUT_TOKENS,
|
|
13
16
|
maxTokens: MAX_OUTPUT_TOKENS,
|
|
14
|
-
thinkingLevelMap: { off: 'none', minimal:
|
|
17
|
+
thinkingLevelMap: { off: 'none', minimal: 'none', low: 'low', medium: null, high: 'high', xhigh: null, max: 'max' },
|
|
15
18
|
compat: {
|
|
16
19
|
supportsStore: false,
|
|
17
20
|
supportsDeveloperRole: false,
|
package/dist/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../src/provider.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,yBAAyB,GAAG,eAAe,CAAC;AACzD,MAAM,CAAC,MAAM,yBAAyB,GAAG,uBAAuB,CAAC;AAEjE,iGAAiG;AACjG,kGAAkG;AAClG,yDAAyD;AACzD,MAAM,sBAAsB,GAAG,SAAS,CAAC;AACzC,MAAM,iBAAiB,GAAG,OAAO,CAAC;AAElC,MAAM,SAAS,GAAG;IAChB,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,IAAI;IACf,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,sBAAsB,GAAG,iBAAiB;IACzD,SAAS,EAAE,iBAAiB;IAC5B,gBAAgB,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"provider.js","sour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,EAAE,EAAE,eAAe;YACnB,IAAI,EAAE,uBAAuB;YAC7B,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAAE;SACpE;KACF;CACuB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@felan-ai/ext-discretestack",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "DiscreteStack LLM provider for Felan",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -43,4 +43,4 @@
|
|
|
43
43
|
"type-check": "tsc -p tsconfig.json --noEmit",
|
|
44
44
|
"test": "vitest run"
|
|
45
45
|
}
|
|
46
|
-
}
|
|
46
|
+
}
|