Skip to content

openai-java version update to latest#49703

Open
jpalvarezl wants to merge 2 commits into
mainfrom
jpalvarezl/feature/latest_openai_sdk_version
Open

openai-java version update to latest#49703
jpalvarezl wants to merge 2 commits into
mainfrom
jpalvarezl/feature/latest_openai_sdk_version

Conversation

@jpalvarezl

Copy link
Copy Markdown
Member

No description provided.

Copilot AI 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.

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-java to 4.41.0 (and aligned the corresponding enforcer include pins) in the affected module POMs.
  • Updated eng/versioning/external_dependencies.txt to 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>
@jpalvarezl jpalvarezl changed the title Version bump for packages post release and Stainless version update openai-java version update to latest Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants