From 16ea45b6854232541fb45f7d2e5b767118cccf43 Mon Sep 17 00:00:00 2001 From: t Date: Tue, 2 Jun 2026 10:50:05 -0600 Subject: tool call resiliency --- libpanto/src/config.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libpanto/src/config.zig') diff --git a/libpanto/src/config.zig b/libpanto/src/config.zig index 6744b56..6b8d9a8 100644 --- a/libpanto/src/config.zig +++ b/libpanto/src/config.zig @@ -46,6 +46,7 @@ pub const OpenAIChatConfig = struct { base_url: []const u8, model: []const u8, reasoning: ReasoningEffort = .default, + max_tokens: u32 = 64_000, }; pub const AnthropicMessagesConfig = struct { @@ -55,7 +56,7 @@ pub const AnthropicMessagesConfig = struct { /// Value sent in the `anthropic-version` header. api_version: []const u8 = "2023-06-01", /// Required by Anthropic's Messages API. - max_tokens: u32 = 4096, + max_tokens: u32 = 64_000, }; /// Per-provider transport/auth/model configuration. Tagged by `APIStyle`. @@ -144,7 +145,7 @@ test "ProviderConfig - anthropic_messages variant" { } }; try t.expectEqual(APIStyle.anthropic_messages, cfg.style()); try t.expectEqualStrings("2023-06-01", cfg.anthropic_messages.api_version); - try t.expectEqual(@as(u32, 4096), cfg.anthropic_messages.max_tokens); + try t.expectEqual(@as(u32, 64_000), cfg.anthropic_messages.max_tokens); } test "ProviderConfig - openai_chat reasoning defaults to .default" { -- cgit v1.3