Skip to content

Commit 3d93d66

Browse files
codegen metadata
1 parent ef09a0a commit 3d93d66

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 137
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-2dede2c933d4c80020715c5e1a21c86b353de336e4dd2c6119125e3eaca6f904.yml
3-
openapi_spec_hash: 52ed6a83d460d3b2bf78e54bac8c503d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-51075c225b913785fbb988c5d94e2da629241bf0c414b67b6301ddfffb685a83.yml
3+
openapi_spec_hash: 43be3e1dc6823299a6db37d999aa6f11
44
config_hash: ad7136f7366fddec432ec378939e58a7

src/openai/_models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
IO,
88
TYPE_CHECKING,
99
Any,
10-
Type, Tuple,
10+
Type,
11+
Tuple,
1112
Union,
1213
Generic,
1314
TypeVar,

src/openai/lib/_realtime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def create(
3434
extra_headers = {"Accept": "application/sdp", "Content-Type": "application/sdp", **(extra_headers or {})}
3535
return self._post(
3636
"/realtime/calls",
37-
body=sdp.encode("utf-8"),
37+
content=sdp.encode("utf-8"),
3838
options=make_request_options(extra_headers=extra_headers, extra_query=extra_query, timeout=timeout),
3939
cast_to=_legacy_response.HttpxBinaryResponseContent,
4040
)
@@ -71,7 +71,7 @@ async def create(
7171
extra_headers = {"Accept": "application/sdp", "Content-Type": "application/sdp", **(extra_headers or {})}
7272
return await self._post(
7373
"/realtime/calls",
74-
body=sdp.encode("utf-8"),
74+
content=sdp.encode("utf-8"),
7575
options=make_request_options(extra_headers=extra_headers, extra_query=extra_query, timeout=timeout),
7676
cast_to=_legacy_response.HttpxBinaryResponseContent,
7777
)

tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import inspect
1111
import dataclasses
1212
import tracemalloc
13-
from typing import Any, Union, Protocol, TypeVar, Callable, Iterable, Iterator, Optional, Coroutine, cast
13+
from typing import Any, Union, TypeVar, Callable, Iterable, Iterator, Optional, Protocol, Coroutine, cast
1414
from unittest import mock
1515
from typing_extensions import Literal, AsyncIterator, override
1616

0 commit comments

Comments
 (0)