cohere-upgrade-migration - Cohere SDK Migration to API v2
Migrate from Cohere API v1 to v2 and upgrade SDK versions
Tags
Updated: 2026-03-24Capabilities
Typical Inputs
Typical Outputs
What this skill does
- upgrade SDK version
- install latest SDK
- update client imports
- modify chat endpoint
- update role names
- modify embed endpoint
- modify rerank endpoint
- modify classify endpoint
- update streaming code
- update document format
- update tool format
- update model names
- run tests
- fix errors
- commit changes
Inputs
- Cohere API key
- current Cohere SDK
- existing codebase
- Git repository
- test suite
Outputs
- updated code files
- upgraded package.json
- upgraded requirements.txt
- migration commit
- test results
Requirements
- Cohere API access
- Node.js or Python
- Git
- npm or pip
