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

ImageResponse cannot be parsed by Spring MVC as a ModelResponse object. #625

Open
NingNing0111 opened this issue Apr 23, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@NingNing0111
Copy link

Bug description

I'm attempting to return the ImageResponse as a ModelResponse, which passes successfully in unit tests but fails on Spring MVC.

Environment

  • Spring AI 0.8.1-SNAPSHOT
  • Java 17

Steps to reproduce

916c80f84db166f47497ddfb95419570
1f8f7269a11946b924366ef83d8588bc
7e72ca376a77d4dac613e7d7972ac635
5ef342bf8eb314846a0bd560d0669c65

Expected behavior

I'm currently trying to get a chat response and an image response by inputting prompt , so need to return it as a ModelResponse.But, an exception occurred during the deserialization of ImageResponse。

Minimal Complete Reproducible example

Refer to the image above.

@tzolov tzolov added the bug Something isn't working label Apr 26, 2024
@tzolov tzolov added this to the 1.0.0-M1 milestone Apr 26, 2024
wsliliang added a commit to wsliliang/spring-ai that referenced this issue Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants