Live data from Hacker News

Show HN: Next.js ChatGPT – Responsive chat application powered by GPT-4

github.com

21–30 of 36 posts

Re: Show HN: Next.js ChatGPT – Responsive chat application powered by GPT-4

#22
post #18

Earlier 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.

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

#23
post #18

Earlier 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

I updated the model in that file, deployed again using Vercel but still same error.

Re: Show HN: Next.js ChatGPT – Responsive chat application powered by GPT-4

#24

Earlier 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.

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 :)

Re: Show HN: Next.js ChatGPT – Responsive chat application powered by GPT-4

#25
post #17
post #16

Earlier 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!

Oh yeah, changing 33 lines is truly revolutionary!

Re: Show HN: Next.js ChatGPT – Responsive chat application powered by GPT-4

#26

Earlier 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 :)

Sorry, as soon as posted my comment, I looked again and found the other occurrence. It's quite late here and I just followed your advice blindly :)

Works now.

Re: Show HN: Next.js ChatGPT – Responsive chat application powered by GPT-4

#27
post #6

Earlier 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…

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

#28
post #27

Earlier 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.

At that point we're basically back to the `AI is just nested if-else expressions` story. The only difference is that now there is a language reader on top that understands the semantic of your language. But actors (or agents in LangChain lingo) are just if-else. The tools you connect them to must be developed separately.

Re: Show HN: Next.js ChatGPT – Responsive chat application powered by GPT-4

#29

What does it take to make a basic ChatGPT-like frontend, with code highlighting, run in sandbox, drop-files, and 'acting' in prompts? Clone away and enjoy. First time poster

like https://www.chatwithme.chat ?

This hijacks the Back button on Chrome. Not trustworthy.

Re: Show HN: Next.js ChatGPT – Responsive chat application powered by GPT-4

#30
post #27

Earlier 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.

> 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.

Post reply on HN