Project Introduction: One Hub
One Hub is an innovative open-source project that serves as a powerful tool for managing various artificial intelligence vendors and their models. It was developed as a secondary enhancement of the original one-api, boasting new features and better functionality.
Overview
One Hub is geared towards enhancing the user experience by offering a refined user interface and adding a suite of new features. It is important to note that One Hub is not compatible with the original one-api's database due to new functionalities implemented in this version.
Key Features
- Revamped UI: One Hub offers a completely new user interface, designed to be more intuitive and user-friendly.
- User Dashboard: Users have access to an improved dashboard for better control and monitoring of their interactions.
- Admin Analytics Page: Administrators are provided with a new statistical analysis page for deeper insights into data usage.
- Enhanced Vendor Module: The vendor module has been optimized to manage data relay more efficiently.
- Azure Speech Integration: One Hub supports Azure Speech for Text-to-Speech (TTS) emulation.
- Configurable Proxies: Channels can be configured with unique HTTP/SOCKS5 proxies for versatile network management.
- Dynamic Model Lists: Users can receive dynamically updated lists of models available to them.
- Custom Test Models: It allows users to define custom testing models for performance evaluations.
- Detailed Logging: Request processing times are now recorded for better monitoring and debugging.
- Function Calls for Non-OpenAI Models: Improved support for making function calls with models outside of OpenAI, directly usable within Lobe-chat.
- Custom Completion Rates: The completion multiplier can be custom set according to preferences or requirements.
- Comprehensive Pagination and Sorting: Enhanced pagination and sorting options across the application.
- Telegram Bot Support: The project now supports Telegram bots for models.
- Pay-Per-Use Model Charges: Models can be charged on a per-use basis, allowing flexible billing.
- Model Wildcard Support: Users can utilize wildcards when dealing with models.
- Configuration File Support: The application can be initiated using configuration files for easier setup.
- Automated Model Price Updates: Automatic updates of model pricing help keep costs accurate.
- Vendor Model Syncing: Automatically fetches models available from vendors.
- Chat-only Mode: If a function call parameter is received, the relevant channel can be bypassed when chat-only mode is activated.
- Payment Support: One Hub supports integrations for payment processing, making it easier to monetize services.
Documentation
Comprehensive documentation is available, providing detailed instructions on utilizing One Hub's capabilities effectively. It can be accessed through their Wiki.
Supported Vendors
One Hub offers unparalleled support for a wide array of vendors, providing users access to various services such as:
- OpenAI
- Azure OpenAI
- Azure Speech
- Anthropic
- Gemini
- Baidu's Wenxin
- Tencent's Hunyuan
- Among many others
The supported services span capabilities like chat, embeddings, audio, and image processing, each varying depending on the vendor.
Acknowledgements
This project stands on the shoulders of various open-source projects that have contributed to its development:
- one-api as its foundational structure.
- Berry Free React Admin Template utilized for its frontend interface.
- minimal-ui-kit for styling elements.
- new api, providing modules like Midjourney and Suno.
Note
One Hub is intended for personal learning and experimentation and does not guarantee stability nor provide technical support. Users must ensure compliance with OpenAI’s terms of use and other legal regulations. It is advised against making this service available to the public in the Chinese region without proper regulatory clearance.
In summary, One Hub is a robust tool crafted for those seeking an enriched AI model management experience, featuring a plethora of cutting-edge functionalities, extensive vendor support, and strong user-centric components.