Skip to content

Commit

Permalink
docs: fix agents guide error (#4595)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoalbanese authored Jan 29, 2025
1 parent c3d27ac commit 9c44937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/docs/02-foundations/06-agents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ async function translateWithFeedback(text: string, targetLanguage: string) {
while (iterations < MAX_ITERATIONS) {
// Evaluate current translation
const { object: evaluation } = await generateObject({
model,
model: openai('gpt-4o'), // use a larger model to evaluate
schema: z.object({
qualityScore: z.number().min(1).max(10),
preservesTone: z.boolean(),
Expand Down

0 comments on commit 9c44937

Please sign in to comment.