We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug description In DefaultChatClient#DefaultCallResponseSpec (also in streaming) call chatResponse or conent trigger the remote call twice.
Environment Spring AI version M5 confirmed also on main
main
Steps to reproduce simply call chatResponse and content and double remote service is invoked
Expected behavior per "DefaultCallResponseSpec" access to same response (memoized)
Minimal Complete Reproducible example
var response = chatClient.prompt() .advisors(new ReReadingAdvisor()) .call(); response.content(); response.chatResponse();
The text was updated successfully, but these errors were encountered:
🩹 use memoized response on chat client [spring-projects#2097]
5029d00
4c6a636
Signed-off-by: Lorenzo Caenazzo <[email protected]>
No branches or pull requests
Bug description
In DefaultChatClient#DefaultCallResponseSpec (also in streaming) call chatResponse or conent trigger the remote call twice.
Environment
Spring AI version M5 confirmed also on
main
Steps to reproduce
simply call chatResponse and content and double remote service is invoked
Expected behavior
per "DefaultCallResponseSpec" access to same response (memoized)
Minimal Complete Reproducible example
The text was updated successfully, but these errors were encountered: