Commit 0920abd
committed
refactor(api): only fetch router models for providers with configured profiles. Fixes #4065
Add hasConfiguredProfile helper to filter model fetch candidates based on
listApiConfigMeta, preventing unnecessary API calls for providers without
configured profiles.
- Extract listApiConfigMeta from state to check configured providers
- Filter candidates to only fetch models for providers in use
- Make litellm and io-intelligence type properties optional
- Add apiKey to glama and vercel-ai-gateway candidate options
- Update tests to verify profile-based filtering behavior1 parent 80a8734 commit 0920abd
File tree
4 files changed
+227
-202
lines changed- src
- api/providers/fetchers
- core/webview
- __tests__
4 files changed
+227
-202
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
0 commit comments