clade-migration-deep-dive

Featured

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

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

# Migrate from OpenAI to Anthropic ## Overview Migrate from OpenAI/GPT to Anthropic/Claude. Covers the complete API mapping (endpoints, models, response shapes), SDK swap with before/after code, five key differences (max_tokens required, system as top-level param, alternating messages, response path, streaming events), and tool use migration. ## API Mapping | OpenAI | Anthropic | Notes | |--------|-----------|-------| | `openai.chat.completions.create()` | `anthropic.messages.create()` | Different request/response shape | | `model: 'gpt-4o'` | `model: 'claude-sonnet-4-20250514'` | Different model IDs | | `response.choices[0].message.content` | `response.content[0].text` | Different response path | | `system` in messages array | `system` as separate parameter | Claude uses top-level `system` | | `response_format: { type: 'json_object' }` | System prompt: "Respond in JSON only" | No native JSON mode | | `tools` / `function_calling` | `tools` (similar but different schema) | Input schema differences | | `openai.embeddings.create()` | N/A — use Voyage or Cohere | No embeddings API | ## SDK Swap ## Instructions ### Step 1: Before (OpenAI) ```typescript 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' }, ], }); console.log(response.choices[0].message.content); ``` ### Step 2: After (Ant...

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

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

clade-upgrade-migration

Upgrade Anthropic SDK versions and migrate between Claude model generations. Use when working with upgrade-migration patterns. Trigger with "upgrade anthropic sdk", "migrate claude model", "anthropic breaking changes", "new claude model".

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

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

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