summaryrefslogtreecommitdiff
path: root/src/config_file.zig
diff options
context:
space:
mode:
authort <t@tjp.lol>2026-06-10 16:46:30 -0600
committert <t@tjp.lol>2026-06-10 16:46:48 -0600
commitb435cf06b78853bec87bf238f526bc60679d7712 (patch)
tree0c4191f24730f9a0336accb701d627450483c9cf /src/config_file.zig
parentcee08918509689adbdbd26b6384d5ef3a47e91a2 (diff)
fix anthropic thinking effort json placement
Diffstat (limited to 'src/config_file.zig')
-rw-r--r--src/config_file.zig4
1 files changed, 2 insertions, 2 deletions
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);