-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support custom Whisper API endpoints for voice transcription
Adds configuration options to support self-hosted Whisper API endpoints: OPENAI_API_BASE_WHISPER: - Specifies base URL for alternate Whisper API (e.g. http://localhost:2022) - Used to override default OpenAI endpoint OPENAI_API_KEY_WHISPER: - API key for alternative Whisper API endpoint - If unset when OPENAI_API_BASE_WHISPER is set, api_key will be empty Technical details: - Modified voice transcription to explicitly pass api_base and api_key to litellm instead of relying on environment variables - Improves configuration flexibility and allows different credentials for chat vs voice APIs - Maintains backwards compatibility with existing OpenAI usage Testing: - Verified with both OpenAI and self-hosted Whisper endpoints - Confirmed empty api_key behavior works as expected
- Loading branch information
Showing
8 changed files
with
129 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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