picoclaw/web/frontend/src/components/models
肆月 f6190b54de
feat(web,api): fetch models and saved catalog support (#2832)
* feat(web,api): add fetch models and saved catalog support

Split from PR #2752 (part 2 of 3).

Backend:
- /api/models/catalog endpoint for browsing remote model catalogs
- /api/models/fetch endpoint for fetching available models from providers
- Credential reuse with provider/API base matching for security
- Default API base resolution for providers without explicit base

Frontend:
- FetchModelsDialog for importing models from remote providers
- CatalogDialog for browsing and importing from model catalogs
- Static import for FetchModelsDialog (replaces dynamic import from PR1)
- Dynamic import retained for TestModelDialog (PR3 territory)

* fix(web,api): support bare-array responses in fetchOpenAICompatibleModels

* fix(web,api): tighten maskAPIKeyValue to match maskAPIKey policy

For 9-12 character keys, maskAPIKeyValue exposed first 4 + last 4
chars (only 1 char masked for a 9-char key). Now uses the same
policy as maskAPIKey: first 3 + last 2 for 9-12 chars, first 3 +
last 4 for longer keys. Adds tests covering all key length boundaries.
2026-05-15 09:49:03 +08:00
..
add-model-sheet.tsx feat(web,api): fetch models and saved catalog support (#2832) 2026-05-15 09:49:03 +08:00
catalog-dialog.tsx feat(web,api): fetch models and saved catalog support (#2832) 2026-05-15 09:49:03 +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 feat(web,api): fetch models and saved catalog support (#2832) 2026-05-15 09:49:03 +08:00
fetch-models-dialog.tsx feat(web,api): fetch models and saved catalog support (#2832) 2026-05-15 09:49:03 +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-validation.ts feat(web,api): provider selection and model form foundation (#2831) 2026-05-11 16:57:37 +08:00
models-page.tsx feat(web,api): fetch models and saved catalog support (#2832) 2026-05-15 09:49:03 +08:00
provider-combobox.tsx feat(web,api): provider selection and model form foundation (#2831) 2026-05-11 16:57:37 +08:00
provider-icon.tsx feat(web,api): provider selection and model form foundation (#2831) 2026-05-11 16:57:37 +08:00
provider-label.ts feat(web,api): provider selection and model form foundation (#2831) 2026-05-11 16:57:37 +08:00
provider-registry.ts feat(web,api): provider selection and model form foundation (#2831) 2026-05-11 16:57:37 +08:00
provider-section.tsx feat(web,api): provider selection and model form foundation (#2831) 2026-05-11 16:57:37 +08:00
test-model-dialog.tsx feat(web,api): provider selection and model form foundation (#2831) 2026-05-11 16:57:37 +08:00