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
Getting this error when trying to access the vision capability using ChatClient: java.lang.IllegalStateException: No CallAdvisors available to execute
curl --request POST \
--url http://localhost:8083/springai/v2/vision \
--header 'Content-Type: multipart/form-data' \
--form file=@/Users/dilipbandlasundarraj/Dilip/code-with-dilip/spring-ai/multimodal-llms/src/main/resources/files/vision/pizza.png \
--form 'prompt=Explain what do you see in this picture?. Summarize it like an attractive menu item name.'
Expected behavior
The vision capability should work even without explicitly adding an advisor in the ChatClient.
Minimal Complete Reproducible example
The issue can be reproduced using the multimodal-llms sample project.
Comment out this line: VisionController.java#L39
Then hit the POST /springai/v2/vision endpoint.
Fix
This endpoint works only when the following advisor is explicitly added in the controller constructor:
Uh oh!
There was an error while loading. Please reload this page.
Bug description
Getting this error when trying to access the vision capability using
ChatClient
:java.lang.IllegalStateException: No CallAdvisors available to execute
Environment
Steps to reproduce
multimodal-llms
project from this link.VisionController.java
, comment out this line:defaultAdvisors
MultimodalLLMApplication.java
:MultimodalLLMApplication.java
curl
command:Expected behavior
The vision capability should work even without explicitly adding an advisor in the ChatClient.
Minimal Complete Reproducible example
The issue can be reproduced using the multimodal-llms sample project.
Comment out this line:
VisionController.java#L39
Then hit the POST /springai/v2/vision endpoint.
Fix
This endpoint works only when the following advisor is explicitly added in the controller constructor:
Source: VisionController.java#L39
The text was updated successfully, but these errors were encountered: