From 1c2c31572303f226cb2337a9b8f277b8165be33a Mon Sep 17 00:00:00 2001 From: Bruno Galego Date: Sun, 17 Nov 2024 21:23:02 +0000 Subject: [PATCH] add Groq to getTokenForProvider --- packages/agent/src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/agent/src/index.ts b/packages/agent/src/index.ts index 75baaa63c..7a439d138 100644 --- a/packages/agent/src/index.ts +++ b/packages/agent/src/index.ts @@ -155,6 +155,11 @@ export function getTokenForProvider( character.settings?.secrets?.HEURIST_API_KEY || settings.HEURIST_API_KEY ); + case ModelProviderName.GROQ: + return ( + character.settings?.secrets?.GROQ_API_KEY || + settings.GROQ_API_KEY + ); } }