openai-java version update to latest#49703
Open
jpalvarezl wants to merge 2 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the repository’s OpenAI Java dependency baseline to com.openai:openai-java:4.41.0 across the affected SDK modules, aligns the repo’s external dependency tracking, and makes a small sample-code adjustment to compile against the updated OpenAI models API.
Changes:
- Bumped
com.openai:openai-javato4.41.0(and aligned the corresponding enforcer include pins) in the affected module POMs. - Updated
eng/versioning/external_dependencies.txtto reflect the new OpenAI Java version. - Updated the Agents “computer use” sample utility to match the updated OpenAI model accessor shape, and added changelog entries in the impacted packages.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| sdk/openai/azure-ai-openai-stainless/pom.xml | Updates openai-java dependency and the pinned include value to 4.41.0. |
| sdk/ai/azure-ai-projects/pom.xml | Updates openai-java dependency and the pinned include value to 4.41.0. |
| sdk/ai/azure-ai-projects/CHANGELOG.md | Notes the openai client library version update in the Unreleased section. |
| sdk/ai/azure-ai-agents/src/samples/java/com/azure/ai/agents/tools/ComputerUseUtil.java | Adjusts sample code to the updated OpenAI model API (now returning Optional). |
| sdk/ai/azure-ai-agents/pom.xml | Updates openai-java dependency and the pinned include value to 4.41.0. |
| sdk/ai/azure-ai-agents/CHANGELOG.md | Notes the openai client library version update in the Unreleased section. |
| eng/versioning/external_dependencies.txt | Updates the recorded com.openai:openai-java version to 4.41.0. |
The openai-java 4.41.0 (Stainless) client changed the HTTP requests it emits, breaking playback of existing recordings for azure-ai-agents and azure-ai-projects. All differences are request-header-only; recorded response bodies are unchanged, so no recordings were regenerated. - New telemetry headers X-Stainless-Kotlin-Version and X-Stainless-Retry-Count added to the excluded-headers matcher list (they vary per machine/run, like the existing X-Stainless-* exclusions, and must not gate matching). - Streaming requests now send Accept: text/event-stream instead of */*; Accept added to the excluded-headers matcher list. - Multipart uploads now omit charset=ISO-8859-1 from Content-Type; broadened the existing Content-Type sanitizer to normalize the optional charset segment so the request and the frozen recording match. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
openai-java version update to latest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.