lollms-webui/tests/unitary_tests/test_delete_message.py

19 lines
312 B
Python
Raw Normal View History

2024-02-17 23:14:52 +00:00
import requests
import json
url = "http://localhost:9600/delete_message"
payload = {
"client_id": "test",
"id": 283
}
headers = {
'accept': 'application/json',
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers, data=json.dumps(payload))
print(response.text)