examples/react/basic-chat
Alem TuzlakMerge commit 'a5fce7f95b8b9c6eb57697aa1e3f587bf27483b9' into fix/anthropic-thinking-replay
| Name | Last commit message | Last commit date |
|---|---|---|
| .. | ||
README.md
Basic Chat#
You want a streaming chat with one OpenRouter key. Paste a key, send a message, and watch the reply stream in.
Run it#
- From the repo root, run
pnpm install. - Run
pnpm --filter basic-chat dev. - Open http://localhost:3100.
- Paste an OpenRouter key from https://openrouter.ai/keys.
- Type a message and click Send.
The key stays in this tab only. A reload clears it.
The server route is src/routes/api.chat.ts. The chat UI is src/routes/index.tsx.