diff --git a/app.py b/app.py index 80f65b6c..e3c21a23 100644 --- a/app.py +++ b/app.py @@ -460,6 +460,7 @@ class LoLLMsWebUI(LoLLMsAPPI): print("Set config results:") print(result) return jsonify(result) + def ram_usage(self): """ Returns the RAM usage in bytes. diff --git a/docs/dev/ful_endpoints_lis.md b/docs/dev/ful_endpoints_lis.md index 965ae655..4f036bfe 100644 --- a/docs/dev/ful_endpoints_lis.md +++ b/docs/dev/ful_endpoints_lis.md @@ -18,6 +18,16 @@ The Flask backend API exposes various endpoints to interact with the application --- +### Endpoint: /ram_usage (GET) + +**Description**: Retrieves the ram usage of the system. + +**Parameters**: None + +**Output**: Returns the ram usage information. + +--- + ### Endpoint: /list_bindings (GET) **Description**: Lists the available bindings.