Authorization: Bearer ********************
{
"model": "gpt-4-vision-preview",
"stream": false,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "这张图片有什么"
},
{
"type": "image_url",
"image_url": {
"url": "https://github.com/dianping/cat/raw/master/cat-home/src/main/webapp/images/logo/cat_logo03.png"
}
}
]
}
],
"max_tokens": 400
}
curl --location -g --request POST '/v1/chat/completions' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gpt-4-vision-preview",
"stream": false,
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "这张图片有什么"
},
{
"type": "image_url",
"image_url": {
"url": "https://github.com/dianping/cat/raw/master/cat-home/src/main/webapp/images/logo/cat_logo03.png"
}
}
]
}
],
"max_tokens": 400
}'
{}