MichelNivard / gptstudio

GPT RStudio addins that enable GPT assisted coding, writing & analysis
https://michelnivard.github.io/gptstudio/
Other
895 stars 107 forks source link

Chat bot doesn't respond if my account doesn't have payment details #100

Closed Jackjones408 closed 1 year ago

Jackjones408 commented 1 year ago

Please briefly describe your problem and what output you expect.

Whenever I write a prompt in the command box the chatbot doesn't reply with any idea on how I can fix that `

calderonsamuel commented 1 year ago

Please provide an example. It would be easier to help you if you provide:

  1. The content of your prompt
  2. The response you received

Have in mind that your prompt should include specific instructions on the task you expect the chatbot to accomplish

lucky5sugar commented 1 year ago

I have a same problem. I sent an exactly same prompt as in the README.md and received no response.

This is my R environment.

platform aarch64-apple-darwin20
arch aarch64
os darwin20
system aarch64, darwin20
status
major 4
minor 2.1
year 2022
month 06
day 23
svn rev 82513
language R
version.string R version 4.2.1 (2022-06-23)

image

calderonsamuel commented 1 year ago

Thank you for the report!

This looks like an error in the communication between the StreamHandler and the shiny session. Are you using the CRAN or the github version?

lucky5sugar commented 1 year ago

I used the following code and I think it is a CRAN version. install.packages("gptstudio")

efinlay commented 1 year ago

I installed first by using install.packages, a second time from github. I provided my API code first by Sys.setenv(OPENAI_API_KEY = ""), then starting ChatGPT from the addins menu and providing the key when prompted, then by finding the .Renviron file and adding the key to that. In all cases when I try to prompt for code all I see is the little robot icon, it has never responded. image If I try to use comment your code I get an error that Open AI API request failed Error 429 too Many requests image

Is this an API issue? What else can I try?

calderonsamuel commented 1 year ago

As you can see in the error message, you have error 429. The error is linking you to two websites where you can see more info on the errors. I think one of two things are happening:

  1. You didn't provide an API KEY (see the prerequisites in the README)
  2. Your API quota has reached its limit (go to the sites linked in the error message)

Let us know if any of those fix your issue

jadams125 commented 1 year ago

Hey all. I am getting the same errors, and I provided an API key. I do not think I had reached my quota, since I created a key for the first time to run this code and package.

efinlay commented 1 year ago

Mine was also a newly generated key. I signed in to OpenAI using Google to create the key and was never prompted to enter any payment details, are there different API keys for free and with the potential to pay?

calderonsamuel commented 1 year ago

@efinlay I guess if you dont provide payment details your quota would be 0 dolars/tokens, so that would explain the "Too many requests" error. Let me be totally explicit about this, you CAN'T use your openai api key without paying OpenAI for its usage. If you are afraid that it will cost you a lot of money to use it, it is possible to set rate limits in your OpenAI account settings. Also, since last week, the cost of using api keys for chat completions with the 3.5-turbo model (the default) has been reduced 25% .

Personally, the most I've been billed is around 2 dolars by a whole month, but of course it will depend on how you use it. Give it a try and check how much it costs you https://platform.openai.com/account/usage.

If all the reports on this thread have in common a lack of payment details in the OpenAI platform, we could consider this issue as closed. Let us know!

efinlay commented 1 year ago

Thank you very much, that sounds like it was the problem for me at least. I may come back and experiment with it myself in the future but I can't insist that a class of students create paying accounts, even if it does turn out to be minimal prices. If I'm not the only one having the issue it might help to note in the instructions that it has to be a paying account API key for those of us who don't know enough about OpenAI to take that for granted and try with the free version. Thanks again

jadams125 commented 1 year ago

Thanks for the prompt help. This seems to be my issue as well.

calderonsamuel commented 1 year ago

Please @JamesHWade rename this issue to "Chat bot doesn't respond if my account doesn't have payment details". I think we can close this once we explicitly state in the README that, for now, there is no free tier for this addin.

JamesHWade commented 1 year ago

Readme updated with #109