Skip to content

Commit

Permalink
fix: remove langfuse_url trace annotation (#615)
Browse files Browse the repository at this point in the history
Frontend can get the trace url from db_message, so we don't need to
return via another event.
  • Loading branch information
Mini256 authored Jan 26, 2025
1 parent 8a448e9 commit 15bf63c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions backend/app/rag/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,13 +515,6 @@ def _chat_start(
assistant_message=db_assistant_message,
),
)
yield ChatEvent(
event_type=ChatEventType.MESSAGE_ANNOTATIONS_PART,
payload=ChatStreamMessagePayload(
state=ChatMessageSate.TRACE,
context={"langfuse_url": self.trace_url},
),
)
return db_user_message, db_assistant_message

def _search_knowledge_graph(
Expand Down

0 comments on commit 15bf63c

Please sign in to comment.