Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated code to be compatible with openai version 1.54.4 #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

QuarkBS2
Copy link

@QuarkBS2 QuarkBS2 commented Nov 12, 2024

Calls to 'chat completions' and 'RateLimitError' have been updated to OpenAI version 1.54.4
Closes #15

Copy link
Owner

@Vikranth3140 Vikranth3140 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @QuarkBS2, I believe that there is more refactoring to the codebase required to bump the openai version to the updated functiond.

@QuarkBS2
Copy link
Author

Hi, you mean specifying the OpenAI version into the requirements.txt file?

@Vikranth3140
Copy link
Owner

Hi @QuarkBS2, refer to this for a better understanding of the issue - #4 (comment)

@QuarkBS2
Copy link
Author

Hi, thanks for providing me with more context.
I have checked the documentation, and as you can see here: Create OpenAPI Reference
The code is still pretty much the same to what is already in the current main branch, the main difference is the function with which you call the endpoint, but they do work the same way.
And is the same thing with the Error handling as you can check here: API error handling
I could definitely try to optimize some pieces of the code, or add new exceptions, but I'm not sure if that would be what you expect or if it would be out of the scope for this issue.

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.

Update OpenAI library to latest version and refactor code
2 participants