Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove double brackets from timestamp_granularities param #1140

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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