feat: support custom OpenAI-compatible whisper endpoints#65
Open
toanbot wants to merge 2 commits intosteipete:mainfrom
Open
feat: support custom OpenAI-compatible whisper endpoints#65toanbot wants to merge 2 commits intosteipete:mainfrom
toanbot wants to merge 2 commits intosteipete:mainfrom
Conversation
Add support for OPENAI_WHISPER_BASE_URL and OPENAI_BASE_URL environment variables to allow using custom OpenAI-compatible whisper endpoints for audio transcription. This enables users to use self-hosted whisper servers or alternative providers that implement the OpenAI whisper API specification. Priority: OPENAI_WHISPER_BASE_URL > OPENAI_BASE_URL > default (api.openai.com)
Add ogg, opus, aiff, wma, mpeg, mpg, avi, wmv, flv to the media URL detection regex. This fixes OGG audio files (common in Telegram voice messages) being incorrectly routed through HTML fetcher instead of media transcription handler.
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.
Summary
OPENAI_WHISPER_BASE_URLandOPENAI_BASE_URLenv vars to allow custom OpenAI-compatible whisper endpointsisDirectMediaUrlregexUse Cases
Changes
packages/core/src/transcription/whisper/openai.ts: Support custom base URLpackages/core/src/content/url.ts: Add missing media extensionsExample Usage
export OPENAI_WHISPER_BASE_URL=http://192.168.1.100:8080/v1 summarize telegram_voice.oggTest Plan