Repository navigation
Conversation
|
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. |
There was a problem hiding this comment.
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.
|
Hi @1828703450qqcom-ux — thanks for the PR! Two quick things before we can review this:
Thanks! |
0b26795 to
cdcc863
Compare
|
Thanks @MichaelDoyle! Updated this PR to cover only the JS implementation ( |
OpenAI schedules
/v1/audio/translationsfor shutdown on February 26, 2027. Today, settingtranslate: trueon the OpenAIwhisper-1model calls that endpoint without warning.This marks
translateas 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-openaiportion 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.