Show HN: Next.js ChatGPT – Responsive chat application powered by GPT-4
21–30 of 36 posts
Re: Show HN: Next.js ChatGPT – Responsive chat application powered by GPT-4
#22Earlier quoted context omitted.
Seems to fall back to GPT 3 if you haven't got access to GPT 4 API yet
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.
Re: Show HN: Next.js ChatGPT – Responsive chat application powered by GPT-4
#23Earlier quoted context omitted.
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.
Change this https://github.com/enricoros/nextjs-chatgpt-app/blob/466a366... to say "gpt-3.5-tubo" and it should work for you
Re: Show HN: Next.js ChatGPT – Responsive chat application powered by GPT-4
#24Earlier quoted context omitted.
Change this https://github.com/enricoros/nextjs-chatgpt-app/blob/466a366... to say "gpt-3.5-tubo" and it should work for you
I updated the model in that file, deployed again using Vercel but still same error.
But come on, read through the source, look for the issue, I'm sure you can track down at least something :)
Re: Show HN: Next.js ChatGPT – Responsive chat application powered by GPT-4
#25Earlier quoted context omitted.
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.
There seems to be already a PR for adding 3.5 support. The community and speed of change in this field is mind blowing!
Re: Show HN: Next.js ChatGPT – Responsive chat application powered by GPT-4
#26Earlier quoted context omitted.
I updated the model in that file, deployed again using Vercel but still same error.
It seems like it's setting gpt-4 here as well: https://github.com/enricoros/nextjs-chatgpt-app/blob/466a366... But come on, read through the source, look for the issue, I'm sure you can track down at least something :)
Works now.
Re: Show HN: Next.js ChatGPT – Responsive chat application powered by GPT-4
#27Earlier quoted context omitted.
What do you mean by “acting”? That it pretends to be a Scientist? Or that it can perform actions (like sending an email or searching the web)? If the latter, do you have more info/docs about it? Didn’t see it on the roadmap.
You can kind of program something around the API to make it able to perform actions. That's the way I'm guessing Microsoft did it with Bing. Here is an example: System prompt: - You are a text-based AI delegates to other AIs. - You only respond in JSON with two keys `delegate_to` and `parameters`. - `delegate_to` defines what other AI you should delegate to. - `parameters` are parameters to send to that AI. - Here is…
Re-reading, I’m guessing the prompt could also be dynamically generated to include the most relevant delegates.
Re: Show HN: Next.js ChatGPT – Responsive chat application powered by GPT-4
#28Earlier quoted context omitted.
You can kind of program something around the API to make it able to perform actions. That's the way I'm guessing Microsoft did it with Bing. Here is an example: System prompt: - You are a text-based AI delegates to other AIs. - You only respond in JSON with two keys `delegate_to` and `parameters`. - `delegate_to` defines what other AI you should delegate to. - `parameters` are parameters to send to that AI. - Here is…
Nice. How would you go about providing a dynamic list of delgates? Could it work to just give one delegate that can provide a list of delegates with a description of the actions they can perform (then that delegate can query a db and return a list)? Re-reading, I’m guessing the prompt could also be dynamically generated to include the most relevant delegates.
Re: Show HN: Next.js ChatGPT – Responsive chat application powered by GPT-4
#29Re: Show HN: Next.js ChatGPT – Responsive chat application powered by GPT-4
#30Earlier quoted context omitted.
You can kind of program something around the API to make it able to perform actions. That's the way I'm guessing Microsoft did it with Bing. Here is an example: System prompt: - You are a text-based AI delegates to other AIs. - You only respond in JSON with two keys `delegate_to` and `parameters`. - `delegate_to` defines what other AI you should delegate to. - `parameters` are parameters to send to that AI. - Here is…
Nice. How would you go about providing a dynamic list of delgates? Could it work to just give one delegate that can provide a list of delegates with a description of the actions they can perform (then that delegate can query a db and return a list)? Re-reading, I’m guessing the prompt could also be dynamically generated to include the most relevant delegates.
Yup that's how I'm doing it - the system prompt is re-generated for every request, and that includes getting a list of available delegates and the arguments they accept. I only have 10 so I'm just listing all of them, but if you had some huge number you could combine that with embeddings / vector lookup.