OpenAI 接口管理 & 分发系统,支持 Azure、Anthropic Claude、Google PaLM 2 & Gemini、智谱 ChatGLM、百度文心一言、讯飞星火认知、阿里通义千问、360 智脑以及腾讯混元,可用于二次分发管理 key,仅单可执行文件,已打包好 Docker 镜像,一键部署,开箱即用. OpenAI key management & redistribution system, using a single API for all LLMs, and features an English UI.
Go to file
2024-05-25 17:59:30 +08:00
.github 🐛 fix: github action 2024-05-25 15:10:39 +08:00
bin chore: add model parameter to the time_test script (#245) 2023-07-04 18:13:59 +08:00
cli ♻️ refactor: Refactor price module (#123) (#109) (#128) 2024-03-28 16:53:34 +08:00
common 🔖 chore: Update Hunyuan API 2024-05-25 17:59:30 +08:00
controller 🔖 chore: Remove unnecessary print statements 2024-05-21 01:37:01 +08:00
cron feat: add chat cache (#152) 2024-04-16 10:36:18 +08:00
i18n 🔖 chore: Update model test tips 2024-05-21 18:54:26 +08:00
middleware 🔖 chore: Remove unnecessary print statements 2024-05-21 01:37:01 +08:00
model 🔖 chore: Update Hunyuan API 2024-05-25 17:59:30 +08:00
providers 🔖 chore: Update Hunyuan API 2024-05-25 17:59:30 +08:00
relay 🔖 chore: Update Hunyuan API 2024-05-25 17:59:30 +08:00
router feat: Add support for retrieving model list from providers (#188) 2024-05-16 15:21:13 +08:00
types 🔖 chore: Update JSON field types in chat and completion response models (#206) 2024-05-22 16:03:57 +08:00
web 🔖 chore: Update Hunyuan API 2024-05-25 17:59:30 +08:00
.air.toml 更换web界面 2023-12-20 19:27:27 +08:00
.gitignore 🐛 fix: Outlook email authentication error (#212) 2024-05-24 20:02:45 +08:00
config.example.yaml 🔖 chore: TGBot add http proxy (#192) 2024-05-19 21:48:39 +08:00
docker-compose.yml 🐛 fix: fix docker image error (#131) 2024-03-29 13:12:58 +08:00
Dockerfile ci: add stage caching to Dockerfile (#408) 2023-08-13 22:55:43 +08:00
Dockerfile-action 💚 ci: add arm64 image 2024-03-15 13:48:52 +08:00
go.mod 🔖 chore: Modify the key field data type in the channel table. 2024-05-15 22:15:27 +08:00
go.sum 🔖 chore: Modify the key field data type in the channel table. 2024-05-15 22:15:27 +08:00
LICENSE docs: update LICENSE 2023-04-26 13:04:41 +08:00
main.go 🐛 fix: Fixed the slave service unsynchronized data (#191) 2024-05-18 13:27:13 +08:00
makefile 💚 ci: Add .lock file 2024-04-02 14:16:08 +08:00
one-api.service chore: update one-api.service 2023-06-22 11:37:44 +08:00
pull_request_template.md 📝 doc: modify information (#57) 2024-01-26 18:41:11 +08:00
README.en.md feat: support Ollama (#168) 2024-04-24 16:59:58 +08:00
README.md feat: support Ollama (#168) 2024-04-24 16:59:58 +08:00
VERSION fix: add a blank VERSION file (#135) 2023-06-02 14:20:40 +08:00

English | 中文

One API

This project is based on one-api and has been developed for the second time. The main purpose is to separate the module code in the original project, modularize it, and modify the front-end interface. This project also follows the MIT protocol.

license release docker docker GoReportCard

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

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

Documentation

Please refer to the documentation.

Current Supported Providers

Provider Chat Embeddings Audio Images Other
OpenAI -
Azure OpenAI -
Azure Speech - - ⚠️ tts - -
Anthropic - - - -
Gemini - - - -
百度文心 - - -
通义千问 - - -
讯飞星火 - - - -
智谱 - ⚠️ image -
腾讯混元 - - - -
百川 - - -
MiniMax - - -
Deepseek - - - -
Moonshot - - - -
Mistral - - -
Groq - - - -
Amazon Bedrock ⚠️ Only support Anthropic models - - - -
零一万物 - - - -
Cloudflare AI - ⚠️ stt ⚠️ image -
Midjourney - - - - midjourney-proxy
Cohere - - - -
Stability AI - - - ⚠️ image -
Coze - - - -
Ollama - - -

Acknowledgements

  • This program utilizes the following open-source projects:

Special thanks to the authors and contributors of the above projects.

Others

Star History of MartialBE/one-api