chore: update src/pages/settings/ai.astro
swadhinbiswas committed 8 months ago
659a2a1
1 parent e66e1a2
commit 659a2a1
1 file changed
+5 -4
Showing 1 changed file+5-4
▼src/pages/settings/ai.astro
+5-4
| @@ -13,19 +13,20 @@ import { | ||
13 | 13 | import { |
14 | 14 | parseAIConfigFromStorage, |
15 | 15 | sanitizeAIConfigForClient, |
16 | + type PublicAIConfig, | |
16 | 17 | } from "@/lib/ai-config"; |
17 | 18 | |
18 | 19 | const user = Astro.locals.user; |
19 | 20 | if (!user) return Astro.redirect("/login"); |
20 | 21 | |
21 | 22 | // Parse existing config |
22 | -let aiConfig = { | |
23 | +let aiConfig: PublicAIConfig = { | |
23 | 24 | provider: "openai", |
24 | 25 | model: "gpt-4-turbo", |
25 | 26 | apiKeys: { |
26 | - openai: { isSet: false, masked: undefined as string | undefined }, | |
27 | - groq: { isSet: false, masked: undefined as string | undefined }, | |
28 | - bytez: { isSet: false, masked: undefined as string | undefined }, | |
27 | + openai: { isSet: false }, | |
28 | + groq: { isSet: false }, | |
29 | + bytez: { isSet: false }, | |
29 | 30 | }, |
30 | 31 | }; |
31 | 32 | |
32 | 33 | |