Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
phil42
· 3y ago · 0 comments
But I need an GPT-4 api key for that, right? The normal API keys don't work?
Comments
[–]
capableweb
3y ago
The keys for GPT3 (`GPT-3.5-turbo` is the actual model ID) is the same as for GPT-4. You define the model when you make the request to the API.
[–]
layer8
3y ago
Does this work if you only have GPT-4 access via a ChatGPT subscription (ChatGPT Plus)?
[–]
fredliu
3y ago
It doesn't. Even if you have ChatGPT Plus, the key you have only supports 3.5 unless you are explicitly given the gpt-4 key.
[–]
capableweb
3y ago
It's true that you need explicit access to the GPT-4 to use the API, but again, it's not a different key. I'm using the same API key for accessing `gpt-3.5-turbo` as I use for `gpt-4`.
[–]
fredliu
3y ago
There seems to be already a PR for adding 3.5 support. The community and speed of change in this field is mind blowing!
[–]
tonyoconnell
3y ago
Seems to fall back to GPT 3 if you haven't got access to GPT 4 API yet
[–]
fredliu
3y ago
hmm... doesn't seem to be the case, when I provided my gpt-3 turbo key the error message indicates the gpt-4 model doesn't exist.
[–]
capableweb
3y ago
Change this
https://github.com/enricoros/nextjs-chatgpt-app/blob/466a366...
to say "gpt-3.5-tubo" and it should work for you
[–]
trendoid
3y ago
I updated the model in that file, deployed again using Vercel but still same error.