OpenAIRealtimeBetaLLMService accepts language for all InputAudioTranscription models
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user