TheR1D / shell_gpt

A command-line productivity tool powered by AI large language models like GPT-4, will help you accomplish your tasks faster and more efficiently.
MIT License
9.36k stars 733 forks source link

Error when trying to use gpt-4 model #210

Closed fy2 closed 1 year ago

fy2 commented 1 year ago

$ sgpt --model gpt-4  "colours of rainbow"
# (...)
HTTPError: 404 Client Error: Not Found for url: https://api.openai.com/v1/chat/completions
akirataguchi115 commented 1 year ago

Are you subscribed to the ChatGPT Plus?

fy2 commented 1 year ago

Yes

fy2 commented 1 year ago

Does it work for you @akirataguchi115

akirataguchi115 commented 1 year ago

I'm currently not subscribed to ChatGPT Plus. Does the path https://api.openai.com/v1/chat/completions on GET give you 404 on Browser f.ex.?

TheR1D commented 1 year ago

GPT4 is in private beta now, if you don't have access to private beta, you can't use it over API. ChatGPT Plus subrscription doesn't apply to API requests, it is only allows you to use GPT4 in browser on chat.openai.com

fy2 commented 1 year ago

If I do it via the browser:

image

but when doing it with sgpt --model gpt-4 "colours of rainbow" I still get the 404. Maybe the error I get is misleading from sgbt and there is something else going wrong

fy2 commented 1 year ago

GPT4 is in private beta now, if you don't have access to private beta, you can't use it over API. ChatGPT Plus subrscription doesn't apply to API requests, it is only allows you to use GPT4 in browser on chat.openai.com

all right, I pay for GPT4 but never used the API, always went to the browser chat..

aemonge commented 1 year ago

Does anyone here know how to request the private beta?

aemonge commented 1 year ago

Found it https://openai.com/waitlist/gpt-4