lollms-webui/tests/unitary_tests/test_delete_message.py

14 lines
293 B
Python
Raw Normal View History

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