pydantic-openai
Pydantic models for OpenAI's API. These make it easier to construct requests and parse responses, as well as set up API-compatible servers.
Making requests is explicitly out of scope.
This is mostly translated from sashabaranov/go-openai, by ChatGPT. I welcome translating the rest over, I just don't really use the other API's.
Usage
See the package on PyPI.
pip install pydantic-openai
from pydantic_openai import ChatCompletionRequest
Metadata
Release files for pydantic-openai 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pydantic_openai-0.1.0.tar.gz | 6.4 kB | Without provenance | Details for pydantic_openai-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydantic_openai-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pydantic_openai-0.1.0-py3-none-any.whl |
Total release size: 12.1 kB
Release files / pydantic_openai-0.1.0.tar.gz
| Download URL | pydantic_openai-0.1.0.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8b0d545ca5b427f9b6ced484ae1864191bea01d4e28e20730c4bf9f71e56a15
|
|
BLAKE2b-256 checksum How to use checksums |
49d61de10c107db65c3c0b8255fe44f55bda25b1cfae906abee487de0907bb39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / pydantic_openai-0.1.0-py3-none-any.whl
| Download URL | pydantic_openai-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
826eb24b65a10f8ccc0b360b3ebb1f21ca7b649980ef607f9282e90c73d85269
|
|
BLAKE2b-256 checksum How to use checksums |
65fccac34d275bcc83fda1255a94dd650e8d894f9256855cf8faa189c6520233
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for pydantic-openai 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.