anth-upgrade-migration

Featured

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

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

# Anthropic Upgrade & Migration ## Overview Guide for upgrading the Anthropic SDK and migrating between API versions. The SDK follows semver — major versions may have breaking changes. ## Check Current Versions ```bash # Python pip show anthropic | grep Version # Version: 0.40.0 # TypeScript npm list @anthropic-ai/sdk # @anthropic-ai/sdk@0.35.0 # Check latest available pip index versions anthropic 2>/dev/null | head -1 npm view @anthropic-ai/sdk version ``` ## Upgrade Path ### Step 1: Create Upgrade Branch ```bash git checkout -b upgrade/anthropic-sdk ``` ### Step 2: Upgrade SDK ```bash # Python pip install --upgrade anthropic pip show anthropic | grep Version # TypeScript npm install @anthropic-ai/sdk@latest ``` ### Step 3: Review Breaking Changes Key breaking changes by version: **Python SDK 0.20+ (anthropic-version: 2023-06-01)** ```python # OLD: Text Completions API (deprecated) response = client.completions.create( model="claude-2", prompt="\n\nHuman: Hello\n\nAssistant:", max_tokens_to_sample=256 ) # NEW: Messages API response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=256, messages=[{"role": "user", "content": "Hello"}] ) ``` **Python SDK 0.30+ (streaming changes)** ```python # OLD: Manual SSE parsing response = client.messages.create(..., stream=True) for line in response.iter_lines(): ... # NEW: High-level streaming with client.messages.stream(...) as stream: for text in stream.text_stream:...

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

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

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-install-auth

Install and configure Anthropic Claude SDK authentication for Python and TypeScript. Use when setting up a new Claude API integration, configuring API keys, or initializing the Anthropic SDK in your project. Trigger with phrases like "install anthropic", "setup claude api", "anthropic auth", "configure anthropic API key", "claude sdk setup".

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