From ab00214ec2718e6d2fb5689d86d8342a95c0d07e Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 5 Jun 2023 12:47:55 +0100 Subject: [PATCH] update api code dialog for embed chat --- .../src/ui-component/dialog/APICodeDialog.js | 57 +++++++++++-------- 1 file changed, 34 insertions(+), 23 deletions(-) diff --git a/packages/ui/src/ui-component/dialog/APICodeDialog.js b/packages/ui/src/ui-component/dialog/APICodeDialog.js index 55aeca75c..e2e7438d7 100644 --- a/packages/ui/src/ui-component/dialog/APICodeDialog.js +++ b/packages/ui/src/ui-component/dialog/APICodeDialog.js @@ -121,7 +121,7 @@ const getConfigExamplesForCurl = (configData, bodyType) => { const embedCode = (chatflowid) => { return `` } @@ -605,7 +605,18 @@ query({ {value === 0 && ( <> - Paste this anywhere in the {``} tag of your html file + Paste this anywhere in the {``} tag of your html file. +

+ You can also specify a  + + version + + : {`https://cdn.jsdelivr.net/npm/flowise-embed@/dist/web.js`} +

@@ -648,7 +659,7 @@ query({ {value === 0 && embedChatCheckboxVal && (