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

[Bug]: fail in chatComplete for gptcache.adapter openai #593

Open
frank780117 opened this issue Jan 8, 2024 · 2 comments
Open

[Bug]: fail in chatComplete for gptcache.adapter openai #593

frank780117 opened this issue Jan 8, 2024 · 2 comments
Assignees

Comments

@frank780117
Copy link

Current Behavior

When I use document on Bootcamp, the OpenAI -> Chat tag

when I run, show the error

You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API.

please upgrade for this, thanks

Expected Behavior

No response

Steps To Reproduce

No response

Environment

No response

Anything else?

No response

@SimFG
Copy link
Collaborator

SimFG commented Jan 8, 2024

@frank780117
Because openai has made many adjustments to 1.x, the gptcache project has not yet been adapted. If you are interested in this, your contribution is very welcome.

Of course, there are other ways to deal with this problem, that is, try to use the get/put method. Try to use the get method to obtain the cache content before requesting openai. If it is not obtained, request openai, and then put the result of openai into the cache.

same issue: #576

@Ravitwr
Copy link

Ravitwr commented Jan 16, 2024

I want to work on this. Can it be assigned to me?

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

No branches or pull requests

3 participants