From b435cf06b78853bec87bf238f526bc60679d7712 Mon Sep 17 00:00:00 2001 From: t Date: Wed, 10 Jun 2026 16:46:30 -0600 Subject: fix anthropic thinking effort json placement --- src/config_file.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/config_file.zig') diff --git a/src/config_file.zig b/src/config_file.zig index e5bbe99..f5ed79c 100644 --- a/src/config_file.zig +++ b/src/config_file.zig @@ -146,7 +146,7 @@ pub fn buildProviderConfig( .model = wire_model, .api_version = if (def_opt) |d| (d.api_version orelse "2023-06-01") else "2023-06-01", .max_tokens = max_tokens, - .thinking = if (def_opt) |d| d.thinking else .enabled, + .thinking = if (def_opt) |d| d.thinking else .disabled, .effort = if (def_opt) |d| d.effort else .medium, .thinking_budget_tokens = if (def_opt) |d| d.thinking_budget_tokens else 32_000, .thinking_interleaved = if (def_opt) |d| d.thinking_interleaved else false, @@ -1022,7 +1022,7 @@ test "buildProviderConfig: anthropic missing alias falls back to struct defaults const ref = try parseModelRef("anthropic:claude-haiku-4-5-20251001"); const pc = try buildProviderConfig(&cfg, &models, ref); try testing.expectEqual(APIStyle.anthropic_messages, pc.style()); - try testing.expectEqual(panto.Thinking.enabled, pc.anthropic_messages.thinking); + try testing.expectEqual(panto.Thinking.disabled, pc.anthropic_messages.thinking); try testing.expectEqual(panto.Effort.medium, pc.anthropic_messages.effort); try testing.expectEqual(@as(?u32, 32_000), pc.anthropic_messages.thinking_budget_tokens); try testing.expectEqual(false, pc.anthropic_messages.thinking_interleaved); -- cgit v1.3