-
Notifications
You must be signed in to change notification settings - Fork 7
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
Comments
Apparently, that is because the plugin cannot connect to Openai API,
Check this tutorial that shows the installation process https://www.youtube.com/watch?v=OkYSWwpduiw If the error still exists submit it here |
Hello Mohammed:
I did watch the video and tried everything you mention on your GitHub site.
I installed the latest version of the plugin yesterday and created also
yesterday the API key, which I then inserted into your plugin settings form.
As I mentioned, I am not sure what the user name is for.
As I created the API key only yesterday, I still have 100% of my allotted
balance in my OpenAI account.
I also asked a colleague to test the plugin. He did not encounter the key
error that I still get but this is what he experienced:
I noticed that whenever I closed qgis (I'm still using version 3.28.3), I
would have to reenter my openAI key. Additionally, nothing happened when I
checked the option for the QGIS agent to show me the code directly. I keep
getting this python error whenever I try to work within the layers - ie
filter out the country like on the doc or remove certain layers.
2023-05-06T16:11:41 WARNING Traceback (most recent call last):
File
"C:\Users/Test/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgpt_agent_release\qgpt_agent_dockwidget.py",
line 355, in debug_code
code = completion.split('[[[')[2].split(']]]')[0]
IndexError: list index out of range
Cheers,
Jochen
…On Sun, May 7, 2023 at 8:45 AM Mohammed Mahmood ***@***.***> wrote:
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
—
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZUGEIXP33TTFGCZNGSBJ3XE6KPXANCNFSM6AAAAAAXYGNE3U>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Have You clicked set token button in setting tab ? |
The user name is only to show in the chat box nothing more. |
[image: image.png]
[image: image.png]
[image: image.png]
…On Sun, May 7, 2023 at 11:44 AM Mohammed Mahmood ***@***.***> wrote:
The user name is only to show in the chat box nothing more.
—
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZUGEJU5ETYC6E4VBADZMDXE67ONANCNFSM6AAAAAAXYGNE3U>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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'
The text was updated successfully, but these errors were encountered: