Skip to main content

resolve_opencode_model

Function resolve_opencode_model 

Source
pub fn resolve_opencode_model(model_override: Option<&str>) -> String
Expand description

Resolve the opencode model name.

Precedence: explicit model arg > XDG llm.opencode_model (config set)

default opencode/big-pickle.

NOTE: intentionally does NOT fall back to llm.model because that key typically holds a codex/claude model (e.g. “gpt-5.4-mini”) that opencode does not recognise — cross-contamination caused ProviderModelNotFoundError (v1.0.90 audit).