You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
489 B

3 weeks ago
import requests
url = "https://api.siliconflow.cn/v1/chat/completions"
headers = {
"Authorization": "Bearer sk-pbqibyjwhrgmnlsmdygplahextfaclgnedetybccknxojlyl",
"Content-Type": "application/json"
}
data = {
"model": "THUDM/GLM-4.1V-9B-Thinking",
"messages": [
{
"role": "user",
"content": "做水煮鱼一般用什么鱼"
}
]
}
response = requests.post(url, headers=headers, json=data)
print(response.json())