@yeaft/webchat-agent 0.1.121 → 0.1.122

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/claude.js +2 -7
  2. 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
- // 200k context models: Claude 3.5, Claude Sonnet 4, Claude Opus 4, etc.
28
- if (name.includes('claude-sonnet-4') || name.includes('claude-opus-4') ||
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeaft/webchat-agent",
3
- "version": "0.1.121",
3
+ "version": "0.1.122",
4
4
  "description": "Remote agent for Yeaft WebChat — connects worker machines to the central server",
5
5
  "main": "index.js",
6
6
  "type": "module",