Skip to content

Commit

Permalink
fix: remove double brackets from timestamp_granularities param (#1140)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-bot committed Feb 8, 2024
1 parent 79c8f0e commit 3db0222
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/openai/types/audio/transcription_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
from __future__ import annotations

from typing import List, Union
from typing_extensions import Literal, Required, Annotated, TypedDict
from typing_extensions import Literal, Required, TypedDict

from ..._types import FileTypes
from ..._utils import PropertyInfo

__all__ = ["TranscriptionCreateParams"]

Expand Down Expand Up @@ -52,9 +51,7 @@ class TranscriptionCreateParams(TypedDict, total=False):
automatically increase the temperature until certain thresholds are hit.
"""

timestamp_granularities: Annotated[
List[Literal["word", "segment"]], PropertyInfo(alias="timestamp_granularities[]")
]
timestamp_granularities: List[Literal["word", "segment"]]
"""The timestamp granularities to populate for this transcription.
Any of these options: `word`, or `segment`. Note: There is no additional latency
Expand Down

0 comments on commit 3db0222

Please sign in to comment.