Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydantic_openai-0.1.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pydantic_openai-0.1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

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

Hashes for pydantic_openai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e8b0d545ca5b427f9b6ced484ae1864191bea01d4e28e20730c4bf9f71e56a15
MD5 87f52813571be14d0682b31cc8db4790
BLAKE2b-256 49d61de10c107db65c3c0b8255fe44f55bda25b1cfae906abee487de0907bb39

See more details on using hashes here.

File details

Details for the file pydantic_openai-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pydantic_openai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 826eb24b65a10f8ccc0b360b3ebb1f21ca7b649980ef607f9282e90c73d85269
MD5 c93c1277dd01cee088d30f15129e146b
BLAKE2b-256 65fccac34d275bcc83fda1255a94dd650e8d894f9256855cf8faa189c6520233

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page