cohere-migration-deep-dive

Featured

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".

AI & Automation 2,926 stars 433 forks Updated yesterday 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 Migration Deep Dive ## Overview Comprehensive guide for migrating to Cohere from OpenAI, Anthropic, or other LLM providers, including embedding re-vectorization, prompt adaptation, and gradual traffic shifting. ## Prerequisites - Current LLM integration documented - Cohere API key and SDK installed - Feature flag infrastructure - Rollback strategy ## Migration Types | From | Complexity | Duration | Key Challenge | |------|-----------|----------|---------------| | OpenAI → Cohere | Medium | 1-2 weeks | Prompt adaptation, embedding migration | | Anthropic → Cohere | Medium | 1-2 weeks | Message format, tool definitions | | Custom/OSS → Cohere | Low | Days | SDK integration | | Embedding migration | High | 2-4 weeks | Re-vectorize entire corpus | ## Instructions ### Step 1: OpenAI to Cohere Chat Migration ```typescript // --- OpenAI (before) --- import OpenAI from 'openai'; const openai = new OpenAI(); const response = await openai.chat.completions.create({ model: 'gpt-4o', messages: [ { role: 'system', content: 'You are helpful.' }, { role: 'user', content: 'Hello' }, ], max_tokens: 500, temperature: 0.7, }); const text = response.choices[0].message.content; // --- Cohere (after) --- import { CohereClientV2 } from 'cohere-ai'; const cohere = new CohereClientV2(); const response = await cohere.chat({ model: 'command-a-03-2025', // GPT-4o equivalent messages: [ { role: 'system', content: 'You are helpful.' }, // Same format! { r...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category