@yeaft/webchat-agent 0.1.121 → 0.1.123
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/claude.js +2 -7
- package/package.json +1 -1
package/claude.js
CHANGED
|
@@ -24,13 +24,8 @@ export function getModelContextConfig(modelName) {
|
|
|
24
24
|
if (name.includes('1m') || name.includes('1000k')) {
|
|
25
25
|
return { maxContext: 1000000, compactThreshold: 256000 };
|
|
26
26
|
}
|
|
27
|
-
//
|
|
28
|
-
|
|
29
|
-
name.includes('claude-3-5') || name.includes('claude-3.5') ||
|
|
30
|
-
name.includes('200k')) {
|
|
31
|
-
return { maxContext: 200000, compactThreshold: 160000 };
|
|
32
|
-
}
|
|
33
|
-
// Default: 128k (Claude 3 Haiku, older models, unknown)
|
|
27
|
+
// Default: 128k — Copilot API models (Sonnet 4, Opus 4, Claude 3.5 etc.)
|
|
28
|
+
// report 200k context but actual usable window is 128k
|
|
34
29
|
return { maxContext: 128000, compactThreshold: 110000 };
|
|
35
30
|
}
|
|
36
31
|
|