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())