@toren-run/core 0.1.3 → 0.1.5
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/loop.js +2 -0
- package/package.json +1 -1
package/dist/loop.js
CHANGED
|
@@ -23,6 +23,8 @@ export function defaultContextWindow(model) {
|
|
|
23
23
|
return 200_000;
|
|
24
24
|
if (model.startsWith("openai/"))
|
|
25
25
|
return 128_000;
|
|
26
|
+
if (model.startsWith("bedrock/"))
|
|
27
|
+
return model.includes("anthropic") ? 200_000 : 128_000;
|
|
26
28
|
return undefined;
|
|
27
29
|
}
|
|
28
30
|
// ---- context compaction constants. Changing these mid-run invalidates in-flight
|