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

Commit 7a93496

Browse files
committed
Claude 3.5 models support 8192 output tokens....
1 parent 8e2ff32 commit 7a93496

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/completions/endpoints/anthropic.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ def default_options(dialect)
3232
llm_model.name
3333
end
3434

35-
options = { model: mapped_model, max_tokens: 3_000 }
35+
max_tokens = 4096
36+
max_tokens = 8192 if mapped_model.include?("3.5") || mapped_model.include?("3_5")
37+
38+
options = { model: mapped_model, max_tokens: max_tokens }
3639

3740
options[:stop_sequences] = ["</function_calls>"] if !dialect.native_tool_support? &&
3841
dialect.prompt.has_tools?

0 commit comments

Comments
 (0)