fix: correct error message for missing model config
This commit is contained in:
parent
c910820cdb
commit
f39f77d155
@ -101,10 +101,10 @@ export function createConfigHandler(deps: ConfigHandlerDeps) {
|
|||||||
|
|
||||||
if (!(config.model as string | undefined)?.trim()) {
|
if (!(config.model as string | undefined)?.trim()) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
'oh-my-opencode requires a default model to be configured.\n' +
|
'oh-my-opencode requires a default model.\n\n' +
|
||||||
'Please set one in OpenCode:\n' +
|
'Add this to ~/.config/opencode/opencode.jsonc:\n\n' +
|
||||||
' opencode config set model "provider/model-name"\n' +
|
' "model": "anthropic/claude-sonnet-4-5"\n\n' +
|
||||||
'Example: opencode config set model "anthropic/claude-sonnet-4-5"'
|
'(Replace with your preferred provider/model)'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user