-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Add Python 3.14 to the supported versions #1961
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,8 +7,9 @@ requires-python = ">=3.9" | |
| license = "MIT" | ||
| authors = [{ name = "OpenAI", email = "[email protected]" }] | ||
| dependencies = [ | ||
| "openai>=2.2,<3", | ||
| "pydantic>=2.10, <3", | ||
| "openai>=2.6,<3", | ||
| "tiktoken>=0.12,<0.13", | ||
| "pydantic>=2.12.3, <3", | ||
| "griffe>=1.5.6, <2", | ||
| "typing-extensions>=4.12.2, <5", | ||
| "requests>=2.0, <3", | ||
|
|
@@ -24,6 +25,7 @@ classifiers = [ | |
| "Programming Language :: Python :: 3.11", | ||
| "Programming Language :: Python :: 3.12", | ||
| "Programming Language :: Python :: 3.13", | ||
| "Programming Language :: Python :: 3.14", | ||
| "Operating System :: OS Independent", | ||
| "Topic :: Software Development :: Libraries :: Python Modules", | ||
| "License :: OSI Approved :: MIT License", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -720,7 +720,19 @@ def run_sync( | |
| conversation_id = kwargs.get("conversation_id") | ||
| session = kwargs.get("session") | ||
|
|
||
| return asyncio.get_event_loop().run_until_complete( | ||
| # Python 3.14 no longer creates a default loop implicitly, so we inspect the running loop. | ||
| try: | ||
| loop = asyncio.get_running_loop() | ||
| except RuntimeError: | ||
| loop = None | ||
|
|
||
| if loop is not None: | ||
| # This method is only expected to run when no loop is already active. | ||
| raise RuntimeError( | ||
| "AgentRunner.run_sync() cannot be called when an event loop is already running." | ||
| ) | ||
|
|
||
| return asyncio.run( | ||
| self.run( | ||
| starting_agent, | ||
| input, | ||
|
Comment on lines
+723
to
738
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The new implementation of Useful? React with 👍 / 👎. |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these version upgrades are required to install deps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need tiktoken?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tiktoken==0.11.0 coming from somewhere blocks pip install w/ python 3.14. need to check more deeply.