gaunt-sloth-assistant
Version:
[](https://github.com/Galvanized-Pukeko/gaunt-sloth-assistant/actions/workflows/unit-tests.yml) [ {
const groq = await import('@langchain/groq');
// Use config value if available, otherwise use the environment variable
const groqApiKey = llmConfig.apiKey || env.GROQ_API_KEY;
return new groq.ChatGroq({
...llmConfig,
apiKey: groqApiKey,
model: llmConfig.model || 'deepseek-r1-distill-llama-70b',
});
}
const jsonContent = `{
"llm": {
"type": "groq",
"model": "deepseek-r1-distill-llama-70b"
}
}`;
export function init(configFileName) {
// Determine which content to use based on file extension
if (!configFileName.endsWith('.json')) {
throw new Error('Only JSON config is supported.');
}
writeFileIfNotExistsWithMessages(configFileName, jsonContent);
displayWarning(`You need to edit your ${configFileName} to configure model, ` +
'or define GROQ_API_KEY environment variable.');
}
//# sourceMappingURL=groq.js.map