This commit is contained in:
Saifeddine ALOUI 2025-01-22 21:38:28 +01:00
parent 1fc2de6ea7
commit 4bb5d0a535
7 changed files with 13 additions and 10 deletions

@ -1 +1 @@
Subproject commit e566760cdd8ee3a9e72ed945102668e7702ea483 Subproject commit fab35e47c5f71624acdc8f56c4dee03334885a25

View File

@ -649,8 +649,8 @@ class LOLLMSWebUI(LOLLMSElfServer):
# Get the list of messages # Get the list of messages
messages = discussion.get_messages() messages = discussion.get_messages()
discussion_messages = f"{self.start_header_id_template}instruction{self.end_header_id_template}Create a short title to this discussion\nYour response should only contain the title without any comments.\n" discussion_messages = f"{self.system_full_header}Create a short title to this discussion\nYour response should only contain the title without any comments or thoughts.\n"
discussion_title = f"\n{self.start_header_id_template}Discussion title{self.end_header_id_template}" discussion_title = f"\n{self.ai_custom_header('assistant')}"
available_space = ( available_space = (
self.config.ctx_size self.config.ctx_size

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> <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"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LoLLMS WebUI</title> <title>LoLLMS WebUI</title>
<script type="module" crossorigin src="/assets/index-DEmaslXn.js"></script> <script type="module" crossorigin src="/assets/index-DAcF_b4U.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BxZCDxOb.css"> <link rel="stylesheet" crossorigin href="/assets/index-CYzgfFpJ.css">
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>

View File

@ -389,7 +389,7 @@ export default {
error: null, error: null,
isInfosMenuVisible: false, isInfosMenuVisible: false,
isVisible: false, isVisible: false,
isPinned: false, isPinned: JSON.parse(localStorage.getItem('isPinned') || 'false'),
selectedLanguage: '', selectedLanguage: '',
isLanguageMenuVisible: false, isLanguageMenuVisible: false,
sunIcon: document.querySelector(".sun"), sunIcon: document.querySelector(".sun"),
@ -439,6 +439,7 @@ export default {
}, },
async mounted() { async mounted() {
try { try {
this.isVisible = this.isPinned
this.$store.state.toast = this.$refs.toast this.$store.state.toast = this.$refs.toast
this.$store.state.messageBox = this.$refs.messageBox this.$store.state.messageBox = this.$refs.messageBox
this.$store.state.universalForm = this.$refs.universalForm this.$store.state.universalForm = this.$refs.universalForm
@ -707,6 +708,8 @@ export default {
togglePin() { togglePin() {
this.isPinned = !this.isPinned this.isPinned = !this.isPinned
this.isVisible = this.isPinned this.isVisible = this.isPinned
// Save the new state to localStorage
localStorage.setItem('isPinned', JSON.stringify(this.isPinned))
}, },
fun_mode_on(){ fun_mode_on(){
console.log("Turning on fun mode") console.log("Turning on fun mode")

@ -1 +1 @@
Subproject commit 5d9509cd0075a811c4c5703d7172a80698d4ac0a Subproject commit 515f1518c20f91f796dce0f8d19889b8d983f9ef