feat: update non OAI models to use memory (#151)

This commit is contained in:
Kevin Lin
2025-12-03 17:03:45 -08:00
committed by GitHub
parent 8c6ed19719
commit bb682b8635

View File

@@ -89,9 +89,9 @@ export async function createAgent(
getServerToolName(name),
);
const baseMemoryTool = modelHandle.startsWith("anthropic/")
? "memory"
: "memory_apply_patch";
const baseMemoryTool = modelHandle.startsWith("openai/gpt-5")
? "memory_apply_patch"
: "memory";
const defaultBaseTools = baseTools ?? [
baseMemoryTool,
"web_search",