📖 Docs: Update documentation
Browse files- README.md +4 -0
- README_CN.md +4 -0
README.md
CHANGED
@@ -384,6 +384,10 @@ All scheduling algorithms need to be enabled by setting api_keys.(api).preferenc
|
|
384 |
|
385 |
4. round_robin: Round-robin load balancing, requests the channel that owns the model requested by the user according to the configuration order in the configuration file api_keys.(api).model. You can check the previous question on how to set the priority of channels.
|
386 |
|
|
|
|
|
|
|
|
|
387 |
## ⭐ Star History
|
388 |
|
389 |
<a href="https://github.com/yym68686/uni-api/stargazers">
|
|
|
384 |
|
385 |
4. round_robin: Round-robin load balancing, requests the channel that owns the model requested by the user according to the configuration order in the configuration file api_keys.(api).model. You can check the previous question on how to set the priority of channels.
|
386 |
|
387 |
+
- How should the base_url be filled in correctly?
|
388 |
+
|
389 |
+
Except for some special channels shown in the advanced configuration, all OpenAI format providers need to fill in the base_url completely, which means the base_url must end with /v1/chat/completions. If you are using GitHub models, the base_url should be filled in as https://models.inference.ai.azure.com/chat/completion, not Azure's URL.
|
390 |
+
|
391 |
## ⭐ Star History
|
392 |
|
393 |
<a href="https://github.com/yym68686/uni-api/stargazers">
|
README_CN.md
CHANGED
@@ -384,6 +384,10 @@ api_keys:
|
|
384 |
|
385 |
4. round_robin:轮训负载均衡,按照配置文件 api_keys.(api).model 的配置顺序请求拥有用户请求的模型的渠道。可以查看上一个问题,如何设置渠道的优先级。
|
386 |
|
|
|
|
|
|
|
|
|
387 |
## ⭐ Star 历史
|
388 |
|
389 |
<a href="https://github.com/yym68686/uni-api/stargazers">
|
|
|
384 |
|
385 |
4. round_robin:轮训负载均衡,按照配置文件 api_keys.(api).model 的配置顺序请求拥有用户请求的模型的渠道。可以查看上一个问题,如何设置渠道的优先级。
|
386 |
|
387 |
+
- 应该怎么正确填写 base_url?
|
388 |
+
|
389 |
+
除了高级配置里面所展示的一些特殊的渠道,所有 OpenAI 格式的提供商需要把 base_url 填完整,也就是说 base_url 必须以 /v1/chat/completions 结尾。如果你使用的 GitHub models,base_url 应该填写为 https://models.inference.ai.azure.com/chat/completion,而不是 Azure 的 URL。
|
390 |
+
|
391 |
## ⭐ Star 历史
|
392 |
|
393 |
<a href="https://github.com/yym68686/uni-api/stargazers">
|