fix: oprouter model list display
Browse files- src/utils/auth.ts +0 -7
src/utils/auth.ts
CHANGED
|
@@ -419,13 +419,6 @@ export async function saveOpenRouterApiKey(apiKey: string): Promise<void> {
|
|
| 419 |
// Clear provider cache so it will be re-read on next access
|
| 420 |
const { clearStoredProviderCache } = await import('./model/providers.js')
|
| 421 |
clearStoredProviderCache()
|
| 422 |
-
// Clear OpenRouter models cache so it will be refetched with new API key
|
| 423 |
-
try {
|
| 424 |
-
const { clearOpenRouterModelsCache } = await import('./model/openRouterModels.js')
|
| 425 |
-
clearOpenRouterModelsCache()
|
| 426 |
-
} catch (error) {
|
| 427 |
-
// Ignore errors from clearing cache
|
| 428 |
-
}
|
| 429 |
}
|
| 430 |
|
| 431 |
export async function saveLocalModelConfig(baseUrl: string, modelName: string): Promise<void> {
|
|
|
|
| 419 |
// Clear provider cache so it will be re-read on next access
|
| 420 |
const { clearStoredProviderCache } = await import('./model/providers.js')
|
| 421 |
clearStoredProviderCache()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 422 |
}
|
| 423 |
|
| 424 |
export async function saveLocalModelConfig(baseUrl: string, modelName: string): Promise<void> {
|