0.0.27 • Published 11 months ago
@ai-sdk/cohere v0.0.27
AI SDK - Cohere Provider
The Cohere provider for the AI SDK contains language model support for the Cohere API.
Setup
The Cohere provider is available in the @ai-sdk/cohere
module. You can install it with
npm i @ai-sdk/cohere
Provider Instance
You can import the default provider instance cohere
from @ai-sdk/cohere
:
import { cohere } from '@ai-sdk/cohere';
Example
import { cohere } from '@ai-sdk/cohere';
import { generateText } from 'ai';
const { text } = await generateText({
model: cohere('command-r-plus'),
prompt: 'Write a vegetarian lasagna recipe for 4 people.',
});
Documentation
Please check out the Cohere provider for more information.
0.0.27
11 months ago
0.0.25
12 months ago
0.0.22
1 year ago
0.0.23
1 year ago
0.0.24
12 months ago
0.0.21
1 year ago
0.0.20
1 year ago
0.0.19
1 year ago
0.0.18
1 year ago
0.0.17
1 year ago
0.0.16
1 year ago
0.0.15
1 year ago
0.0.14
1 year ago
0.0.13
1 year ago
0.0.12
1 year ago
0.0.11
1 year ago
0.0.10
1 year ago
0.0.9
1 year ago
0.0.8
1 year ago
0.0.7
1 year ago
0.0.6
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago