feat(providers): switch to apiKey key

This commit is contained in:
ItzCrazyKns
2025-07-19 16:09:21 +05:30
parent 543f1df5ce
commit 8e0ae9b867
4 changed files with 9 additions and 6 deletions

View File

@@ -29,12 +29,15 @@ export const loadGroqChatModels = async () => {
chatModels[model.id] = {
displayName: model.id,
model: new ChatOpenAI({
openAIApiKey: groqApiKey,
apiKey: groqApiKey,
modelName: model.id,
temperature: 0.7,
configuration: {
baseURL: 'https://api.groq.com/openai/v1',
},
metadata: {
'model-type': 'groq',
},
}) as unknown as BaseChatModel,
};
});