From 522aad957a36f77d3f209c492e1662295eb156c8 Mon Sep 17 00:00:00 2001 From: Mini256 Date: Thu, 6 Jun 2024 10:24:37 +0800 Subject: [PATCH] fix: make sure trace is created before return trace url --- src/core/services/llamaindex/chating.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/services/llamaindex/chating.ts b/src/core/services/llamaindex/chating.ts index fa4edb79..530cbec7 100644 --- a/src/core/services/llamaindex/chating.ts +++ b/src/core/services/llamaindex/chating.ts @@ -127,6 +127,8 @@ export class LlamaindexChatService extends AppChatService { }, }); + await this.langfuse?.flushAsync(); + yield { status: AppChatStreamState.CREATING, sources: [],