-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
example: multi model example is not running #321
Comments
|
得看模型那边支不支持这样,如果模型支持,框架是可以实现得,组装一个 userMessage 塞到 prompt 里面去就行 |
刚确认了下,模型是支持的,上面那样用就行 |
以下是我的代码和错误信息:
java.lang.NullPointerException: Cannot invoke "com.alibaba.cloud.ai.dashscope.api.DashScopeApi$ChatCompletionOutput.choices()" because the return value of "com.alibaba.cloud.ai.dashscope.api.DashScopeApi$ChatCompletionChunk.output()" is null |
我的URL没有问题 用的是官方样例的URL
new Media(
MimeTypeUtils.IMAGE_PNG,
new URI("https://dashscope.oss-cn-beijing.aliyuncs.com/images/dog_and_girl.jpeg").toURL()
)
实际的报错原因是:正确使用多模态模型:qwen-vl-max-latest。且开启multi-model: true。感觉配置有点多余。而且这报错和实际错误相差太远了
ai: # 阿里灵积 dash-scope: api-key: *** chat: options: model: qwen-vl-max-latest multi-model: true
The text was updated successfully, but these errors were encountered: