Contents

openai 2.21.0

0

The official Python library for the openai API

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: 266

The 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
No  openai  pypi packages just yet.

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

See more issues on GitHub

Related Packages & Articles

mlflow-skinny 3.9.0

MLflow is an open source platform for the complete machine learning lifecycle

mlflow 3.9.0

MLflow is an open source platform for the complete machine learning lifecycle

onnx 1.20.1

Open Neural Network Exchange (ONNX) is an open ecosystem that empowers AI developers to choose the right tools as their project evolves. ONNX provides an open source format for AI models, both deep learning and traditional ML. It defines an extensible computation graph model, as well as definitions of built-in operators and standard data types. Currently we focus on the capabilities needed for inferencing (scoring).

datasets 4.5.0

HuggingFace community-driven open-source library of datasets

clearml 2.1.3

ClearML - Auto-Magical Experiment Manager, Version Control, and MLOps for AI

dopamine-rl 4.1.2

Dopamine: A framework for flexible Reinforcement Learning research

thinc 9.1.1

A refreshing functional take on deep learning, compatible with your favorite libraries

spacy 3.8.11

Industrial-strength Natural Language Processing (NLP) in Python