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
class com.alibaba.fastjson2.JSONObject cannot be cast to class org.springframework.ai.chat.messages.Message (com.alibaba.fastjson2.JSONObject and org.springframework.ai.chat.messages.Message are in unnamed module of loader 'app')
#2263
Closed
OnceCrazyer opened this issue
Feb 18, 2025
· 1 comment
Spring-AI vision: M5
Run String response = client.prompt (prompt).user (query).call ().content () in the project;
Error report, the error message is as follows:
Class com.alibaba. JSONObject cannot be cast to class org.springframework.ai.chat. Messages. Message (com.alibaba. fastjson2. JSONObject and org.springframework.ai.chat. Messages. Message are in unnamed module of loader'app ')
This code does not use fastJson2. Why is there an error message?
The text was updated successfully, but these errors were encountered:
Spring-AI vision: M5
Run String response = client.prompt (prompt).user (query).call ().content () in the project;
Error report, the error message is as follows:
Class com.alibaba. JSONObject cannot be cast to class org.springframework.ai.chat. Messages. Message (com.alibaba. fastjson2. JSONObject and org.springframework.ai.chat. Messages. Message are in unnamed module of loader'app ')
This code does not use fastJson2. Why is there an error message?
The text was updated successfully, but these errors were encountered: