From bc85c0dc380a1c48da2ebcc4712291f9981394c5 Mon Sep 17 00:00:00 2001 From: Robin Huang Date: Fri, 9 Aug 2024 12:57:52 -0700 Subject: [PATCH] Add comment to not reply on internal. --- server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index c52db621ca0..0c38201679e 100644 --- a/server.py +++ b/server.py @@ -561,7 +561,9 @@ async def post_history(request): return web.Response(status=200) - @routes.post("/models/download") + # Internal route. Should not be depended upon and is subject to change at any time. + # TODO(robinhuang): Move to internal route table class once we refactor PromptServer to pass around Websocket. + @routes.post("/internal/models/download") async def download_handler(request): async def report_progress(filename: str, status: DownloadModelStatus): await self.send_json("download_progress", status.to_dict())