top_p
但不是两者。temperature
但不是两者。{
"model": "gemini-pro-vision",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "What’s in this image?"
},
{
"type": "image_url",
"image_url": {
"url": "https://chat.mice.pub/api/local/20231227/bffd8103-533b-4e10-9962-d6796f37c2e8--uwf9jqijdksjo945nul7jvdaktfd8d8p8y1kyk7wbkppnfm3oxjavlp39z6mgxza.jpeg",
"detail": "low"
}
}
]
}
],
"max_tokens": 4096
}
curl --location --request POST 'https://api.gaiasc.com/v1/chat/completions' \
--header 'Accept: application/json' \
--header 'Accept;' \
--header 'Authorization: Bearer ' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "gemini-pro-vision",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "What’s in this image?"
},
{
"type": "image_url",
"image_url": {
"url": "https://chat.mice.pub/api/local/20231227/bffd8103-533b-4e10-9962-d6796f37c2e8--uwf9jqijdksjo945nul7jvdaktfd8d8p8y1kyk7wbkppnfm3oxjavlp39z6mgxza.jpeg",
"detail": "low"
}
}
]
}
],
"max_tokens": 4096
}'
{
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "This image shows a colorful app icon. Specifically, the overall color of this square app icon is divided into two colors: orange on the left and blue on the right. The middle of the two colors has a smiling face. There are two black circles for eyes and a curved line for a mouth under the two circles. In addition, there is a small red square at the top right corner of the icon.",
"role": "assistant"
}
}
],
"created": 1709535576,
"id": "8447739632349572771",
"model": "glm-4v",
"request_id": "8447739632349572771",
"usage": {
"completion_tokens": 83,
"prompt_tokens": 1041,
"total_tokens": 1124
}
}