fix (PaLM2): messages will properly regenerate (#368)

* making progress to fix regen for PaLM

* fix (PaLM2): messages will properly regenerate
This commit is contained in:
Danny Avila 2023-05-23 06:55:23 -04:00 committed by GitHub
parent b8c3ae5e8f
commit 112c6c5b19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 9 deletions

View file

@ -266,7 +266,7 @@ class GoogleAgent {
const user = opts.user || null;
const conversationId = opts.conversationId || crypto.randomUUID();
const parentMessageId = opts.parentMessageId || '00000000-0000-0000-0000-000000000000';
const userMessageId = crypto.randomUUID();
const userMessageId = opts.overrideParentMessageId || crypto.randomUUID();
const responseMessageId = crypto.randomUUID();
const messages = await this.loadHistory(conversationId, this.options?.parentMessageId);