From f39f77d15543edc5da152712dd1fcaf9a4476bba Mon Sep 17 00:00:00 2001 From: Kenny Date: Sun, 18 Jan 2026 08:16:20 -0500 Subject: [PATCH] fix: correct error message for missing model config --- src/plugin-handlers/config-handler.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugin-handlers/config-handler.ts b/src/plugin-handlers/config-handler.ts index bbef7fd0..fedc14de 100644 --- a/src/plugin-handlers/config-handler.ts +++ b/src/plugin-handlers/config-handler.ts @@ -101,10 +101,10 @@ export function createConfigHandler(deps: ConfigHandlerDeps) { if (!(config.model as string | undefined)?.trim()) { throw new Error( - 'oh-my-opencode requires a default model to be configured.\n' + - 'Please set one in OpenCode:\n' + - ' opencode config set model "provider/model-name"\n' + - 'Example: opencode config set model "anthropic/claude-sonnet-4-5"' + 'oh-my-opencode requires a default model.\n\n' + + 'Add this to ~/.config/opencode/opencode.jsonc:\n\n' + + ' "model": "anthropic/claude-sonnet-4-5"\n\n' + + '(Replace with your preferred provider/model)' ) }