Skip to content

Commit e51dcc6

Browse files
committed
Removed duplicate session ID logging
1 parent 497b673 commit e51dcc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/endpoints/streaming_query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,8 @@ async def retrieve_response(
556556
query_request.no_tools or False,
557557
)
558558

559+
logger.debug("Session ID: %s", conversation_id)
560+
559561
# bypass tools and MCP servers if no_tools is True
560562
if query_request.no_tools:
561563
mcp_headers = {}
@@ -582,7 +584,6 @@ async def retrieve_response(
582584
),
583585
}
584586

585-
logger.debug("Session ID: %s", conversation_id)
586587
vector_db_ids = [
587588
vector_db.identifier for vector_db in await client.vector_dbs.list()
588589
]
@@ -593,7 +594,6 @@ async def retrieve_response(
593594
if not toolgroups:
594595
toolgroups = None
595596

596-
logger.debug("Session ID: %s", conversation_id)
597597
response = await agent.create_turn(
598598
messages=[UserMessage(role="user", content=query_request.query)],
599599
session_id=session_id,

0 commit comments

Comments
 (0)