diff --git a/src/agent/create.ts b/src/agent/create.ts index 4542c7a..351db53 100644 --- a/src/agent/create.ts +++ b/src/agent/create.ts @@ -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, 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,