api-proxy / 说明.md
tanbushi's picture
first test
45210db

设计目标:只解决api_key的共享和负载均衡,模型数据格式请自己查询相应模型的文档,此项目不做对应处理

代理api格式,以智谱AI为例 本地 LC:http://127.0.0.1:7860/v1/https/open.bigmodel.cn/api/paas/v4/chat/completions 远程 HF:https://tanbushi-api-proxy.hf.space/v1/https/open.bigmodel.cn/api/paas/v4/chat/completions 格式说明:

  • http协议栈:http:// 或 https://
  • 主机名+端口: 127.0.0.1:7860 或 tanbushi-api-proxy.hf.space
  • 代理协议版本:v1(或其他)
  • 目标URL地址的协议栈:http 或 https (注意此处后面跟/,而不是://)
  • 目标URL地址的主机名:open.bigmodel.cn(或其他)