FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

python client 0.11.0 by madeleineth · Pull Request #42 · openai/openai-python · GitHub

python client 0.11.0 - #42

Merged
madeleineth merged 1 commit into
mainfrom
mt-0-11-0
Oct 26, 2021
Merged

python client 0.11.0#42
madeleineth merged 1 commit into
mainfrom
mt-0-11-0

Conversation

Copy link
Copy Markdown
Contributor
  • Add .isort.cfg and fix imports to match.
  • Exit with status 1 instead of 0 on error in openai.
  • Support openai.api_key_path variable to make it easy to have long-running processes with auto-updated keys.
  • Drop support for unverified SSL connections.
  • Substantially simplify HTTP client code. Now that we use requests for everything, we do not need distinct HTTPClient and APIRequestor abstractions, and we can use the requests implementation for multipart data, rather than our own.
  • Drop vestigial code originally from the Stripe client. For example, there was a bunch of code related to an idempotency framework; OpenAI does not have an idempotency framework.
  • Drop support for APIResource.delete as an instance method; it is just a class method now.
  • Drop support for APIResource.save; use APIResource.modify instead. This substantially simplifies API resources, since they no longer need to track changed fields, and there's less risk of race conditions. And the only thing it could be used for is changing the number of replicas an engine had, which does not justify the complexity of the code.
  • Drop the request-metrics code. It is unused.

- Add `.isort.cfg` and fix imports to match.
- Exit with status 1 instead of 0 on error in `openai`.
- Support `openai.api_key_path` variable to make it easy to have long-running processes with auto-updated keys.
- Drop support for unverified SSL connections.
- Substantially simplify HTTP client code. Now that we use `requests` for everything, we do not need distinct `HTTPClient` and `APIRequestor` abstractions, and we can use the `requests` implementation for multipart data, rather than our own.
- Drop vestigial code originally from the Stripe client. For example, there was a bunch of code related to an idempotency framework; OpenAI does not have an idempotency framework.
- Drop support for `APIResource.delete` as an instance method; it is just a class method now.
- Drop support for `APIResource.save`; use `APIResource.modify` instead. This substantially simplifies API resources, since they no longer need to track changed fields, and there's less risk of race conditions. And the only thing it could be used for is changing the number of replicas an engine had, which does not justify the complexity of the code.
- Drop the request-metrics code. It is unused.
madeleineth requested a review from hallacy October 26, 2021 18:50
madeleineth merged commit 62f8d40 into main Oct 26, 2021
madeleineth deleted the mt-0-11-0 branch October 26, 2021 19:33
hallacy mentioned this pull request Jan 26, 2022
cgayapr pushed a commit to cgayapr/openai-python that referenced this pull request Dec 14, 2024
- Add `.isort.cfg` and fix imports to match.
- Exit with status 1 instead of 0 on error in `openai`.
- Support `openai.api_key_path` variable to make it easy to have long-running processes with auto-updated keys.
- Drop support for unverified SSL connections.
- Substantially simplify HTTP client code. Now that we use `requests` for everything, we do not need distinct `HTTPClient` and `APIRequestor` abstractions, and we can use the `requests` implementation for multipart data, rather than our own.
- Drop vestigial code originally from the Stripe client. For example, there was a bunch of code related to an idempotency framework; OpenAI does not have an idempotency framework.
- Drop support for `APIResource.delete` as an instance method; it is just a class method now.
- Drop support for `APIResource.save`; use `APIResource.modify` instead. This substantially simplifies API resources, since they no longer need to track changed fields, and there's less risk of race conditions. And the only thing it could be used for is changing the number of replicas an engine had, which does not justify the complexity of the code.
- Drop the request-metrics code. It is unused.
openai deleted a comment Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL