feat: add thinking_config to AnthropicClient whitelist

Updated the allowed_keys tuple to permit thinking_config parameters. This ensures that the extended reasoning budget defined in the trading graph is actually passed to the Anthropic API.
This commit is contained in:
Adel Janbeih 2026-03-22 13:44:28 +01:00 committed by GitHub
parent dc3dc464b1
commit a6e16beca9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class AnthropicClient(BaseLLMClient):
"""Return configured ChatAnthropic instance."""
llm_kwargs = {"model": self.model}
for key in ("timeout", "max_retries", "api_key", "max_tokens", "callbacks", "http_client", "http_async_client"):
for key in ("timeout", "max_retries", "api_key", "max_tokens", "callbacks", "http_client", "http_async_client", "thinking_config"):
if key in self.kwargs:
llm_kwargs[key] = self.kwargs[key]