mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-24 22:46:38 +00:00
19 lines
527 B
Python
19 lines
527 B
Python
import requests
|
|
|
|
# Set the URL of the endpoint
|
|
url = "http://localhost:9600/open_discussion_folder"
|
|
|
|
# Valid folder path
|
|
valid_folder_path = {"folder_path": "c:"}
|
|
|
|
# Non-valid executable file path
|
|
non_valid_file_path = {"folder_path": "c:/file.exe"}
|
|
|
|
# Send the valid folder path request
|
|
valid_response = requests.post(url, json=valid_folder_path)
|
|
print(valid_response.json())
|
|
|
|
# Send the non-valid executable file path request
|
|
non_valid_response = requests.post(url, json=non_valid_file_path)
|
|
print(non_valid_response.json())
|