mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-14 00:14:04 +09:00
Fix issue with summarization
This commit is contained in:
@@ -12,7 +12,7 @@ export class ChatCompletionResponse {
|
|||||||
this.messages = []
|
this.messages = []
|
||||||
if (opts.fillMessage) {
|
if (opts.fillMessage) {
|
||||||
this.messages.push(opts.fillMessage)
|
this.messages.push(opts.fillMessage)
|
||||||
this.offsetTotals = JSON.parse(JSON.stringify(opts.fillMessage.usage))
|
this.offsetTotals = opts.fillMessage.usage && JSON.parse(JSON.stringify(opts.fillMessage.usage))
|
||||||
this.isFill = true
|
this.isFill = true
|
||||||
}
|
}
|
||||||
if (opts.onMessageChange) this.messageChangeListeners.push(opts.onMessageChange)
|
if (opts.onMessageChange) this.messageChangeListeners.push(opts.onMessageChange)
|
||||||
|
|||||||
Reference in New Issue
Block a user