๐—•๐˜‚๐—ถ๐—น๐—ฑ๐—ถ๐—ป๐—ด ๐—”๐—œ ๐—ช๐—ฟ๐—ฎ๐—ฝ๐—ฝ๐—ฒ๐—ฟ๐˜€ ๐—œ๐˜€ ๐—›๐—ฎ๐—ฟ๐—ฑ๐—ฒ๐—ฟ ๐—ง๐—ต๐—ฎ๐—ป ๐—œ๐˜ ๐—Ÿ๐—ผ๐—ผ๐—ธ๐˜€

Many developers think building an AI chat app is easy. They think an API key and a text box are enough. They are wrong.

Junior developers use a simple API call. The user waits for the full response. The screen stays blank for ten seconds. Users close the tab.

Mid level developers use streaming. Tokens appear one by one. The app feels alive. But the app has no memory. Refresh the page and the chat vanishes.

Senior developers use streaming and a database. They save messages as they arrive. The chat stays there after a refresh. They add more details:

The API call is the easy part. The infrastructure is the real work.

Comparison:

Ask your developer what happens when they refresh the page. The answer tells you their level.

Source: https://dev.to/0shuvo0/you-cant-even-make-an-ai-wrapper-chat-app-3ph5