Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Use default configured URL for Flowise engine client requests #439

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix: Use default configured URL for Flowise engine client requests in…
… the right place :)
  • Loading branch information
O-Basaqer committed Jan 28, 2025
commit e7fb3ef714889ab6984042c329ac81a4b031993d
5 changes: 1 addition & 4 deletions out/cli.cjs
Original file line number Diff line number Diff line change
@@ -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) {
6 changes: 5 additions & 1 deletion src/engine/flowise.ts
Original file line number Diff line number Diff line change
@@ -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) {