Repository navigation
Support Custom OpenAI-compatible endpoints for speech-to-text transcription (Fixes #136) - #140
Open
AdamMagued wants to merge 1 commit into
Open
AdamMagued wants to merge 1 commit into
AdamMagued wants to merge 1 commit into
Conversation
…scription - Add CUSTOM_OPENAI to TranscriptionProvider enum and include Custom OpenAI in settings transcription provider choices and account mapping. - Wire Custom OpenAI transcription in RecordThread, transcribe_audio_file, and conversation dialog to send requests to /audio/transcriptions on the configured custom base URL with configured credentials. - Add helper functions in transcription.py for provider listing, choices, and endpoint resolution. - Expose Custom OpenAI transcription tool in Tools menu and support custom accounts in OpenAITranscriptionToolDialog. - Normalize base URL trailing slashes and permit user endpoints with optional API keys. - Add comprehensive unit tests verifying provider listing, endpoint resolution, and transcription call wiring.
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
Resolves #136.
Enables configured Custom OpenAI-compatible endpoints (such as OmniRoute, LocalAI, vLLM, etc.) to be selectable and used for speech-to-text (transcription) both in global dictation / recording and in dedicated transcription tools.
Key Changes
Transcription Provider Options:
Transcription Routing and Endpoint Wiring:
Tools Menu and Dedicated Dialog Integration:
Robustness & Edge Cases:
Testing:
Verification