Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
支持OpenAI其他接口转发
fine-tuning
/files
/batches
/assistants
等接口OpenAI
或者Azure OpenAI
渠道, 推荐OpenAI
,因为Azure OpenAI
支持不完整。使用方法
必须在令牌中指定你需要使用的渠道 例如:
sk-{your token}-{channel id}
因为指定渠道后,那么其他供应商的聊天模型是无法使用的,所以提供了
ignore
关键字的方法。将令牌改为:
sk-{your token}-{channel id}-ignore
即可开启。开启
ignore
后,除了OpenAI
特有的接口以外,其他接口都会忽略指定渠道ID
,可以使用负载均衡,使用其他供应商的模型。ignore
忽略指定渠道ID
的接口:必须
指定渠道ID
的接口