Skip to content

fix(genkit-openai): warn on Whisper translation endpoint retirement - #270

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

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

Conversation

@Reason07

@Reason07 Reason07 commented Dec 2, 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 in genkit-openai calls that endpoint without warning.

Split out from genkit-ai/genkit#7285 per maintainer request (py/ moved to genkit-ai/genkit-python).

This marks translate as deprecated in OpenAISttConfig and logs a warning via logger.warning(...) when translation is enabled, giving the shutdown date and linking to OpenAI's Realtime Translation guide. The current translation behavior remains available ahead of the retirement date.

Related JS PR: genkit-ai/genkit#7285

Validation:

  • pytest -o addopts="" packages/genkit-openai/tests/audio_model_test.py -v: 34 passed.
  • ruff check and ruff format --check passed on both changed files.

@genkit-bot

Copy link
Copy Markdown

Thanks for your interest in Genkit. We're closing this pull request because we can't accept it in its current form. If you'd like to contribute, please start a discussion with the maintainers on an issue first; see CONTRIBUTING.md.

@ssbushi ssbushi closed this Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants