one-hub  by MartialBE

OpenAI API proxy and management system

created 1 year ago
2,287 stars

Top 20.3% on sourcepulse

GitHubView on GitHub
Project Summary

One Hub is a management and distribution system for AI model APIs, forked from one-api. It targets developers and organizations needing to route requests to various AI providers, offering enhanced features like a new UI, user dashboards, analytics, and support for a wider range of models and functionalities, including non-OpenAI models with function calling.

How It Works

This system acts as a central gateway, managing API keys and routing requests to different AI service providers. It features a refactored supplier module, allowing for configurable proxies per channel and dynamic model list returns. The architecture supports custom speed testing models, detailed request logging with latency, and advanced features like model-specific pricing, wildcard models, and user group rate limiting.

Quick Start & Requirements

Highlighted Details

  • Supports a broad range of AI providers including OpenAI, Azure, Gemini, Anthropic, and various Chinese LLMs.
  • Includes advanced features like user payments, Telegram bots, Prometheus monitoring, and customizable model multipliers.
  • Offers enhanced function calling support for non-OpenAI models, compatible with tools like lobe-chat.
  • Features a new UI with user dashboards and administrator analytics.

Maintenance & Community

  • This project is for personal learning and does not guarantee stability or offer technical support.
  • Users must comply with OpenAI's terms of service and relevant laws.

Licensing & Compatibility

  • The project is based on one-api, which is MIT licensed. However, the specific license for One Hub itself is not explicitly stated in the provided README.
  • Compatibility for commercial use or closed-source linking is not detailed.

Limitations & Caveats

The project is explicitly stated as being for personal learning use, with no guarantee of stability or technical support. Users are responsible for adhering to OpenAI's terms and legal regulations, particularly concerning AI service provision in China.

Health Check
Last commit

2 days ago

Responsiveness

1 day

Pull Requests (30d)
6
Issues (30d)
15
Star History
331 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.