Codemini-CLI
Codemini-CLI copied to clipboard
Feature: multi-model / multi-provider profiles and in-chat model switching
Summary
CodeMini currently appears to support only one active gateway/provider profile at a time (settings → 网关: single 服务商 + 接口地址 + API 密钥 + 默认/快速模型). For daily use it is hard to keep several models ready and switch during a conversation.
Motivation
CodeMini really needs multi-model configuration:
- Save multiple provider profiles (e.g. OpenAI-compatible endpoint A, Anthropic, another DeepSeek/Ollama base URL), each with its own base URL, API key, default model, fast model, timeout.
- Mark one as default, but keep the others without wiping them when switching the active gateway.
- Switch models mid-conversation (slash command, picker, or session command), without opening settings and re-saving a single global gateway every time.
Today the UI effectively forces a single “current” OpenAI Compatible or Anthropic stack; changing the endpoint/model replaces the previous connection rather than adding another named profile.
Proposed UX (suggestion only)
- Settings: list of named profiles (
work-gpt,local-ollama,claude, …); add / edit / delete; set default. - In chat:
/modelor a model picker to switch for the current session (and optionally sticky for the next turn). - Persist profiles separately from “active profile for this session”.
Acceptance criteria
- [ ] More than one provider/model profile can be saved at once.
- [ ] Switching the active profile does not delete other saved profiles.
- [ ] User can change model for the current conversation without re-entering API key / base URL.
- [ ] Docs or in-app hint describe how to switch.
Context
Seen on the current CodeMini settings「网关」page: only one 服务商 block, one 接口地址, one API 密钥, one 默认模型 / 快速模型 pair.
Thanks!