Streaming Response Rendering
Using AI SDK v5's streaming API and Vue's reactive system + ReadableStream API, the app implements a word-by-word typing effect, improving interaction speed and engagement. It handles errors, loading states, and cancellation.
Multi-Model Switching
Supports seamless switching between GPT-4, Claude, Gemini, etc. An abstraction layer masks model differences (context length, features, response formats) for a unified interface.
AI Gateway Proxy
All model requests go through Nuxt's server API routes, ensuring API keys are stored securely (server-side env vars), enabling rate limiting, caching, logging, and easy extension to custom/private models.
Generative UI
Uses AI SDK's tool calling to let models output structured data, which is rendered into interactive components (e.g., product cards), blurring the line between chat and GUI.