kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
Merge pull request #346 from hvqzao/main
commit
7f530fdc36
|
@ -452,14 +452,18 @@ Current date: ${currentDate}${this._sepToken}\n\n`
|
|||
id: string
|
||||
): Promise<types.ChatMessage> {
|
||||
const res = await this._messageStore.get(id)
|
||||
if (this._debug) {
|
||||
console.log('getMessageById', id, res)
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
||||
protected async _defaultUpsertMessage(
|
||||
message: types.ChatMessage
|
||||
): Promise<void> {
|
||||
if (this._debug) {
|
||||
console.log('upsertMessage', message.id, message)
|
||||
}
|
||||
await this._messageStore.set(message.id, message)
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue