37e1c2e3 by Administrator

Merge branch '31675_chatbotplus_llm' into 'master'

31675_chatbotplus_llm

See merge request !110
2 parents fafadb4c 37b2f5a4
Pipeline #29173 for 37e1c2e3 passed in 17 seconds
...@@ -31,11 +31,6 @@ ...@@ -31,11 +31,6 @@
31 let btutilAsset = document.createElement('script'); 31 let btutilAsset = document.createElement('script');
32 btutilAsset.setAttribute('src', "%REACT_APP_BTUTIL_ASSET_URL%" + ver); 32 btutilAsset.setAttribute('src', "%REACT_APP_BTUTIL_ASSET_URL%" + ver);
33 document.head.appendChild(btutilAsset); 33 document.head.appendChild(btutilAsset);
34
35 let vuzoScript = document.createElement("script")
36 var start_URL = "%REACT_APP_START_SERVER_URL%/";
37 vuzoScript.setAttribute("src", start_URL + 'snippets/com.global.vuzo/js/com.global.vuzo.js?ver=' + ver);
38 document.head.appendChild(vuzoScript);
39 </script> 34 </script>
40 </head> 35 </head>
41 <body> 36 <body>
......
...@@ -30,6 +30,16 @@ const ChatBox = ({chatLog, setChatInput, handleSubmit, chatInput, startedInterac ...@@ -30,6 +30,16 @@ const ChatBox = ({chatLog, setChatInput, handleSubmit, chatInput, startedInterac
30 </input> 30 </input>
31 <button className="submit" type="submit" onClick={(e)=> { 31 <button className="submit" type="submit" onClick={(e)=> {
32 setStartedInteraction(true); 32 setStartedInteraction(true);
33 if(document.querySelector('.chat-log')) {
34 setTimeout(()=>{
35 let posLeft = document.querySelector('.chat-log').scrollLeft;
36 let posBottom = 0;
37 for(let i = 0; i < document.querySelectorAll('.chat-message').length; i++) {
38 posBottom += (parseInt(document.querySelectorAll('.chat-message')[i].clientHeight) * 100);
39 }
40 document.querySelector('.chat-log').scroll(posLeft, posBottom);
41 })
42 }
33 }}>Submit</button> 43 }}>Submit</button>
34 </form> 44 </form>
35 <div id="openai_disclaimer"> 45 <div id="openai_disclaimer">
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!