Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

fix: :bug: replace hardcoded llm provider with provider from config (#3423)

Ranjith kumar77b4b6a2b94b
diff --git a/mem0-ts/src/oss/src/memory/graph_memory.ts b/mem0-ts/src/oss/src/memory/graph_memory.ts
index d0f92887a..afd2e8d19 100644
--- a/mem0-ts/src/oss/src/memory/graph_memory.ts
+++ b/mem0-ts/src/oss/src/memory/graph_memory.ts
@@ -89,7 +89,7 @@ export class MemoryGraph {
this.llm = LLMFactory.create(this.llmProvider, this.config.llm.config);
this.structuredLlm = LLMFactory.create(
- "openai_structured",
+ this.llmProvider,
this.config.llm.config,
);
this.threshold = 0.7;