feat: 实现基础的随机转发能力

This commit is contained in:
2024-01-18 17:32:23 +08:00
commit 0f1e287134
7 changed files with 316 additions and 0 deletions

16
aiproxy.example.yml Normal file
View File

@ -0,0 +1,16 @@
# 用于访问代理接口的 KEY自己随意定义
InKeys:
- sk-xbwMZecelXS
# 模型池,每个模型可以有多组转发目标
# 每一组转发目标由 target 和 key 组成
ApiPools:
gpt-4-1106-preview:
- Target: https://api.openai.com
Key: sk-key1
- Target: https://api.proxy.cc
Key: sk-key2
gpt-3.5-turbo:
- Target: https://api.proxy.cc
Key: sk-key2
- Target: https://api.free.io
Key: sk-key3