Skip to content

Commit 102f672

Browse files
authored
Merge pull request #361 from Portkey-AI/feat/oai1.86.0
OAI 1.86.0
2 parents 9855b65 + b67d8e6 commit 102f672

File tree

183 files changed

+7859
-1567
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+7859
-1567
lines changed

portkey_ai/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@
117117
AsyncAlpha,
118118
Graders,
119119
AsyncGraders,
120+
Containers,
121+
AsyncContainers,
122+
ContainersFiles,
123+
AsyncContainersFiles,
124+
Content,
125+
AsyncContent,
120126
)
121127

122128
from portkey_ai.version import VERSION
@@ -253,4 +259,10 @@
253259
"AsyncAlpha",
254260
"Graders",
255261
"AsyncGraders",
262+
"Containers",
263+
"AsyncContainers",
264+
"ContainersFiles",
265+
"AsyncContainersFiles",
266+
"Content",
267+
"AsyncContent",
256268
]
File renamed without changes.

portkey_ai/_vendor/openai-1.78.0.dist-info/METADATA renamed to portkey_ai/_vendor/openai-1.86.0.dist-info/METADATA

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 2.3
22
Name: openai
3-
Version: 1.78.0
3+
Version: 1.86.0
44
Summary: The official Python library for the openai API
55
Project-URL: Homepage, https://github.com/openai/openai-python
66
Project-URL: Repository, https://github.com/openai/openai-python
@@ -216,13 +216,13 @@ client = AsyncOpenAI()
216216

217217

218218
async def main():
219-
stream = client.responses.create(
219+
stream = await client.responses.create(
220220
model="gpt-4o",
221221
input="Write a one-sentence bedtime story about a unicorn.",
222222
stream=True,
223223
)
224224

225-
for event in stream:
225+
async for event in stream:
226226
print(event)
227227

228228

portkey_ai/_vendor/openai-1.78.0.dist-info/RECORD renamed to portkey_ai/_vendor/openai-1.86.0.dist-info/RECORD

Lines changed: 845 additions & 771 deletions
Large diffs are not rendered by default.
File renamed without changes.
File renamed without changes.

portkey_ai/_vendor/openai-1.78.0.dist-info/entry_points.txt renamed to portkey_ai/_vendor/openai-1.86.0.dist-info/entry_points.txt

File renamed without changes.

portkey_ai/_vendor/openai-1.78.0.dist-info/licenses/LICENSE renamed to portkey_ai/_vendor/openai-1.86.0.dist-info/licenses/LICENSE

File renamed without changes.

portkey_ai/_vendor/openai/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from __future__ import annotations
44

55
import os as _os
6+
import typing as _t
67
from typing_extensions import override
78

89
from . import types
@@ -78,6 +79,9 @@
7879
"DefaultAsyncHttpxClient",
7980
]
8081

82+
if not _t.TYPE_CHECKING:
83+
from ._utils._resources_proxy import resources as resources
84+
8185
from .lib import azure as _azure, pydantic_function_tool as pydantic_function_tool
8286
from .version import VERSION as VERSION
8387
from .lib.azure import AzureOpenAI as AzureOpenAI, AsyncAzureOpenAI as AsyncAzureOpenAI
@@ -359,6 +363,7 @@ def _reset_client() -> None: # type: ignore[reportUnusedFunction]
359363
batches as batches,
360364
uploads as uploads,
361365
responses as responses,
366+
containers as containers,
362367
embeddings as embeddings,
363368
completions as completions,
364369
fine_tuning as fine_tuning,

portkey_ai/_vendor/openai/_base_client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,9 @@ def request(
979979
if self.custom_auth is not None:
980980
kwargs["auth"] = self.custom_auth
981981

982+
if options.follow_redirects is not None:
983+
kwargs["follow_redirects"] = options.follow_redirects
984+
982985
log.debug("Sending HTTP Request: %s %s", request.method, request.url)
983986

984987
response = None
@@ -1494,6 +1497,9 @@ async def request(
14941497
if self.custom_auth is not None:
14951498
kwargs["auth"] = self.custom_auth
14961499

1500+
if options.follow_redirects is not None:
1501+
kwargs["follow_redirects"] = options.follow_redirects
1502+
14971503
log.debug("Sending HTTP Request: %s %s", request.method, request.url)
14981504

14991505
response = None

0 commit comments

Comments
 (0)