From f8fba4becd68041d54df7fb6b78d1e998ab12ef1 Mon Sep 17 00:00:00 2001 From: dal Date: Tue, 26 Aug 2025 11:19:20 -0600 Subject: [PATCH] increase max completion tokens --- packages/ai/src/agents/analyst-agent/analyst-agent.ts | 2 +- .../ai/src/agents/think-and-prep-agent/think-and-prep-agent.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ai/src/agents/analyst-agent/analyst-agent.ts b/packages/ai/src/agents/analyst-agent/analyst-agent.ts index 749c2eb60..0742c1843 100644 --- a/packages/ai/src/agents/analyst-agent/analyst-agent.ts +++ b/packages/ai/src/agents/analyst-agent/analyst-agent.ts @@ -118,7 +118,7 @@ export function createAnalystAgent(analystAgentOptions: AnalystAgentOptions) { messages: [systemMessage, datasetsSystemMessage, ...messages], stopWhen: STOP_CONDITIONS, toolChoice: 'required', - maxOutputTokens: 10000, + maxOutputTokens: 25000, temperature: 0, experimental_repairToolCall: async (repairContext) => { return repairToolCall({ diff --git a/packages/ai/src/agents/think-and-prep-agent/think-and-prep-agent.ts b/packages/ai/src/agents/think-and-prep-agent/think-and-prep-agent.ts index f69d56c7f..f6cb7ac10 100644 --- a/packages/ai/src/agents/think-and-prep-agent/think-and-prep-agent.ts +++ b/packages/ai/src/agents/think-and-prep-agent/think-and-prep-agent.ts @@ -151,7 +151,7 @@ export function createThinkAndPrepAgent(thinkAndPrepAgentSchema: ThinkAndPrepAge messages: [systemMessage, datasetsSystemMessage, ...messages], stopWhen: STOP_CONDITIONS, toolChoice: 'required', - maxOutputTokens: 10000, + maxOutputTokens: 25000, temperature: 0, experimental_repairToolCall: async (repairContext) => { return repairToolCall({