- aisdk example app following Next.js App Router tutorial with
@ai-sdk/react
pnpm i
pnpm devOpen http://localhost:3000 with your browser to see the result.
- ai api key uses Groq
- it's easy to switch to other ai providers
- ollama/lmstudio is tested locally
-
- chat split view with text and
streamdown
- chat split view with text and
-
http://localhost:3000/chat-restore
- restore chat contents when page reloads
- for multi-turn conversation, previous messages are sent along with latest message
- this example shows how to use Multi-Step Tool Calls
- 👀 some ai is not smart, the tools provided just wont be called.
- in my test, groq
llama-3.3-70b-versatilewill mostly do multi tool calls,meta-llama/llama-4-scout-17b-16e-instructonly calls one tool.
MIT