智谱AI的视觉语言模型,用于图像分析、内容识别和视觉问答
{
"tool_name": "glm4v_analyze_image",
"parameters": {
"model": "glm-4v-flash",
"image_url": "图片URL",
"prompt": "分析提示语"
}
}
以下是调用 glm4v_analyze_image 工具的正确和错误示例。请务必遵循正确格式。
{"model": "glm-4v-flash", "image_url": "https://path/to/image.jpg", "prompt": "Describe this image."}
缺少引号或逗号:
{"model": "glm-4v-flash", "image_url": "https://path/to/image.jpg", "prompt": "Describe this image."}
(缺少 })
参数名错误:
{"img_url": "https://path/to/image.jpg"}
(应为 "image_url" 而非 "img_url")
模型名称错误:
{"model": "glm4v-flash", "image_url": "https://path/to/image.jpg", "prompt": "Describe this image."}
(应为 "glm-4v-flash")
glm-4v-flash 模型{
"tool_name": "glm4v_analyze_image",
"parameters": {
"model": "glm-4v-flash",
"image_url": "https://example.com/image.jpg",
"prompt": "详细描述这张图片的内容"
}
}
{
"tool_name": "glm4v_analyze_image",
"parameters": {
"model": "glm-4v-flash",
"image_url": "https://example.com/image.jpg",
"prompt": "图片中有多少人?他们在做什么?"
}
}
{
"tool_name": "glm4v_analyze_image",
"parameters": {
"model": "glm-4v-flash",
"image_url": "https://example.com/image.jpg",
"prompt": "分析图片中的文字内容和技术细节"
}
}