mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-29 08:09:52 +08:00
feat(server): edit tool intent collect (#12998)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Footnotes are now included in streamed AI responses, formatted as markdown and appended at the end of the output when available. * **Improvements** * Enhanced handling of footnotes across multiple AI providers, ensuring consistent display of additional information after the main response. * **Refactor** * Removed citation parsing from one provider to streamline output. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -347,7 +347,9 @@ export class OpenAIProvider extends CopilotProvider<OpenAIConfig> {
|
||||
break;
|
||||
}
|
||||
case 'finish': {
|
||||
const result = citationParser.end();
|
||||
const footnotes = textParser.end();
|
||||
const result =
|
||||
citationParser.end() + (footnotes.length ? '\n' + footnotes : '');
|
||||
yield result;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user