Update embedded chat script URL
This commit is contained in:
parent
efb2b249a1
commit
7079c24262
1 changed files with 2 additions and 11 deletions
|
|
@ -456,21 +456,12 @@ export function getWidgetCode(
|
||||||
const inputs = buildInputs();
|
const inputs = buildInputs();
|
||||||
let chat_input_field = getChatInputField(flowState);
|
let chat_input_field = getChatInputField(flowState);
|
||||||
|
|
||||||
return `<script src="https://cdn.jsdelivr.net/gh/logspace-ai/langflow-embedded-chat@main/dist/build/static/js/bundle.min.js"></script>
|
return `<script src="https://cdn.jsdelivr.net/gh/logspace-ai/langflow-embedded-chat@1.0_alpha/dist/build/static/js/bundle.min.js"></script>
|
||||||
|
|
||||||
<!-- chat_inputs: Stringified JSON with all the input keys and its values. The value of the key that is defined
|
|
||||||
as chat_input_field will be overwritten by the chat message.
|
|
||||||
chat_input_field: Input key that you want the chat to send the user message with. -->
|
|
||||||
<langflow-chat
|
<langflow-chat
|
||||||
window_title="${flowName}"
|
window_title="${flowName}"
|
||||||
flow_id="${flowId}"
|
flow_id="${flowId}"
|
||||||
${
|
host_url="http://localhost:7860"${
|
||||||
flowState
|
|
||||||
? `chat_inputs='${inputs}'
|
|
||||||
chat_input_field="${chat_input_field}"
|
|
||||||
`
|
|
||||||
: ""
|
|
||||||
}host_url="http://localhost:7860"${
|
|
||||||
!isAuth
|
!isAuth
|
||||||
? `
|
? `
|
||||||
api_key="..."`
|
api_key="..."`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue