|
8 | 8 | import httpx
|
9 | 9 |
|
10 | 10 | from ... import _legacy_response
|
11 |
| -from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven |
| 11 | +from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given |
12 | 12 | from ..._utils import maybe_transform, async_maybe_transform
|
13 | 13 | from ..._compat import cached_property
|
14 | 14 | from ..._resource import SyncAPIResource, AsyncAPIResource
|
@@ -53,16 +53,16 @@ def create(
|
53 | 53 | voice: Union[
|
54 | 54 | str, Literal["alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse", "marin", "cedar"]
|
55 | 55 | ],
|
56 |
| - instructions: str | NotGiven = NOT_GIVEN, |
57 |
| - response_format: Literal["mp3", "opus", "aac", "flac", "wav", "pcm"] | NotGiven = NOT_GIVEN, |
58 |
| - speed: float | NotGiven = NOT_GIVEN, |
59 |
| - stream_format: Literal["sse", "audio"] | NotGiven = NOT_GIVEN, |
| 56 | + instructions: str | Omit = omit, |
| 57 | + response_format: Literal["mp3", "opus", "aac", "flac", "wav", "pcm"] | Omit = omit, |
| 58 | + speed: float | Omit = omit, |
| 59 | + stream_format: Literal["sse", "audio"] | Omit = omit, |
60 | 60 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
61 | 61 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
62 | 62 | extra_headers: Headers | None = None,
|
63 | 63 | extra_query: Query | None = None,
|
64 | 64 | extra_body: Body | None = None,
|
65 |
| - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
| 65 | + timeout: float | httpx.Timeout | None | NotGiven = not_given, |
66 | 66 | ) -> _legacy_response.HttpxBinaryResponseContent:
|
67 | 67 | """
|
68 | 68 | Generates audio from the input text.
|
@@ -149,16 +149,16 @@ async def create(
|
149 | 149 | voice: Union[
|
150 | 150 | str, Literal["alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse", "marin", "cedar"]
|
151 | 151 | ],
|
152 |
| - instructions: str | NotGiven = NOT_GIVEN, |
153 |
| - response_format: Literal["mp3", "opus", "aac", "flac", "wav", "pcm"] | NotGiven = NOT_GIVEN, |
154 |
| - speed: float | NotGiven = NOT_GIVEN, |
155 |
| - stream_format: Literal["sse", "audio"] | NotGiven = NOT_GIVEN, |
| 152 | + instructions: str | Omit = omit, |
| 153 | + response_format: Literal["mp3", "opus", "aac", "flac", "wav", "pcm"] | Omit = omit, |
| 154 | + speed: float | Omit = omit, |
| 155 | + stream_format: Literal["sse", "audio"] | Omit = omit, |
156 | 156 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
157 | 157 | # The extra values given here take precedence over values defined on the client or passed to this method.
|
158 | 158 | extra_headers: Headers | None = None,
|
159 | 159 | extra_query: Query | None = None,
|
160 | 160 | extra_body: Body | None = None,
|
161 |
| - timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN, |
| 161 | + timeout: float | httpx.Timeout | None | NotGiven = not_given, |
162 | 162 | ) -> _legacy_response.HttpxBinaryResponseContent:
|
163 | 163 | """
|
164 | 164 | Generates audio from the input text.
|
|
0 commit comments