Skip to content

chore(deps): bump openai-go/v3 to v3.61.0 - #4327

Merged
dgageot merged 1 commit into
docker:mainfrom
dgageot:worktree-board-71f060929ddebe1e
Sep 17, 2026
Merged

dgageot merged 1 commit into
docker:mainfrom
dgageot:worktree-board-71f060929ddebe1e

Conversation

@dgageot

@dgageot dgageot commented Sep 17, 2026

Copy link
Copy Markdown
Member

The openai-go v3 SDK removed ResponseStreamEventUnion.Name between v3.54.0 and v3.61.0, which broke compilation. This bump upgrades the dependency and fixes the callsite.

The response stream handler now reads the optional top-level event name directly from event.RawJSON() instead of the removed field. Valid names take precedence over any per-item name; missing, null, empty, or non-string values fall back gracefully. A regression test covers the main cases including escaped names and buffered tool-argument flushing.

No behavioural change is expected for correctly-formed streams; the fallback path only activates for events where the SDK no longer exposes the field.

ResponseStreamEventUnion.Name was removed in the new SDK; parse the
top-level name from RawJSON() instead, falling back to Item.Name.

Assisted-By: docker-agent
Signed-off-by: David Gageot <david.gageot@docker.com>
@dgageot
dgageot requested a review from a team as a code owner September 17, 2026 12:24

@docker-agent docker-agent 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.

Assessment: 🟢 APPROVE

@aheritier aheritier added status/needs-triage For issues that need to be triaged area/providers/openai For features/issues/fixes related to the usage of OpenAI models area/testing Test infrastructure, CI/CD, test runners, evaluation kind/chore Maintenance, deps, CI, tooling (maps to chore: commit prefix) and removed status/needs-triage For issues that need to be triaged labels Sep 17, 2026
@dgageot
dgageot added this pull request to the merge queue Sep 17, 2026
Merged via the queue into docker:main with commit fbf594b Sep 17, 2026
17 of 18 checks passed
@dgageot
dgageot deleted the worktree-board-71f060929ddebe1e branch September 17, 2026 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/providers/openai For features/issues/fixes related to the usage of OpenAI models area/testing Test infrastructure, CI/CD, test runners, evaluation kind/chore Maintenance, deps, CI, tooling (maps to chore: commit prefix)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants