From b6a5391f2db14b6346ca88ef40361fdac44a3ad5 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Tue, 7 May 2024 16:48:52 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20groq=20stop=20tokens?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/llm/llms/OpenAI.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/core/llm/llms/OpenAI.ts b/core/llm/llms/OpenAI.ts index b4d5bb716..6f096b88b 100644 --- a/core/llm/llms/OpenAI.ts +++ b/core/llm/llms/OpenAI.ts @@ -94,6 +94,7 @@ class OpenAI extends BaseLLM { ? options.stop?.slice(0, this.maxStopWords) : url.port === "1337" || url.host === "api.openai.com" || + url.host === "api.groq.com" || this.apiType === "azure" ? options.stop?.slice(0, 4) : options.stop,