SIGN IN SIGN UP
openai / openai-python UNCLAIMED

The official Python library for the OpenAI API

0 0 0 Python
V1 (#677) * cleanup * v1.0.0-beta.1 * docs: add basic manual azure example * docs: use chat completions instead of completions for demo example * test: rename `API_BASE_URL` to `TEST_API_BASE_URL` * feat(client): handle retry-after header with a date format * feat(api): remove `content_filter` stop_reason and update documentation * refactor(cli): rename internal types for improved auto complete * feat(client): add forwards-compatible pydantic methods * feat(api): move `n_epochs` under `hyperparameters` * feat(client): add support for passing in a httpx client * chore: update README * feat(cli): use http/2 if h2 is available * chore(docs): remove trailing spaces * feat(client): add logging setup * chore(internal): minor updates * v1.0.0-beta.2 * docs: use chat completions instead of completions for demo example * chore: add case insensitive get header function * fix(client): correctly handle errors during streaming * fix(streaming): add additional overload for ambiguous stream param * chore(internal): enable lint rule * chore(internal): cleanup some redundant code * fix(client): accept io.IOBase instances in file params * docs: improve error message for invalid file param type * 1.0.0-beta.3 * chore(internal): migrate from Poetry to Rye * feat(cli): add `tools fine_tunes.prepare_data` * feat(client): support passing httpx.URL instances to base_url * chore(internal): fix some latent type errors * feat(api): add embeddings encoding_format * feat: use numpy for faster embeddings decoding * chore(internal): bump pyright * chore(internal): bump deps * feat(client): improve file upload types * feat(client): adjust retry behavior to be exponential backoff * ci: add lint workflow * docs: improve to dictionary example * ci(lint): run ruff too * chore(internal): require explicit overrides * feat(client): support accessing raw response objects * test(qs): add an additional test case for array brackets * feat(client): add dedicated Azure client * feat(package): add classifiers * docs(readme): add Azure guide * 1.0.0-rc1 * docs: small cleanup * feat(github): include a devcontainer setup * chore: improve type names * feat(client): allow binary returns * feat(client): support passing BaseModels to request params at runtime * fix(binaries): don't synchronously block in astream_to_file * 1.0.0-rc2 * chore(internal): remove unused int/float conversion * docs(readme): improve example snippets * fix: prevent TypeError in Python 3.8 (ABC is not subscriptable) * 1.0.0-rc3 * docs: update streaming example * docs(readme): update opening * v1.0.0 --------- Co-authored-by: Robert Craigie <robert@craigie.dev> Co-authored-by: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Co-authored-by: Stainless Bot <dev@stainlessapi.com> Co-authored-by: Alex Rattray <rattray.alex@gmail.com>
2023-11-06 08:19:00 -08:00
# generated by rye
# use `rye lock` or `rye sync` to update this lockfile
#
# last locked with the following flags:
# pre: false
# features: []
# all-features: true
# with-sources: false
# generate-hashes: false
# universal: false
V1 (#677) * cleanup * v1.0.0-beta.1 * docs: add basic manual azure example * docs: use chat completions instead of completions for demo example * test: rename `API_BASE_URL` to `TEST_API_BASE_URL` * feat(client): handle retry-after header with a date format * feat(api): remove `content_filter` stop_reason and update documentation * refactor(cli): rename internal types for improved auto complete * feat(client): add forwards-compatible pydantic methods * feat(api): move `n_epochs` under `hyperparameters` * feat(client): add support for passing in a httpx client * chore: update README * feat(cli): use http/2 if h2 is available * chore(docs): remove trailing spaces * feat(client): add logging setup * chore(internal): minor updates * v1.0.0-beta.2 * docs: use chat completions instead of completions for demo example * chore: add case insensitive get header function * fix(client): correctly handle errors during streaming * fix(streaming): add additional overload for ambiguous stream param * chore(internal): enable lint rule * chore(internal): cleanup some redundant code * fix(client): accept io.IOBase instances in file params * docs: improve error message for invalid file param type * 1.0.0-beta.3 * chore(internal): migrate from Poetry to Rye * feat(cli): add `tools fine_tunes.prepare_data` * feat(client): support passing httpx.URL instances to base_url * chore(internal): fix some latent type errors * feat(api): add embeddings encoding_format * feat: use numpy for faster embeddings decoding * chore(internal): bump pyright * chore(internal): bump deps * feat(client): improve file upload types * feat(client): adjust retry behavior to be exponential backoff * ci: add lint workflow * docs: improve to dictionary example * ci(lint): run ruff too * chore(internal): require explicit overrides * feat(client): support accessing raw response objects * test(qs): add an additional test case for array brackets * feat(client): add dedicated Azure client * feat(package): add classifiers * docs(readme): add Azure guide * 1.0.0-rc1 * docs: small cleanup * feat(github): include a devcontainer setup * chore: improve type names * feat(client): allow binary returns * feat(client): support passing BaseModels to request params at runtime * fix(binaries): don't synchronously block in astream_to_file * 1.0.0-rc2 * chore(internal): remove unused int/float conversion * docs(readme): improve example snippets * fix: prevent TypeError in Python 3.8 (ABC is not subscriptable) * 1.0.0-rc3 * docs: update streaming example * docs(readme): update opening * v1.0.0 --------- Co-authored-by: Robert Craigie <robert@craigie.dev> Co-authored-by: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Co-authored-by: Stainless Bot <dev@stainlessapi.com> Co-authored-by: Alex Rattray <rattray.alex@gmail.com>
2023-11-06 08:19:00 -08:00
-e file:.
2025-06-20 18:00:13 +00:00
aiohappyeyeballs==2.6.1
# via aiohttp
2026-02-09 14:38:00 +00:00
aiohttp==3.13.3
2025-06-20 18:00:13 +00:00
# via httpx-aiohttp
# via openai
2025-12-02 11:05:28 +00:00
aiosignal==1.4.0
2025-06-20 18:00:13 +00:00
# via aiohttp
2025-12-02 11:05:28 +00:00
annotated-types==0.7.0
# via pydantic
2026-02-09 14:38:00 +00:00
anyio==4.12.1
# via httpx
# via openai
2025-12-02 11:05:28 +00:00
argcomplete==3.6.3
# via nox
2025-06-20 18:00:13 +00:00
async-timeout==5.0.1
# via aiohttp
2025-12-02 11:05:28 +00:00
attrs==25.4.0
2025-06-20 18:00:13 +00:00
# via aiohttp
2025-12-02 11:05:28 +00:00
# via nox
backports-asyncio-runner==1.2.0
# via pytest-asyncio
2026-02-09 14:38:00 +00:00
certifi==2026.1.4
# via httpcore
# via httpx
colorama==0.4.6
# via griffe
2025-12-02 11:05:28 +00:00
colorlog==6.10.1
# via nox
dependency-groups==1.3.1
# via nox
2025-12-02 11:05:28 +00:00
dirty-equals==0.11
distlib==0.4.0
# via virtualenv
2025-12-02 11:05:28 +00:00
distro==1.9.0
# via openai
2025-12-02 11:05:28 +00:00
exceptiongroup==1.3.1
# via anyio
# via pytest
2025-12-02 11:05:28 +00:00
execnet==2.1.2
# via pytest-xdist
2025-12-02 11:05:28 +00:00
filelock==3.19.1
# via virtualenv
2025-12-02 11:05:28 +00:00
frozenlist==1.8.0
2025-06-20 18:00:13 +00:00
# via aiohttp
# via aiosignal
2025-12-02 11:05:28 +00:00
griffe==1.14.0
2025-07-08 14:24:43 +00:00
h11==0.16.0
# via httpcore
2025-07-08 14:24:43 +00:00
httpcore==1.0.9
# via httpx
httpx==0.28.1
2025-06-20 18:00:13 +00:00
# via httpx-aiohttp
# via openai
# via respx
2026-02-09 14:38:00 +00:00
httpx-aiohttp==0.1.12
2025-06-20 18:00:13 +00:00
# via openai
2025-12-02 11:05:28 +00:00
humanize==4.13.0
# via nox
idna==3.11
# via anyio
# via httpx
2025-06-20 18:00:13 +00:00
# via yarl
2026-02-09 14:38:00 +00:00
importlib-metadata==8.7.1
2025-12-02 11:05:28 +00:00
iniconfig==2.1.0
# via pytest
markdown-it-py==3.0.0
# via rich
mdurl==0.1.2
# via markdown-it-py
2025-12-02 11:05:28 +00:00
multidict==6.7.0
2025-06-20 18:00:13 +00:00
# via aiohttp
# via yarl
mypy==1.17.0
2025-12-02 11:05:28 +00:00
mypy-extensions==1.1.0
# via mypy
2026-02-09 14:38:00 +00:00
nodeenv==1.10.0
# via pyright
2025-12-02 11:05:28 +00:00
nox==2025.11.12
packaging==25.0
# via dependency-groups
# via nox
# via pytest
2026-02-09 14:38:00 +00:00
pathspec==1.0.3
# via mypy
2025-12-02 11:05:28 +00:00
platformdirs==4.4.0
# via virtualenv
2025-12-02 11:05:28 +00:00
pluggy==1.6.0
# via pytest
2025-12-02 11:05:28 +00:00
propcache==0.4.1
2025-06-20 18:00:13 +00:00
# via aiohttp
# via yarl
2025-12-02 11:05:28 +00:00
pydantic==2.12.5
# via openai
2025-12-02 11:05:28 +00:00
pydantic-core==2.41.5
# via pydantic
2025-12-02 11:05:28 +00:00
pygments==2.19.2
# via pytest
# via rich
2025-04-16 12:04:38 +00:00
pyright==1.1.399
2025-12-02 11:05:28 +00:00
pytest==8.4.2
# via pytest-asyncio
# via pytest-xdist
2025-12-02 11:05:28 +00:00
pytest-asyncio==1.2.0
pytest-xdist==3.8.0
python-dateutil==2.9.0.post0
# via time-machine
respx==0.22.0
2025-12-02 11:05:28 +00:00
rich==14.2.0
2026-02-09 14:38:00 +00:00
ruff==0.14.13
2025-12-02 11:05:28 +00:00
six==1.17.0
# via python-dateutil
2025-12-02 11:05:28 +00:00
sniffio==1.3.1
# via openai
2025-12-02 11:05:28 +00:00
time-machine==2.19.0
2026-02-09 14:38:00 +00:00
tomli==2.4.0
2025-12-02 11:05:28 +00:00
# via dependency-groups
# via mypy
2025-12-02 11:05:28 +00:00
# via nox
# via pytest
2025-12-02 11:05:28 +00:00
typing-extensions==4.15.0
# via aiosignal
# via anyio
2025-12-02 11:05:28 +00:00
# via exceptiongroup
2025-06-20 18:00:13 +00:00
# via multidict
# via mypy
# via openai
# via pydantic
# via pydantic-core
2024-12-02 20:43:48 +00:00
# via pyright
2025-12-02 11:05:28 +00:00
# via pytest-asyncio
# via typing-inspection
2025-12-02 11:05:28 +00:00
# via virtualenv
typing-inspection==0.4.2
# via pydantic
2026-02-09 14:38:00 +00:00
virtualenv==20.36.1
# via nox
websockets==15.0.1
# via openai
2025-12-02 11:05:28 +00:00
yarl==1.22.0
2025-06-20 18:00:13 +00:00
# via aiohttp
2025-12-02 11:05:28 +00:00
zipp==3.23.0
# via importlib-metadata