From c01dae2077c8150e0a5db90a5cd6e9265ee62238 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Sun, 1 Mar 2026 13:53:45 -0500 Subject: [PATCH] Bump Anthropic max_tokens default from 16384 to 65536 Prevents truncation of large tool calls (e.g. write_file with big content) when neither agent config nor model catalog provides a value. Co-Authored-By: Claude Opus 4.6 --- crates/arc-llm/src/providers/anthropic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/arc-llm/src/providers/anthropic.rs b/crates/arc-llm/src/providers/anthropic.rs index 2110f09ce..db7d204aa 100644 --- a/crates/arc-llm/src/providers/anthropic.rs +++ b/crates/arc-llm/src/providers/anthropic.rs @@ -1073,7 +1073,7 @@ fn build_api_request( let api_request = ApiRequest { model: request.model.clone(), messages: api_messages, - max_tokens: request.max_tokens.unwrap_or(16384), + max_tokens: request.max_tokens.unwrap_or(65536), system: system_value, temperature: request.temperature, top_p: request.top_p,