chore: replace ada-002 model default (#3140)

This commit is contained in:
cthomas
2025-07-02 16:12:08 -07:00
committed by GitHub
parent aea0d87338
commit a7dc025351
9 changed files with 34 additions and 34 deletions

View File

@@ -27,7 +27,7 @@ const agent = await client.agents.create({
},
],
model: 'openai/gpt-4o-mini',
embedding: 'openai/text-embedding-ada-002',
embedding: 'openai/text-embedding-3-small',
});
console.log('Created agent with name', agent.name);
@@ -100,7 +100,7 @@ console.log(
let agentCopy = await client.agents.create({
model: 'openai/gpt-4o-mini',
embedding: 'openai/text-embedding-ada-002',
embedding: 'openai/text-embedding-3-small',
});
let block = await client.agents.blocks.retrieve(agent.id, 'human');
agentCopy = await client.agents.blocks.attach(agentCopy.id, block.id);