Merge pull request #2606 from Lash-L/maxStopWords_fix

Fix Max Stop Words not being set for openai and watsonx models
This commit is contained in:
Nate Sesti 2024-10-22 11:52:00 -07:00 • committed by GitHub
commit 7a4eac4aa1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 3 deletions

View file

@ -42,8 +42,6 @@ const CHAT_ONLY_MODELS = [
class OpenAI extends BaseLLM {
public useLegacyCompletionsEndpoint: boolean | undefined = undefined;
maxStopWords: number | undefined = undefined;
constructor(options: LLMOptions) {
super(options);
this.useLegacyCompletionsEndpoint = options.useLegacyCompletionsEndpoint;

View file

@ -14,7 +14,6 @@ const watsonxConfig = {
},
};
class WatsonX extends BaseLLM {
maxStopWords: number | undefined = undefined;
constructor(options: LLMOptions) {
super(options);