add reasoning option to Anthropic class constructor

This commit is contained in:
ferenci84 2025-03-04 09:54:05 +01:00
parent 7d047ca1eb
commit ef66c22127

View file

@ -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",