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,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 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
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-upgrade-migration

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

2,266 Updated today
jeremylongshore
AI & Automation Featured

groq-migration-deep-dive

Migrate from OpenAI/Anthropic/other LLM providers to Groq, or migrate between Groq model generations with zero-downtime traffic shifting. Trigger with phrases like "migrate to groq", "switch to groq", "groq migration", "openai to groq", "groq replatform".

2,266 Updated today
jeremylongshore
AI & Automation Featured

clade-migration-deep-dive

Migrate from OpenAI/GPT to Anthropic/Claude — API differences, Use when working with migration-deep-dive patterns. prompt adaptation, SDK swap, and feature mapping. Trigger with "migrate to claude", "openai to anthropic", "switch from gpt to claude", "replace openai with anthropic".

2,266 Updated today
jeremylongshore
AI & Automation Featured

anth-migration-deep-dive

Migrate to Claude API from OpenAI, Gemini, or other LLM providers. Use when switching from GPT-4 to Claude, migrating from Text Completions, or building a multi-provider abstraction layer. Trigger with phrases like "migrate to claude", "openai to anthropic", "switch from gpt to claude", "multi-provider llm".

2,266 Updated today
jeremylongshore
AI & Automation Featured

cohere-hello-world

Create a minimal working Cohere example with Chat, Embed, and Rerank. Use when starting a new Cohere integration, testing your setup, or learning basic Cohere API v2 patterns. Trigger with phrases like "cohere hello world", "cohere example", "cohere quick start", "simple cohere code".

2,266 Updated today
jeremylongshore