gpt4 book ai didi

python - 在调查猴子中包含图像

转载 作者:太空宇宙 更新时间:2023-11-03 15:02:07 25 4
gpt4 key购买 nike

我试图将图像作为调查问题包含在内,但出现以下错误,

surveymonty.exceptions.SurveyMontyAPIError: {"error": {"docs": "https://developer.surveymonkey.com/api/v3/#error-codes ", "message": "无法验证字段“标题”列表模式:“属性”未定义的其他属性不存在字段“_data”允许”,“id”:“1002”,“name”:“错误请求”,“http_status_code”:400}}

我正在使用下面的 JSON 代码,

payload ={
"headings":
[
{
"heading": "This is a monkey",
"image": {
"img_url": "https://raw.githubusercontent.com/SurveyMonkey/public_api_docs/master/images/presentation.png"
}
}
],
"position": 4,
"family": "presentation",
"subtype": "descriptive_text"
}

请帮忙!

最佳答案

您可能正在寻找 image 子类型,有效负载应该看起来更像:

{
"headings": [{
"heading": "This is a monkey",
"image": {
"url": "https://raw.githubusercontent.com/SurveyMonkey/public_api_docs/master/images/presentation.png"
}
}],
"position": 4,
"family": "presentation",
"subtype": "image"
}

关于python - 在调查猴子中包含图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44978950/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com