Fix issue with summarization
This commit is contained in:
parent
c6510a31dc
commit
54297ed6a1
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue