The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.
Python agentic-memoryagentic-memory-systemagentsaiai-agentschatgptgenaillmlong-term-memorymemorymemory-managementpythonragstate-management
fix: Fix memory categorization by updating dependencies and correcting API usage (#3005)
Ryan Rozich6f3fbd087dc9
diff --git a/openmemory/api/app/utils/categorization.py b/openmemory/api/app/utils/categorization.pyindex 60ab7602d..d35546915 100644--- a/openmemory/api/app/utils/categorization.py+++ b/openmemory/api/app/utils/categorization.py@@ -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)diff --git a/openmemory/api/requirements.txt b/openmemory/api/requirements.txtindex 286643ef5..239c59b83 100644--- a/openmemory/api/requirements.txt+++ b/openmemory/api/requirements.txt@@ -7,6 +7,7 @@ psycopg2-binary>=2.9.0python-multipart>=0.0.5fastapi-pagination>=0.12.0mem0ai>=0.1.92+openai>=1.40.0mcp[cli]>=1.3.0pytest>=7.0.0pytest-asyncio>=0.21.0