fix: remove hardcoded embedding model, let server use default (#583)
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user