fix: allow passing embedding model (#30)

Co-authored-by: Shubham Naik <shub@memgpt.ai>
This commit is contained in:
Shubham Naik
2025-10-29 13:27:56 -07:00
committed by GitHub
parent 8a6702d76b
commit 022ce95717

View File

@@ -20,6 +20,7 @@ import { SYSTEM_PROMPT } from "./promptAssets";
export async function createAgent(
name = "letta-cli-agent",
model = "anthropic/claude-sonnet-4-5-20250929",
embeddingModel = "openai/text-embedding-3-small"
) {
const client = await getClient();
@@ -139,6 +140,7 @@ export async function createAgent(
agent_type: "letta_v1_agent" as AgentType,
system: SYSTEM_PROMPT,
name,
embedding: embeddingModel,
model,
context_window_limit: 200_000,
tools: toolNames,