-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
This change adds the ability to use alternative Whisper API providers for voice transcription, while maintaining backwards compatibility with the default OpenAI endpoint. - Added support for custom Whisper API endpoints via `WHISPER_API_BASE` and `WHISPER_API_KEY` environment variables - Updated the voice transcription logic to handle both custom and OpenAI endpoints - Added validation to require a specific API key when using custom endpoints - Updated documentation to explain the new configuration options - Added new test cases to verify API endpoint and key handling - When using a custom Whisper endpoint (`WHISPER_API_BASE`): - Must provide a corresponding `WHISPER_API_KEY` - OpenAI API key will not be used - When using default OpenAI endpoint: - Will use `WHISPER_API_KEY` if provided - Falls back to `OPENAI_API_KEY` if no Whisper-specific key is set - Added configuration examples in the optional installation docs - Updated voice coding documentation to reference the new features - Added new environment variables to the sample.env file This change enables users to: - Use alternative Whisper API providers - Run Whisper locally or on their own infrastructure - Better control costs and data privacy for voice transcription
- Loading branch information
Showing
6 changed files
with
115 additions
and
9 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