mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 14:28:51 +08:00
@@ -335,7 +335,10 @@ export class CopilotController {
|
|||||||
concatMap(values => {
|
concatMap(values => {
|
||||||
session.push({
|
session.push({
|
||||||
role: 'assistant',
|
role: 'assistant',
|
||||||
content: values.join(''),
|
content: values
|
||||||
|
.filter(v => v.status === GraphExecutorState.EmitContent)
|
||||||
|
.map(v => v.content)
|
||||||
|
.join(''),
|
||||||
createdAt: new Date(),
|
createdAt: new Date(),
|
||||||
});
|
});
|
||||||
return from(session.save());
|
return from(session.save());
|
||||||
|
|||||||
Reference in New Issue
Block a user