Open wangdake5111 opened 3 weeks ago
@wangdake5111 it looks like anthropic/claude-3.5-sonnet
is making an incorrect function call, which is resulting in the pydantic error that you shared.
Could you please try updating the tools to the following and sharing your result?
tools=[YFinanceTools(stock_price=True)]
When I use the the model 'anthropic/claude-3.5-sonnet' of openrouter to use tool yfinance,
there will be an error
Missing required argument [type=missing_argument, input_value=ArgsKwargs(()), input_type=ArgsKwargs]
I see in the debug mode, this is the output:It seems the func and arguments separated. But if I use 'openai/gpt-4o', it will work well. Also, if I use 'anthropic/claude-3.5-sonnet' with tool DuckDuckGo, it will work well.