feat(providers): fix loading issues

This commit is contained in:
ItzCrazyKns
2024-07-08 15:39:27 +05:30
parent 3b4b8a8b02
commit 8539ce82ad
5 changed files with 27 additions and 11 deletions

View File

@ -5,6 +5,8 @@ import logger from '../../utils/logger';
export const loadGroqChatModels = async () => {
const groqApiKey = getGroqApiKey();
if (!groqApiKey) return {};
try {
const chatModels = {
'LLaMA3 8b': new ChatOpenAI(