From e8a8728f5754bb934def3df6f957b7a2c05ddf64 Mon Sep 17 00:00:00 2001 From: Eduardo Calixto Date: Tue, 16 Jan 2024 11:08:34 -0300 Subject: [PATCH] Minor fix in flowise request body --- core/llm/llms/Flowise.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/llm/llms/Flowise.ts b/core/llm/llms/Flowise.ts index a1943f9bd..16748866a 100644 --- a/core/llm/llms/Flowise.ts +++ b/core/llm/llms/Flowise.ts @@ -102,7 +102,12 @@ class Flowise extends BaseLLM { protected _convertArgs(options: CompletionOptions): IFlowiseApiOptions { const finalOptions: IFlowiseApiOptions = { - ...options + temperature: options.temperature, + maxTokens: options.maxTokens, + topP: options.topP, + topK: options.topK, + presencePenalty: options.presencePenalty, + frequencyPenalty: options.frequencyPenalty, }; for (const additionalConfig of this.additionalFlowiseConfiguration) {