Skip to content
New issue

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

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

Comments

@OnceCrazyer
Copy link

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?

@dev-jonghoonpark
Copy link
Contributor

Can you share a minimal sample application that reproduces the problem please ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants