picoclaw/web/frontend/src/components/models
Guoguo 30938df40b
fix(web): use stored API key when fetching models for saved providers (#2910)
When editing an existing model, the edit form initializes apiKey as
empty for security. This caused "Fetch Available Models" to reject with
"please enter API Key first" even though the key is saved server-side.

Add model_index support: the frontend passes the model's index to the
backend, which looks up the stored key from config. The key never leaves
the backend. Provider and API base are validated to prevent a stored key
from being sent to an unrelated endpoint.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-21 15:51:45 +08:00
..
add-model-sheet.tsx fix(agent): honor explicit thinking off (#2898) 2026-05-21 11:07:39 +08:00
catalog-dialog.tsx refactor(models): unify provider metadata around backend catalog (#2896) 2026-05-20 11:50:34 +08:00
delete-model-dialog.tsx feat(web): migrate launcher to modular web frontend/backend and improve management UX (#1275) 2026-03-09 19:42:03 +08:00
edit-model-sheet.tsx fix(web): use stored API key when fetching models for saved providers (#2910) 2026-05-21 15:51:45 +08:00
fetch-models-dialog.tsx fix(web): use stored API key when fetching models for saved providers (#2910) 2026-05-21 15:51:45 +08:00
model-card.tsx feat(provider,web,asr): enhance model management with explicit provider metadata (#2701) 2026-05-06 16:06:49 +08:00
model-provider-form-shared.ts refactor(models): unify provider metadata around backend catalog (#2896) 2026-05-20 11:50:34 +08:00
model-validation.ts refactor(models): unify provider metadata around backend catalog (#2896) 2026-05-20 11:50:34 +08:00
models-page.tsx refactor(models): unify provider metadata around backend catalog (#2896) 2026-05-20 11:50:34 +08:00
provider-combobox.tsx refactor(models): unify provider metadata around backend catalog (#2896) 2026-05-20 11:50:34 +08:00
provider-icon.tsx refactor(models): unify provider metadata around backend catalog (#2896) 2026-05-20 11:50:34 +08:00
provider-registry.ts refactor(models): unify provider metadata around backend catalog (#2896) 2026-05-20 11:50:34 +08:00
provider-section.tsx refactor(models): unify provider metadata around backend catalog (#2896) 2026-05-20 11:50:34 +08:00
test-model-dialog.tsx feat(web,api): test connection with real connectivity verification (#2833) 2026-05-18 09:47:44 +08:00