mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 02:04:05 +00:00
feat(ai): add openrouter "auto" model alias (#1361)
Add a manually inserted "auto" model entry for OpenRouter alongside the existing "openrouter/auto" entry, allowing users to select the auto-routing model with a shorter identifier. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f9161c4d4e
commit
3fb33da429
2 changed files with 63 additions and 46 deletions
|
|
@ -860,11 +860,11 @@ async function generateModels() {
|
|||
});
|
||||
}
|
||||
|
||||
// Add missing OpenRouter model
|
||||
if (!allModels.some(m => m.provider === "openrouter" && m.id === "openrouter/auto")) {
|
||||
// Add "auto" alias for openrouter/auto
|
||||
if (!allModels.some(m => m.provider === "openrouter" && m.id === "auto")) {
|
||||
allModels.push({
|
||||
id: "openrouter/auto",
|
||||
name: "OpenRouter: Auto Router",
|
||||
id: "auto",
|
||||
name: "Auto",
|
||||
api: "openai-completions",
|
||||
provider: "openrouter",
|
||||
baseUrl: "https://openrouter.ai/api/v1",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue