summaryrefslogtreecommitdiff
path: root/libpanto/src/config.zig
diff options
context:
space:
mode:
Diffstat (limited to 'libpanto/src/config.zig')
-rw-r--r--libpanto/src/config.zig5
1 files changed, 3 insertions, 2 deletions
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" {