feat(ui): add model support for custom providers and improve UX

- Support custom provider models in combos and model selection
- Display custom provider names instead of technical IDs
- Make model fields readonly (selected via modal)
- Only show connected providers (remove fallback)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
decolua
2026-02-06 09:39:10 +07:00
co-authored by Cursor
parent c6127412a6
commit a7a52be2d4
3 changed files with 121 additions and 64 deletions
@@ -88,22 +88,6 @@ export default function CLIToolsPageClient({ machineId }) {
});
});
if (models.length === 0) {
Object.entries(PROVIDER_MODELS).forEach(([alias, providerModels]) => {
providerModels.forEach(m => {
const modelValue = `${alias}/${m.id}`;
models.push({
value: modelValue,
label: `${alias}/${m.id}`,
provider: alias,
alias: alias,
connectionName: alias,
modelId: m.id,
});
});
});
}
return models;
};