Add timestamp_granularities parameter to transcription function
This commit is contained in:
parent
1bd6a1ba05
commit
16b90423d0
@ -3924,6 +3924,7 @@ def transcription(
|
||||
response_format: Optional[
|
||||
Literal["json", "text", "srt", "verbose_json", "vtt"]
|
||||
] = None,
|
||||
timestamp_granularities: Optional[List[Literal["sentence", "word"]]] = None,
|
||||
temperature: Optional[int] = None, # openai defaults this to 0
|
||||
## LITELLM PARAMS ##
|
||||
user: Optional[str] = None,
|
||||
@ -3958,6 +3959,7 @@ def transcription(
|
||||
"language": language,
|
||||
"prompt": prompt,
|
||||
"response_format": response_format,
|
||||
"timestamp_granularities": timestamp_granularities,
|
||||
"temperature": None, # openai defaults this to 0
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user