Skip to content

Commit

Permalink
fix(plugin-flow-builder): add trailing slash to axios call, refactor …
Browse files Browse the repository at this point in the history
…import
  • Loading branch information
vanbasten17 committed Mar 25, 2024
1 parent ac836b2 commit fbf6ec6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export async function createNodeFromKnowledgeBase(
buttons_style: undefined,
buttons: [],
},
// flow_id: '', // TODO: Add flow_id consequentially with HtBaseNode changes
id: uuid(),
code: 'knowledge-response',
meta: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function getSmartIntentNodeByInput(
try {
const response = await axios({
method: 'POST',
url: `${process.env.HUBTYPE_API_URL}/external/v1/ai/smart_intents/inference`,
url: `${process.env.HUBTYPE_API_URL}/external/v1/ai/smart_intents/inference/`,
headers: {
Authorization: `Bearer ${request.session._access_token}`,
'Content-Type': 'application/json',
Expand Down

0 comments on commit fbf6ec6

Please sign in to comment.