AWS Bedrock to Merge Gateway Migration

0•

Automates the migration of AWS Bedrock calls to the Merge Gateway SDK for unified AI model management.

This skill streamlines the transition from AWS Bedrock's boto3 library to the Merge Gateway SDK, handling the significant API and format changes required. It automatically discovers Bedrock usage in your codebase, maps model IDs to the unified Gateway format, and refactors complex methods like invoke_model and converse into streamlined SDK calls. Supporting both Python and TypeScript, the skill provides interactive prompts to ensure dependencies and environment variables are handled securely and accurately during the migration process.

Key Features

01Automatic discovery of AWS Bedrock clients, methods, and model IDs
020 GitHub stars
03One-to-one mapping of Bedrock model IDs to Merge Gateway provider formats
04Refactoring of legacy invoke_model and converse API calls to modern SDK patterns
05Conversion of Bedrock streaming responses to unified Gateway streaming syntax
06Guided cleanup of AWS dependencies and environment variable configuration

Use Cases

01Consolidating multiple AI model providers under a single, unified API gateway
02Modernizing legacy Python Bedrock implementations into TypeScript/Node.js services
03Reducing architectural complexity by replacing provider-specific SDKs with a unified interface