Bug description The following properties are not being recognized or used in SpringBoot: spring.ai.openai.chat.options.response-format.type spring.ai.openai.chat.options.response-format.name spring.ai.openai.chat.options.response-format.strict
This leads to error:
org.springframework.ai.retry.NonTransientAiException: 400 - { "error": { "message": "Missing required parameter: 'response_format.json_schema'.", "type": "invalid_request_error", "param": "response_format.json_schema", "code": "missing_required_parameter" } }
Environment 1.0.0-SNAPSHOT
Steps to reproduce
- Add the dependency in the pom file following this documentation
- Add the property to the application.properties
- Make a chat completion call
Expected behavior A response in a structured format.
Minimal Complete Reproducible example
Comment From: dmv1167
How did you get around this?