There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
chore(server): omit system message in error (#11365)
darkskygit4e1e91120f36
diff --git a/packages/backend/server/src/plugins/copilot/controller.ts b/packages/backend/server/src/plugins/copilot/controller.tsindex 3cf7c5aebd..6417b10212 100644--- a/packages/backend/server/src/plugins/copilot/controller.ts+++ b/packages/backend/server/src/plugins/copilot/controller.ts@@ -251,7 +251,7 @@ export class CopilotController implements BeforeApplicationShutdown {}const finalMessage = session.finish(params);- info.finalMessage = finalMessage;+ info.finalMessage = finalMessage.filter(m => m.role !== 'system');const content = await provider.generateText(finalMessage, session.model, {...session.config.promptConfig,@@ -315,7 +315,8 @@ export class CopilotController implements BeforeApplicationShutdown {this.ongoingStreamCount$.next(this.ongoingStreamCount$.value + 1);const finalMessage = session.finish(params);- info.finalMessage = finalMessage;+ info.finalMessage = finalMessage.filter(m => m.role !== 'system');+const source$ = from(provider.generateTextStream(finalMessage, session.model, {...session.config.promptConfig,