23 lines
873 B
Python
23 lines
873 B
Python
|
from zhipuai import ZhipuAI
|
|||
|
client = ZhipuAI(api_key="69718c8741d64037867f403ffd3423f5.m7d1Jp7h5v2Cbajz") # 填写您自己的APIKey
|
|||
|
response = client.chat.completions.create(
|
|||
|
model="glm-4.1v-thinking-flash", # 填写需要调用的模型名称
|
|||
|
messages=[
|
|||
|
{
|
|||
|
"role": "user",
|
|||
|
"content": [
|
|||
|
{
|
|||
|
"type": "text",
|
|||
|
"text": "请帮我解决这个题目,给出详细过程和答案。第4问请注意,F可能在三角形内部,也可能出现在BC的外侧,即F在三角形外两种情况,需要分类讨论作答。"
|
|||
|
},
|
|||
|
{
|
|||
|
"type": "image_url",
|
|||
|
"image_url": {
|
|||
|
"url" : "https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/Backup/23.jpg"
|
|||
|
}
|
|||
|
}
|
|||
|
]
|
|||
|
}
|
|||
|
]
|
|||
|
)
|
|||
|
print(response.choices[0].message)
|