From 208357d4134ed6d516a20712401ef015463a66e4 Mon Sep 17 00:00:00 2001 From: Rhys Howell Date: Thu, 3 Oct 2024 10:43:29 -0400 Subject: [PATCH] chore: move docs references after content --- src/participant/participant.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/participant/participant.ts b/src/participant/participant.ts index cd41b32e8..07c725ca0 100644 --- a/src/participant/participant.ts +++ b/src/participant/participant.ts @@ -1429,6 +1429,10 @@ export default class ParticipantController { stream, }); + if (docsResult.responseContent) { + stream.markdown(docsResult.responseContent); + } + if (docsResult.responseReferences) { for (const reference of docsResult.responseReferences) { this._streamResponseReference({ @@ -1438,10 +1442,6 @@ export default class ParticipantController { } } - if (docsResult.responseContent) { - stream.markdown(docsResult.responseContent); - } - this._telemetryService.trackCopilotParticipantResponse({ command: 'docs/chatbot', has_cta: !!docsResult.responseReferences,