Open V-Silpin opened 1 month ago
New Insights into the Bug
In the following lines of mem0.memory.main
:
The response_format
parameter is configured as json_object
.
The underlying cause of this bug is related to the json_object
setting.
I think if the response_format
configured to json_schema
, then it should fix the bug.
@prateekchhikara What is the status of this issue? Any progress on the draft PR?
@V-Silpin can you please share the PR link?
@prateekchhikara Hi, sorry for the late reply.
I will share the PR link in few hours
Till then, I just want to know how do I attach a test script in the PR
Here is the PR link
@prateekchhikara @deshraj
I have fixed the issue. Just changed the keyword 'assisstant' to 'secretary' at line no. 19 in function parse_messages.
File Path : /mem0/memory/utils.py
π Describe the bug
Description
While following the mem0 documentation, I attempted to test the mem0 module using Azure OpenAI LLM, Vector Store, and Embedding Model. However, I encountered an error related to the content filter. I tried to resolve this by adding a safe prompt in the prompt parameter and slightly changing the messages, but my efforts were unsuccessful.
Possible Causes
I suspect that the example provided in the DOCS is triggering a content filter type labeled Indirect Attacks. You can find more information about this filter type in the Microsoft documentation.
I kindly request to investigate whether this error originates from the module itself or from the code provided below. Additionally, I would appreciate any solutions to this issue.
Python Code
Error Log