We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c42c03a commit c02fe6bCopy full SHA for c02fe6b
src/api/providers/fetchers/modelCache.ts
@@ -225,8 +225,9 @@ export const refreshModels = async (options: GetModelsOptions): Promise<ModelRec
225
)
226
227
return models
228
- } catch {
229
- // On error, return existing cache if available (graceful degradation)
+ } catch (error) {
+ // Log the error for debugging, then return existing cache if available (graceful degradation)
230
+ console.error(`[refreshModels] Failed to refresh ${provider} models:`, error)
231
return getModelsFromCache(provider) || {}
232
} finally {
233
// Always clean up the in-flight tracking
0 commit comments