The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
fix: custom comfy-api-base works with subpath (#8332)
BennyKok6c319cbb4e25
diff --git a/comfy_api_nodes/apis/client.py b/comfy_api_nodes/apis/client.pyindex 0897d5d78..2a4bac88b 100644--- a/comfy_api_nodes/apis/client.py+++ b/comfy_api_nodes/apis/client.py@@ -327,7 +327,9 @@ class ApiClient:ApiServerError: If the API server is unreachable but internet is workingException: For other request failures"""- url = urljoin(self.base_url, path)+ # Use urljoin but ensure path is relative to avoid absolute path behavior+ relative_path = path.lstrip('/')+ url = urljoin(self.base_url, relative_path)self.check_auth(self.auth_token, self.comfy_api_key)# Combine default headers with any provided headersrequest_headers = self.get_headers()