Skip to content

Commit bf80c07

Browse files
committed
Update the mock logic
1 parent f2e6d8f commit bf80c07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/mock-flask-api/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def agent_retriever():
162162
raise ValidationError("conversation_uuid must be a string.")
163163

164164
# 1. Handle Conversation Creation if ID is missing
165-
if not conv_id:
165+
if not conv_id or conv_id not in conversations_db:
166166
conv_id = str(uuid.uuid4())
167167
title = user_query[:100]
168168
conversations_db[conv_id] = {

0 commit comments

Comments
 (0)