- specific scenario-based prompt
- user management on database
- callable robuster api
- supported compress-content algo (2024-03-31)
- supported zhipu / minimax API (2024-03-31)
- supported agent call (2024-03-30)
- supported openai / moonshot API (2024-03-28)
config your .env
like .env.sample
poetry shell
poetry install
uvicorn auth:app --reload
访问 http://localhost:8000/docs
查看各 API。
pm2 start --name "openapi" 'http_proxy=http://localhost:7890 https_proxy=http://localhost:7890 uvicorn auth:app --port 40330'
- ubuntu 安装 stable driver(必要):https://chat.openai.com/c/3b9d2211-7a26-4fc1-afdc-dd46025e80cb
- 手动选择下载 driver(非必要): https://googlechromelabs.github.io/chrome-for-testing/#stable
文件发送问题,参考:wechaty/python-wechaty#356 (comment)
,代码见 packages/common_wechat/patches/filebox.py
如果不加这个的话,swagger 里会显示为 null