7,152
社区成员
发帖
与我相关
我的任务
分享总是出现以下报错
"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":""}}]}
在 github 重新下载最新的 genieAPIservice,并确保模型从网站下载之后没有修改。