1.1.13 • Published 7 months ago

@ai-toolkit/cohere v1.1.13

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

AI TOOLKIT - Cohere Provider

The Cohere provider for the AI TOOLKIT contains language model support for the Cohere API.

Setup

The Cohere provider is available in the @ai-toolkit/cohere module. You can install it with

npm i @ai-toolkit/cohere

Provider Instance

You can import the default provider instance cohere from @ai-toolkit/cohere:

import { cohere } from '@ai-toolkit/cohere';

Example

import { cohere } from '@ai-toolkit/cohere';
import { generateText } from 'ai-toolkit';

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.

1.1.13

7 months ago