Skip to content

Commit d56f605

Browse files
committed
fix: mos_product.add in example
1 parent 2e63207 commit d56f605

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

examples/mem_os/locomo_shared_database_memos.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,16 @@ def get_mem_cube_config(user_name):
184184
print(f"\n[Session {i}] {speaker_a} will add {len(role1_msgs)} messages.")
185185
print(f"[Session {i}] {speaker_b} will add {len(role2_msgs)} messages.")
186186

187-
mos_product.add(user_id=users[speaker_a]["user_id"], messages=role1_msgs)
188-
mos_product.add(user_id=users[speaker_b]["user_id"], messages=role2_msgs)
187+
mos_product.add(
188+
user_id=users[speaker_a]["user_id"],
189+
messages=role1_msgs,
190+
mem_cube_id=users[speaker_a]["default_cube_id"],
191+
)
192+
mos_product.add(
193+
user_id=users[speaker_b]["user_id"],
194+
messages=role2_msgs,
195+
mem_cube_id=users[speaker_b]["default_cube_id"],
196+
)
189197

190198
print(f"[Session {i}] Added messages for both roles")
191199

0 commit comments

Comments
 (0)