micahke / obsidian-gpt3-notes

An Obsidian plugin to generate notes based on GP3 output.
MIT License
171 stars 15 forks source link

OpenAI returned an error. Try modifying your paramters and try again. #14

Open m-beau opened 1 year ago

m-beau commented 1 year ago

When trying to generate a GPT-3 note from your plugin, no matter the parameters, the following is returned:

"OpenAI returned an error. Try modifying your paramters and try again."

Plugin version: 0.2.6 Obsidian version: 1.1.16

Thanks!

micahke commented 1 year ago

Hi @m-beau ,

Please make sure you have an OpenAI subscription or or currently on their free trial. GPT-3 Notes requires either of these to work. If you have a subscription and this error is still appearing, please let me know.

fy8d6jhegf commented 1 year ago

I'm receiving the same error although I am on the free trial of the OpenAI subscription. I confirmed my subscription is still active and I am well under any request limits. I tried multiple models and tokens.

"OpenAI returned an error. Try modifying your paramters and try again." Same issue including the typo on parameters.

Plugin version: 0.2.8 Obsidian version: 1.3.5

micahke commented 1 year ago

@fy8d6jhegf sorry to hear this is happening. Any chance you could let me know what parameters you were using? This may or may not be the issue, but as of now, the larger context Gpt-4 models seem to require more than just an OpenAI subscription (even I can't use them). I just left the option available for those who have access to those models.

fy8d6jhegf commented 1 year ago

I tried multiple token variations on the text-davinci-003 model from 300 to 4000 tokens. I also tried 500 tokens on curie, babage, GPT 4, and GPT 3.5 turbo. Same error every time. I have screenshot an example set up and the error. Obsidian GPT Obsidian error

micahke commented 1 year ago

@fy8d6jhegf Have you confirmed that your API key works elsewhere? For example, check to see that it works here: https://bettergpt.chat. If that doesn't work, then I may have to dig a bit deeper to try and understand the root cause.

mattrobns commented 1 year ago

You can use the developer console within obsidian to view the API response from Open AI. Within your note open the dev console with CTRL + SHIFT + i make your api request, and view the response in the network tab. image

Askotion commented 1 year ago

Interestingly enough you need a separate plan for using the API it seems like. I got the standard 20$ plan for the web ui but after checking the api request it made clear i "exceeded my current quota".

So i guess you have to load account with credits in order to use it after the free trail.

micahke commented 1 year ago

One thing that's been on my to-do list here is to add better error handling so the user see exactly why their query doesn't run. Hopefully I'll be able to get to this sometime soon