JimiHub  by dreamhartley

Gemini proxy for OpenAI applications

Created 5 months ago
268 stars

Top 95.7% on SourcePulse

GitHubView on GitHub
Project Summary

JimiHub is a proxy service that translates OpenAI API requests to Google Gemini Pro API, enabling seamless integration for applications built for OpenAI. It targets developers and researchers looking to leverage Gemini models without modifying existing OpenAI-dependent codebases, offering multi-API key rotation and usage monitoring.

How It Works

JimiHub acts as an intermediary, intercepting requests formatted for OpenAI's Chat Completions API and reformatting them for Google's Gemini Pro API. This translation layer allows existing applications to communicate with Gemini models transparently. It employs a multi-API key rotation strategy to distribute load and bypass rate limits, enhancing reliability and throughput.

Quick Start & Requirements

  • Cloudflare Workers: One-click deployment via a GitHub button.
  • Hugging Face Spaces: Requires Docker, a private GitHub repository, and a GitHub PAT. Configuration involves setting Space Secrets for admin password, session key, GitHub project, PAT, and encryption key.
  • Local Node.js: Clone repo, npm install, configure .env (admin password, session secret key), then npm start.
  • Docker: Clone repo, configure .env, build image (docker build -t gemhub .), then run (docker run -d --name gemhub -p 3000:3000 --env-file .env -v ./data:/usr/src/app/data gemhub). docker-compose up -d is recommended.
  • Prerequisites: Node.js (for local), Docker, GitHub PAT (for sync).

Highlighted Details

  • OpenAI to Gemini Pro API proxy.
  • Multi-API key rotation and quota management.
  • Web UI for key and usage management.
  • Multiple deployment options: Cloudflare Workers, Hugging Face Spaces, Docker, Local Node.js.
  • Optional GitHub sync for data persistence.

Maintenance & Community

The project is maintained by dreamhartley. No specific community links (Discord/Slack) or roadmap are provided in the README.

Licensing & Compatibility

Licensed under CC BY-NC 4.0. Commercial resale or any form of commercial use is prohibited. This license restricts usage in commercial products or services.

Limitations & Caveats

The CC BY-NC 4.0 license strictly prohibits commercial use, limiting adoption to non-commercial projects, research, or personal use. Data persistence for Hugging Face Spaces relies on a user-provided GitHub repository and PAT.

Health Check
Last Commit

1 month ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
10 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.