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

Key Error #8

Open
geojochen opened this issue May 6, 2023 · 5 comments
Open

Key Error #8

geojochen opened this issue May 6, 2023 · 5 comments

Comments

@geojochen
Copy link

I am getting a KeyError: 'choices' error when I send off a request. This is for both Chat as well as Agent mode.
What am I supposed to enter under User Name in the Settings?
plugins\qgpt_agent_release\qgpt_agent_dockwidget.py", line 90, in get_completion
completion = response.json()['choices'][0]['text']
KeyError: 'choices'

@momaabna
Copy link
Owner

momaabna commented May 7, 2023

Apparently, that is because the plugin cannot connect to Openai API,
Update to the last version
Check

  • Internet Connection
  • OpenAI API Key
  • Your Balance In OpenAI Account

Check this tutorial that shows the installation process

https://www.youtube.com/watch?v=OkYSWwpduiw

If the error still exists submit it here
witing to hear from you

@geojochen
Copy link
Author

geojochen commented May 7, 2023 via email

@momaabna
Copy link
Owner

momaabna commented May 7, 2023

Have You clicked set token button in setting tab ?

@momaabna
Copy link
Owner

momaabna commented May 7, 2023

The user name is only to show in the chat box nothing more.

@geojochen
Copy link
Author

geojochen commented May 7, 2023 via email

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

2 participants