(key?: string)
| 21 | |
| 22 | const configParsers = { |
| 23 | GROQ_API_KEY(key?: string) { |
| 24 | if (!key) { |
| 25 | throw new KnownError( |
| 26 | 'Please set your Groq API key via `lazycommit config set GROQ_API_KEY=<your token>`' |
| 27 | ); |
| 28 | } |
| 29 | parseAssert('GROQ_API_KEY', key.startsWith('gsk_'), 'Must start with "gsk_"'); |
| 30 | |
| 31 | return key; |
| 32 | }, |
| 33 | locale(locale?: string) { |
| 34 | if (!locale) { |
| 35 | return 'en'; |
nothing calls this directly
no test coverage detected