Overview
Get started with AI integration in your TurboStarter project.
Looking for AI-assisted development?
TurboStarter includes a set of AI rules, skills, subagents, and commands for popular AI editors and tools - so the AI follows this repo's conventions and produces more consistent changes.
See AI-assisted development to set it up.
For AI integration, TurboStarter uses the Vercel AI SDK, which provides a unified toolkit for building AI features across providers.
Why Vercel AI SDK?
It's a simple yet powerful library that exposes a unified API for all major AI providers.
This lets you build AI features without worrying about the quirks of each underlying provider API.
You can learn more about the ai package in the official documentation.
Features
The starter includes common AI features out of the box, such as:
- Chat: Build chat applications with ease.
- Streaming responses: Stream responses from your AI provider in real time.
- Image generation: Generate images using AI technology.
- Embeddings: Generate embeddings for your data.
- Vector stores: Store and query your embeddings efficiently.
You can easily compose your application using these building blocks or extend them to suit your specific needs.
Providers
TurboStarter relies on the AI SDK to support multiple AI providers. This means you can switch providers without changing your code, as long as they are supported by the ai package.
You can find the list of supported providers in the official documentation.
Custom providers
You can also add your own custom provider. It just needs to implement the common interface and provide the required methods.
Read more about this in the official guide.
Provider configuration is straightforward. We'll explore it in more detail in the Configuration section.
How is this guide?
Last updated on