Skip to content

fix(plugins/openai): warn about Whisper translation API retirement - #7285

Open
Reason07 wants to merge 1 commit into
genkit-ai:mainfrom
Reason07:codex/deprecate-openai-whisper-translation
Open

Reason07 wants to merge 1 commit into
genkit-ai:mainfrom
Reason07:codex/deprecate-openai-whisper-translation

Conversation

@Reason07

@Reason07 Reason07 commented Nov 20, 2026 •

Copy link
Copy Markdown

OpenAI schedules /v1/audio/translations for shutdown on February 26, 2027. Today, setting translate: true on the OpenAI whisper-1 model calls that endpoint without warning.

This marks translate as deprecated in the JavaScript model config schema (@genkit-ai/compat-oai) and logs a warning when translation is enabled. The warning gives the shutdown date and links to Realtime Translation, which uses a Realtime session instead of the existing file-upload request. The current translation request behavior remains available ahead of the retirement date.

The Python genkit-openai portion was split into genkit-ai/genkit-python#270.

Fixes #7266

Validation:

  • jest tests/openai_whisper_test.ts (@genkit-ai/compat-oai): 4 passed.
  • tsc --noEmit (@genkit-ai/compat-oai): passed.

@google-cla

google-cla Bot commented Nov 20, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request deprecates the translate configuration option for the Whisper model in both the TypeScript and Python implementations of the OpenAI plugin, following the scheduled shutdown of OpenAI's /v1/audio/translations endpoint on February 26, 2027. The changes mark the field as deprecated in the configuration schemas, add warning logs when the translation feature is used, and introduce corresponding unit tests to verify the deprecation warnings and schema updates. I have no feedback to provide.

@MichaelDoyle

Copy link
Copy Markdown
Contributor

Hi @1828703450qqcom-ux — thanks for the PR! Two quick things before we can review this:

  1. Genkit Python SDK development has moved to https://github.com/genkit-ai/genkit-python. Could you remove the py/ changes from this PR (keeping it JS-only) and open a separate PR in genkit-python for the Python portion?
  2. Could you also sign the Google CLA so the cla/google check passes?

Thanks!

@Reason07

Reason07 commented Dec 2, 2026

Copy link
Copy Markdown
Author

Thanks @MichaelDoyle! Updated this PR to cover only the JS implementation (js/plugins/compat-oai) and updated the commit author email so cla/google passes. Opened the companion Python PR in genkit-ai/genkit-python#270.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[JS][Py] OpenAI whisper-1 translate: true uses /v1/audio/translations, which OpenAI shuts down on Feb 26, 2027

2 participants