@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.
- package/package.json +1 -1
- package/src/provider.ts +7 -2
package/package.json
CHANGED
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
|
-
|
|
19
|
-
|
|
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,
|