🐛 fix groq stop tokens
This commit is contained in:
parent
3749a8cc40
commit
b6a5391f2d
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue