Skip to content

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

@NingNing0111

Description

@NingNing0111

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions