Skip to content

Commit cdc1754

Browse files
Wang-Daojiyuan.wangfridayL
authored
Feat/fix palyground bug (#708)
* fix playground bug, internet search judge * fix playground internet bug * modify delete mem * modify tool resp bug in multi cube * fix bug in playground chat handle and search inter * modify prompt * fix bug in playground * fix bug playfround * fix bug * fix code * fix model bug in playground * modify plan b * llm param modify * add logger in playground * modify code * fix bug * modify code * modify code * fix bug * fix search bug in plarground * fixx bug * move schadualr to back * modify pref location * modify fast net search * add tags and new package * modify prompt fix bug * remove nltk due to image promblem * prompt modify * modify bug remove redundant field * modify bug * fix playground bug * fix bug * bust internet topk * bust to 50 * fix bug cite * modify search * remote query add in playground --------- Co-authored-by: yuan.wang <[email protected]> Co-authored-by: chunyu li <[email protected]>
1 parent 2639279 commit cdc1754

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)