Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MartialBE/one-hub
OpenAI 接口管理 & 分发系统,改自songquanpeng/one-api。支持更多模型,加入统计页面,完善非openai模型的函数调用。
https://github.com/MartialBE/one-hub
chatgpt openai openai-api
Last synced: 15 days ago
JSON representation
OpenAI 接口管理 & 分发系统,改自songquanpeng/one-api。支持更多模型,加入统计页面,完善非openai模型的函数调用。
- Host: GitHub
- URL: https://github.com/MartialBE/one-hub
- Owner: MartialBE
- License: apache-2.0
- Created: 2023-09-09T05:40:25.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-29T10:58:01.000Z (16 days ago)
- Last Synced: 2024-10-29T12:47:34.811Z (15 days ago)
- Topics: chatgpt, openai, openai-api
- Language: Go
- Homepage: https://one-hub.xiao5.info/
- Size: 3.79 MB
- Stars: 1,123
- Watchers: 14
- Forks: 229
- Open Issues: 39
-
Metadata Files:
- Readme: README.en.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
English | 中文
# One Hub
_This project is based on [one-api](https://github.com/songquanpeng/one-api) and has been developed for the second time._
**Please do not mix with the original version, because the new functions, the database is not compatible with the original version**
**For the sake of simplicity, after this project, except for updating the model list built into the program when adding a new supplier, the model list built into the program will not be updated under normal circumstances.**
If you find that a new model is missing, please update the newly added model in `Backend-Model Price-Update Price`
[Demo Site](https://one-api-martialbe.vercel.app/)
## Functional Changes
- Brand new UI interface
- Added user dashboard
- Added administrator data analysis and statistics interface
- Refactored the intermediary `supplier` module
- Support for using `Azure Speech` to simulate `TTS` function
- Channels can be configured with separate http/socks5 proxies
- Support for dynamically returning user model lists
- Support for custom speed testing models
- Logs now include request duration
- Support and optimize function calls for non-OpenAI models (supported models can be used directly in Lobe-Chat)
- Support for custom completion rates
- Support for full pagination and sorting
- Support for `Telegram bot`
- Support for models charged per use
- Support for model wildcards
- Support for starting the program using a configuration file
- Support model price update
- Support automatic acquisition of supplier models
- Support chat only. If there is an incoming `function call` parameter after opening, the channel will be skipped.
- Support payment## Documentation
Please refer to the [documentation](https://github.com/MartialBE/one-hub/wiki).
## Current Supported Providers
| Provider | Chat | Embeddings | Audio | Images | Other |
| --------------------------------------------------------------------- | -------------------------------- | ---------- | ------ | -------- | ---------------------------------------------------------------- |
| [OpenAI](https://platform.openai.com/docs/api-reference/introduction) | ✅ | ✅ | ✅ | ✅ | - |
| [Azure OpenAI](https://oai.azure.com/) | ✅ | ✅ | ✅ | ✅ | - |
| [Azure Speech](https://portal.azure.com/) | - | - | ⚠️ tts | - | - |
| [Anthropic](https://www.anthropic.com/) | ✅ | - | - | - | - |
| [Gemini](https://aistudio.google.com/) | ✅ | - | - | - | - |
| [百度文心](https://console.bce.baidu.com/qianfan/overview) | ✅ | ✅ | - | - | - |
| [通义千问](https://dashscope.console.aliyun.com/overview) | ✅ | ✅ | - | - | - |
| [讯飞星火](https://console.xfyun.cn/) | ✅ | - | - | - | - |
| [智谱](https://open.bigmodel.cn/overview) | ✅ | ✅ | - | ⚠️ image | - |
| [腾讯混元](https://cloud.tencent.com/product/hunyuan) | ✅ | - | - | - | - |
| [百川](https://platform.baichuan-ai.com/console/apikey) | ✅ | ✅ | - | - | - |
| [MiniMax](https://www.minimaxi.com/user-center/basic-information) | ✅ | ✅ | - | - | - |
| [Deepseek](https://platform.deepseek.com/usage) | ✅ | - | - | - | - |
| [Moonshot](https://moonshot.ai/) | ✅ | - | - | - | - |
| [Mistral](https://mistral.ai/) | ✅ | ✅ | - | - | - |
| [Groq](https://console.groq.com/keys) | ✅ | - | - | - | - |
| [Amazon Bedrock](https://console.aws.amazon.com/bedrock/home) | ⚠️ Only support Anthropic models | - | - | - | - |
| [零一万物](https://platform.lingyiwanwu.com/details) | ✅ | - | - | - | - |
| [Cloudflare AI](https://ai.cloudflare.com/) | ✅ | - | ⚠️ stt | ⚠️ image | - |
| [Midjourney](https://www.midjourney.com/) | - | - | - | - | [midjourney-proxy](https://github.com/novicezk/midjourney-proxy) |
| [Cohere](https://cohere.com/) | ✅ | - | - | - | - |
| [Stability AI](https://platform.stability.ai/account/credits) | - | - | - | ⚠️ image | - |
| [Coze](https://www.coze.com/open/docs/chat?_lang=zh) | ✅ | - | - | - | - |
| [Ollama](https://github.com/ollama/ollama) | ✅ | ✅ | - | - | - |
| [Suno](https://suno.com/) | - | - | - | - | [Suno-API](https://github.com/Suno-API/Suno-API) |## Acknowledgements
- This program utilizes the following open-source projects:
- [one-api](https://github.com/songquanpeng/one-api) serves as the foundation of this project.
- [Berry Free React Admin Template](https://github.com/codedthemes/berry-free-react-admin-template) provides the frontend interface for this project.
- [minimal-ui-kit](https://github.com/minimal-ui-kit/material-kit-react), some styles from this project were used.
- [new api](https://github.com/Calcium-Ion/new-api), the code for the Midjourney/Suno module is sourced from here.Special thanks to the authors and contributors of the above projects.
## Others