Merge pull request #2277 from NousResearch/hermes/hermes-5d6932ba

fix(setup): OpenCode Zen/Go show OpenRouter models instead of their own
This commit is contained in:
Teknium
2026-03-20 22:42:33 -07:00
committed by GitHub

View File

@@ -1714,7 +1714,7 @@ def setup_model_provider(config: dict):
model_cfg = _model_config_dict(config)
model_cfg["api_mode"] = "chat_completions"
config["model"] = model_cfg
elif selected_provider in ("copilot", "zai", "kimi-coding", "minimax", "minimax-cn", "kilocode", "ai-gateway"):
elif selected_provider in ("copilot", "zai", "kimi-coding", "minimax", "minimax-cn", "kilocode", "ai-gateway", "opencode-zen", "opencode-go"):
_setup_provider_model_selection(
config, selected_provider, current_model,
prompt_choice, prompt,