Skip to content

Add support for OpenAI client 0.13.0#514

Merged
JonasKunz merged 1 commit into
mainfrom
openai-bump
Jan 23, 2025
Merged

Add support for OpenAI client 0.13.0#514
JonasKunz merged 1 commit into
mainfrom
openai-bump

Conversation

@codefromthecrypt

@codefromthecrypt codefromthecrypt commented Jan 23, 2025

Copy link
Copy Markdown
Contributor
Screenshot 2025-01-23 at 1 40 06 PM

changes in the API are in the latest 0.13.0 version from this issue

Notes:

  • type() -> _type() was an intentional change
  • fields we set before which can be inferred are now automatically set.

@codefromthecrypt
codefromthecrypt marked this pull request as ready for review January 23, 2025 05:20
.stopOfStrings(Collections.singletonList("foo"))
.seed(100L)
.responseFormat(ResponseFormatText.builder().type(ResponseFormatText.Type.TEXT).build())
.responseFormat(ResponseFormatText.builder().build())

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Heh - yeah saw the comment on the issue this looks like it'll change again

@codefromthecrypt

Copy link
Copy Markdown
Contributor Author

verified the example by running it with the agent attached to this workflow run

@codefromthecrypt

Copy link
Copy Markdown
Contributor Author

So, we need to merge and release this ASAP since users who choose latest openai java will fail to get traces, and our examples fail to compile in the latest version, too.

Once this is merged and released, we need to merge this https://github.com/elastic/observability-labs/pull/320

@JonasKunz JonasKunz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, manually verified that the instrumentation is still functional with older OpenAI client versions.

@JonasKunz
JonasKunz merged commit 7778b95 into main Jan 23, 2025
@codefromthecrypt
codefromthecrypt deleted the openai-bump branch January 23, 2025 08:36
@SylvainJuge SylvainJuge added the enhancement New feature or request label Mar 26, 2026
@SylvainJuge SylvainJuge changed the title deps: updates openai to latest and adjusts example Add support for OpenAI client 0.13.0 Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-java enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants