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-04-19 14:40:16 +08:00
.github 💚 ci: windows does not use .lock files 2024-04-09 15:44:19 +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 🐛 fix: config file loading error 2024-04-18 23:10:47 +08:00
controller feat: add Lark OAuth (#149) 2024-04-16 13:03:05 +08:00
cron feat: add chat cache (#152) 2024-04-16 10:36:18 +08:00
i18n feat: enable channel when test succeed (#771) 2023-12-03 20:10:57 +08:00
middleware 🐛 fix: config file loading error 2024-04-18 23:10:47 +08:00
model 🐛 fix: config file loading error 2024-04-18 23:10:47 +08:00
providers feat: add Stability AI 2024-04-18 18:53:49 +08:00
relay feat: add Stability AI 2024-04-18 18:53:49 +08:00
router 🐛 fix: config file loading error 2024-04-18 23:10:47 +08:00
types feat: Support Cloudflare AI 2024-04-16 18:08:56 +08:00
web 🐛 fix: Price list page is incomplete. 2024-04-19 04:30:48 +08:00
.air.toml 更换web界面 2023-12-20 19:27:27 +08:00
.gitignore 💚 ci: Update .gitignore and add makefile for building the project 2024-03-25 11:21:24 +08:00
config.example.yaml feat: add imgur image upload 2024-04-18 18:51:09 +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 feat: add chat cache (#152) 2024-04-16 10:36:18 +08:00
go.sum feat: add chat cache (#152) 2024-04-16 10:36:18 +08:00
LICENSE docs: update LICENSE 2023-04-26 13:04:41 +08:00
main.go 🐛 fix: config file loading error 2024-04-18 23:10:47 +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.md 📝 doc: update readme 2024-04-19 14:40:16 +08:00
VERSION fix: add a blank VERSION file (#135) 2023-06-02 14:20:40 +08:00

One API

本项目是基于one-api二次开发而来的,主要将原项目中的模块代码分离,模块化,并修改了前端界面。本项目同样遵循 MIT 协议。

license release docker docker GoReportCard

请不要和原版混用,因为新增功能,数据库与原版不兼容

为了更加简洁,本项目之后,除了新增供应商时会更新程序自带的模型列表,平常不再更新程序自带的模型列表。

如果发现缺少新模型,请在后台-模型价格-更新价格中更新新增的模型

演示网站

功能变化

  • 全新的 UI 界面
  • 新增用户仪表盘
  • 新增管理员分析数据统计界面
  • 重构了中转供应商模块
  • 支持使用Azure Speech模拟TTS功能
  • 渠道可配置单独的 http/socks5 代理
  • 支持动态返回用户模型列表
  • 支持自定义测速模型
  • 日志增加请求耗时
  • 支持和优化非 OpenAI 模型的函数调用(支持的模型可以在 lobe-chat 直接使用)
  • 支持完成倍率自定义
  • 支持完整的分页和排序
  • 支持Telegram bot
  • 支持模型按次收费
  • 支持模型通配符
  • 支持使用配置文件启动程序

文档

请查看文档

当前支持的供应商

供应商 Chat Embeddings Audio Images 其他
OpenAI -
Azure OpenAI -
Azure Speech - - ⚠️ tts - -
Anthropic - - - -
Gemini - - - -
百度文心 - - -
通义千问 - - -
讯飞星火 - - - -
智谱 - ⚠️ 图片生成 -
腾讯混元 - - - -
百川 - - -
MiniMax - - -
Deepseek - - - -
Moonshot - - - -
Mistral - - -
Groq - - - -
Amazon Bedrock ⚠️ 仅支持 Anthropic 模型 - - - -
零一万物 - - - -
Cloudflare AI - ⚠️ stt ⚠️ 图片生成 -
Midjourney - - - - midjourney-proxy
Cohere - - - -
Stability AI - - - ⚠️ 图片生成 -

感谢

感谢以上项目的作者和贡献者

其他

Star History of MartialBE/one-api