We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b51bec commit 5dece52Copy full SHA for 5dece52
src/memos/mem_os/product.py
@@ -764,11 +764,10 @@ def chat_with_references(
764
system_prompt = self._build_system_prompt(user_id, memories_list)
765
766
# Get chat history
767
- target_user_id = user_id if user_id is not None else self.user_id
768
- if target_user_id not in self.chat_history_manager:
769
- self._register_chat_history(target_user_id)
+ if user_id not in self.chat_history_manager:
+ self._register_chat_history(user_id)
770
771
- chat_history = self.chat_history_manager[target_user_id]
+ chat_history = self.chat_history_manager[user_id]
772
current_messages = [
773
{"role": "system", "content": system_prompt},
774
*chat_history.chat_history,
0 commit comments