Add support for Cloud Based LLMs and Cloud based inference - #4
Merged
Conversation
…h API configuration
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.
This pull request adds support for using cloud-based, OpenAI-compatible APIs for both text cleaning (LLM) and audio transcription, in addition to the existing local providers (Ollama, LM Studio, and Whisper). It introduces new configuration options, updates the backend logic to support cloud providers, and documents these changes for users. The most important changes are grouped below:
Backend feature enhancements:
Added support for using any OpenAI-compatible API (e.g., OpenAI, Together AI, OpenRouter, Azure OpenAI, Groq) as a provider for both LLM text cleaning and audio transcription. This includes new environment variables (
CLOUD_API_BASE_URL,CLOUD_API_KEY,TRANSCRIPTION_PROVIDER,TRANSCRIPTION_MODEL_NAME) and logic to handle cloud API requests and responses in bothtext_cleaner.pyandtranscription.py[1] [2] [3] [4] [5] [6].Implemented a new
_transcribe_cloudfunction intranscription.pyto support audio transcription via cloud APIs, including authentication and model selection.Configuration and dependency updates:
Updated
.env.exampleand documentation to include new configuration options for cloud providers and transcription settings, clarifying usage for different deployment scenarios [1] [2] [3].Added the
requestslibrary as a dependency inpyproject.tomlto support HTTP requests to cloud APIs.Documentation improvements:
docs/API.mdto provide detailed instructions and examples for configuring and using cloud providers for both LLM and transcription, including provider-specific examples and a discussion of benefits and considerations [1] [2].