Alpha 276206ff4b fix: resolve bare alias to full model key in buildModelOptions
When the agent config stored a model alias (e.g. 'k2p5') instead of
the full qualified key (e.g. 'kimi-coding/k2p5'), buildModelOptions
would add the bare alias as an option value. The backend would then
resolve 'k2p5' using the default provider (minimax), producing
'minimax/k2p5' which is not in the allowed list.

Now buildModelOptions reverse-matches the alias to the full key before
using the value, ensuring the select always submits a complete
provider/key pair.
2026-03-21 11:20:01 +08:00
..