Skip to content

Commit a570450

Browse files
author
yuan.wang
committed
remote query add in playground
1 parent d7f5c0d commit a570450

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/memos/api/handlers/chat_handler.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -524,16 +524,6 @@ def generate_chat_response() -> Generator[str, None, None]:
524524
)
525525
yield f"data: {json.dumps({'type': 'reference', 'data': reference})}\n\n"
526526

527-
# for playground, add the query to memory without response
528-
self._start_add_to_memory(
529-
user_id=chat_req.user_id,
530-
writable_cube_ids=writable_cube_ids,
531-
session_id=chat_req.session_id or "default_session",
532-
query=chat_req.query,
533-
full_response=None,
534-
async_mode="sync",
535-
)
536-
537527
# Step 2: Build system prompt with memories
538528
lang = detect_lang(chat_req.query)
539529
system_prompt = self._build_enhance_system_prompt(

0 commit comments

Comments
 (0)