fixed some buttons

This commit is contained in:
Saifeddine ALOUI 2025-02-07 21:33:56 +01:00
parent b75af0a536
commit 88e6b523df
7 changed files with 21 additions and 17 deletions

View File

@ -251,6 +251,5 @@ def add_events(sio: socketio):
# add functions to lollm
lollmsElfServer.handle_generate_msg = handle_generate_msg
lollmsElfServer.generate_msg_with_internet = generate_msg_with_internet
lollmsElfServer.handle_continue_generate_msg_from = (
handle_continue_generate_msg_from
)
lollmsElfServer.handle_generate_msg_from = handle_generate_msg_from
lollmsElfServer.handle_continue_generate_msg_from = handle_continue_generate_msg_from

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-OVKvpbIR.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-JfPBT8Vf.css">
<script type="module" crossorigin src="/assets/index-CneGaFvu.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-C0N8vUoL.css">
</head>
<body>
<div id="app"></div>

View File

@ -196,7 +196,7 @@
<ToolbarButton @click.stop="resendMessage('simple_question')" title="Resend message without context" icon="sendSimple" />
</div>
<div v-if="!editMsgMode && message.sender === $store.state.mountedPers.name">
<ToolbarButton @click="continueMessage" title="Continue message" icon="fastForward" />
<ToolbarButton @click.stop="continueMessage" title="Continue message" icon="fastForward" />
</div>
<!-- DELETE CONFIRMATION -->
<div v-if="deleteMsgMode" class="flex items-center duration-75">
@ -720,6 +720,7 @@ export default {
this.$emit('resendMessage', this.message.id, this.message.content, msg_type)
},
continueMessage() {
console.log("Emitting continueMessage")
this.$emit('continueMessage', this.message.id, this.message.content)
},
getImgUrl() {

View File

@ -3,7 +3,7 @@
<button
class="text-lg hover:text-secondary duration-75 active:scale-90 p-2 cursor-pointer"
:title="title"
@click="$emit('click')"
@click.prevent.stop="emit_click"
>
<svg class="w-6 h-6" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round" stroke-linejoin="round">
<g v-html="iconPath"></g>
@ -29,6 +29,10 @@
}
},
methods: {
emit_click(){
console.log("emitting click")
this.$emit('click')
},
getIconPath() {
// Your switch statement remains the same
switch (this.icon) {

View File

@ -1315,7 +1315,8 @@ export default {
"The first computer virus was created in 1971 and was called 'Creeper'. It simply displayed the message 'I'm the creeper: catch me if you can!'",
"Did you know? The CAPTCHA system you use to prove you're human actually helps digitize books and improve AI training!",
"The word 'robot' comes from the Czech word 'robota', meaning forced labor or servitude!",
"Did you know? The first AI chatbot, ELIZA, was created in 1966 and could convince some people they were talking to a real therapist!" "Large Language Models (LLMs) have evolved from having millions of parameters to hundreds of billions in just a few years.",
"Did you know? The first AI chatbot, ELIZA, was created in 1966 and could convince some people they were talking to a real therapist!",
"Large Language Models (LLMs) have evolved from having millions of parameters to hundreds of billions in just a few years.",
"LoLLMs (Lord of Large Language Multimodal Systems) is an open-source AI assistant platform created by ParisNeo.",
"Saïph (κ Orionis) is a blue-white supergiant star approximately 650 light-years away from Earth.",
"Neural networks were first proposed in 1943 by Warren McCulloch and Walter Pitts.",
@ -3318,9 +3319,8 @@ export default {
axios.get('/get_generation_status', {}).then((res) => {
if (res) {
if (!res.data.status) {
console.log("Continuing generation")
socket.emit('continue_generate_msg_from', { prompt: msg, id: msgId });
}
else {
console.log("Already generating");