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

update openai call method #4

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

Conversation

ray-ruisun
Copy link

When openai package version is >1.0.0, we need to use new way to get body of response.

Also fix the import problem

When openai package version is >1.0.0, we need to use new way to get body of response.

Also fix the import problem
@AGREATAPE
Copy link

AGREATAPE commented Nov 16, 2023

I tried this modification, but this error occurred.
NameError: name 'client' is not defined
@ray-ruisun

@xiaoer666
Copy link

I tried this modification, but this error occurred. NameError: name 'client' is not defined @ray-ruisun

Change ‘client’ to ‘openai’.

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.

None yet

3 participants