* feat(系统设置&登录): 修改飞书登录是否启用判断逻辑和设置选项 1. 系统增加是否开启飞书登录选项 2. 登录使用通过系统设置判断是否启用飞书 * perf(用户中心): 优化用户中心绑定的第三方登录是否绑定判断和展示方式 优化用户中心绑定的第三方登录是否绑定判断和展示方式: - 系统启动了指定登录方式并且用户已经绑定该方式则icon高亮,没绑定则默认颜色显示; - 系统没有启动指定的登录方式则不显示指定登录方式icon |
||
---|---|---|
.github | ||
bin | ||
cli | ||
common | ||
controller | ||
cron | ||
i18n | ||
middleware | ||
model | ||
providers | ||
relay | ||
router | ||
types | ||
web | ||
.air.toml | ||
.gitignore | ||
config.example.yaml | ||
docker-compose.yml | ||
Dockerfile | ||
Dockerfile-action | ||
go.mod | ||
go.sum | ||
LICENSE | ||
main.go | ||
makefile | ||
one-api.service | ||
pull_request_template.md | ||
README.en.md | ||
README.md | ||
VERSION |
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.
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
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 simulateTTS
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:
- one-api serves as the foundation of this project.
- Berry Free React Admin Template provides the frontend interface for this project.
- minimal-ui-kit, some styles from this project were used.
- new api, the code for the Midjourney module is sourced from here.
Special thanks to the authors and contributors of the above projects.
Others
