diff --git a/eslint.config.js b/eslint.config.js index 3e0ca46..4bd124f 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -20,7 +20,16 @@ export default ts.config( languageOptions: { globals: { ...globals.browser, ...globals.node }, }, - rules: { 'no-undef': 'off' }, + rules: { + 'no-undef': 'off', + '@typescript-eslint/no-unused-vars': [ + 'error', + { + varsIgnorePattern: '^_', + argsIgnorePattern: '^_', + }, + ], + }, }, { files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'], diff --git a/src/lib/cache/cached-query.svelte.ts b/src/lib/cache/cached-query.svelte.ts index 4f2756f..bd51bc0 100644 --- a/src/lib/cache/cached-query.svelte.ts +++ b/src/lib/cache/cached-query.svelte.ts @@ -80,7 +80,7 @@ export function invalidateQuery(query: FunctionReference<'query'>, queryArgs?: u globalCache.delete(key); } -export function invalidateQueriesMatching(pattern: string | RegExp): void { +export function invalidateQueriesMatching(_pattern: string | RegExp): void { // Note: This is a simplified implementation // In a real implementation, you'd need to track all cache keys console.warn( diff --git a/src/routes/account/api-keys/provider-card.svelte b/src/routes/account/api-keys/provider-card.svelte index 0d32781..5f14659 100644 --- a/src/routes/account/api-keys/provider-card.svelte +++ b/src/routes/account/api-keys/provider-card.svelte @@ -61,7 +61,7 @@ - + {meta.title} diff --git a/src/routes/account/models/+page.svelte b/src/routes/account/models/+page.svelte index 0526eed..d87043c 100644 --- a/src/routes/account/models/+page.svelte +++ b/src/routes/account/models/+page.svelte @@ -1,8 +1,10 @@ @@ -22,8 +33,27 @@
- {#each data.openRouterModels as model (model.id)} - {@const enabled = enabledModels.data?.[`${Provider.OpenRouter}:${model.id}`] !== undefined} - - {/each} +
+

OpenRouter

+

Easy access to over 400 models.

+
+
+
+ {#each data.openRouterModels as model (model.id)} + {@const enabled = enabledModels.data?.[`${Provider.OpenRouter}:${model.id}`] !== undefined} + + {/each} +
+ {#if !hasOpenRouterKey} +
+ +
+ {/if} +