The Fireworks provider for the AI SDK contains language model support for the Fireworks platform.
The Fireworks provider is available in the @ai-sdk/fireworks
module. You can install it with
```bash npm i @ai-sdk/fireworks ```
You can import the default provider instance fireworks
from @ai-sdk/fireworks
:
```ts import { fireworks } from '@ai-sdk/fireworks'; ```
```ts import { fireworks } from '@ai-sdk/fireworks'; import { generateText } from 'ai';
const { text } = await generateText({ model: fireworks('accounts/fireworks/models/llama-v2-13b-chat'), prompt: 'Write a JavaScript function that sorts a list:', }); ```
Please check out the Fireworks provider for more information.