google-cloud-java
google-cloud-java copied to clipboard
Option classes do not support JSON serialization/deserialization
Environment details
- Specify the API at the beginning of the title. For example, "[vision]: ..."). General, Core, and Other are also allowed as types google-cloud-vertexai
- OS type and version: Window 11
- Java version: 21
- Version(s): 1.6.0
I am creating wrapper endpoint for vertex AI API on our AI microservice to have add-on features and centralize many other AI providers. and we have our own SDK to call this wrapper endpoint. most of classes from this library doesn't support JSON serialization/deserialization. Since there is too many properties and it keeps managing by library, I can't manually map it. Is there anyway to do?
Code example
@PostMapping(value = "/generate-content")
public Flux<GenerateContentResponse> generateContent(@RequestBody GenerateContentRequest request) {
// request is not working since it doesn't support deserialization
}