started new code to build skills library

This commit is contained in:
Saifeddine ALOUI 2024-03-10 22:49:11 +01:00
parent 69d8497c66
commit beda21f850
5 changed files with 18 additions and 15 deletions

@ -1 +1 @@
Subproject commit 0bbd14e6a2ac5f8b994ea41c6bf3fecf9a24283a
Subproject commit 33297e81c74a2f63c2ad6769c0ed422818b17a3c

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-3e1bee62.js"></script>
<link rel="stylesheet" href="/assets/index-fe544d3a.css">
<script type="module" crossorigin src="/assets/index-5adfb8d9.js"></script>
<link rel="stylesheet" href="/assets/index-2af5ddab.css">
</head>
<body>
<div id="app"></div>

View File

@ -94,7 +94,7 @@
<i data-feather="check"></i>
</button>
</div>
<button v-if="!loading" type="button" @click.stop="addToMemory" title="Add this discussion content to skills database"
<button v-if="!loading" type="button" @click.stop="addDiscussion2SkillsLibrary" title="Add this discussion content to skills database"
class=" w-6 text-blue-400 hover:text-secondary duration-75 active:scale-90">
<img :src="memory_icon">
</button>
@ -446,10 +446,7 @@ export default {
discussion_id: 0,
}
},
methods: {
addToMemory(){
this.$store.state.messageBox.showMessage("This functionality is being developed. Please be patient")
},
methods: {
add_webpage(){
console.log("addWebLink received")
this.$refs.web_url_input_box.showPanel();
@ -549,6 +546,12 @@ export default {
}
},
async addDiscussion2SkillsLibrary(){
let result = await axios.post("/add_discussion_to_skills_library");
if(result.status){
console.log("done")
}
},
async toggleLTM(){
this.$store.state.config.activate_skills_lib =! this.$store.state.config.activate_skills_lib;
await this.applyConfiguration();