doubao-ai-provider
v1.0.2
Published
Community-built Doubao AI Provider for Vercel AI SDK
Downloads
19
Maintainers
Readme
AI SDK - Doubao Provider
Community-built Doubao provider for the AI SDK contains language model support for the Bytedance's Doubao models.
Setup
The Doubao provider is available in the doubao-ai-provider module. You can install it with
npm i doubao-ai-providerSet up your .env file / environment with your API key.
DOUBAO_API_KEY=<your-api-key>Provider Instance
You can import the default provider instance doubao from doubao-ai-provider:
import { doubao } from "doubao-ai-provider";Example
import { doubao } from "doubao-ai-provider";
import { generateText } from "ai";
const { text } = await generateText({
model: doubao("doubao-seed-1-6-251015"),
prompt: "Introduce Doubao",
});Documentation
Please check out the Doubao provider for more information.
