SIGN IN SIGN UP
openai / openai-python UNCLAIMED

The official Python library for the OpenAI API

0 0 1 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-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
2026-02-09 14:38:00 +00:00
certifi==2026.1.4
# via httpcore
# via httpx
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
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-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
2026-02-09 14:38:00 +00:00
httpx-aiohttp==0.1.12
# via openai
2025-12-02 11:05:28 +00:00
idna==3.11
# via anyio
# via httpx
2025-06-20 18:00:13 +00:00
# via yarl
2025-12-02 11:05:28 +00:00
multidict==6.7.0
2025-06-20 18:00:13 +00:00
# via aiohttp
# via yarl
2025-12-02 11:05:28 +00:00
propcache==0.4.1
2025-06-20 18:00:13 +00:00
# via aiohttp
# via yarl
pydantic==2.12.5
# via openai
pydantic-core==2.41.5
# via pydantic
2025-12-02 11:05:28 +00:00
sniffio==1.3.1
# via openai
typing-extensions==4.15.0
2025-12-02 11:05:28 +00:00
# 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 openai
# via pydantic
# via pydantic-core
# via typing-inspection
typing-inspection==0.4.2
# via pydantic
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