Open
Conversation
加入前端的选项
最小的验证脚本,可以使用这个来尝试
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
我在尝试使用qwen模型的过程中发现
litellm官方提供的样例无法使用,下面是我的解决方案litellm文档中给出的
dashscope/qwen-turbo的形式在实际使用中并无法正确运行下面是报错
可以注意到

litellm文档标注的网址https://dashscope.console.aliyun.com/当前已经停接近停止服务我提取出了项目中对于api验证的部分,构建了最小的api和模型提供格式的验证脚本
查阅官网可知,当前中国大陆地区替换为了
https://dashscope.aliyuncs.com/compatible-mode/v1但是使用这个网址还是无发链接,出现相同报错。
经过测试,发现
openai/model_id的格式是可以通过验证的为了方便使用,我在前端加入了千问百炼平台的模板