mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-30 00:58:50 +00:00
19 lines
312 B
Python
19 lines
312 B
Python
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)
|