- simple JSON request/response
- text streaming
- Server-Sent Events
A companion project for the blog post https://komelin.com/blog/build-ai-powered-api
ollama run gemma4:e2bGemma 4 needs a recent Ollama version. If the pull fails with "requires a newer version of Ollama", update Ollama first.
pnpm ipnpm start
# or node src/index.jsImport Yaak config and play with the requests.
Send a POST request with the following JSON in the body:
{
"question": "How are you?"
}to one of the urls: