0.0.27 • Published 9 months ago

@ai-sdk/cohere v0.0.27

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

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

9 months ago

0.0.25

10 months ago

0.0.22

11 months ago

0.0.23

10 months ago

0.0.24

10 months ago

0.0.21

11 months ago

0.0.20

11 months ago

0.0.19

11 months ago

0.0.18

11 months ago

0.0.17

11 months ago

0.0.16

11 months ago

0.0.15

11 months ago

0.0.14

11 months ago

0.0.13

11 months ago

0.0.12

11 months ago

0.0.11

11 months ago

0.0.10

11 months ago

0.0.9

11 months ago

0.0.8

12 months ago

0.0.7

12 months ago

0.0.6

12 months 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