fix(setup): add alibaba to provider model selection
Same bug as opencode-zen/go — alibaba fell through to the OpenRouter model list instead of using _setup_provider_model_selection() which probes the provider's own /models endpoint. All user-selectable providers now have correct model selection routing.
This commit is contained in:
parent
7289256114
commit
71cf7ad11a
1 changed files with 1 additions and 1 deletions
|
|
@ -1714,7 +1714,7 @@ def setup_model_provider(config: dict):
|
||||||
model_cfg = _model_config_dict(config)
|
model_cfg = _model_config_dict(config)
|
||||||
model_cfg["api_mode"] = "chat_completions"
|
model_cfg["api_mode"] = "chat_completions"
|
||||||
config["model"] = model_cfg
|
config["model"] = model_cfg
|
||||||
elif selected_provider in ("copilot", "zai", "kimi-coding", "minimax", "minimax-cn", "kilocode", "ai-gateway", "opencode-zen", "opencode-go"):
|
elif selected_provider in ("copilot", "zai", "kimi-coding", "minimax", "minimax-cn", "kilocode", "ai-gateway", "opencode-zen", "opencode-go", "alibaba"):
|
||||||
_setup_provider_model_selection(
|
_setup_provider_model_selection(
|
||||||
config, selected_provider, current_model,
|
config, selected_provider, current_model,
|
||||||
prompt_choice, prompt,
|
prompt_choice, prompt,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue