fix: remove hardcoded embedding model, let server use default (#583)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2026-01-17 22:32:39 -08:00
committed by GitHub
parent d910b21934
commit 5d636d6808

View File

@@ -75,7 +75,7 @@ export interface CreateAgentOptions {
export async function createAgent(
nameOrOptions: string | CreateAgentOptions = DEFAULT_AGENT_NAME,
model?: string,
embeddingModel = "openai/text-embedding-3-small",
embeddingModel?: string,
updateArgs?: Record<string, unknown>,
skillsDirectory?: string,
parallelToolCalls = true,
@@ -104,8 +104,7 @@ export async function createAgent(
}
const name = options.name ?? DEFAULT_AGENT_NAME;
const embeddingModelVal =
options.embeddingModel ?? "openai/text-embedding-3-small";
const embeddingModelVal = options.embeddingModel;
const parallelToolCallsVal = options.parallelToolCalls ?? true;
const enableSleeptimeVal = options.enableSleeptime ?? false;
@@ -318,7 +317,7 @@ export async function createAgent(
system: systemPromptContent,
name,
description: agentDescription,
embedding: embeddingModelVal,
embedding: embeddingModelVal || undefined,
model: modelHandle,
context_window_limit: contextWindow,
tools: toolNames,