mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-18 10:46:27 +00:00
fixed error introduced by previous commit
This commit is contained in:
parent
475c076230
commit
8a92bf6240
@ -70,7 +70,7 @@ async def execute_code(request: CodeRequest):
|
||||
if lollmsElfServer.config.headless_server_mode:
|
||||
return {"status":False,"error":"Code execution is blocked when in headless mode for obvious security reasons!"}
|
||||
|
||||
if lollmsElfServer.config.host!="localhost"::
|
||||
if lollmsElfServer.config.host!="localhost":
|
||||
return {"status":False,"error":"Code execution is blocked when the server is exposed outside for very obvious reasons!"}
|
||||
|
||||
if not lollmsElfServer.config.turn_on_code_execution:
|
||||
@ -134,7 +134,7 @@ async def open_code_folder_in_vs_code(request: OpenCodeFolderInVsCodeRequestMode
|
||||
if lollmsElfServer.config.headless_server_mode:
|
||||
return {"status":False,"error":"Open code folder in vscode is blocked when in headless mode for obvious security reasons!"}
|
||||
|
||||
if lollmsElfServer.config.host!="localhost"::
|
||||
if lollmsElfServer.config.host!="localhost":
|
||||
return {"status":False,"error":"Open code folder in vscode is blocked when the server is exposed outside for very obvious reasons!"}
|
||||
|
||||
if lollmsElfServer.config.turn_on_open_file_validation:
|
||||
@ -180,7 +180,7 @@ async def open_file(file_path: FilePath):
|
||||
if lollmsElfServer.config.headless_server_mode:
|
||||
return {"status":False,"error":"Open file is blocked when in headless mode for obvious security reasons!"}
|
||||
|
||||
if lollmsElfServer.config.host!="localhost"::
|
||||
if lollmsElfServer.config.host!="localhost":
|
||||
return {"status":False,"error":"Open file is blocked when the server is exposed outside for very obvious reasons!"}
|
||||
|
||||
if lollmsElfServer.config.turn_on_open_file_validation:
|
||||
@ -225,7 +225,7 @@ async def open_code_in_vs_code(vs_code_data: VSCodeData):
|
||||
if lollmsElfServer.config.headless_server_mode:
|
||||
return {"status":False,"error":"Open code in vs code is blocked when in headless mode for obvious security reasons!"}
|
||||
|
||||
if lollmsElfServer.config.host!="localhost"::
|
||||
if lollmsElfServer.config.host!="localhost":
|
||||
return {"status":False,"error":"Open code in vs code is blocked when the server is exposed outside for very obvious reasons!"}
|
||||
|
||||
if lollmsElfServer.config.turn_on_open_file_validation:
|
||||
@ -269,7 +269,7 @@ async def open_code_folder(request: FolderRequest):
|
||||
if lollmsElfServer.config.headless_server_mode:
|
||||
return {"status":False,"error":"Open code folder is blocked when in headless mode for obvious security reasons!"}
|
||||
|
||||
if lollmsElfServer.config.host!="localhost"::
|
||||
if lollmsElfServer.config.host!="localhost":
|
||||
return {"status":False,"error":"Open code folder is blocked when the server is exposed outside for very obvious reasons!"}
|
||||
|
||||
if lollmsElfServer.config.turn_on_open_file_validation:
|
||||
@ -321,7 +321,7 @@ def start_recording():
|
||||
if lollmsElfServer.config.headless_server_mode:
|
||||
return {"status":False,"error":"Start recording is blocked when in headless mode for obvious security reasons!"}
|
||||
|
||||
if lollmsElfServer.config.host!="localhost"::
|
||||
if lollmsElfServer.config.host!="localhost":
|
||||
return {"status":False,"error":"Start recording is blocked when the server is exposed outside for very obvious reasons!"}
|
||||
|
||||
lollmsElfServer.info("Starting audio capture")
|
||||
@ -341,7 +341,7 @@ def stop_recording():
|
||||
if lollmsElfServer.config.headless_server_mode:
|
||||
return {"status":False,"error":"Stop recording is blocked when in headless mode for obvious security reasons!"}
|
||||
|
||||
if lollmsElfServer.config.host!="localhost"::
|
||||
if lollmsElfServer.config.host!="localhost":
|
||||
return {"status":False,"error":"Stop recording is blocked when the server is exposed outside for very obvious reasons!"}
|
||||
|
||||
lollmsElfServer.info("Stopping audio capture")
|
||||
|
@ -38,7 +38,7 @@ async def restart_program():
|
||||
if lollmsElfServer.config.headless_server_mode:
|
||||
return {"status":False,"error":"Restarting app is blocked when in headless mode for obvious security reasons!"}
|
||||
|
||||
if lollmsElfServer.config.host!="localhost"::
|
||||
if lollmsElfServer.config.host!="localhost":
|
||||
return {"status":False,"error":"Restarting app is blocked when the server is exposed outside for very obvious reasons!"}
|
||||
|
||||
lollmsElfServer.ShowBlockingMessage("Restarting program.\nPlease stand by...")
|
||||
@ -65,7 +65,7 @@ async def update_software():
|
||||
if lollmsElfServer.config.headless_server_mode:
|
||||
return {"status":False,"error":"Updating app is blocked when in headless mode for obvious security reasons!"}
|
||||
|
||||
if lollmsElfServer.config.host!="localhost"::
|
||||
if lollmsElfServer.config.host!="localhost":
|
||||
return {"status":False,"error":"Updating app is blocked when the server is exposed outside for very obvious reasons!"}
|
||||
|
||||
# Display an informative message
|
||||
@ -95,7 +95,7 @@ def check_update():
|
||||
if lollmsElfServer.config.headless_server_mode:
|
||||
return {"status":False,"error":"Checking updates is blocked when in headless mode for obvious security reasons!"}
|
||||
|
||||
if lollmsElfServer.config.host!="localhost"::
|
||||
if lollmsElfServer.config.host!="localhost":
|
||||
return {"status":False,"error":"Checking updates is blocked when the server is exposed outside for very obvious reasons!"}
|
||||
|
||||
if lollmsElfServer.config.auto_update:
|
||||
|
Loading…
Reference in New Issue
Block a user