cohere-upgrade-migration

Featured

Migrate from Cohere API v1 to v2 and upgrade SDK versions. Use when upgrading cohere-ai SDK, migrating from CohereClient to CohereClientV2, or handling breaking changes between API versions. Trigger with phrases like "upgrade cohere", "cohere migration", "cohere v1 to v2", "update cohere SDK", "cohere breaking changes".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Cohere Upgrade & Migration ## Overview Guide for migrating from Cohere API v1 to v2 and upgrading the `cohere-ai` TypeScript / `cohere` Python SDK. Covers every breaking change with before/after code. ## Prerequisites - Current Cohere SDK installed - Git for version control - Test suite available ## Instructions ### Step 1: Check Current Version ```bash # TypeScript npm list cohere-ai # Python pip show cohere # Latest versions npm view cohere-ai version pip index versions cohere ``` ### Step 2: Create Upgrade Branch ```bash git checkout -b upgrade/cohere-v2-migration npm install cohere-ai@latest # or: pip install cohere --upgrade ``` ### Step 3: API v1 to v2 Breaking Changes #### Client Import ```typescript // v1 import { CohereClient } from 'cohere-ai'; const cohere = new CohereClient({ token: '...' }); // v2 import { CohereClientV2 } from 'cohere-ai'; const cohere = new CohereClientV2({ token: '...' }); ``` #### Chat Endpoint — Messages Format ```typescript // v1 — single message string const response = await cohere.chat({ message: 'Hello', preamble: 'You are helpful.', chatHistory: [ { role: 'USER', message: 'Hi' }, { role: 'CHATBOT', message: 'Hello!' }, ], }); console.log(response.text); // v2 — OpenAI-compatible messages array, model required const response = await cohere.chat({ model: 'command-a-03-2025', // REQUIRED in v2 messages: [ { role: 'system', content: 'You are helpful.' }, { role: 'user', content: 'Hi' }, { r...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

cohere-migration-deep-dive

Migrate from OpenAI/Anthropic/other LLM providers to Cohere, or vice versa. Use when switching LLM providers, migrating embeddings between models, or re-platforming existing AI integrations to Cohere API v2. Trigger with phrases like "migrate to cohere", "switch from openai to cohere", "cohere migration", "replace openai with cohere", "cohere replatform".

2,266 Updated today
jeremylongshore
AI & Automation Featured

hubspot-upgrade-migration

Upgrade @hubspot/api-client SDK versions and migrate between API versions. Use when upgrading the HubSpot Node.js SDK, migrating from v1/v2 to v3 APIs, or handling breaking changes in the HubSpot API client. Trigger with phrases like "upgrade hubspot", "hubspot SDK update", "hubspot breaking changes", "migrate hubspot API version", "hubspot v3 migration".

2,266 Updated today
jeremylongshore
AI & Automation Featured

firecrawl-upgrade-migration

Upgrade Firecrawl SDK versions and migrate between API versions (v0 to v1/v2). Use when upgrading the SDK, handling breaking changes between versions, or migrating from the old API to the current v2 API. Trigger with phrases like "upgrade firecrawl", "firecrawl migration", "firecrawl v2", "update firecrawl SDK", "firecrawl breaking changes".

2,266 Updated today
jeremylongshore
AI & Automation Featured

anth-upgrade-migration

Upgrade Anthropic SDK versions and migrate between Claude API versions. Use when upgrading the Python/TypeScript SDK, migrating from Text Completions to Messages API, or adopting new API features like tool use or batches. Trigger with phrases like "upgrade anthropic sdk", "anthropic migration", "update claude sdk", "migrate to messages api".

2,266 Updated today
jeremylongshore
AI & Automation Featured

notion-upgrade-migration

Upgrade @notionhq/client SDK versions and migrate between Notion API versions. Use when updating SDK packages, handling breaking changes between API versions, adopting new SDK features like comments API or status properties, or migrating Python notion-client. Trigger with phrases like "upgrade notion SDK", "notion migration", "notion breaking changes", "update notionhq client", "notion API version upgrade", "notion deprecation".

2,266 Updated today
jeremylongshore