Skip to main content

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)

Source distribution for pydantic-openai 0.1.0
File Size Uploaded
pydantic_openai-0.1.0.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydantic-openai 0.1.0
File Interpreter ABI Platform
pydantic_openai-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.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