通过api调用智能体,如何上传附件

文章中只写了type = text 如果我想添加附件 api调用方式如何上传,这样是不行

curl --location --request POST "https://xxx.coze.site/stream_run" \
  --header "Authorization: " \
  --header "Content-Type: application/json" \
  --data '{
      "content": {
        "query": {
          "prompt": [
            {
              "type": "text",
              "content": {
                "text": "你能看到我给你的图片吗?如果能把我给你的图片地址打印出来"
              }
            },
            {
              "type": "image",
              "content": {
                "image_url": "https://imagexxxx.png"
              }
            }
          ]
        }
      },
      "type": "query",
      "session_id":"TFGqKLv_ZjVmGTgM3yy-X",
      "project_id": 7643706932691206154
    }'


36
1
0
暂时没有回答,开始写第一个回答