mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
fixed ui chatbox
This commit is contained in:
parent
135dbaae98
commit
8c3b0665c0
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
web/dist/index.html
vendored
4
web/dist/index.html
vendored
@ -6,8 +6,8 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>LoLLMS WebUI - Welcome</title>
|
||||
<script type="module" crossorigin src="/assets/index-a478be60.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-6689db90.css">
|
||||
<script type="module" crossorigin src="/assets/index-e8bbde88.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-c1351dff.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
@ -152,13 +152,6 @@
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div v-if="loading" title="Waiting for reply">
|
||||
<img :src="loader_v0">
|
||||
<!-- SPINNER -->
|
||||
<div role="status">
|
||||
<span class="sr-only">Loading...</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="w-fit group relative" v-if="!loading" >
|
||||
<!-- :onShowPersList="onShowPersListFun" -->
|
||||
<div class= "group w-full inline-flex absolute opacity-0 group-hover:opacity-100 transform group-hover:-translate-y-10 group-hover:translate-x-15 transition-all duration-300">
|
||||
@ -613,6 +606,10 @@ export default {
|
||||
if (this.$store.state.config.personalities.includes(pers_path)) {
|
||||
|
||||
const res = await this.select_personality(pers)
|
||||
await this.$store.dispatch('refreshConfig');
|
||||
await this.$store.dispatch('refreshBindings');
|
||||
await this.$store.dispatch('refreshModelsZoo');
|
||||
await this.$store.dispatch('refreshModels');
|
||||
await this.$store.dispatch('refreshMountedPersonalities');
|
||||
await this.$store.dispatch('refreshConfig');
|
||||
console.log('pers is mounted', res)
|
||||
@ -688,8 +685,7 @@ export default {
|
||||
setBinding(selectedBinding){
|
||||
console.log("Setting binding to "+selectedBinding.name);
|
||||
this.selecting_binding=true
|
||||
this.selectedModel = selectedBinding
|
||||
this.$store.state.messa
|
||||
this.selectedBinding = selectedBinding
|
||||
this.$store.state.messageBox.showBlockingMessage("Loading binding")
|
||||
|
||||
axios.post("/update_setting", {
|
||||
@ -700,10 +696,11 @@ export default {
|
||||
this.$store.state.messageBox.hideMessage()
|
||||
console.log("UPDATED");
|
||||
console.log(response);
|
||||
await this.$store.dispatch('refreshConfig');
|
||||
await this.$store.dispatch('refreshBindings');
|
||||
await this.$store.dispatch('refreshModelsZoo');
|
||||
await this.$store.dispatch('refreshModels');
|
||||
await this.$store.dispatch('refreshConfig');
|
||||
|
||||
this.$store.state.toast.showToast(`Binding changed to ${this.currentBinding.name}`,4,true)
|
||||
this.selecting_binding=false
|
||||
}).catch(err=>{
|
||||
|
@ -354,13 +354,13 @@ export const store = createStore({
|
||||
let bindingsZoo = await api_get_req("list_bindings")
|
||||
console.log("Loaded bindings zoo :",bindingsZoo)
|
||||
this.state.installedBindings = bindingsZoo.filter(item=> item.installed)
|
||||
console.log("Loaded bindings zoo ", this.state.installedBindings)
|
||||
commit('setbindingsZoo',bindingsZoo)
|
||||
const index = bindingsZoo.findIndex(item=>item.name == this.state.config.binding_name)
|
||||
if (index!=-1){
|
||||
commit('setCurrentBinding',bindingsZoo[index])
|
||||
}
|
||||
|
||||
console.log("Loaded bindings zoo ", this.state.installedBindings)
|
||||
commit('setbindingsZoo',bindingsZoo)
|
||||
},
|
||||
async refreshModelsZoo({ commit }) {
|
||||
console.log("Fetching models")
|
||||
|
Loading…
Reference in New Issue
Block a user