upgraded settings

This commit is contained in:
Saifeddine ALOUI 2025-01-13 02:04:05 +01:00
parent 2357c30f40
commit afd1b48d52
4 changed files with 26 additions and 8 deletions

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 @@
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LoLLMS WebUI</title>
<script type="module" crossorigin src="/assets/index-BsWWxXMf.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DHp8mvZr.css">
<script type="module" crossorigin src="/assets/index-u-dRlu8W.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CuTYr9g3.css">
</head>
<body>
<div id="app"></div>

View File

@ -1195,7 +1195,7 @@
</svg>
</button>
</div>
<button @click="addDatabaseService" class="mt-2 px-2 py-1 bg-blue-500 text-white rounded">Add Data lake</button>
<button @click="addDataLake" class="mt-2 px-2 py-1 bg-blue-500 text-white rounded">Add Data lake</button>
</td>
</tr>
</table>
@ -4707,7 +4707,25 @@ export default {
this.configFile.datalakes[index].mounted = value;
this.settingsChanged = true;
},
addDatabaseService() {
addDatabaseService(){
if (!this.configFile.rag_local_services) {
this.configFile.rag_local_services = [];
}
// Add new entry as an object with default values
this.configFile.rag_local_services.push({
alias: "datalake",
type: "lightrag",
url: "http://localhost:9621/",
path: "",
key: "",
mounted: false
});
this.settingsChanged = true;
},
addDataLake() {
if (!this.configFile.datalakes) {
this.configFile.datalakes = [];
}