Skip to content

Commit

Permalink
remove not compatible code
Browse files Browse the repository at this point in the history
  • Loading branch information
IANTHEREAL committed Oct 28, 2024
1 parent bd6c0f2 commit b9f50e6
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 @@ -517,13 +517,6 @@ def _external_chat(self) -> Generator[ChatEvent | str, None, None]:
question=self.user_question,
),
)
yield ChatEvent(
event_type=ChatEventType.MESSAGE_ANNOTATIONS_PART,
payload=ChatStreamMessagePayload(
state=ChatMessageSate.REFINE_QUESTION,
message=refined_question,
),
)
except Exception as e:
refined_question = self.user_question
logger.error(f"Failed to refine question: {e}")
Expand Down

0 comments on commit b9f50e6

Please sign in to comment.