Spaces:
Running
Running
File size: 406 Bytes
002db2a dace00d 002db2a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
import requests
url = "https://philsad-dad-knows-best-api.hf.space/proxy/mistral"
data = {
"model": "mistral-large",
"temperature": 0.1,
"top_p": 1,
"max_tokens": 1000,
"messages": [
{
"role": "system",
"content": "hello"
},
{
"role": "user",
"content": "say hello"
}
]
}
response = requests.post(url, json=data)
print(response.status_code)
print(response.text) |