You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description
When building defaultOptions for ChatClient, the defaultToolCallbacks will fail, When calling AI chat, it will not trigger tool calls. Deleting the defaultOptions configuration may trigger tool calls when conversing with AI again
Environment
Spring AI 1.0.0, Springboot 3.5.0, Jdk21
Expected behavior
I want to configure two models and switch between different chatClient by considering whether to switch front-end or not
Minimal Complete Reproducible example
Please provide a failing test or a minimal complete verifiable example that reproduces the issue.
Bug reports that are reproducible will take priority in resolution over reports that are not reproducible.
The text was updated successfully, but these errors were encountered:
Hi, I've encountered the same issue, it might be the same reason, can you confirm?
This issue occurs because ChatOptions.builder() creates a DefaultChatOptions instead of options that support Tool Calling, so when passing parameters to the LLM, the Tools list is discarded.
Solution: Use other ChatOptions that support Tool Calling,
Bug description
When building defaultOptions for ChatClient, the defaultToolCallbacks will fail, When calling AI chat, it will not trigger tool calls. Deleting the defaultOptions configuration may trigger tool calls when conversing with AI again
Environment
Spring AI 1.0.0, Springboot 3.5.0, Jdk21
Steps to reproduce
Expected behavior
I want to configure two models and switch between different chatClient by considering whether to switch front-end or not
Minimal Complete Reproducible example
Please provide a failing test or a minimal complete verifiable example that reproduces the issue.
Bug reports that are reproducible will take priority in resolution over reports that are not reproducible.
The text was updated successfully, but these errors were encountered: