v7.3.1
版本发布时间: 2023-11-11 20:53:33
betalgo/openai最新发布版本:v8.7.0(2024-09-23 20:48:43)
Version 7.3.1
-
Reverting a breking change which will be also Breaking Changes(only for 7.3.0):
- Reverting the usage of
EnsureStatusCode()
which caused the loss of error information. Initially, I thought it would help in implementing HTTP retry tools, but now I believe it is a bad idea for two reasons.- You can't simply retry if the request wasn't successful because it could fail for various reasons. For example, you might have used too many tokens in your request, causing OpenAI to reject the response, or you might have tried to use a nonexistent model. It would be better to use the Error object in your retry rules. All responses are already derived from this base object.
- We will lose error response data.
- Reverting the usage of
What's Changed
- Reverted usage of ensure status code. by @kayhantolga in https://github.com/betalgo/openai/pull/395
- 7.3.1 by @kayhantolga in https://github.com/betalgo/openai/pull/396
Full Changelog: https://github.com/betalgo/openai/compare/v7.3.0...v7.3.1