Http请求入参问题
回答
收藏

Http请求入参问题
30

山海听风
2025-12-03 13:12·浏览量:491
山海听风
发布于 2025-12-03 11:01更新于 2025-12-03 13:12491浏览

通过http请求指令,调用AI接口,响应一直有问题,感觉是入参的格式问题,但不知道怎么解决,求助大佬们。

具体流程如下:


运行后的响应信息:

xbot_visual_web_service_rest_response(status_code=400, content_type='application/json', content_encoding='', content='{"error":{"message":"JSON parse error: Unexpected character (\'\'\' (code 39)): was expecting double-quote to start field name; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Unexpected character (\'\'\' (code 39)): was expecting double-quote to start field name\\n at [Source: (org.springframework.util.StreamUtils$NonClosingInputStream); line: 6, column: 28] (through reference chain: com.wd.paas.api.domain.v4.chat.ChatCompletionRequest[\\"messages\\"]->java.util.ArrayList[0]->com.wd.paas.api.domain.v4.chat.ChatMessage[\\"content\\"])","code":"400"}}')

尝试过的方案

在Python中调用是正常的,不知道在影刀应该怎么办。影刀里导入不了这个AI的第三方库。

收藏
全部回答1
最新
发布回答
回答