@turingpulse/sdk-cohere
v1.3.0
Published
TuringPulse SDK integration for Cohere (TypeScript)
Downloads
166
Readme
@turingpulse/sdk-cohere
TuringPulse SDK integration for Cohere (TypeScript) — automatic tracing for Command R+ and Embed.
Installation
npm install @turingpulse/sdk @turingpulse/sdk-cohere cohere-aiQuick Start
import { CohereClientV2 } from 'cohere-ai';
import { init } from '@turingpulse/sdk';
import { patchCohere } from '@turingpulse/sdk-cohere';
init({ apiKey: process.env.TP_API_KEY!, workflowName: 'my-project' });
patchCohere({ name: 'my-project' });
const client = new CohereClientV2({ token: '...' });
const response = await client.chat({
model: 'command-r-plus',
messages: [{ role: 'user', content: 'Hello!' }],
});Documentation
Full documentation: turingpulse.ai/docs/sdk/cohere
Requirements
- Node.js >= 18
- @turingpulse/sdk >= 1.0.0
