Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi! 👋 OpenAI announced a change that will break this project after February 26, 2027 (details below). This pull request updates the code so it keeps working.
It was prepared with the help of AI (YakBarber, a tool I'm building that updates code before API changes break it) and sent by me, once, to this repository only. If it isn't useful, feel free to close it — there won't be any follow-ups.
OpenAI is changing its API. whisper-1 is shut down; move transcription to gpt-transcribe
Deadline: February 26, 2027 (151 days from now). Details: https://developers.openai.com/api/docs/deprecations
What in this repo is affected
README.md:314— (documentation) This is a documentation table row describing the default value of the TELEPI_TRANSCRIPTION_MODEL config variable and is never executed code.src/voice.ts:69— This constant sets the default model sent to OpenAI's /v1/audio/transcriptions endpoint and must be updated from the shut-down whisper-1 to gpt-transcribe.What this PR changes
Updated the default OpenAI transcription model in src/voice.ts (DEFAULT_TRANSCRIPTION_MODEL) from "whisper-1" to "gpt-transcribe", and updated the corresponding documentation table in README.md. The only OpenAI transcription call in the codebase is the basic multipart POST to /v1/audio/transcriptions in transcribeWithOpenAI, which only reads the JSON
textfield and never setslanguage,response_format, or timestamp/segment options, so no other changes or TODOs were needed for that call. No realtime/streaming transcription, translations endpoint, or SRT/VTT/verbose_json usage exists elsewhere in src/ (other "language"/"transcription" hits in format.ts, message-rendering.ts, and bot.ts are unrelated markdown-language and status-string code). The 3 remaining test failures in test/config.test.ts (workspace resolving to "/workspace") are caused by the test sandbox itself having /.dockerenv present, which trips this repo's pre-existing Docker-detection logic in src/config.ts — unrelated to this migration, so left unchanged per the "change only what this API change requires" rule.Tests:⚠️ inconclusive — the tests failed the same way before this change in YakBarber's isolated test environment (often a setup difference, such as no network access), so they don't confirm this change (output below)
Test output
This pull request was generated by YakBarber using AI and checked against your tests. Please review before merging. Questions: reply to this pull request
Check the whole repository yourself:
npx yakbarber checklists every AI model and API it calls that is being retired, with the date and the company's own words. Free, read-only, runs locally (source).