summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config_file.zig4
-rw-r--r--src/models_toml.zig8
2 files changed, 6 insertions, 6 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);
diff --git a/src/models_toml.zig b/src/models_toml.zig
index 9d64cb9..955640d 100644
--- a/src/models_toml.zig
+++ b/src/models_toml.zig
@@ -21,7 +21,7 @@
//!
//! # anthropic_messages-only knobs:
//! api_version = <string> # Anthropic-Version header; default "2023-06-01"
-//! thinking = <string> # disabled | enabled | adaptive (default: enabled)
+//! thinking = <string> # disabled | enabled | adaptive (default: disabled)
//! effort = <string> # low | medium | high | xhigh | max (default: medium)
//! # only used when thinking = "adaptive"
//! thinking_budget_tokens = <int> # max reasoning tokens for thinking = "enabled"
@@ -271,10 +271,10 @@ fn ingestModel(
const thinking: Thinking = blk: {
if (v.get("thinking")) |t| {
if (t.asString()) |s| {
- break :blk std.meta.stringToEnum(Thinking, s) orelse .enabled;
+ break :blk std.meta.stringToEnum(Thinking, s) orelse .disabled;
}
}
- break :blk .enabled;
+ break :blk .disabled;
};
const effort: Effort = blk: {
@@ -553,7 +553,7 @@ test "parseInto: anthropic thinking defaults when absent" {
try parseInto(&models, src);
const def = models.defs.get("anthropic", "base").?;
- try testing.expectEqual(Thinking.enabled, def.thinking);
+ try testing.expectEqual(Thinking.disabled, def.thinking);
try testing.expectEqual(Effort.medium, def.effort);
try testing.expectEqual(@as(?u32, null), def.thinking_budget_tokens);
try testing.expectEqual(false, def.thinking_interleaved);