We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdc3190 commit aa715baCopy full SHA for aa715ba
backend/app/rag/chat/chat_flow.py
@@ -626,7 +626,9 @@ def _chat_finish(
626
# TODO: Separate _external_chat() method into another ExternalChatFlow class, but at the same time, we need to
627
# share some common methods through ChatMixin or BaseChatFlow.
628
def _external_chat(self) -> Generator[ChatEvent | str, None, None]:
629
+ ctx = langfuse_instrumentor_context.get().copy()
630
db_user_message, db_assistant_message = yield from self._chat_start()
631
+ langfuse_instrumentor_context.get().update(ctx)
632
633
cache_messages = None
634
goal, response_format = self.user_question, {}
0 commit comments