github openai/openai-go v4.0.0

47 minutes ago

4.0.0 (2026-12-02)

OpenAI Go v4 introduces breaking changes to SDK types, authentication, and several APIs.

See the v4 migration guide for upgrade instructions and before/after examples.

Upgrading

Install v4:

go get github.com/openai/openai-go/v4@v4.0.0

Update imports from /v3 to /v4. The separate Vertex module continues using /v3.

Breaking changes

  • Removed APIs: Remove retired Assistants, Beta Threads, and Videos APIs and retired model constants.
  • Embeddings: Support float arrays and base64-encoded strings.
  • Graders: Use named entries in MultiGrader.
  • Live API: Update delegation tool choices and Decisions types.
  • Responses: Include retained input messages in compaction output.
  • Requests: Correct serialization of optional booleans and required objects.
  • Headers: Allow per-call options to override typed headers.
  • Authentication: Require HTTPS for authenticated remote requests and isolate workload identity token caches.
  • Webhooks: Require at least 24 bytes for legacy raw signing keys.
  • Azure: Applications using Microsoft Entra ID must manage their Azure Identity dependency.

Bug fixes

  • Allow nullable Realtime noise reduction configuration. (#1338)

Don't miss a new openai-go release

NewReleases is sending notifications on new releases.