@yeaft/webchat-agent 1.0.356 → 1.0.357
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/local-runtime/version.json +1 -1
- package/local-runtime/web/app.bundle.js +43 -44
- package/local-runtime/web/app.bundle.js.gz +0 -0
- package/local-runtime/web/index.html +2 -2
- package/local-runtime/web/style.bundle.css +1 -1
- package/local-runtime/web/style.bundle.css.gz +0 -0
- package/package.json +1 -1
- package/yeaft/models.js +11 -7
|
Binary file
|
package/package.json
CHANGED
package/yeaft/models.js
CHANGED
|
@@ -430,13 +430,17 @@ export const OPENAI_MAX_REASONING_EFFORT_OPTIONS = ['low', 'medium', 'high', 'xh
|
|
|
430
430
|
export const ANTHROPIC_MANUAL_EFFORT_OPTIONS = ['low', 'medium', 'high'];
|
|
431
431
|
export const ANTHROPIC_ADAPTIVE_EFFORT_OPTIONS = ['low', 'medium', 'high', 'xhigh', 'max'];
|
|
432
432
|
export const ANTHROPIC_ADAPTIVE_MAX_EFFORT_OPTIONS = ['low', 'medium', 'high', 'max'];
|
|
433
|
-
// DeepSeek reasoning models (deepseek-reasoner / deepseek-r1
|
|
434
|
-
//
|
|
435
|
-
//
|
|
436
|
-
//
|
|
437
|
-
//
|
|
438
|
-
//
|
|
439
|
-
|
|
433
|
+
// DeepSeek reasoning models (deepseek-reasoner / deepseek-r1 / deepseek-v4-pro)
|
|
434
|
+
// expose a graded effort scale. DeepSeek V4 documents "high" and "max" as the
|
|
435
|
+
// effective levels: "xhigh" is mapped to "max" server-side and "low"/"medium"
|
|
436
|
+
// are mapped to "high". There is no "minimal" tier. We keep the full user-facing
|
|
437
|
+
// scale (including xhigh/max) so the UI can select the highest level; the wire
|
|
438
|
+
// path differs by protocol:
|
|
439
|
+
// - OpenAI-compatible surface → `reasoning.effort` (relay/proxy adapts to
|
|
440
|
+
// DeepSeek's wire format; xhigh/max pass through and the provider maps them).
|
|
441
|
+
// - Anthropic-compatible surface → `output_config.effort` (DeepSeek's Anthropic
|
|
442
|
+
// compatibility table explicitly supports `output_config` effort).
|
|
443
|
+
export const DEEPSEEK_REASONING_EFFORT_OPTIONS = ['low', 'medium', 'high', 'xhigh', 'max'];
|
|
440
444
|
|
|
441
445
|
const VALID_EFFORT_OPTIONS = new Set(['minimal', 'low', 'medium', 'high', 'xhigh', 'max']);
|
|
442
446
|
|