cmd: set OpenCode default model in config (#15127)

This commit is contained in:
Jeffrey Morgan
2026-03-29 12:11:36 -07:00
committed by GitHub
parent b7bda92d52
commit 31f968fe1f
2 changed files with 20 additions and 0 deletions

View File

@@ -147,6 +147,7 @@ func (o *OpenCode) Edit(modelList []string) error {
ollama["models"] = models
provider["ollama"] = ollama
config["provider"] = provider
config["model"] = "ollama/" + modelList[0]
configData, err := json.MarshalIndent(config, "", " ")
if err != nil {