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();
|
||||
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
|
||||
window_title="${flowName}"
|
||||
flow_id="${flowId}"
|
||||
${
|
||||
flowState
|
||||
? `chat_inputs='${inputs}'
|
||||
chat_input_field="${chat_input_field}"
|
||||
`
|
||||
: ""
|
||||
}host_url="http://localhost:7860"${
|
||||
host_url="http://localhost:7860"${
|
||||
!isAuth
|
||||
? `
|
||||
api_key="..."`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue