mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-02-20 17:22:47 +00:00
Fixed a little problem
This commit is contained in:
parent
bc4652ce66
commit
4d043ef36c
@ -881,9 +881,10 @@ class LoLLMsAPI(LollmsApplication):
|
||||
def callback(text, message_type: MSG_TYPE, metadata:dict={}):
|
||||
if message_type == MSG_TYPE.MSG_TYPE_CHUNK:
|
||||
ASCIIColors.success(f"generated:{len(self.answer['full_text'].split())} words", end='\r')
|
||||
self.answer["full_text"] = self.answer["full_text"] + text
|
||||
self.socketio.emit('text_chunk', {'chunk': text, 'type':MSG_TYPE.MSG_TYPE_CHUNK.value}, room=client_id)
|
||||
self.socketio.sleep(0)
|
||||
if text is not None:
|
||||
self.answer["full_text"] = self.answer["full_text"] + text
|
||||
self.socketio.emit('text_chunk', {'chunk': text, 'type':MSG_TYPE.MSG_TYPE_CHUNK.value}, room=client_id)
|
||||
self.socketio.sleep(0)
|
||||
if client_id in self.connections:# Client disconnected
|
||||
if self.connections[client_id]["requested_stop"]:
|
||||
return False
|
||||
|
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
4
web/dist/index.html
vendored
@ -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-916f9dad.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-a577e700.css">
|
||||
<script type="module" crossorigin src="/assets/index-86a16b68.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-bd13400e.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
@ -1442,9 +1442,14 @@ export default {
|
||||
}
|
||||
},
|
||||
setDiscussionLoading(id, loading) {
|
||||
const index = this.list.findIndex((x) => x.id == id)
|
||||
const discussionItem = this.list[index]
|
||||
discussionItem.loading = loading
|
||||
try{
|
||||
const index = this.list.findIndex((x) => x.id == id)
|
||||
const discussionItem = this.list[index]
|
||||
discussionItem.loading = loading
|
||||
}
|
||||
catch{
|
||||
console.log("Error setting discussion loading")
|
||||
}
|
||||
},
|
||||
setPageTitle(item) {
|
||||
// item is either title:String or {id:Number, title:String}
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit eb6559938cfe1426ce5eeb7336f7e922eb6ba07b
|
||||
Subproject commit 1a7efd7fdd572d09d537a6d6d0be9e6d05106d28
|
Loading…
x
Reference in New Issue
Block a user