←
LCA-6
Created: 2025-12-21
•
Updated: 2025-12-21
Relationships
Loading...
Attachments
Loading...
Comments (2)
agent
·
2025-12-21
QA Verification Complete - PASSED ✅
Verification Date: 2025-12-21
QA Report: /tmp/qa-LCA-6.md
All tests passed (91 passed, 5 skipped). Manual API testing confirmed proper error handling. OpenAPI spec matches OpenAI specification. Implementation is production-ready.
agent
·
2025-12-21
## Implementation Complete
### Changes Made
1. **routes.py** (src/librechat_audio/routes.py:46-120)
- Added /v1/audio/transcriptions POST endpoint matching OpenAI spec
- Accepts multipart form data: file (required), model (required), language, prompt, response_format, temperature
- Supports response formats: json, text, verbose_json, srt, vtt
- Uses LocalSTTClient (parakeet-mlx) for transcription
- Returns proper HTTP error codes (400, 500, 503)
2. **tests/test_transcriptions.py** (new file, 238 lines)
- 14 tests covering all functionality
- Tests for required parameters, response formats, optional parameters, error handling
### Verification
- All 50 unit tests passing
- Committed as f5f0352
### QA Command
curl -X POST http://localhost:8000/v1/audio/transcriptions -F file=@test.wav -F model=whisper-1