Rename gpt-4o-transcribe-latest to gpt-4o-transcribe in OpenAIRealtimeBetaLLMService
This commit is contained in:
@@ -14,7 +14,7 @@ from pydantic import BaseModel, Field
|
||||
#
|
||||
# session properties
|
||||
#
|
||||
InputAudioTranscriptionModel = Literal["whisper-1", "gpt-4o-transcribe-latest"]
|
||||
InputAudioTranscriptionModel = Literal["whisper-1", "gpt-4o-transcribe"]
|
||||
|
||||
|
||||
class InputAudioTranscription(BaseModel):
|
||||
@@ -29,9 +29,9 @@ class InputAudioTranscription(BaseModel):
|
||||
prompt: Optional[str] = None,
|
||||
):
|
||||
super().__init__(model=model, language=language, prompt=prompt)
|
||||
if self.model != "gpt-4o-transcribe-latest" and (self.language or self.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-latest'"
|
||||
"Fields 'language' and 'prompt' are only supported when model is 'gpt-4o-transcribe'"
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user