Add support for openAI client 1.1+, drop support for older versions by JonasKunz · Pull Request #607 · elastic/elastic-otel-java · GitHub
Skip to content

Add support for openAI client 1.1+, drop support for older versions#607

Merged
JonasKunz merged 9 commits into
elastic:mainfrom
JonasKunz:upgrade-openai
Apr 15, 2025
Merged

Add support for openAI client 1.1+, drop support for older versions#607
JonasKunz merged 9 commits into
elastic:mainfrom
JonasKunz:upgrade-openai

Conversation

@JonasKunz

Copy link
Copy Markdown
Contributor

The first stable OpenAI Java client (1.0.0) was released a few days ago.
This PR adds support for 1.1+ and drops support for all older versions.

1.0 seems to have moved a lot of classes around causing breaking changes, but looks like nothing functionally changed.
I didn't touch the logic and all tests are green.

I decided to only support 1.1+, as the way to extract the baseUrl from the client builder changed and 1.1 was released only a few hours after 1.0. Therefore I don't think it's worth adding a special case / separate module to support 1.0.

@JonasKunz JonasKunz marked this pull request as ready for review April 14, 2025 13:18
@JonasKunz JonasKunz requested a review from a team April 14, 2025 13:19

@codefromthecrypt codefromthecrypt 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.

@JonasKunz JonasKunz merged commit d3a104f into elastic:main Apr 15, 2025
@JonasKunz JonasKunz deleted the upgrade-openai branch April 15, 2025 10:44
@SylvainJuge SylvainJuge added the enhancement New feature or request label 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