Files
dsProject/dsLightRag/Test/S2_ZhiPuAi.py
2025-08-14 15:45:08 +08:00

23 lines
873 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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)