From 2a51efed438d92cb657686649a6833428702de8d Mon Sep 17 00:00:00 2001 From: O-Basaqer <obasaqer@mobily.com.sa> Date: Tue, 24 Dec 2024 21:20:24 +0300 Subject: [PATCH 1/2] Fix: Use default configured URL for Flowise engine client requests --- out/cli.cjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/out/cli.cjs b/out/cli.cjs index 359064c2..928eab76 100755 --- a/out/cli.cjs +++ b/out/cli.cjs @@ -58583,7 +58583,10 @@ var FlowiseEngine = class { history: messages.slice(1, -1) }; try { - const response = await this.client.post("", payload); + const response = await this.client.post( + this.client.defaults.url, + payload + ); const message = response.data; return message?.text; } catch (err) { From e7fb3ef714889ab6984042c329ac81a4b031993d Mon Sep 17 00:00:00 2001 From: O-Basaqer <obasaqer@mobily.com.sa> Date: Tue, 28 Jan 2025 09:02:53 +0300 Subject: [PATCH 2/2] Fix: Use default configured URL for Flowise engine client requests in the right place :) --- out/cli.cjs | 5 +---- src/engine/flowise.ts | 6 +++++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/out/cli.cjs b/out/cli.cjs index 928eab76..359064c2 100755 --- a/out/cli.cjs +++ b/out/cli.cjs @@ -58583,10 +58583,7 @@ var FlowiseEngine = class { history: messages.slice(1, -1) }; try { - const response = await this.client.post( - this.client.defaults.url, - payload - ); + const response = await this.client.post("", payload); const message = response.data; return message?.text; } catch (err) { diff --git a/src/engine/flowise.ts b/src/engine/flowise.ts index 00890f5c..836f9040 100644 --- a/src/engine/flowise.ts +++ b/src/engine/flowise.ts @@ -34,7 +34,11 @@ export class FlowiseEngine implements AiEngine { history: messages.slice(1, -1) }; try { - const response = await this.client.post('', payload); + const response = await this.client.post( + this.client.getUri(this.config), + payload + ); + const message = response.data; return message?.text; } catch (err: any) {