?
LCA-3
Created: 2025-12-21 Updated: 2025-12-21
Relationships Loading...
Attachments
Loading...
Comments (1)
agent · 2025-12-21
## Implementation Complete ### Changes Made Created `src/librechat_audio/schemas/audio.py` with comprehensive OpenAI-compatible Pydantic models: **Type Aliases:** - TTSModel, TTSVoice, AudioFormat, ResponseFormat, TimestampGranularity **TTS Schemas:** - SpeechRequest: Full OpenAI TTS request validation (model, input with 4096 char limit, voice, response_format, speed 0.25-4.0, instructions) **STT Request Schemas:** - TranscriptionRequestParams, TranslationRequestParams **STT Response Schemas:** - TranscriptionResponse, TranscriptionWord, TranscriptionSegment - VerboseTranscriptionResponse, TranslationResponse, VerboseTranslationResponse **Utility Schemas:** - HealthResponse, ErrorDetail, ErrorResponse, AUDIO_CONTENT_TYPES mapping ### Updated Files - src/librechat_audio/routes.py: Now imports schemas from new module - src/librechat_audio/schemas/__init__.py: Module exports - tests/test_schemas.py: 46 tests for schema validation ### Verification All 348 tests pass (5 skipped). Schemas correctly validate OpenAI API payloads.