Add NanoGPT transcription provider#41
Open
BinkyTwin wants to merge 1 commit into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds a new NanoGPT-backed transcription provider to the sapat CLI, using NanoGPT’s OpenAI-compatible audio transcription endpoint, and documents the required configuration.
Changes:
- Added
NanoGPTTranscriptionprovider wired into the CLI via--api nanogpt. - Documented NanoGPT environment variables (
NANOGPT_API_KEY,NANOGPT_MODEL,NANOGPT_API_ENDPOINT) and bumped minimum Python version to 3.8. - Added unit tests covering NanoGPT request wiring, missing configuration, and CLI routing.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/test_nanogpt.py | Adds mocked unit tests for NanoGPT provider request wiring and CLI routing. |
| src/sapat/transcription/nanogpt.py | Implements NanoGPT OpenAI-compatible transcription provider. |
| src/sapat/script.py | Adds NanoGPT option to CLI provider selection. |
| README.md | Documents NanoGPT usage and environment variables; updates supported providers and Python version. |
| pyproject.toml | Raises requires-python to >=3.8 and retains needed dependencies (incl. python-dotenv). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This was referenced May 21, 2026
a8da248 to
e3d5c22
Compare
Author
|
Follow-up after automated review:
The three Continue status checks currently show |
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
--api nanogptbacked by NanoGPT's OpenAI-compatible audio transcription endpointNANOGPT_API_KEY,NANOGPT_MODEL,NANOGPT_API_ENDPOINT, and NanoGPT chat correction configuration--correctfor NanoGPT through NanoGPT's OpenAI-compatible chat endpointVerification
UV_PROJECT_ENVIRONMENT=/tmp/sapat-nanogpt-venv uv run python -m unittest tests.test_nanogptpython -m compileall src testsgit diff --checkCompanion Daytona content PR: daytonaio/content#242