Skip to main content

llm-openai-plugin

PyPI Changelog Tests License

LLM plugin for OpenAI models.

This plugin is a preview. LLM currently ships with OpenAI models as part of its default collection, implemented using the Chat Completions API.

This plugin implements those same models using the new Responses API.

Currently the only reason to use this plugin over the LLM defaults is to access o1-pro, which can only be used via the Responses API.

Installation

Install this plugin in the same environment as LLM.

llm install llm-openai-plugin

Usage

To run a prompt against o1-pro do this:

llm -m openai/o1-pro "Convince me that pelicans are the most noble of birds"

Run this to see a full list of models - they start with the openai/ prefix:

llm models -q openai/

Here's the output of that command:

OpenAI: openai/gpt-4o
OpenAI: openai/gpt-4o-mini
OpenAI: openai/gpt-4.5-preview
OpenAI: openai/gpt-4.5-preview-2025-02-27
OpenAI: openai/o3-mini
OpenAI: openai/o1-mini
OpenAI: openai/o1
OpenAI: openai/o1-pro
OpenAI: openai/gpt-4.1
OpenAI: openai/gpt-4.1-2025-04-14
OpenAI: openai/gpt-4.1-mini
OpenAI: openai/gpt-4.1-mini-2025-04-14
OpenAI: openai/gpt-4.1-nano
OpenAI: openai/gpt-4.1-nano-2025-04-14
OpenAI: openai/o3
OpenAI: openai/o3-2025-04-16
OpenAI: openai/o3-streaming
OpenAI: openai/o3-2025-04-16-streaming
OpenAI: openai/o4-mini
OpenAI: openai/o4-mini-2025-04-16
OpenAI: openai/codex-mini-latest
OpenAI: openai/o3-pro
OpenAI: openai/gpt-5
OpenAI: openai/gpt-5-mini
OpenAI: openai/gpt-5-nano
OpenAI: openai/gpt-5-2025-08-07
OpenAI: openai/gpt-5-mini-2025-08-07
OpenAI: openai/gpt-5-nano-2025-08-07
OpenAI: openai/gpt-5-codex
OpenAI: openai/gpt-5-pro
OpenAI: openai/gpt-5-pro-2025-10-06

Add --options to see a full list of options that can be provided to each model.

The o3-streaming model ID exists because o3 currently requires a verified organization in order to support streaming. If you have a verified organization you can use o3-streaming - everyone else should use o3.

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd llm-openai-plugin
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

llm install -e '.[test]'

To run the tests:

python -m pytest

This project uses pytest-recording to record OpenAI API responses for the tests, and syrupy to capture snapshots of their results.

If you add a new test that calls the API you can capture the API response and snapshot like this:

PYTEST_OPENAI_API_KEY="$(llm keys get openai)" pytest --record-mode once --snapshot-update

Then review the new snapshots in tests/__snapshots__/ to make sure they look correct.

Metadata

Release files for llm-openai-plugin 0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-openai-plugin 0.7
File Size Uploaded
llm_openai_plugin-0.7.tar.gz 12.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-openai-plugin 0.7
File Interpreter ABI Platform
llm_openai_plugin-0.7-py3-none-any.whl Python 3 none any Details

Total release size: 25.3 kB

Release files / llm_openai_plugin-0.7.tar.gz

Download URL llm_openai_plugin-0.7.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
865d3116f4daf9823f470f5702bdc3fe71ea59d7bc67e525817aa35413f21e9f
BLAKE2b-256 checksum
How to use checksums
d922be5f1e3e17a11e5710771ebe22080e0cd4f6e101a4af3d0ff0be8d17dfd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2025.

Transparency log

Release files / llm_openai_plugin-0.7-py3-none-any.whl

Download URL llm_openai_plugin-0.7-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba3f02194e0cad0eded015dd19492f72d8a81b22ecdc1f69562c70a3ef52c029
BLAKE2b-256 checksum
How to use checksums
4d714aec9bd35d3a305bc372567ea15ff8a26d6c5fd53b95582d09f91f6eaf62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 6, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.7 This release

2 release files

0.6

2 release files

0.5

2 release files

0.4

2 release files

0.3

2 release files

0.2.1

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page