Pydantic models for OpenAI's API
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydantic_openai-0.1.0.tar.gz.
File metadata
- Download URL: pydantic_openai-0.1.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8b0d545ca5b427f9b6ced484ae1864191bea01d4e28e20730c4bf9f71e56a15
|
|
| MD5 |
87f52813571be14d0682b31cc8db4790
|
|
| BLAKE2b-256 |
49d61de10c107db65c3c0b8255fe44f55bda25b1cfae906abee487de0907bb39
|
File details
Details for the file pydantic_openai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pydantic_openai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
826eb24b65a10f8ccc0b360b3ebb1f21ca7b649980ef607f9282e90c73d85269
|
|
| MD5 |
c93c1277dd01cee088d30f15129e146b
|
|
| BLAKE2b-256 |
65fccac34d275bcc83fda1255a94dd650e8d894f9256855cf8faa189c6520233
|