Skip to content

Commit

Permalink
Merge pull request #1602 from tsiougkosn/main
Browse files Browse the repository at this point in the history
feature : include chat message id in result
  • Loading branch information
HenryHengZJ authored Jan 25, 2024
2 parents 01c245a + da346d7 commit d38433b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1814,7 +1814,8 @@ export class App {
if (result?.sourceDocuments) apiMessage.sourceDocuments = JSON.stringify(result.sourceDocuments)
if (result?.usedTools) apiMessage.usedTools = JSON.stringify(result.usedTools)
if (result?.fileAnnotations) apiMessage.fileAnnotations = JSON.stringify(result.fileAnnotations)
await this.addChatMessage(apiMessage)
const chatMessage = await this.addChatMessage(apiMessage)
result.chatMessageId = chatMessage.id

logger.debug(`[server]: Finished running ${nodeToExecuteData.label} (${nodeToExecuteData.id})`)
await this.telemetry.sendTelemetry('prediction_sent', {
Expand Down

0 comments on commit d38433b

Please sign in to comment.