fix: allow passing embedding model (#30)
Co-authored-by: Shubham Naik <shub@memgpt.ai>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user