The repository or configuration that created this release differ from a previous release. View details.
ocai-openai
The OpenAI plugin distribution for ocai.
Distribution name: ocai-openai; pip install ocai[openai] resolves to the
same wheel. Requires Python 3.13+ and ocai>=0.1,<0.2.
It ships only ocai/openai/ into the shared ocai PEP 420 namespace,
organized one subpackage per wire interface:
ocai.openai.chat_completions— the/v1/chat/completionsinterface: typed wire structs, the codec, contract-censused conversion edges, the capability profile, and the chat component. Unary and streaming calls are implemented and certified against recorded fixtures.ocai.openai.responses— the/v1/responsesinterface. A stub: its nodes are declared so the interface exists in the graph, but it has no edges, codec, or chat component yet. The front door never auto-selects it, and pinninginterface="responses"raisesLookupErroruntil it lands.
The two are sibling interfaces of the one chat capability, not versions of each other.
What installing it does
Exactly one structural thing: the frozen ocai.openai.FRAGMENT
(a CatalogFragment) becomes discoverable through the ocai.fragments
entry-point group, so ocai.chat.model("openai/<model>", ...) can resolve the
provider and the conversion graph gains OpenAI's nodes and edges. Importing
ocai.openai is inert; there is no import-time registration. Applications
that want an explicit catalog compose it themselves with
Catalog.of(ocai.openai.FRAGMENT).
from ocai.openai import chat_model
from ocai.core import ApiKey
model = chat_model("gpt-4o", credentials=ApiKey.from_env("OPENAI_API_KEY"))
result = model.chat(...) # needs ocai[http] and a real key
chat_model is sugar over ocai.chat.model("openai/<model>", ...) on a
catalog built from this fragment, never a separate code path.
Boundaries
- No
openaiSDK: ocai owns the wire throughocai.wire. This plugin depends onocai.core+ocai.convert+ocai.chatonly, never onocai.wireorhttpx, so archived traffic can be re-converted by tooling with no ability to make network calls. msgspecis used only at the wire-decode boundary.- Every conversion edge declares an
EdgeContractand ships golden fixtures in the repository'sspec/.
License
Source-available under FSL-1.1-ALv2 (converting to Apache-2.0 two years after each release). ocai is not open source.
Metadata
Release files for ocai-openai 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Change of provenance
The repository or configuration that created these release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ocai_openai-0.1.2.tar.gz | 54.7 kB | With provenance | Details for ocai_openai-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ocai_openai-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for ocai_openai-0.1.2-py3-none-any.whl |
Total release size: 106.3 kB
Release files / ocai_openai-0.1.2.tar.gz
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | ocai_openai-0.1.2.tar.gz |
|---|---|
| Size | 54.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f869cbb86b003237e818f013c95c5899f79cf73d2d46bd0c4f2474defcbb7d73
|
|
BLAKE2b-256 checksum How to use checksums |
d0ef912ce905ae31d3394210a24718822f9016348c1e13bed0779eef65a31fd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 11, 2026.
Transparency logRelease files / ocai_openai-0.1.2-py3-none-any.whl
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | ocai_openai-0.1.2-py3-none-any.whl |
|---|---|
| Size | 51.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76faf8c3c1d68f0b8f56bbffabbcdf7f64ef05854683f659bb2ff5f822956c61
|
|
BLAKE2b-256 checksum How to use checksums |
f3df0655e8011447bdaef219df14f31ac148fda0a91b682c8992528ae775b351
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 11, 2026.
Transparency logSecurity for ocai-openai 0.1.2
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.
Change of provenance
The configuration that created this release differs from a previous release.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Attestation for ocai_openai-0.1.2.tar.gz
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 Nov 11, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.