@haoyiyin/9router 0.1.6 → 0.1.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/provider.ts +7 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haoyiyin/9router",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "description": "Pi extension — 9Router provider (OpenCode Free oc/-free models + router models) + fetch/search/transcribe tools",
package/src/provider.ts CHANGED
@@ -15,8 +15,13 @@ import { fetchModelsDevIndex, lookupInIndex, routerBaseUrl, routerModels } from
15
15
  import { getZenFreeModels } from "./zen.ts";
16
16
  import { loadConfig, type RouterConfig } from "./config.ts";
17
17
 
18
- const DEFAULT_CONTEXT_WINDOW = 128_000;
19
- const DEFAULT_MAX_TOKENS = 16_384;
18
+ // ponytail: 128k was the old generic fallback; combo members bottom out at 200k,
19
+ // so the default now matches the smallest combo upstream. Raise again if the
20
+ // router ever exposes combo capabilities.contextWindow.
21
+ const DEFAULT_CONTEXT_WINDOW = 200_000;
22
+ // ponytail: 16k was the old generic fallback; combo members bottom out at 128k,
23
+ // so the default now matches the smallest combo upstream max output.
24
+ const DEFAULT_MAX_TOKENS = 128_000;
20
25
 
21
26
  const ZERO_COST = {
22
27
  input: 0,