Api-Conversion  by chinrain

AI API proxy for cross-channel conversion

Created 3 months ago
367 stars

Top 76.8% on SourcePulse

GitHubView on GitHub
Project Summary

This project provides a unified proxy system for multi-channel AI APIs, enabling seamless conversion between OpenAI, Anthropic Claude, and Google Gemini formats. It's designed for developers and users who need to integrate with or switch between different AI providers, offering features like key management, load balancing, and comprehensive capability detection.

How It Works

The system acts as a transparent proxy, intercepting client requests and performing automatic format recognition based on request paths and parameters. It then routes the request to the appropriate AI service, converting the request and response formats as needed. Key advantages include its ability to handle advanced features like streaming responses, function calls, and visual understanding across different API specifications, abstracting away the underlying complexities of each provider.

Quick Start & Requirements

  • Install dependencies: pip install -r requirements.txt
  • Run the web server: python web_server.py
  • Access the web interface at http://localhost:3000
  • Requires Python 3.x. Configuration is managed via a .env file.

Highlighted Details

  • Supports bidirectional conversion between OpenAI, Anthropic, and Gemini API formats.
  • Handles advanced features including streaming, function calls, visual understanding, and structured output.
  • Provides a unified API for listing models across different providers.
  • Includes comprehensive capability detection for various AI features.

Maintenance & Community

The project is licensed under the MIT License.

Licensing & Compatibility

MIT License, generally permissive for commercial use and integration with closed-source applications.

Limitations & Caveats

The README does not detail specific limitations or known issues. Users may need to consult the source code or community channels for potential caveats.

Health Check
Last Commit

3 weeks ago

Responsiveness

Inactive

Pull Requests (30d)
3
Issues (30d)
2
Star History
74 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.