总是出现一些信息报错问题怎么解决

super111654 2026-03-12 17:29:05

总是出现以下报错
"msg":"Input should be a valid string"
c:\ai-engine-direct-helper\samples>GenieAPIService\GenieAPIClient.exe --prompt "what is the image descript?" --img test.png --stream --model qwen2.5vl3
 [W] url path: http://127.0.0.1:8910/v1/chat/completions
 [W] reponse mode: stream mode
 [W] Response:
 [W] get failed response code: 422
 [W] the error message: {"detail":[{"type":"string_type","loc":["body","messages",1,"content"],"msg":"Input should be a valid string","input":{"question":"what is the image descript?"

命令调用是例子:c:\ai-engine-direct-helper\samples>GenieAPIService\GenieAPIClient.exe --prompt "what is the image descript?" --img test.png --stream --model qwen2.5vl3

c:\ai-engine-direct-helper\samples>GenieAPIService\GenieAPIClient.exe --prompt "你好,请介绍一下自己"
 [W] url path: http://127.0.0.1:8910/v1/chat/completions
 [W] reponse mode: non-stream mode
 [W] Response:
 [W] get failed response code: 422
 [W] the error message: {"detail":[{"type":"string_type","loc":["body","messages",1,"content"],"msg":"Input should be a valid string","input":{"question":"你好,请介绍一下自己","image":"","audio":""}}]}

...全文
10 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
极市平台 03-12 17:33
  • 打赏
  • 举报
回复

在 github 重新下载最新的 genieAPIservice,并确保模型从网站下载之后没有修改。

7,152

社区成员

发帖
与我相关
我的任务
社区描述
本论坛以AI、WoS 、XR、IoT、Auto、生成式AI等核心板块组成,为开发者提供便捷及高效的学习和交流平台。 高通开发者专区主页:https://qualcomm.csdn.net/
人工智能物联网机器学习 技术论坛(原bbs) 北京·东城区
社区管理员
  • csdnsqst0050
  • chipseeker
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧