lollms-webui/tests/unitary_tests/test_delete_message.py
2024-12-19 13:48:57 +01:00

14 lines
293 B
Python

import json
import requests
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)