momaabna / QGPTAgent

The QGPT Agent is a powerful plugin for QGIS that utilizes the advanced natural language processing capabilities of the OpenAI GPT model to automate various processes in QGIS. With this plugin, users can interact with the QGIS software using natural language commands, significantly reducing the time and effort required to complete various tasks.
77 stars 7 forks source link

Error: Cannot Connect to OpenAI #4

Open stratfordj opened 1 year ago

stratfordj commented 1 year ago

Hello, am I doing something wrong? I have entered an API key, and I just get this message straight away when I try to use the agent. Using QGIS Firenze. Many thanks.

momaabna commented 1 year ago

Check -internet connection -openai API key -your balance in openai

be9em0t commented 1 year ago

I can confirm that the plugin does not connect to openAI. With working connection, correct API key and available balance.

Is there any possibility that you refer to payd/ChatGP+ account? is there any possibility that you need somthing different input un the "User" field, as OpenAI does not have "user", only "user email" ?

momaabna commented 1 year ago

The user here is only to be shown in the chat and has no relation to this msg. I was working with it using the 5$ free trial normally.

You can check your Balance at this link

https://platform.openai.com/account/usage

be9em0t commented 1 year ago

Thanks, Mohammed. Yes, that's the type of account.

simonokeefe commented 1 year ago

I have the same issue. I expect that the "Set Tocken" button is not working. There is no activity in Debugging/Development Tools panel when I click the button. When I restart QGIS, the API key I entered is no longer there. Using QGIS LTR 3.28.6 on Windows.

zigmons commented 1 year ago

I have the same issue. I expect that the "Set Tocken" button is not working. There is no activity in Debugging/Development Tools panel when I click the button. When I restart QGIS, the API key I entered is no longer there. Using QGIS LTR 3.28.6 on Windows.

I'm having this same issue in my tests. I've tried in QGIS 3.28.6 and in 3.22.14. Same problem in both

Orphaliman commented 4 months ago

Same issue as the rest. I have plenty of API credit and have generated numerous APIs. Non working plugin, surprised it's being pushed by qgis with it being this buggy

momaabna commented 3 months ago

Same issue as the rest. I have plenty of API credit and have generated numerous APIs. Non working plugin, surprised it's being pushed by qgis with it being this buggy

Some users experienced that in some countries due to the block of openai services in their countries.

If you have any debugging thoughts, contributions are welcome.