mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
Add timestamp_granularities parameter to transcription function
This commit is contained in:
parent
1bd6a1ba05
commit
16b90423d0
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue