Skip to content

Commit 8b428fc

Browse files
fix: comment out citation collection logic in ChatService stream processing
1 parent 18d24d0 commit 8b428fc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/api/services/chat_service.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,11 @@ async def stream_openai_text(self, conversation_id: str, query: str) -> Streamin
150150
thread = chat_agent.get_new_thread(service_thread_id=thread_conversation_id)
151151

152152
async for chunk in chat_agent.run_stream(messages=query, thread=thread):
153-
# Collect citations from Azure AI Search responses
154-
if hasattr(chunk, "contents") and chunk.contents:
155-
for content in chunk.contents:
156-
if hasattr(content, "annotations") and content.annotations:
157-
citations.extend(content.annotations)
153+
# # Collect citations from Azure AI Search responses
154+
# if hasattr(chunk, "contents") and chunk.contents:
155+
# for content in chunk.contents:
156+
# if hasattr(content, "annotations") and content.annotations:
157+
# citations.extend(content.annotations)
158158

159159
if first_chunk:
160160
if chunk is not None and chunk.text != "":

0 commit comments

Comments
 (0)