diff --git a/packages/trae/index.mjs b/packages/trae/index.mjs index 397ada8..356daf9 100644 --- a/packages/trae/index.mjs +++ b/packages/trae/index.mjs @@ -2740,9 +2740,12 @@ const MAX = "-max" // same names, as reasoning_effort, so a level an agent picks is sent as Trae // spells it. OpenCode knows the three as low/high/xhigh, so the map goes both // ways. Trae's client names two more, medium and max (its bundle's -// reasoning_effort.{low,medium,high,extra_high,max}), handed out per model: -// its app offers DeepSeek V4.1 Flash max (#434), so they are spelled here too, -// and still offered only for a model whose entry names them. +// reasoning_effort.{low,medium,high,extra_high,max}), handed out per model, +// so they are spelled here too, and offered only for a model whose entry +// names them. No list seen yet names either: TRAE CN's app offers DeepSeek +// V4.1 Flash 轻/高/极高 (light/high/extra_high) alone, and its "Max" is the +// 更大上下文 (Max) 1M-window switch, which is the model id + MAX below, not a +// level (#434's screenshot). // // An entry without the config takes no level: Trae serves it at its own // default and nothing is sent. The plugin used to send none for every model, diff --git a/packages/trae/reasoning.test.mjs b/packages/trae/reasoning.test.mjs index 9ac1b8c..84cbf46 100644 --- a/packages/trae/reasoning.test.mjs +++ b/packages/trae/reasoning.test.mjs @@ -52,8 +52,9 @@ test("an entry's levels are offered as the variants agents pick, named as OpenCo // Trae's client names five levels (its bundle's // reasoning_effort.{low,medium,high,extra_high,max}), handed out per model. -// Its app offers DeepSeek V4.1 Flash max (#434, huajii); a list naming max -// beside light/high/extra_high lost it, so no agent could pick it. +// A list naming max beside light/high/extra_high lost it, so no agent could +// pick it. (#434's "max" turned out to be the app's 1M-window Max switch, +// deepseek-v4.1-flash-max; its levels are light/high/extra_high alone.) test("max and medium an entry names are offered and sent as Trae names them (#434)", async () => { expect(levelsOf({ reasoning_effort_config: { options: ["light", "high", "extra_high", "max"] } })).toEqual(["low", "high", "xhigh", "max"]) expect(levelsOf({ reasoning_effort_config: { options: ["light", "medium", "high"] } })).toEqual(["low", "medium", "high"])