diff --git a/netlify/functions/agent-proxy.js b/netlify/functions/agent-proxy.js index 8c26282..f5c49c3 100644 --- a/netlify/functions/agent-proxy.js +++ b/netlify/functions/agent-proxy.js @@ -82,7 +82,8 @@ Please follow your instructions to produce the funding outlook brief.` // The Managed Agent's system prompt and model (configured in the Claude // Console) are used by default. Optional env vars can override them. const streamArgs = { - max_tokens: 10000, + model: process.env.ANTHROPIC_MODEL || 'claude-opus-4-6', + max_tokens: 600000, messages: [ { role: 'user', @@ -93,9 +94,6 @@ Please follow your instructions to produce the funding outlook brief.` if (process.env.ANTHROPIC_AGENT_ID) { streamArgs.agent_id = process.env.ANTHROPIC_AGENT_ID } - if (process.env.ANTHROPIC_MODEL) { - streamArgs.model = process.env.ANTHROPIC_MODEL - } if (process.env.ANTHROPIC_SYSTEM_PROMPT) { streamArgs.system = process.env.ANTHROPIC_SYSTEM_PROMPT }