Files
NBATransfer/tests/test1.py
2025-12-14 15:40:49 +08:00

17 lines
427 B
Python

import requests
url = "http://localhost:5000/v1/chat/completions"
headers = {
"Authorization": "Bearer sk_ie2F3ZF2ZOt8dxwKCQglce3JTKFqYay5",
"Content-Type": "application/json"
}
data = {
"model": "deepseek-chat",
"messages": [
{"role": "user", "content": "给我完整的输出滕王阁序"}
],
"stream": False
}
response = requests.post(url, headers=headers, json=data)
print(response.json())