Merge pull request #2039 from pipecat-ai/mb/remove-lang-validation

OpenAIRealtimeBetaLLMService accepts language for all InputAudioTrans…
This commit is contained in:
Mark Backman
2025-06-23 14:41:09 -04:00
committed by GitHub
2 changed files with 3 additions and 4 deletions

View File

@@ -34,6 +34,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Updated `OpenAIRealtimeBetaLLMService` to accept `language` in the
`InputAudioTranscription` class for all models.
- The `PipelineParams` arg `allow_interruptions` now defaults to `True`.
- `TavusTransport` and `TavusVideoService` now send audio to Tavus using WebRTC

View File

@@ -36,10 +36,6 @@ class InputAudioTranscription(BaseModel):
prompt: Optional[str] = None,
):
super().__init__(model=model, language=language, prompt=prompt)
if self.model != "gpt-4o-transcribe" and (self.language or self.prompt):
raise ValueError(
"Fields 'language' and 'prompt' are only supported when model is 'gpt-4o-transcribe'"
)
class TurnDetection(BaseModel):