From 51ef331e895fca117b4054d279acd59c7f92433b Mon Sep 17 00:00:00 2001 From: Luke Date: Mon, 21 Oct 2024 16:39:21 -0400 Subject: [PATCH] Fix maxStopWords not getting set from options --- core/llm/llms/OpenAI.ts | 2 -- core/llm/llms/WatsonX.ts | 1 - 2 files changed, 3 deletions(-) diff --git a/core/llm/llms/OpenAI.ts b/core/llm/llms/OpenAI.ts index 9366a7954..0e2ab2ab7 100644 --- a/core/llm/llms/OpenAI.ts +++ b/core/llm/llms/OpenAI.ts @@ -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; diff --git a/core/llm/llms/WatsonX.ts b/core/llm/llms/WatsonX.ts index d9b61a3f1..822e95cb5 100644 --- a/core/llm/llms/WatsonX.ts +++ b/core/llm/llms/WatsonX.ts @@ -14,7 +14,6 @@ const watsonxConfig = { }, }; class WatsonX extends BaseLLM { - maxStopWords: number | undefined = undefined; constructor(options: LLMOptions) { super(options);