@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 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
@@ -21,7 +21,7 @@ export declare const DISCRETESTACK_PROVIDER: {
21
21
  maxTokens: number;
22
22
  thinkingLevelMap: {
23
23
  off: string;
24
- minimal: null;
24
+ minimal: string;
25
25
  low: string;
26
26
  medium: null;
27
27
  high: string;
@@ -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;AAuBjE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBT,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: null, low: 'low', medium: null, high: 'high', xhigh: null, max: 'max' },
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,
@@ -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,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE;IACjH,MAAM,EAAE;QACN,aA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C5B,gBAAgB,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE;IACnH,MAAM,EAAE;QACN,aAAa,EAAE,KAAK;QACpB,qBAAqB,EAAE,KAAK;QAC5B,uBAAuB,EAAE,IAAI;QAC7B,cAAc,EAAE,YAAY;KAC7B;CACsD,CAAC;AAE1D,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE,0CAA0C;IACnD,GAAG,EAAE,oBAAoB;IACzB,MAAM,EAAE,MAAM,yBAAyB,GAAG;IAC1C,MAAM,EAAE;QACN;YACE,GAAG,SAAS;YACZ,EAAE,EAAE,0BAA0B;YAC9B,IAAI,EAAE,mBAAmB;YACzB,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EAAE;SACrE;QACD;YACE,GAAG,SAAS;YACZ,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.0.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
+ }