add reasoning option to Anthropic class constructor
This commit is contained in:
parent
7d047ca1eb
commit
ef66c22127
1 changed files with 4 additions and 0 deletions
|
|
@ -30,6 +30,10 @@ class Anthropic extends BaseLLM {
|
|||
description: tool.function.description,
|
||||
input_schema: tool.function.parameters,
|
||||
})),
|
||||
thinking: options.reasoning ? {
|
||||
type: "enabled",
|
||||
budget_tokens: options.reasoningBudgetTokens,
|
||||
} : undefined,
|
||||
tool_choice: options.toolChoice
|
||||
? {
|
||||
type: "tool",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue