From 61f1cacdce7c8d7d7af0e5b9227a02e2ee16b24f Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Wed, 27 Mar 2024 01:11:25 +0100 Subject: [PATCH] upgraded --- lollms_core | 2 +- web/dist/assets/{index-3442c1ad.js => index-5d0b9ea6.js} | 4 ++-- web/dist/index.html | 2 +- web/src/views/PlayGroundView.vue | 5 +++-- zoos/personalities_zoo | 2 +- 5 files changed, 8 insertions(+), 7 deletions(-) rename web/dist/assets/{index-3442c1ad.js => index-5d0b9ea6.js} (99%) diff --git a/lollms_core b/lollms_core index 17e4f990..3b28155b 160000 --- a/lollms_core +++ b/lollms_core @@ -1 +1 @@ -Subproject commit 17e4f99094f498c7e4bc20714003e2d9cae7e4e2 +Subproject commit 3b28155bd044d60897edcd152e5ed732d2c7d4a9 diff --git a/web/dist/assets/index-3442c1ad.js b/web/dist/assets/index-5d0b9ea6.js similarity index 99% rename from web/dist/assets/index-3442c1ad.js rename to web/dist/assets/index-5d0b9ea6.js index f1d2b4c2..4bb43d42 100644 --- a/web/dist/assets/index-3442c1ad.js +++ b/web/dist/assets/index-5d0b9ea6.js @@ -77,12 +77,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`),re=P,Q=j),Y===void 0&& - `,document.body.appendChild(r);const o=r.querySelector("#cancelButton"),a=r.querySelector("#okButton");o.addEventListener("click",()=>{document.body.removeChild(r),i(null)}),a.addEventListener("click",()=>{if(t.length===0){const d=r.querySelector("#replacementInput").value.trim();document.body.removeChild(r),i(d)}else{const d=r.querySelector("#options_selector").value.trim();document.body.removeChild(r),i(d)}})})}function FJe(n,e){console.log(n);let t={},i=/@<([^>]+)>@/g,s=[],r;for(;(r=i.exec(n))!==null;)s.push("@<"+r[1]+">@");console.log("matches"),console.log(s),s=[...new Set(s)];async function o(l){console.log(l);let d=l.toLowerCase().substring(2,l.length-2);if(d!=="generation_placeholder")if(d.includes(":")){Object.entries({all_language_options:"english:french:german:chinese:japanese:spanish:italian:russian:portuguese:swedish:danish:dutch:norwegian:slovak:czech:hungarian:polish:ukrainian:bulgarian:latvian:lithuanian:estonian:maltese:irish:galician:basque:welsh:breton:georgian:turkmen:kazakh:uzbek:tajik:afghan:sri-lankan:filipino:vietnamese:lao:cambodian:thai:burmese:kenyan:botswanan:zimbabwean:malawian:mozambican:angolan:namibian:south-african:madagascan:seychellois:mauritian:haitian:peruvian:ecuadorian:bolivian:paraguayan:chilean:argentinean:uruguayan:brazilian:colombian:venezuelan:puerto-rican:cuban:dominican:honduran:nicaraguan:salvadorean:guatemalan:el-salvadoran:belizean:panamanian:costa-rican:antiguan:barbudan:dominica's:grenada's:st-lucia's:st-vincent's:gibraltarian:faroe-islander:greenlandic:icelandic:jamaican:trinidadian:tobagonian:barbadian:anguillan:british-virgin-islander:us-virgin-islander:turkish:israeli:palestinian:lebanese:egyptian:libyan:tunisian:algerian:moroccan:bahraini:kuwaiti:saudi-arabian:yemeni:omani:irani:iraqi:afghanistan's:pakistani:indian:nepalese:sri-lankan:maldivan:burmese:thai:lao:vietnamese:kampuchean:malaysian:bruneian:indonesian:australian:new-zealanders:fijians:tongans:samoans:vanuatuans:wallisians:kiribatians:tuvaluans:solomon-islanders:marshallese:micronesians:hawaiians",all_programming_language_options:"python:c:c++:java:javascript:php:ruby:go:swift:kotlin:rust:haskell:erlang:lisp:scheme:prolog:cobol:fortran:pascal:delphi:d:eiffel:h:basic:visual_basic:smalltalk:objective-c:html5:node.js:vue.js:svelte:react:angular:ember:clipper:stex:arduino:brainfuck:r:assembly:mason:lepton:seacat:bbc_microbit:raspberry_pi_gpio:raspberry_pi_spi:raspberry_pi_i2c:raspberry_pi_uart:raspberry_pi_adc:raspberry_pi_ddio"}).forEach(([b,g])=>{console.log(`Key: ${b}, Value: ${g}`);function v(C){return C.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const y=v(b),T=new RegExp(y,"g");d=d.replace(T,g)});let _=d.split(":"),f=_[0],m=_[1]||"",h=[];_.length>2&&(h=_.slice(1));let E=await OC(f,m,h);E!==null&&(t[l]=E)}else{let c=await OC(d);c!==null&&(t[l]=c)}}let a=Promise.resolve();s.forEach(l=>{a=a.then(()=>o(l)).then(d=>{console.log(d)})}),a.then(()=>{Object.entries(t).forEach(([l,d])=>{console.log(`Key: ${l}, Value: ${d}`);function c(m){return m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const _=c(l),f=new RegExp(_,"g");n=n.replace(f,d)}),e(n)})}const BJe={name:"PlayGroundView",data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},pending:!1,is_recording:!1,is_deaf_transcribing:!1,cpp_block:uO,html5_block:pO,LaTeX_block:_O,javascript_block:cO,json_block:dO,code_block:aO,python_block:lO,bash_block:hO,tokenize_icon:MJe,deaf_off:kJe,deaf_on:DJe,rec_off:PJe,rec_on:LJe,loading_icon:fO,isSynthesizingVoice:!1,audio_url:null,mdRenderHeight:300,selecting_model:!1,tab_id:"source",generating:!1,isSpeaking:!1,voices:[],isLesteningToVoice:!1,presets:[],selectedPreset:"",cursorPosition:0,namedTokens:[],text:"",pre_text:"",post_text:"",temperature:.1,top_k:50,top_p:.9,repeat_penalty:1.3,repeat_last_n:50,n_crop:-1,n_predicts:2e3,seed:-1,silenceTimeout:5e3}},components:{Toast:fc,MarkdownRenderer:ap,ClipBoardTextInput:RE,TokensHilighter:AJe,Card:vc},mounted(){Me.get("./get_presets").then(n=>{console.log(n.data),this.presets=n.data,this.selectedPreset=this.presets[0]}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)}),Xe.on("text_chunk",n=>{this.appendToOutput(n.chunk)}),Xe.on("text_generated",n=>{this.generating=!1}),Xe.on("generation_error",n=>{console.log("generation_error:",n),this.$refs.toast.showToast(`Error: ${n}`,4,!1),this.generating=!1}),Xe.on("connect",()=>{console.log("Connected to LoLLMs server"),this.$store.state.isConnected=!0,this.generating=!1}),Xe.on("buzzy",n=>{console.error("Server is busy. Wait for your turn",n),this.$refs.toast.showToast(`Error: ${n.message}`,4,!1),this.generating=!1}),Xe.on("generation_canceled",n=>{this.generating=!1,console.log("Generation canceled OK")}),this.$nextTick(()=>{qe.replace()}),"speechSynthesis"in window?(this.speechSynthesis=window.speechSynthesis,this.voices=this.speechSynthesis.getVoices(),this.voices.length===0&&this.speechSynthesis.addEventListener("voiceschanged",this.onVoicesChanged)):console.error("Speech synthesis is not supported in this browser.")},created(){},watch:{audio_url(n){n&&(console.log("Audio changed url to :",n),this.$refs.audio_player.src=n)}},computed:{selectedModel:{get(){return this.$store.state.selectedModel}},models:{get(){return this.$store.state.modelsArr}},isTalking:{get(){return this.isSpeaking}}},methods:{triggerFileUpload(){this.$refs.fileInput.click()},handleFileUpload(n){this.file=this.$refs.fileInput.files[0],this.buttonText=this.file.name,this.uploadFile()},uploadFile(){const n=new FormData;n.append("file",this.file),Me.post("http://localhost:8000/upload_voice/",n,{headers:{"Content-Type":"multipart/form-data"}}).then(e=>{console.log(e),this.buttonText="Upload a voice"}).catch(e=>{console.error(e)})},addBlock(n){let e=this.$refs.mdTextarea.selectionStart,t=this.$refs.mdTextarea.selectionEnd;e==t?speechSynthesis==0||this.message.content[e-1]==` + `,document.body.appendChild(r);const o=r.querySelector("#cancelButton"),a=r.querySelector("#okButton");o.addEventListener("click",()=>{document.body.removeChild(r),i(null)}),a.addEventListener("click",()=>{if(t.length===0){const d=r.querySelector("#replacementInput").value.trim();document.body.removeChild(r),i(d)}else{const d=r.querySelector("#options_selector").value.trim();document.body.removeChild(r),i(d)}})})}function FJe(n,e){console.log(n);let t={},i=/@<([^>]+)>@/g,s=[],r;for(;(r=i.exec(n))!==null;)s.push("@<"+r[1]+">@");console.log("matches"),console.log(s),s=[...new Set(s)];async function o(l){console.log(l);let d=l.toLowerCase().substring(2,l.length-2);if(d!=="generation_placeholder")if(d.includes(":")){Object.entries({all_language_options:"english:french:german:chinese:japanese:spanish:italian:russian:portuguese:swedish:danish:dutch:norwegian:slovak:czech:hungarian:polish:ukrainian:bulgarian:latvian:lithuanian:estonian:maltese:irish:galician:basque:welsh:breton:georgian:turkmen:kazakh:uzbek:tajik:afghan:sri-lankan:filipino:vietnamese:lao:cambodian:thai:burmese:kenyan:botswanan:zimbabwean:malawian:mozambican:angolan:namibian:south-african:madagascan:seychellois:mauritian:haitian:peruvian:ecuadorian:bolivian:paraguayan:chilean:argentinean:uruguayan:brazilian:colombian:venezuelan:puerto-rican:cuban:dominican:honduran:nicaraguan:salvadorean:guatemalan:el-salvadoran:belizean:panamanian:costa-rican:antiguan:barbudan:dominica's:grenada's:st-lucia's:st-vincent's:gibraltarian:faroe-islander:greenlandic:icelandic:jamaican:trinidadian:tobagonian:barbadian:anguillan:british-virgin-islander:us-virgin-islander:turkish:israeli:palestinian:lebanese:egyptian:libyan:tunisian:algerian:moroccan:bahraini:kuwaiti:saudi-arabian:yemeni:omani:irani:iraqi:afghanistan's:pakistani:indian:nepalese:sri-lankan:maldivan:burmese:thai:lao:vietnamese:kampuchean:malaysian:bruneian:indonesian:australian:new-zealanders:fijians:tongans:samoans:vanuatuans:wallisians:kiribatians:tuvaluans:solomon-islanders:marshallese:micronesians:hawaiians",all_programming_language_options:"python:c:c++:java:javascript:php:ruby:go:swift:kotlin:rust:haskell:erlang:lisp:scheme:prolog:cobol:fortran:pascal:delphi:d:eiffel:h:basic:visual_basic:smalltalk:objective-c:html5:node.js:vue.js:svelte:react:angular:ember:clipper:stex:arduino:brainfuck:r:assembly:mason:lepton:seacat:bbc_microbit:raspberry_pi_gpio:raspberry_pi_spi:raspberry_pi_i2c:raspberry_pi_uart:raspberry_pi_adc:raspberry_pi_ddio"}).forEach(([b,g])=>{console.log(`Key: ${b}, Value: ${g}`);function v(C){return C.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const y=v(b),T=new RegExp(y,"g");d=d.replace(T,g)});let _=d.split(":"),f=_[0],m=_[1]||"",h=[];_.length>2&&(h=_.slice(1));let E=await OC(f,m,h);E!==null&&(t[l]=E)}else{let c=await OC(d);c!==null&&(t[l]=c)}}let a=Promise.resolve();s.forEach(l=>{a=a.then(()=>o(l)).then(d=>{console.log(d)})}),a.then(()=>{Object.entries(t).forEach(([l,d])=>{console.log(`Key: ${l}, Value: ${d}`);function c(m){return m.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const _=c(l),f=new RegExp(_,"g");n=n.replace(f,d)}),e(n)})}const BJe={name:"PlayGroundView",data(){return{posts_headers:{accept:"application/json","Content-Type":"application/json"},pending:!1,is_recording:!1,is_deaf_transcribing:!1,cpp_block:uO,html5_block:pO,LaTeX_block:_O,javascript_block:cO,json_block:dO,code_block:aO,python_block:lO,bash_block:hO,tokenize_icon:MJe,deaf_off:kJe,deaf_on:DJe,rec_off:PJe,rec_on:LJe,loading_icon:fO,isSynthesizingVoice:!1,audio_url:null,mdRenderHeight:300,selecting_model:!1,tab_id:"source",generating:!1,isSpeaking:!1,voices:[],isLesteningToVoice:!1,presets:[],selectedPreset:"",cursorPosition:0,namedTokens:[],text:"",pre_text:"",post_text:"",temperature:.1,top_k:50,top_p:.9,repeat_penalty:1.3,repeat_last_n:50,n_crop:-1,n_predicts:2e3,seed:-1,silenceTimeout:5e3}},components:{Toast:fc,MarkdownRenderer:ap,ClipBoardTextInput:RE,TokensHilighter:AJe,Card:vc},mounted(){Me.get("./get_presets").then(n=>{console.log(n.data),this.presets=n.data,this.selectedPreset=this.presets[0]}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)}),Xe.on("text_chunk",n=>{this.appendToOutput(n.chunk)}),Xe.on("text_generated",n=>{this.generating=!1}),Xe.on("generation_error",n=>{console.log("generation_error:",n),this.$refs.toast.showToast(`Error: ${n}`,4,!1),this.generating=!1}),Xe.on("connect",()=>{console.log("Connected to LoLLMs server"),this.$store.state.isConnected=!0,this.generating=!1}),Xe.on("buzzy",n=>{console.error("Server is busy. Wait for your turn",n),this.$refs.toast.showToast(`Error: ${n.message}`,4,!1),this.generating=!1}),Xe.on("generation_canceled",n=>{this.generating=!1,console.log("Generation canceled OK")}),this.$nextTick(()=>{qe.replace()}),"speechSynthesis"in window?(this.speechSynthesis=window.speechSynthesis,this.voices=this.speechSynthesis.getVoices(),this.voices.length===0&&this.speechSynthesis.addEventListener("voiceschanged",this.onVoicesChanged)):console.error("Speech synthesis is not supported in this browser.")},created(){},watch:{audio_url(n){n&&(console.log("Audio changed url to :",n),this.$refs.audio_player.src=n)}},computed:{selectedModel:{get(){return this.$store.state.selectedModel}},models:{get(){return this.$store.state.modelsArr}},isTalking:{get(){return this.isSpeaking}}},methods:{triggerFileUpload(){this.$refs.fileInput.click()},handleFileUpload(n){this.file=this.$refs.fileInput.files[0],this.buttonText=this.file.name,this.uploadFile()},uploadFile(){console.log("sending file");const n=new FormData;n.append("file",this.file),Me.post("/upload_voice/",n,{headers:{"Content-Type":"multipart/form-data"}}).then(e=>{console.log(e),this.buttonText="Upload a voice"}).catch(e=>{console.error(e)})},addBlock(n){let e=this.$refs.mdTextarea.selectionStart,t=this.$refs.mdTextarea.selectionEnd;e==t?speechSynthesis==0||this.message.content[e-1]==` `?(this.message.content=this.message.content.slice(0,e)+"```"+n+"\n\n```\n"+this.message.content.slice(e),e=e+4+n.length):(this.message.content=this.message.content.slice(0,e)+"\n```"+n+"\n\n```\n"+this.message.content.slice(e),e=e+3+n.length):speechSynthesis==0||this.message.content[e-1]==` `?(this.message.content=this.message.content.slice(0,e)+"```"+n+` `+this.message.content.slice(e,t)+"\n```\n"+this.message.content.slice(t),e=e+4+n.length):(this.message.content=this.message.content.slice(0,e)+"\n```"+n+` `+this.message.content.slice(e,t)+"\n```\n"+this.message.content.slice(t),p=p+3+n.length),this.$refs.mdTextarea.focus(),this.$refs.mdTextarea.selectionStart=this.$refs.mdTextarea.selectionEnd=p},insertTab(n){const e=n.target,t=e.selectionStart,i=e.selectionEnd,s=e.value.substring(0,t),r=e.value.substring(i),o=s+" "+r;this.text=o,this.$nextTick(()=>{e.selectionStart=e.selectionEnd=t+4}),n.preventDefault()},mdTextarea_changed(){console.log("mdTextarea_changed"),this.cursorPosition=this.$refs.mdTextarea.selectionStart},mdTextarea_clicked(){console.log(`mdTextarea_clicked: ${this.$refs.mdTextarea.selectionStart}`),this.cursorPosition=this.$refs.mdTextarea.selectionStart},setModel(){this.selecting_model=!0,Me.post("/update_setting",{client_id:this.$store.state.client_id,setting_name:"model_name",setting_value:this.selectedModel}).then(n=>{console.log(n),n.status&&this.$refs.toast.showToast(`Model changed to ${this.selectedModel}`,4,!0),this.selecting_model=!1}).catch(n=>{this.$refs.toast.showToast(`Error ${n}`,4,!0),this.selecting_model=!1})},onVoicesChanged(){this.voices=this.speechSynthesis.getVoices()},read(){console.log("READING..."),this.isSynthesizingVoice=!0;let n=this.$refs.mdTextarea.selectionStart,e=this.$refs.mdTextarea.selectionEnd,t=this.text;n!=e&&(t=t.slice(n,e)),Me.post("./text2Audio",{text:t}).then(i=>{console.log(i.data.url);let s=i.data.url;this.audio_url=UJe+s,this.isSynthesizingVoice=!1,Ve(()=>{qe.replace()})}).catch(i=>{this.$refs.toast.showToast(`Error: ${i}`,4,!1),this.isSynthesizingVoice=!1,Ve(()=>{qe.replace()})})},speak(){if(this.msg){this.speechSynthesis.cancel(),this.msg=null,this.isSpeaking=!1;return}let n=0;console.log("voice on"),this.isSpeaking=!0;const e=200;this.msg=new SpeechSynthesisUtterance,this.msg.pitch=this.$store.state.config.audio_pitch,this.voices.length>0&&(this.msg.voice=this.voices.filter(s=>s.name===this.$store.state.config.audio_out_voice)[0]);const t=s=>{let r=this.text.substring(s,s+e);const o=[".","!","?",` -`];let a=-1;return o.forEach(l=>{const d=r.lastIndexOf(l);d>a&&(a=d)}),a==-1&&(a=r.length),console.log(a),a+s+1},i=()=>{const s=t(n),r=this.text.substring(n,s);this.msg.text=r,n=s+1,this.msg.onend=o=>{n{i()},1):(this.isSpeaking=!1,console.log("voice off :",this.text.length," ",s))},this.speechSynthesis.speak(this.msg)};i()},getCursorPosition(){return this.$refs.mdTextarea.selectionStart},appendToOutput(n){this.pre_text+=n,this.text=this.pre_text+this.post_text},generate_in_placeholder(){console.log("Finding cursor position");let n=this.text.indexOf("@@");if(n<0){this.$refs.toast.showToast("No generation placeholder found",4,!1);return}this.text=this.text.substring(0,n)+this.text.substring(n+26,this.text.length),this.pre_text=this.text.substring(0,n),this.post_text=this.text.substring(n,this.text.length);var e=this.text.substring(0,n);console.log(e),Xe.emit("generate_text",{prompt:e,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},async tokenize_text(){const n=await Me.post("/lollms_tokenize",{prompt:this.text},{headers:this.posts_headers});console.log(n.data.named_tokens),this.namedTokens=n.data.named_tokens},generate(){console.log("Finding cursor position"),this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length);var n=this.text.substring(0,this.getCursorPosition());console.log(this.text),console.log(`cursor position :${this.getCursorPosition()}`),console.log(`pretext:${this.pre_text}`),console.log(`post_text:${this.post_text}`),console.log(`prompt:${n}`),Xe.emit("generate_text",{prompt:n,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},stopGeneration(){Xe.emit("cancel_text_generation",{})},exportText(){const n=this.text,e=document.createElement("a"),t=new Blob([n],{type:"text/plain"});e.href=URL.createObjectURL(t),e.download="exported_text.txt",document.body.appendChild(e),e.click(),document.body.removeChild(e)},importText(){const n=document.getElementById("import-input");n&&(n.addEventListener("change",e=>{if(e.target.files&&e.target.files[0]){const t=new FileReader;t.onload=()=>{this.text=t.result},t.readAsText(e.target.files[0])}else alert("Please select a file.")}),n.click())},setPreset(){console.log("Setting preset"),console.log(this.selectedPreset),this.tab_id="render",this.text=FJe(this.selectedPreset.content,n=>{console.log("Done"),console.log(n),this.text=n})},addPreset(){let n=prompt("Enter the title of the preset:");this.presets[n]={name:n,content:this.text},Me.post("./add_preset",this.presets[n]).then(e=>{console.log(e.data)}).catch(e=>{this.$refs.toast.showToast(`Error: ${e}`,4,!1)})},removePreset(){this.selectedPreset&&delete this.presets[this.selectedPreset.name]},reloadPresets(){Me.get("./get_presets").then(n=>{console.log(n.data),this.presets=n.data,this.selectedPreset=this.presets[0]}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)})},startRecording(){this.pending=!0,this.is_recording?Me.get("/stop_recording").then(n=>{this.is_recording=!1,this.pending=!1,console.log(n),this.text+=n.data.text,console.log(n.data),this.presets=n.data,this.selectedPreset=this.presets[0]}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)}):Me.get("/start_recording").then(n=>{this.is_recording=!0,this.pending=!1,console.log(n.data)}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)})},startRecordingAndTranscribing(){this.pending=!0,this.is_deaf_transcribing?Me.get("/stop_recording").then(n=>{this.is_deaf_transcribing=!1,this.pending=!1,this.text=n.data.text,this.read()}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)}):Me.get("/start_recording").then(n=>{this.is_deaf_transcribing=!0,this.pending=!1}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)})},startSpeechRecognition(){"SpeechRecognition"in window||"webkitSpeechRecognition"in window?(this.recognition=new(window.SpeechRecognition||window.webkitSpeechRecognition),this.recognition.lang=this.$store.state.config.audio_in_language,this.recognition.interimResults=!0,this.recognition.onstart=()=>{this.isLesteningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length),this.recognition.onresult=n=>{this.generated="";for(let e=n.resultIndex;e{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=n=>{console.error("Speech recognition error:",n.error),this.isLesteningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isLesteningToVoice=!1,this.pre_text=this.pre_text+this.generated,this.cursorPosition=this.pre_text.length,clearTimeout(this.silenceTimer)},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")}}},GJe={class:"container bg-bg-light dark:bg-bg-dark shadow-lg overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},zJe={class:"container flex flex-row m-2"},VJe={class:"flex-grow m-2"},HJe={class:"flex gap-3 flex-1 items-center flex-grow flex-row m-2 p-2 border border-blue-300 rounded-md border-2 border-blue-300 m-2 p-4"},qJe=u("i",{"data-feather":"pen-tool"},null,-1),YJe=[qJe],$Je=u("i",{"data-feather":"archive"},null,-1),WJe=[$Je],KJe=["src"],jJe=u("span",{class:"w-80"},null,-1),QJe=u("i",{"data-feather":"x"},null,-1),XJe=[QJe],ZJe=u("i",{"data-feather":"mic"},null,-1),JJe=[ZJe],eet=u("i",{"data-feather":"volume-2"},null,-1),tet=[eet],net=u("i",{"data-feather":"speaker"},null,-1),iet=[net],set=["src"],ret=["src"],oet=["src"],aet=["src"],cet=u("i",{"data-feather":"voicemail"},null,-1),det=[cet],uet={key:1,"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pet=u("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"},null,-1),_et=u("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"},null,-1),het=[pet,_et],fet=u("i",{"data-feather":"upload"},null,-1),met=[fet],get=u("i",{"data-feather":"download"},null,-1),bet=[get],Eet={class:"flex gap-3 flex-1 items-center flex-grow justify-end"},vet=u("input",{type:"file",id:"import-input",class:"hidden"},null,-1),yet={key:0},Tet={class:"flex flex-row justify-end mx-2"},xet=["src"],Cet=["src"],Ret=["src"],Aet=["src"],wet=["src"],Net=["src"],Oet=["src"],Iet=["src"],Met=u("i",{"data-feather":"copy"},null,-1),Det=[Met],ket=["src"],Let={key:2},Pet=["value"],Uet={key:0,title:"Selecting model",class:"flex flex-row flex-grow justify-end"},Fet=u("div",{role:"status"},[u("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[u("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),u("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),u("span",{class:"sr-only"},"Selecting model...")],-1),Bet=[Fet],Get=["value"],zet=u("br",null,null,-1),Vet=u("i",{"data-feather":"check"},null,-1),Het=[Vet],qet=u("i",{"data-feather":"plus"},null,-1),Yet=[qet],$et=u("i",{"data-feather":"x"},null,-1),Wet=[$et],Ket=u("i",{"data-feather":"refresh-ccw"},null,-1),jet=[Ket],Qet={class:"slider-container ml-2 mr-2"},Xet=u("h3",{class:"text-gray-600"},"Temperature",-1),Zet={class:"slider-value text-gray-500"},Jet={class:"slider-container ml-2 mr-2"},ett=u("h3",{class:"text-gray-600"},"Top K",-1),ttt={class:"slider-value text-gray-500"},ntt={class:"slider-container ml-2 mr-2"},itt=u("h3",{class:"text-gray-600"},"Top P",-1),stt={class:"slider-value text-gray-500"},rtt={class:"slider-container ml-2 mr-2"},ott=u("h3",{class:"text-gray-600"},"Repeat Penalty",-1),att={class:"slider-value text-gray-500"},ltt={class:"slider-container ml-2 mr-2"},ctt=u("h3",{class:"text-gray-600"},"Repeat Last N",-1),dtt={class:"slider-value text-gray-500"},utt={class:"slider-container ml-2 mr-2"},ptt=u("h3",{class:"text-gray-600"},"Number of tokens to crop the text to",-1),_tt={class:"slider-value text-gray-500"},htt={class:"slider-container ml-2 mr-2"},ftt=u("h3",{class:"text-gray-600"},"Number of tokens to generate",-1),mtt={class:"slider-value text-gray-500"},gtt={class:"slider-container ml-2 mr-2"},btt=u("h3",{class:"text-gray-600"},"Seed",-1),Ett={class:"slider-value text-gray-500"};function vtt(n,e,t,i,s,r){const o=ft("tokens-hilighter"),a=ft("MarkdownRenderer"),l=ft("Card"),d=ft("Toast");return w(),M($e,null,[u("div",GJe,[u("div",zJe,[u("div",VJe,[u("div",HJe,[ae(u("button",{id:"generate-button",title:"Generate from current cursor position",onClick:e[0]||(e[0]=(...c)=>r.generate&&r.generate(...c)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},YJe,512),[[Mt,!s.generating]]),ae(u("button",{id:"generate-next-button",title:"Generate from next place holder",onClick:e[1]||(e[1]=(...c)=>r.generate_in_placeholder&&r.generate_in_placeholder(...c)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},WJe,512),[[Mt,!s.generating]]),ae(u("button",{id:"tokenize",title:"Tokenize text",onClick:e[2]||(e[2]=(...c)=>r.tokenize_text&&r.tokenize_text(...c)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},[u("img",{width:"25",height:"25",src:s.tokenize_icon},null,8,KJe)],512),[[Mt,!s.generating]]),jJe,ae(u("button",{id:"stop-button",onClick:e[3]||(e[3]=(...c)=>r.stopGeneration&&r.stopGeneration(...c)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},XJe,512),[[Mt,s.generating]]),u("button",{type:"button",title:"Dictate (using your browser for transcription)",onClick:e[4]||(e[4]=(...c)=>r.startSpeechRecognition&&r.startSpeechRecognition(...c)),class:Ye([{"text-red-500":s.isLesteningToVoice},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer"])},JJe,2),u("button",{title:"convert text to audio (not saved and uses your browser tts service)",onClick:e[5]||(e[5]=Te(c=>r.speak(),["stop"])),class:Ye([{"text-red-500":r.isTalking},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer"])},tet,2),u("input",{type:"file",ref:"fileInput",onChange:e[6]||(e[6]=(...c)=>r.handleFileUpload&&r.handleFileUpload(...c)),style:{display:"none"},accept:".wav, .mp3"},null,544),u("button",{title:"Upload a voice",onClick:e[7]||(e[7]=(...c)=>r.triggerFileUpload&&r.triggerFileUpload(...c))},iet),u("button",{type:"button",title:"Start audio to audio",onClick:e[8]||(e[8]=(...c)=>r.startRecordingAndTranscribing&&r.startRecordingAndTranscribing(...c)),class:Ye([{"text-green-500":s.isLesteningToVoice},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer text-red-500"])},[s.pending?q("",!0):(w(),M("img",{key:0,src:s.is_deaf_transcribing?s.deaf_on:s.deaf_off,height:"25"},null,8,set)),s.pending?(w(),M("img",{key:1,src:s.loading_icon,height:"25"},null,8,ret)):q("",!0)],2),u("button",{type:"button",title:"Start recording audio",onClick:e[9]||(e[9]=(...c)=>r.startRecording&&r.startRecording(...c)),class:Ye([{"text-green-500":s.isLesteningToVoice},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer text-red-500"])},[s.pending?q("",!0):(w(),M("img",{key:0,src:s.is_recording?s.rec_on:s.rec_off,height:"25"},null,8,oet)),s.pending?(w(),M("img",{key:1,src:s.loading_icon,height:"25"},null,8,aet)):q("",!0)],2),s.isSynthesizingVoice?(w(),M("svg",uet,het)):(w(),M("button",{key:0,title:"generate audio from the text",onClick:e[10]||(e[10]=Te(c=>r.read(),["stop"])),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},det)),ae(u("button",{id:"export-button",onClick:e[11]||(e[11]=(...c)=>r.exportText&&r.exportText(...c)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},met,512),[[Mt,!s.generating]]),ae(u("button",{id:"import-button",onClick:e[12]||(e[12]=(...c)=>r.importText&&r.importText(...c)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},bet,512),[[Mt,!s.generating]]),u("div",Eet,[u("button",{class:Ye(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":s.tab_id=="source"}]),onClick:e[13]||(e[13]=c=>s.tab_id="source")}," Source ",2),u("button",{class:Ye(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":s.tab_id=="render"}]),onClick:e[14]||(e[14]=c=>s.tab_id="render")}," Render ",2)]),vet]),u("div",{class:Ye(["flex-grow m-2 p-2 border border-blue-300 rounded-md border-2 border-blue-300 m-2 p-4",{"border-red-500":s.generating}])},[s.tab_id==="source"?(w(),M("div",yet,[u("div",Tet,[u("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add generic block",onClick:e[15]||(e[15]=Te(c=>r.addBlock(""),["stop"]))},[u("img",{src:s.code_block,width:"25",height:"25"},null,8,xet)]),u("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add python block",onClick:e[16]||(e[16]=Te(c=>r.addBlock("python"),["stop"]))},[u("img",{src:s.python_block,width:"25",height:"25"},null,8,Cet)]),u("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add javascript block",onClick:e[17]||(e[17]=Te(c=>r.addBlock("javascript"),["stop"]))},[u("img",{src:s.javascript_block,width:"25",height:"25"},null,8,Ret)]),u("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add json block",onClick:e[18]||(e[18]=Te(c=>r.addBlock("json"),["stop"]))},[u("img",{src:s.json_block,width:"25",height:"25"},null,8,Aet)]),u("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add c++ block",onClick:e[19]||(e[19]=Te(c=>r.addBlock("c++"),["stop"]))},[u("img",{src:s.cpp_block,width:"25",height:"25"},null,8,wet)]),u("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add html block",onClick:e[20]||(e[20]=Te(c=>r.addBlock("html"),["stop"]))},[u("img",{src:s.html5_block,width:"25",height:"25"},null,8,Net)]),u("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add LaTex block",onClick:e[21]||(e[21]=Te(c=>r.addBlock("latex"),["stop"]))},[u("img",{src:s.LaTeX_block,width:"25",height:"25"},null,8,Oet)]),u("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add bash block",onClick:e[22]||(e[22]=Te(c=>r.addBlock("bash"),["stop"]))},[u("img",{src:s.bash_block,width:"25",height:"25"},null,8,Iet)]),u("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Copy message to clipboard",onClick:e[23]||(e[23]=Te(c=>n.copyContentToClipboard(),["stop"]))},Det)]),ae(u("textarea",{ref:"mdTextarea",onKeydown:e[24]||(e[24]=wr(Te((...c)=>r.insertTab&&r.insertTab(...c),["prevent"]),["tab"])),class:"block min-h-500 p-2.5 w-full text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",rows:4,style:Jt({minHeight:s.mdRenderHeight+"px"}),placeholder:"Enter message here...","onUpdate:modelValue":e[25]||(e[25]=c=>s.text=c),onClick:e[26]||(e[26]=Te((...c)=>r.mdTextarea_clicked&&r.mdTextarea_clicked(...c),["prevent"])),onChange:e[27]||(e[27]=Te((...c)=>r.mdTextarea_changed&&r.mdTextarea_changed(...c),["prevent"]))},`\r +`];let a=-1;return o.forEach(l=>{const d=r.lastIndexOf(l);d>a&&(a=d)}),a==-1&&(a=r.length),console.log(a),a+s+1},i=()=>{const s=t(n),r=this.text.substring(n,s);this.msg.text=r,n=s+1,this.msg.onend=o=>{n{i()},1):(this.isSpeaking=!1,console.log("voice off :",this.text.length," ",s))},this.speechSynthesis.speak(this.msg)};i()},getCursorPosition(){return this.$refs.mdTextarea.selectionStart},appendToOutput(n){this.pre_text+=n,this.text=this.pre_text+this.post_text},generate_in_placeholder(){console.log("Finding cursor position");let n=this.text.indexOf("@@");if(n<0){this.$refs.toast.showToast("No generation placeholder found",4,!1);return}this.text=this.text.substring(0,n)+this.text.substring(n+26,this.text.length),this.pre_text=this.text.substring(0,n),this.post_text=this.text.substring(n,this.text.length);var e=this.text.substring(0,n);console.log(e),Xe.emit("generate_text",{prompt:e,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},async tokenize_text(){const n=await Me.post("/lollms_tokenize",{prompt:this.text},{headers:this.posts_headers});console.log(n.data.named_tokens),this.namedTokens=n.data.named_tokens},generate(){console.log("Finding cursor position"),this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length);var n=this.text.substring(0,this.getCursorPosition());console.log(this.text),console.log(`cursor position :${this.getCursorPosition()}`),console.log(`pretext:${this.pre_text}`),console.log(`post_text:${this.post_text}`),console.log(`prompt:${n}`),Xe.emit("generate_text",{prompt:n,personality:-1,n_predicts:this.n_predicts,n_crop:this.n_crop,parameters:{temperature:this.temperature,top_k:this.top_k,top_p:this.top_p,repeat_penalty:this.repeat_penalty,repeat_last_n:this.repeat_last_n,seed:parseInt(this.seed)}}),this.generating=!0},stopGeneration(){Xe.emit("cancel_text_generation",{})},exportText(){const n=this.text,e=document.createElement("a"),t=new Blob([n],{type:"text/plain"});e.href=URL.createObjectURL(t),e.download="exported_text.txt",document.body.appendChild(e),e.click(),document.body.removeChild(e)},importText(){const n=document.getElementById("import-input");n&&(n.addEventListener("change",e=>{if(e.target.files&&e.target.files[0]){const t=new FileReader;t.onload=()=>{this.text=t.result},t.readAsText(e.target.files[0])}else alert("Please select a file.")}),n.click())},setPreset(){console.log("Setting preset"),console.log(this.selectedPreset),this.tab_id="render",this.text=FJe(this.selectedPreset.content,n=>{console.log("Done"),console.log(n),this.text=n})},addPreset(){let n=prompt("Enter the title of the preset:");this.presets[n]={name:n,content:this.text},Me.post("./add_preset",this.presets[n]).then(e=>{console.log(e.data)}).catch(e=>{this.$refs.toast.showToast(`Error: ${e}`,4,!1)})},removePreset(){this.selectedPreset&&delete this.presets[this.selectedPreset.name]},reloadPresets(){Me.get("./get_presets").then(n=>{console.log(n.data),this.presets=n.data,this.selectedPreset=this.presets[0]}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)})},startRecording(){this.pending=!0,this.is_recording?Me.get("/stop_recording").then(n=>{this.is_recording=!1,this.pending=!1,console.log(n),this.text+=n.data.text,console.log(n.data),this.presets=n.data,this.selectedPreset=this.presets[0]}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)}):Me.get("/start_recording").then(n=>{this.is_recording=!0,this.pending=!1,console.log(n.data)}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)})},startRecordingAndTranscribing(){this.pending=!0,this.is_deaf_transcribing?Me.get("/stop_recording").then(n=>{this.is_deaf_transcribing=!1,this.pending=!1,this.text=n.data.text,this.read()}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)}):Me.get("/start_recording").then(n=>{this.is_deaf_transcribing=!0,this.pending=!1}).catch(n=>{this.$refs.toast.showToast(`Error: ${n}`,4,!1)})},startSpeechRecognition(){"SpeechRecognition"in window||"webkitSpeechRecognition"in window?(this.recognition=new(window.SpeechRecognition||window.webkitSpeechRecognition),this.recognition.lang=this.$store.state.config.audio_in_language,this.recognition.interimResults=!0,this.recognition.onstart=()=>{this.isLesteningToVoice=!0,this.silenceTimer=setTimeout(()=>{this.recognition.stop()},this.silenceTimeout)},this.pre_text=this.text.substring(0,this.getCursorPosition()),this.post_text=this.text.substring(this.getCursorPosition(),this.text.length),this.recognition.onresult=n=>{this.generated="";for(let e=n.resultIndex;e{this.recognition.stop()},this.silenceTimeout)},this.recognition.onerror=n=>{console.error("Speech recognition error:",n.error),this.isLesteningToVoice=!1,clearTimeout(this.silenceTimer)},this.recognition.onend=()=>{console.log("Speech recognition ended."),this.isLesteningToVoice=!1,this.pre_text=this.pre_text+this.generated,this.cursorPosition=this.pre_text.length,clearTimeout(this.silenceTimer)},this.recognition.start()):console.error("Speech recognition is not supported in this browser.")}}},GJe={class:"container bg-bg-light dark:bg-bg-dark shadow-lg overflow-y-auto scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},zJe={class:"container flex flex-row m-2"},VJe={class:"flex-grow m-2"},HJe={class:"flex gap-3 flex-1 items-center flex-grow flex-row m-2 p-2 border border-blue-300 rounded-md border-2 border-blue-300 m-2 p-4"},qJe=u("i",{"data-feather":"pen-tool"},null,-1),YJe=[qJe],$Je=u("i",{"data-feather":"archive"},null,-1),WJe=[$Je],KJe=["src"],jJe=u("span",{class:"w-80"},null,-1),QJe=u("i",{"data-feather":"x"},null,-1),XJe=[QJe],ZJe=u("i",{"data-feather":"mic"},null,-1),JJe=[ZJe],eet=u("i",{"data-feather":"volume-2"},null,-1),tet=[eet],net=u("i",{"data-feather":"speaker"},null,-1),iet=[net],set=["src"],ret=["src"],oet=["src"],aet=["src"],cet=u("i",{"data-feather":"voicemail"},null,-1),det=[cet],uet={key:1,"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pet=u("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"},null,-1),_et=u("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"},null,-1),het=[pet,_et],fet=u("i",{"data-feather":"upload"},null,-1),met=[fet],get=u("i",{"data-feather":"download"},null,-1),bet=[get],Eet={class:"flex gap-3 flex-1 items-center flex-grow justify-end"},vet=u("input",{type:"file",id:"import-input",class:"hidden"},null,-1),yet={key:0},Tet={class:"flex flex-row justify-end mx-2"},xet=["src"],Cet=["src"],Ret=["src"],Aet=["src"],wet=["src"],Net=["src"],Oet=["src"],Iet=["src"],Met=u("i",{"data-feather":"copy"},null,-1),Det=[Met],ket=["src"],Let={key:2},Pet=["value"],Uet={key:0,title:"Selecting model",class:"flex flex-row flex-grow justify-end"},Fet=u("div",{role:"status"},[u("svg",{"aria-hidden":"true",class:"w-6 h-6 animate-spin fill-secondary",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[u("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),u("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]),u("span",{class:"sr-only"},"Selecting model...")],-1),Bet=[Fet],Get=["value"],zet=u("br",null,null,-1),Vet=u("i",{"data-feather":"check"},null,-1),Het=[Vet],qet=u("i",{"data-feather":"plus"},null,-1),Yet=[qet],$et=u("i",{"data-feather":"x"},null,-1),Wet=[$et],Ket=u("i",{"data-feather":"refresh-ccw"},null,-1),jet=[Ket],Qet={class:"slider-container ml-2 mr-2"},Xet=u("h3",{class:"text-gray-600"},"Temperature",-1),Zet={class:"slider-value text-gray-500"},Jet={class:"slider-container ml-2 mr-2"},ett=u("h3",{class:"text-gray-600"},"Top K",-1),ttt={class:"slider-value text-gray-500"},ntt={class:"slider-container ml-2 mr-2"},itt=u("h3",{class:"text-gray-600"},"Top P",-1),stt={class:"slider-value text-gray-500"},rtt={class:"slider-container ml-2 mr-2"},ott=u("h3",{class:"text-gray-600"},"Repeat Penalty",-1),att={class:"slider-value text-gray-500"},ltt={class:"slider-container ml-2 mr-2"},ctt=u("h3",{class:"text-gray-600"},"Repeat Last N",-1),dtt={class:"slider-value text-gray-500"},utt={class:"slider-container ml-2 mr-2"},ptt=u("h3",{class:"text-gray-600"},"Number of tokens to crop the text to",-1),_tt={class:"slider-value text-gray-500"},htt={class:"slider-container ml-2 mr-2"},ftt=u("h3",{class:"text-gray-600"},"Number of tokens to generate",-1),mtt={class:"slider-value text-gray-500"},gtt={class:"slider-container ml-2 mr-2"},btt=u("h3",{class:"text-gray-600"},"Seed",-1),Ett={class:"slider-value text-gray-500"};function vtt(n,e,t,i,s,r){const o=ft("tokens-hilighter"),a=ft("MarkdownRenderer"),l=ft("Card"),d=ft("Toast");return w(),M($e,null,[u("div",GJe,[u("div",zJe,[u("div",VJe,[u("div",HJe,[ae(u("button",{id:"generate-button",title:"Generate from current cursor position",onClick:e[0]||(e[0]=(...c)=>r.generate&&r.generate(...c)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},YJe,512),[[Mt,!s.generating]]),ae(u("button",{id:"generate-next-button",title:"Generate from next place holder",onClick:e[1]||(e[1]=(...c)=>r.generate_in_placeholder&&r.generate_in_placeholder(...c)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},WJe,512),[[Mt,!s.generating]]),ae(u("button",{id:"tokenize",title:"Tokenize text",onClick:e[2]||(e[2]=(...c)=>r.tokenize_text&&r.tokenize_text(...c)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},[u("img",{width:"25",height:"25",src:s.tokenize_icon},null,8,KJe)],512),[[Mt,!s.generating]]),jJe,ae(u("button",{id:"stop-button",onClick:e[3]||(e[3]=(...c)=>r.stopGeneration&&r.stopGeneration(...c)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},XJe,512),[[Mt,s.generating]]),u("button",{type:"button",title:"Dictate (using your browser for transcription)",onClick:e[4]||(e[4]=(...c)=>r.startSpeechRecognition&&r.startSpeechRecognition(...c)),class:Ye([{"text-red-500":s.isLesteningToVoice},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer"])},JJe,2),u("button",{title:"convert text to audio (not saved and uses your browser tts service)",onClick:e[5]||(e[5]=Te(c=>r.speak(),["stop"])),class:Ye([{"text-red-500":r.isTalking},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer"])},tet,2),u("input",{type:"file",ref:"fileInput",onChange:e[6]||(e[6]=(...c)=>r.handleFileUpload&&r.handleFileUpload(...c)),style:{display:"none"},accept:".wav"},null,544),u("button",{title:"Upload a voice",onClick:e[7]||(e[7]=(...c)=>r.triggerFileUpload&&r.triggerFileUpload(...c))},iet),u("button",{type:"button",title:"Start audio to audio",onClick:e[8]||(e[8]=(...c)=>r.startRecordingAndTranscribing&&r.startRecordingAndTranscribing(...c)),class:Ye([{"text-green-500":s.isLesteningToVoice},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer text-red-500"])},[s.pending?q("",!0):(w(),M("img",{key:0,src:s.is_deaf_transcribing?s.deaf_on:s.deaf_off,height:"25"},null,8,set)),s.pending?(w(),M("img",{key:1,src:s.loading_icon,height:"25"},null,8,ret)):q("",!0)],2),u("button",{type:"button",title:"Start recording audio",onClick:e[9]||(e[9]=(...c)=>r.startRecording&&r.startRecording(...c)),class:Ye([{"text-green-500":s.isLesteningToVoice},"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer text-red-500"])},[s.pending?q("",!0):(w(),M("img",{key:0,src:s.is_recording?s.rec_on:s.rec_off,height:"25"},null,8,oet)),s.pending?(w(),M("img",{key:1,src:s.loading_icon,height:"25"},null,8,aet)):q("",!0)],2),s.isSynthesizingVoice?(w(),M("svg",uet,het)):(w(),M("button",{key:0,title:"generate audio from the text",onClick:e[10]||(e[10]=Te(c=>r.read(),["stop"])),class:"w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},det)),ae(u("button",{id:"export-button",onClick:e[11]||(e[11]=(...c)=>r.exportText&&r.exportText(...c)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},met,512),[[Mt,!s.generating]]),ae(u("button",{id:"import-button",onClick:e[12]||(e[12]=(...c)=>r.importText&&r.importText(...c)),class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer"},bet,512),[[Mt,!s.generating]]),u("div",Eet,[u("button",{class:Ye(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":s.tab_id=="source"}]),onClick:e[13]||(e[13]=c=>s.tab_id="source")}," Source ",2),u("button",{class:Ye(["border-2 text-blue-600 dark:text-white border-blue-300 p-2 rounded shadow-lg hover:border-gray-600 dark:link-item-dark cursor-pointer",{"bg-blue-200 dark:bg-blue-500":s.tab_id=="render"}]),onClick:e[14]||(e[14]=c=>s.tab_id="render")}," Render ",2)]),vet]),u("div",{class:Ye(["flex-grow m-2 p-2 border border-blue-300 rounded-md border-2 border-blue-300 m-2 p-4",{"border-red-500":s.generating}])},[s.tab_id==="source"?(w(),M("div",yet,[u("div",Tet,[u("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add generic block",onClick:e[15]||(e[15]=Te(c=>r.addBlock(""),["stop"]))},[u("img",{src:s.code_block,width:"25",height:"25"},null,8,xet)]),u("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add python block",onClick:e[16]||(e[16]=Te(c=>r.addBlock("python"),["stop"]))},[u("img",{src:s.python_block,width:"25",height:"25"},null,8,Cet)]),u("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add javascript block",onClick:e[17]||(e[17]=Te(c=>r.addBlock("javascript"),["stop"]))},[u("img",{src:s.javascript_block,width:"25",height:"25"},null,8,Ret)]),u("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add json block",onClick:e[18]||(e[18]=Te(c=>r.addBlock("json"),["stop"]))},[u("img",{src:s.json_block,width:"25",height:"25"},null,8,Aet)]),u("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add c++ block",onClick:e[19]||(e[19]=Te(c=>r.addBlock("c++"),["stop"]))},[u("img",{src:s.cpp_block,width:"25",height:"25"},null,8,wet)]),u("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add html block",onClick:e[20]||(e[20]=Te(c=>r.addBlock("html"),["stop"]))},[u("img",{src:s.html5_block,width:"25",height:"25"},null,8,Net)]),u("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add LaTex block",onClick:e[21]||(e[21]=Te(c=>r.addBlock("latex"),["stop"]))},[u("img",{src:s.LaTeX_block,width:"25",height:"25"},null,8,Oet)]),u("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Add bash block",onClick:e[22]||(e[22]=Te(c=>r.addBlock("bash"),["stop"]))},[u("img",{src:s.bash_block,width:"25",height:"25"},null,8,Iet)]),u("div",{class:"text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer hover:border-2",title:"Copy message to clipboard",onClick:e[23]||(e[23]=Te(c=>n.copyContentToClipboard(),["stop"]))},Det)]),ae(u("textarea",{ref:"mdTextarea",onKeydown:e[24]||(e[24]=wr(Te((...c)=>r.insertTab&&r.insertTab(...c),["prevent"]),["tab"])),class:"block min-h-500 p-2.5 w-full text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary",rows:4,style:Jt({minHeight:s.mdRenderHeight+"px"}),placeholder:"Enter message here...","onUpdate:modelValue":e[25]||(e[25]=c=>s.text=c),onClick:e[26]||(e[26]=Te((...c)=>r.mdTextarea_clicked&&r.mdTextarea_clicked(...c),["prevent"])),onChange:e[27]||(e[27]=Te((...c)=>r.mdTextarea_changed&&r.mdTextarea_changed(...c),["prevent"]))},`\r `,36),[[Pe,s.text]]),u("span",null,"Cursor position "+ge(s.cursorPosition),1)])):q("",!0),s.audio_url!=null?(w(),M("audio",{controls:"",autoplay:"",key:s.audio_url},[u("source",{src:s.audio_url,type:"audio/wav",ref:"audio_player"},null,8,ket),Ze(" Your browser does not support the audio element. ")])):q("",!0),Ie(o,{namedTokens:s.namedTokens},null,8,["namedTokens"]),s.tab_id==="render"?(w(),M("div",Let,[Ie(a,{ref:"mdRender","markdown-text":s.text,class:"mt-4 p-2 rounded shadow-lg dark:bg-bg-dark"},null,8,["markdown-text"])])):q("",!0)],2)]),Ie(l,{title:"settings",class:"slider-container ml-0 mr-0 max-width",isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Je(()=>[Ie(l,{title:"Model",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Je(()=>[ae(u("select",{"onUpdate:modelValue":e[28]||(e[28]=c=>this.$store.state.selectedModel=c),onChange:e[29]||(e[29]=(...c)=>r.setModel&&r.setModel(...c)),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},[(w(!0),M($e,null,ct(r.models,c=>(w(),M("option",{key:c,value:c},ge(c),9,Pet))),128))],544),[[zn,this.$store.state.selectedModel]]),s.selecting_model?(w(),M("div",Uet,Bet)):q("",!0)]),_:1}),Ie(l,{title:"Presets",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Je(()=>[ae(u("select",{"onUpdate:modelValue":e[30]||(e[30]=c=>s.selectedPreset=c),class:"bg-white dark:bg-black mb-2 border-2 rounded-md shadow-sm w-full"},[(w(!0),M($e,null,ct(s.presets,c=>(w(),M("option",{key:c,value:c},ge(c.name),9,Get))),128))],512),[[zn,s.selectedPreset]]),zet,u("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[31]||(e[31]=(...c)=>r.setPreset&&r.setPreset(...c)),title:"Use preset"},Het),u("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[32]||(e[32]=(...c)=>r.addPreset&&r.addPreset(...c)),title:"Add this text as a preset"},Yet),u("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[33]||(e[33]=(...c)=>r.removePreset&&r.removePreset(...c)),title:"Remove preset"},Wet),u("button",{class:"w-6 ml-2 hover:text-secondary duration-75 active:scale-90 cursor-pointer",onClick:e[34]||(e[34]=(...c)=>r.reloadPresets&&r.reloadPresets(...c)),title:"Reload presets list"},jet)]),_:1}),Ie(l,{title:"Generation params",class:"slider-container ml-0 mr-0",is_subcard:!0,isHorizontal:!1,disableHoverAnimation:!0,disableFocus:!0},{default:Je(()=>[u("div",Qet,[Xet,ae(u("input",{type:"range","onUpdate:modelValue":e[35]||(e[35]=c=>s.temperature=c),min:"0",max:"5",step:"0.1",class:"w-full"},null,512),[[Pe,s.temperature]]),u("span",Zet,"Current value: "+ge(s.temperature),1)]),u("div",Jet,[ett,ae(u("input",{type:"range","onUpdate:modelValue":e[36]||(e[36]=c=>s.top_k=c),min:"1",max:"100",step:"1",class:"w-full"},null,512),[[Pe,s.top_k]]),u("span",ttt,"Current value: "+ge(s.top_k),1)]),u("div",ntt,[itt,ae(u("input",{type:"range","onUpdate:modelValue":e[37]||(e[37]=c=>s.top_p=c),min:"0",max:"1",step:"0.1",class:"w-full"},null,512),[[Pe,s.top_p]]),u("span",stt,"Current value: "+ge(s.top_p),1)]),u("div",rtt,[ott,ae(u("input",{type:"range","onUpdate:modelValue":e[38]||(e[38]=c=>s.repeat_penalty=c),min:"0",max:"5",step:"0.1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[Pe,s.repeat_penalty]]),u("span",att,"Current value: "+ge(s.repeat_penalty),1)]),u("div",ltt,[ctt,ae(u("input",{type:"range","onUpdate:modelValue":e[39]||(e[39]=c=>s.repeat_last_n=c),min:"0",max:"100",step:"1",class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[Pe,s.repeat_last_n]]),u("span",dtt,"Current value: "+ge(s.repeat_last_n),1)]),u("div",utt,[ptt,ae(u("input",{type:"number","onUpdate:modelValue":e[40]||(e[40]=c=>s.n_crop=c),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[Pe,s.n_crop]]),u("span",_tt,"Current value: "+ge(s.n_crop),1)]),u("div",htt,[ftt,ae(u("input",{type:"number","onUpdate:modelValue":e[41]||(e[41]=c=>s.n_predicts=c),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[Pe,s.n_predicts]]),u("span",mtt,"Current value: "+ge(s.n_predicts),1)]),u("div",gtt,[btt,ae(u("input",{type:"number","onUpdate:modelValue":e[42]||(e[42]=c=>s.seed=c),class:"bg-white dark:bg-black m-0 border-2 rounded-md shadow-sm w-full"},null,512),[[Pe,s.seed]]),u("span",Ett,"Current value: "+ge(s.seed),1)])]),_:1})]),_:1})])]),Ie(d,{ref:"toast"},null,512)],64)}const ytt=bt(BJe,[["render",vtt]]);const Stt={data(){return{activeExtension:null}},computed:{activeExtensions(){return console.log(this.$store.state.extensionsZoo),console.log(lM(this.$store.state.extensionsZoo)),this.$store.state.extensionsZoo}},methods:{showExtensionPage(n){this.activeExtension=n}}},Ttt={class:"container overflow-y-scroll flex flex-col shadow-lg p-10 pt-0 overflow-y-scroll w-full dark:bg-bg-dark scrollbar-thin scrollbar-track-bg-light-tone scrollbar-thumb-bg-light-tone-panel hover:scrollbar-thumb-primary dark:scrollbar-track-bg-dark-tone dark:scrollbar-thumb-bg-dark-tone-panel dark:hover:scrollbar-thumb-primary active:scrollbar-thumb-secondary"},xtt={key:0},Ctt=["onClick"],Rtt={key:0},Att=["src"],wtt={key:1},Ntt=u("p",null,"No extension is active. Please install and activate an extension.",-1),Ott=[Ntt];function Itt(n,e,t,i,s,r){return w(),M("div",Ttt,[r.activeExtensions.length>0?(w(),M("div",xtt,[(w(!0),M($e,null,ct(r.activeExtensions,o=>(w(),M("div",{key:o.name,onClick:a=>r.showExtensionPage(o)},[u("div",{class:Ye({"active-tab":o===s.activeExtension})},ge(o.name),3)],8,Ctt))),128)),s.activeExtension?(w(),M("div",Rtt,[u("iframe",{src:s.activeExtension.page,width:"100%",height:"500px",frameborder:"0"},null,8,Att)])):q("",!0)])):(w(),M("div",wtt,Ott))])}const Mtt=bt(Stt,[["render",Itt]]);var mO={exports:{}};/* @license Papa Parse v5.4.1 diff --git a/web/dist/index.html b/web/dist/index.html index 58c239bb..f76f26f6 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -6,7 +6,7 @@ LoLLMS WebUI - Welcome - + diff --git a/web/src/views/PlayGroundView.vue b/web/src/views/PlayGroundView.vue index d607dcee..5600d7e1 100644 --- a/web/src/views/PlayGroundView.vue +++ b/web/src/views/PlayGroundView.vue @@ -25,7 +25,7 @@ class="w-6 hover:text-secondary duration-75 active:scale-90 cursor-pointer"> - +