Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 2b25e49

Browse files
committed
1024 tokens is a minimum
1 parent 9b1fcde commit 2b25e49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/completions/endpoints/anthropic.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def default_options(dialect)
4040

4141
if llm_model.lookup_custom_param("enable_reasoning")
4242
reasoning_tokens =
43-
llm_model.lookup_custom_param("reasoning_tokens").to_i.clamp(100, 65_536)
43+
llm_model.lookup_custom_param("reasoning_tokens").to_i.clamp(1024, 65_536)
4444

4545
# this allows for lots of tokens beyond reasoning
4646
options[:max_tokens] = reasoning_tokens + 30_000

lib/completions/endpoints/aws_bedrock.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def default_options(dialect)
2929
result = { anthropic_version: "bedrock-2023-05-31" }
3030
if llm_model.lookup_custom_param("enable_reasoning")
3131
reasoning_tokens =
32-
llm_model.lookup_custom_param("reasoning_tokens").to_i.clamp(100, 65_536)
32+
llm_model.lookup_custom_param("reasoning_tokens").to_i.clamp(1024, 65_536)
3333

3434
# this allows for ample tokens beyond reasoning
3535
max_tokens = reasoning_tokens + 30_000

0 commit comments

Comments
 (0)