MCPcopy Create free account
hub / github.com/KartikLabhshetwar/lazycommit / GROQ_API_KEY

Function GROQ_API_KEY

src/utils/config.ts:23–32  ·  view source on GitHub ↗
(key?: string)

Source from the content-addressed store, hash-verified

21
22const 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';

Callers

nothing calls this directly

Calls 1

parseAssertFunction · 0.85

Tested by

no test coverage detected