Consolidate engine_info api calls

This commit is contained in:
Brett Williams
2026-06-06 00:34:48 -05:00
parent 24eb7b5616
commit 076eebcdac
2 changed files with 51 additions and 67 deletions
+2 -2
View File
@@ -269,7 +269,7 @@ class RenderServerProxy:
Returns:
dict: A dictionary containing the engine information.
"""
all_data = self.request_data(f"engine_info?response_type={response_type}", timeout=timeout)
all_data = self.request_data(f'engines?response_type={response_type}', timeout=timeout)
return all_data
def get_engine_info(self, engine_name:str, response_type='standard', timeout=5):
@@ -284,7 +284,7 @@ class RenderServerProxy:
Returns:
dict: A dictionary containing the engine information.
"""
return self.request_data(f'{engine_name}/info?response_type={response_type}', timeout)
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):
"""