mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-12 15:46:29 +08:00
@@ -131,9 +131,8 @@ const getFollowingUpAtoms = (
|
||||
throw new Error('followupLLMChain not set');
|
||||
}
|
||||
const messages = await chatHistory.getMessages();
|
||||
const aiMessage = messages.findLast(
|
||||
message => message._getType() === 'ai'
|
||||
)?.text;
|
||||
const aiMessage = messages.findLast(message => message._getType() === 'ai')
|
||||
?.text;
|
||||
const humanMessage = messages.findLast(
|
||||
message => message._getType() === 'human'
|
||||
)?.text;
|
||||
|
||||
Reference in New Issue
Block a user