
openai 2.21.0
0
The official Python library for the openai API
Contents
The OpenAI Python library provides convenient access to the OpenAI API from applications written in the Python language. It includes a pre-defined set of classes for API resources that initialize themselves dynamically from API responses which makes it compatible with a wide range of versions of the OpenAI API.
Stars: 29939, Watchers: 29939, Forks: 4561, Open Issues: 266The openai/openai-python repo was created 5 years ago and the last code push was 10 hours ago.
The project is extremely popular with a mindblowing 29939 github stars!
How to Install openai
You can install openai using pip
pip install openai
or add it to a project with poetry
poetry add openai
Package Details
- Author
- None
- License
- Apache-2.0
- Homepage
- None
- PyPi:
- https://pypi.org/project/openai/
- GitHub Repo:
- https://github.com/openai/openai-python
Classifiers
- Software Development/Libraries/Python Modules
Related Packages
Errors
A list of common openai errors.
Code Examples
Here are some openai code examples and snippets.
GitHub Issues
The openai package has 266 open issues on GitHub
- responses.parse() with background=True returns unparseable Response from retrieve() - missing ParsedResponse support for background mode
- Update Azure Realtime sample to use v1 API
- Streaming A Background Response
- release: 2.16.0
- fix: update timeout type hints to use TimeoutTypes for consistency
- fix(streaming): remove unreachable dead code in error handling
- Slow import times (due to openai.types)
- Remove 'gpt-5.1-mini' from chat model options
- Add item_reference ConversationItem for realtime inputs
- add allowed_tools example
- Added Response API code comments to the azure.py example
- feat(cli): add shell completion support
- feat: missing type for batch request input and output objects
- Fix unreachable dead code in error event handling
- fix(streaming): move error event check before thread.* handling
pythonfix







