toshiakit / MatGPT

MATLAB app to access ChatGPT API from OpenAI
MIT License
202 stars 29 forks source link

Error with MatGPT #6

Closed RafeyTahir closed 1 year ago

RafeyTahir commented 1 year ago

MatGPT Sir i'm using MatGPT on Matlab R2021b and its giving me this type of error (see attached pic) every time. Do we need ChatGPT Plus account or it will run on the free account as well?

toshiakit commented 1 year ago

Thank you for posting this. This is an unknown issue caused when the API key is not valid. Please make sure you set up the valid API key in the environment variable.

DANAJK commented 1 year ago

Thank you for posting this. This is an unknown issue caused when the API key is not valid. Please make sure you set up the valid API key in the environment variable.

I set my API key correctly (I think) and still got this message. It was fixed by setting up payments in my OpenAI account. (The free credits I had received at the start had expired).

toshiakit commented 1 year ago

@DANAJK thank you, that makes sense. This is caused by API returning 401 error, which could either mean the API key is not valid or the free trial has expired.

nothans commented 1 year ago

Fixed with latest release