🐛 fix groq stop tokens

This commit is contained in:
Nate Sesti 2024-05-07 16:48:52 -07:00
parent 3749a8cc40
commit b6a5391f2d

View file

@ -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,