mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-03-10 22:44:22 +00:00
some more bug fixes
This commit is contained in:
parent
3aff48aaf2
commit
474035338e
@ -383,7 +383,7 @@ export default {
|
|||||||
this.setDiscussionLoading(this.currentDiscussion.id, this.isGenerating);
|
this.setDiscussionLoading(this.currentDiscussion.id, this.isGenerating);
|
||||||
axios.get('/get_generation_status', {}).then((res) => {
|
axios.get('/get_generation_status', {}).then((res) => {
|
||||||
if (res) {
|
if (res) {
|
||||||
console.log(res.data.status);
|
//console.log(res.data.status);
|
||||||
if (!res.data.status) {
|
if (!res.data.status) {
|
||||||
socket.emit('generate_msg', { prompt: msg });
|
socket.emit('generate_msg', { prompt: msg });
|
||||||
|
|
||||||
@ -391,7 +391,7 @@ export default {
|
|||||||
// Temp data
|
// Temp data
|
||||||
let usrMessage = {
|
let usrMessage = {
|
||||||
message: msg,
|
message: msg,
|
||||||
id: this.discussionArr[this.discussionArr.length - 1].id + 1,
|
id: 0,
|
||||||
rank: 0,
|
rank: 0,
|
||||||
user: "user"
|
user: "user"
|
||||||
};
|
};
|
||||||
@ -408,7 +408,7 @@ export default {
|
|||||||
},
|
},
|
||||||
steamMessageContent(content) {
|
steamMessageContent(content) {
|
||||||
// Streams response message content from backend
|
// Streams response message content from backend
|
||||||
console.log(content)
|
//console.log(content)
|
||||||
const lastMsg = this.discussionArr[this.discussionArr.length - 1]
|
const lastMsg = this.discussionArr[this.discussionArr.length - 1]
|
||||||
lastMsg.content = content.data
|
lastMsg.content = content.data
|
||||||
},
|
},
|
||||||
@ -420,8 +420,9 @@ export default {
|
|||||||
if (msg) {
|
if (msg) {
|
||||||
discussionItem.title = msg
|
discussionItem.title = msg
|
||||||
this.tempList = this.list
|
this.tempList = this.list
|
||||||
}
|
|
||||||
await this.edit_title(id, msg)
|
await this.edit_title(id, msg)
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
async createNewDiscussion() {
|
async createNewDiscussion() {
|
||||||
// Creates new discussion on backend,
|
// Creates new discussion on backend,
|
||||||
@ -438,6 +439,7 @@ export default {
|
|||||||
const selectedDisElement = document.getElementById('dis-' + res.id)
|
const selectedDisElement = document.getElementById('dis-' + res.id)
|
||||||
this.scrollToElement(selectedDisElement)
|
this.scrollToElement(selectedDisElement)
|
||||||
})
|
})
|
||||||
|
//console.log("disc",JSON.stringify(discussionItem))
|
||||||
},
|
},
|
||||||
loadLastUsedDiscussion() {
|
loadLastUsedDiscussion() {
|
||||||
// Checks local storage for last selected discussion
|
// Checks local storage for last selected discussion
|
||||||
|
Loading…
x
Reference in New Issue
Block a user