Add support for ModelScope API-Inference #2549
Open
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.
新增ModelScope API-Inference支持的模型资源,目前支持的对话模型列表和文生图模型列表较多,部分对话模型列表如下:
更多模型可以参考:modelscope-api
API_KEY获取:在魔搭社区用户中心免费获取使用,需要绑定阿里云账号,参考文档
配置文件修改(需要文生图功能要配置“text_to_image参数”,更多文生图模型ID可参考文生图模型库):