Best request

This commit is contained in:
Saifeddine ALOUI 2024-06-17 02:00:42 +02:00
parent 6ee7dec235
commit 95ddb641a9
5 changed files with 16 additions and 14 deletions

View File

@ -72,7 +72,7 @@ def terminate_thread(thread):
else:
ASCIIColors.yellow("Canceled successfully")# The current version of the webui
lollms_webui_version="9.8 (ζ)"
lollms_webui_version="9.9 (Alpha)"

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
View File

@ -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-2e80f57e.js"></script>
<link rel="stylesheet" href="/assets/index-e6dbfd2b.css">
<script type="module" crossorigin src="/assets/index-4dc4b1d7.js"></script>
<link rel="stylesheet" href="/assets/index-1c340000.css">
</head>
<body>
<div id="app"></div>

View File

@ -3919,20 +3919,22 @@ export default {
},
methods: {
addDataSource() {
this.configFile.data_sources.push('');
this.$store.state.config.data_sources.push('');
this.settingsChanged = true;
},
removeDataSource(index) {
this.configFile.data_sources.splice(index, 1);
this.$store.state.config.data_sources.splice(index, 1);
this.settingsChanged = true;
},
async select_folder(index){
try{
let infos = await axios.post('/add_rag_database', {client_id:this.$store.state.client_id}, this.posts_headers)
if (infos){
console.log(infos)
self.$store.config.data_sources[index]=`${infos.data["database_name"]}::${infos.data["database_path"]}`
self.settingsChanged=true;
console.log(infos.data)
console.log(index)
console.log(this.$store.state.config.data_sources)
this.$store.state.config.data_sources[index]=`${infos.data["database_name"]}::${infos.data["database_path"]}`
this.settingsChanged=true;
}
else{
this.$store.state.toast.showToast("Failed to select a folder", 4, false)
@ -4884,7 +4886,7 @@ export default {
};
socket.on('uninstall_progress', progressListener);
if(self.selected_variant!=undefined){
if(this.selected_variant!=undefined){
socket.emit('uninstall_model', { path: 'https://huggingface.co/'+model_object.model.quantizer+'/'+model_object.model.name+'/resolve/main/'+this.selected_variant.name, type: model_object.model.type });
}
else{