From 36e2b62cf5105b65d82c50dc92b4f57871833a49 Mon Sep 17 00:00:00 2001 From: lemon07r Date: Fri, 17 Apr 2026 13:55:36 -0400 Subject: [PATCH] docs: align auto variant with live config --- README.md | 2 +- src/index.ts | 2 +- test/plugin.test.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 890e863..ad8863e 100644 --- a/README.md +++ b/README.md @@ -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" } diff --git a/src/index.ts b/src/index.ts index f2d0cb3..2be2bb1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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" }, diff --git a/test/plugin.test.ts b/test/plugin.test.ts index 7a66652..08e54a3 100644 --- a/test/plugin.test.ts +++ b/test/plugin.test.ts @@ -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() })