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-30 14:30:56 +08:00
.github 📝 doc: update readme 2024-05-26 16:17:00 +08:00
bin chore: add model parameter to the time_test script (#245) 2023-07-04 18:13:59 +08:00
cli 🐛 fix: config file reading logic error 2024-05-29 14:55:53 +08:00
common 🔖 chore: Update variable name to follow naming conventions 2024-05-29 04:58:28 +08:00
controller 🔖 chore: Update variable name to follow naming conventions 2024-05-29 04:58:28 +08:00
cron 🔖 chore: Remove invalid code 2024-05-29 04:38:56 +08:00
i18n 🔖 chore: Update model test tips 2024-05-21 18:54:26 +08:00
middleware 🔖 chore: migration constants 2024-05-29 01:56:14 +08:00
model 🔖 chore: Update variable name to follow naming conventions 2024-05-29 04:58:28 +08:00
providers 🐛 fix: Do not modify Provider parameters 2024-05-29 16:32:08 +08:00
relay 🔖 chore: Modify PreConsumedQuota Formula (#241) 2024-05-29 20:49:18 +08:00
router 🔖 chore: migration constants 2024-05-29 01:56:14 +08:00
types feat: Support stream_options 2024-05-26 19:58:15 +08:00
web 🔖 chore: Model mapping prompt optimization (#244) 2024-05-30 14:30:56 +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: Allow disable token encoders (#226) 2024-05-26 00:44:10 +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: add chat image request proxy address 2024-05-29 04:01:28 +08:00
go.sum 🔖 chore: Modify the key field data type in the channel table. 2024-05-15 22:15:27 +08:00
LICENSE 📝 doc: update readme 2024-05-26 16:17:00 +08:00
main.go 🔖 chore: migration constants 2024-05-29 01:56:14 +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 📝 doc: update readme 2024-05-26 16:17:00 +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