Delete engine API cleanup

This commit is contained in:
Brett Williams
2026-06-06 00:54:43 -05:00
parent b8f025ccba
commit f3d469af53
2 changed files with 7 additions and 4 deletions
+4 -3
View File
@@ -291,19 +291,20 @@ class RenderServerProxy:
"""
return self.request_data(f'engines/{engine_name}?response_type={response_type}', timeout)
def delete_engine(self, engine_name:str, version:str, system_cpu=None):
def delete_engine(self, engine_name:str, version:str, system_os=None, cpu=None):
"""
Sends a request to the server to delete a specific engine.
Args:
engine_name (str): The name of the engine to delete.
version (str): The version of the engine to delete.
system_cpu (str, optional): The system CPU type. Defaults to None.
system_os (str, optional): The system OS. Defaults to None.
cpu (str, optional): The system CPU type. Defaults to None.
Returns:
Response: The response from the server.
"""
form_data = {'engine': engine_name, 'version': version, 'system_cpu': system_cpu}
form_data = {'engine': engine_name, 'version': version, 'system_os': system_os, 'cpu': cpu}
return requests.post(f'http://{self.hostname}:{self.port}/api/delete_engine', json=form_data)
# --------------------------------------------