mirror of
https://github.com/lemon07r/opencode-kimi-full.git
synced 2026-07-18 08:05:52 +02:00
docs: align auto variant with live config
This commit is contained in:
@@ -74,7 +74,7 @@ After the plugin is installed, add a provider entry in `~/.config/opencode/openc
|
||||
"options": {},
|
||||
"variants": {
|
||||
"off": { "reasoning_effort": "off" },
|
||||
"auto": {},
|
||||
"auto": { "reasoning_effort": "auto" },
|
||||
"low": { "reasoning_effort": "low" },
|
||||
"medium": { "reasoning_effort": "medium" },
|
||||
"high": { "reasoning_effort": "high" }
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ function buildConfigBlock(info: { model_id: string; context_length?: number; dis
|
||||
...(ctx > 0 ? { limit: { context: ctx } } : {}),
|
||||
variants: {
|
||||
off: { reasoning_effort: "off" },
|
||||
auto: {},
|
||||
auto: { reasoning_effort: "auto" },
|
||||
low: { reasoning_effort: "low" },
|
||||
medium: { reasoning_effort: "medium" },
|
||||
high: { reasoning_effort: "high" },
|
||||
|
||||
+1
-1
@@ -412,6 +412,6 @@ test("auth callback prints a config snippet with top-level model variants", asyn
|
||||
const model = parsed.provider[PROVIDER_ID]!.models[MODEL_ID]!
|
||||
expect(model.limit?.context).toBe(262144)
|
||||
expect(model.variants?.off).toEqual({ reasoning_effort: "off" })
|
||||
expect(model.variants?.auto).toEqual({})
|
||||
expect(model.variants?.auto).toEqual({ reasoning_effort: "auto" })
|
||||
expect(model.options?.variants).toBeUndefined()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user