Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cs-magic/uni-api
聚合AIGC行业主流API,支持私有化部署、分级管理、算法调度、可视化监控等
https://github.com/cs-magic/uni-api
aigc chatgpt fastapi llm
Last synced: about 1 month ago
JSON representation
聚合AIGC行业主流API,支持私有化部署、分级管理、算法调度、可视化监控等
- Host: GitHub
- URL: https://github.com/cs-magic/uni-api
- Owner: cs-magic
- Created: 2024-03-27T06:10:43.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-11-01T08:41:52.000Z (about 2 months ago)
- Last Synced: 2024-11-01T09:28:04.005Z (about 2 months ago)
- Topics: aigc, chatgpt, fastapi, llm
- Language: HTML
- Homepage:
- Size: 1000 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Open API
![img.png](docs/overview-0.1.1.png)
![providers](docs/providers.png)
## TODO
- [ ] specific scenario-based prompt
- [ ] user management on database
- [ ] callable robuster api## Features
- [x] supported compress-content algo (2024-03-31)
- [x] supported zhipu / minimax API (2024-03-31)
- [x] supported agent call (2024-03-30)
- [x] supported openai / moonshot API (2024-03-28)## Configuration
config your `.env` like `.env.sample`
```shell
poetry shell
poetry install
```## Run
```shell
uvicorn core:app --reload
```访问 `http://localhost:8000/docs` 查看各 API。
## Deploy
### proxy
```shell
pm2 start --name "openapi" 'http_proxy=http://localhost:7890 https_proxy=http://localhost:7890 uvicorn core:app --port 40330'
```## Tech
### drivers
- ubuntu 安装 stable driver(必要):https://chat.openai.com/c/3b9d2211-7a26-4fc1-afdc-dd46025e80cb
- 手动选择下载 driver(非必要): https://googlechromelabs.github.io/chrome-for-testing/#stable## Bugfix
### Wechaty - FileBox
文件发送问题,参考:https://github.com/wechaty/python-wechaty/issues/356#issuecomment-1228024344
,代码见 `packages/common_wechat/patches/filebox.py`### NotGiven
如果不加这个的话,swagger 里会显示为 null