How to set the responseFormat as JsonSchema without a dedicated record/class
Open
Nobody has claimed this yet.
question
sdk
- Dominant language
- Kotlin
- Stars
- 1.5k
- Forks
- 264
- Avg merge
- 9h 46m
- Merged PRs (30d)
- 96
Description
Hi, let's say I have a Map<String, Object> or even just a String representing a valid Json schema, is there a way to construct the required ResponseFormat? I couldn't find it in the documentation / examples.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing ResponseFormat and JsonSchema documentation and examples in the openai-java repository. Clarify whether a Map<String, Object> or a String containing a valid JSON schema can be used without a dedicated record or class, then document the supported construction path and add a corresponding example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, json
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100