Skip to content

Commit ebec43b

Browse files
kiran-4444Cursor
andcommitted
vendor: Bump OpenAI SDK to 2.30.0 and align Portkey wrappers
Co-authored-by: Cursor <cursor@cursor.com>
1 parent 47706d3 commit ebec43b

259 files changed

Lines changed: 11465 additions & 2011 deletions

File tree

Some content is hidden

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

examples/hello_world_portkey_adk.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ async def main() -> None:
4343
final_text: List[str] = []
4444
async for resp in llm.generate_content_async(req, stream=False):
4545
if resp.content and getattr(resp.content, "parts", None):
46-
for p in resp.content.parts:
47-
if getattr(p, "text", None):
48-
final_text.append(p.text)
46+
for p in resp.content.parts or []:
47+
text = getattr(p, "text", None)
48+
if text:
49+
final_text.append(text)
4950
print("".join(final_text))
5051

5152

examples/hello_world_portkey_strands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async def main() -> None:
3131
]
3232

3333
print(f"Streaming with model: {model_id}")
34-
async for event in model.stream(messages=messages):
34+
async for event in model.stream(messages=messages): # type: ignore[arg-type]
3535
# Events follow the Strands stream event shape produced by our adapter.
3636
if isinstance(event, dict) and "contentBlockDelta" in event:
3737
delta = event["contentBlockDelta"].get("delta", {})

portkey_ai/__init__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,14 @@
147147
AsyncConversationsItems,
148148
Videos,
149149
AsyncVideos,
150+
Skills,
151+
AsyncSkills,
152+
SkillsContent,
153+
AsyncSkillsContent,
154+
SkillsVersions,
155+
AsyncSkillsVersions,
156+
SkillsVersionsContent,
157+
AsyncSkillsVersionsContent,
150158
ChatKit,
151159
AsyncChatKit,
152160
ChatKitSessions,
@@ -323,6 +331,14 @@
323331
"AsyncConversationsItems",
324332
"Videos",
325333
"AsyncVideos",
334+
"Skills",
335+
"AsyncSkills",
336+
"SkillsContent",
337+
"AsyncSkillsContent",
338+
"SkillsVersions",
339+
"AsyncSkillsVersions",
340+
"SkillsVersionsContent",
341+
"AsyncSkillsVersionsContent",
326342
"ChatKit",
327343
"AsyncChatKit",
328344
"ChatKitSessions",
File renamed without changes.

portkey_ai/_vendor/openai-2.16.0.dist-info/METADATA renamed to portkey_ai/_vendor/openai-2.30.0.dist-info/METADATA

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 2.3
22
Name: openai
3-
Version: 2.16.0
3+
Version: 2.30.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
@@ -30,6 +30,7 @@ Requires-Dist: pydantic<3,>=1.9.0
3030
Requires-Dist: sniffio
3131
Requires-Dist: tqdm>4
3232
Requires-Dist: typing-extensions<5,>=4.11
33+
Requires-Dist: typing-extensions<5,>=4.14
3334
Provides-Extra: aiohttp
3435
Requires-Dist: aiohttp; extra == 'aiohttp'
3536
Requires-Dist: httpx-aiohttp>=0.1.9; extra == 'aiohttp'

portkey_ai/_vendor/openai-2.16.0.dist-info/RECORD renamed to portkey_ai/_vendor/openai-2.30.0.dist-info/RECORD

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

portkey_ai/_vendor/openai-2.16.0.dist-info/entry_points.txt renamed to portkey_ai/_vendor/openai-2.30.0.dist-info/entry_points.txt

File renamed without changes.

portkey_ai/_vendor/openai-2.16.0.dist-info/licenses/LICENSE renamed to portkey_ai/_vendor/openai-2.30.0.dist-info/licenses/LICENSE

File renamed without changes.

0 commit comments

Comments
 (0)