何芸 (@afGG845a)请问 冰佬的破限模型如何使用 中发帖

headers = {
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json"
}


# 2. 调用模型
def chat(model='gpt-5.4-px'):
url = f"{BASE_URL}/chat/completions"
payload = {
"model": model,
"messages": [
{"role": "user", "content": "你好"}
]
}
resp = requests.post(url, headers=headers, json=payload, timeout=60)
try:
print(r...