This commit is contained in:
Saifeddine ALOUI 2025-02-18 01:01:58 +01:00
parent 8579bcb455
commit 2acf0b9014
5 changed files with 11 additions and 9 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-D9m10VKS.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CtEAmk75.css">
<script type="module" crossorigin src="/assets/index-Gok2LJ-Z.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-h6chh2-D.css">
</head>
<body>
<div id="app"></div>

View File

@ -182,12 +182,12 @@ export default {
},
mount() {
console.log("Mounting")
this.onMount(this.function_call)
this.onMount(this)
},
unmount() {
console.log("Unmounting")
console.log(this.onUnMount)
this.onUnMount(this.function_call)
this.onUnMount(this)
this.mounted=false
},
showHelp() {

View File

@ -5109,7 +5109,8 @@ export default {
},
// Mount a function
async mountFunction(func) {
async mountFunction(entry) {
const func = entry.function_call
try {
const response = await axios.post('/mount_function_call', {
client_id: this.$store.state.client_id,
@ -5129,7 +5130,8 @@ export default {
},
// Unmount a function
async unmountFunction(func) {
async unmountFunction(entry) {
const func = entry.function_call
try {
console.log("Unmounting function")
const response = await axios.post('/unmount_function_call', {