Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions backend/app/rag/chat/chat_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,9 @@ def _chat_finish(
# TODO: Separate _external_chat() method into another ExternalChatFlow class, but at the same time, we need to
# share some common methods through ChatMixin or BaseChatFlow.
def _external_chat(self) -> Generator[ChatEvent | str, None, None]:
ctx = langfuse_instrumentor_context.get().copy()
db_user_message, db_assistant_message = yield from self._chat_start()
langfuse_instrumentor_context.get().update(ctx)

cache_messages = None
goal, response_format = self.user_question, {}
Expand Down