Skip to content

Conversation

damo
Copy link
Contributor

@damo damo commented Sep 2, 2025

Closes #576

@damo damo requested a review from a team as a code owner September 2, 2025 12:26
@damo damo force-pushed the damo/verbosity-576 branch from bc50e89 to 9d47c57 Compare September 2, 2025 16:28
Copy link
Collaborator

@TomerAberbach TomerAberbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done :)

README.md Outdated
@@ -565,6 +565,19 @@ the latter when `ResponseCreateParams.Builder.text(Class<T>)` is called.
For a full example of the usage of _Structured Outputs_ with the Responses API, see
[`ResponsesStructuredOutputsExample`](openai-java-example/src/main/java/com/openai/example/ResponsesStructuredOutputsExample.java).

Instead of using `ResponseCreateParams.text(Class<T>)`, you can build a
[`StructuredResponseTextConfig`](openai-java-core/src/main/kotlin/com/openai/models/responses/StructuredResponseTextConfig.kt)
and set it on the `ResponseCreateParams` using the `text(StructuredResponseCreateParams)` method.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
and set it on the `ResponseCreateParams` using the `text(StructuredResponseCreateParams)` method.
and set it on the `ResponseCreateParams` using the `text(StructuredResponseTextConfig)` method.

I assume this is what you meant

README.md Outdated
`verbosity` parameter, see
[`ResponsesStructuredOutputsVerbosityExample`](openai-java-example/src/main/java/com/openai/example/ResponsesStructuredOutputsVerbosityExample.java).


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

(removing extra newline)

@TomerAberbach TomerAberbach changed the title verbosity now supported with structured outputs feat(client): support verbosity with structured outputs Sep 2, 2025
@damo damo force-pushed the damo/verbosity-576 branch from 9d47c57 to 80c6998 Compare September 3, 2025 13:36
@damo damo requested a review from TomerAberbach September 3, 2025 13:37
@TomerAberbach TomerAberbach merged commit 2496464 into openai:next Sep 3, 2025
4 of 5 checks passed
@stainless-app stainless-app bot mentioned this pull request Sep 3, 2025
TomerAberbach pushed a commit that referenced this pull request Sep 3, 2025
* feat(client): support verbosity with structured outputs (#603)

* verbosity: structured output support for verbosity #576

* verbosity: minor doc fixes

* release: 3.3.0

---------

Co-authored-by: D Gardner <[email protected]>
Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants