fix: Fix memory categorization by updating dependencies and correcting API usage (#3005)

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Saket Aryan <94069182+whysosaket@users.noreply.github.com>
This commit is contained in:
Ryan Rozich
2025-06-25 11:32:26 -05:00
committed by GitHub
parent a98842422b
commit 6f3fbd087d
2 changed files with 3 additions and 3 deletions

View File

@@ -24,11 +24,10 @@ def get_categories_for_memory(memory: str) -> List[str]:
]
# Let OpenAI handle the pydantic parsing directly
completion = openai_client.chat.completions.with_response_format(
response_format=MemoryCategories
).create(
completion = openai_client.beta.chat.completions.parse(
model="gpt-4o-mini",
messages=messages,
response_format=MemoryCategories,
temperature=0
)

View File

@@ -7,6 +7,7 @@ psycopg2-binary>=2.9.0
python-multipart>=0.0.5
fastapi-pagination>=0.12.0
mem0ai>=0.1.92
openai>=1.40.0
mcp[cli]>=1.3.0
pytest>=7.0.0
pytest-asyncio>=0.21.0