From ca070d7466fe9d69ed734dab7c8e0ca2732d9d98 Mon Sep 17 00:00:00 2001 From: zhangzhanwei Date: Fri, 25 Jul 2025 18:31:14 +0800 Subject: [PATCH] fix: Model swagger --- apps/common/utils/common.py | 3 +++ apps/models_provider/api/model.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/apps/common/utils/common.py b/apps/common/utils/common.py index f124b9f12..703e27a08 100644 --- a/apps/common/utils/common.py +++ b/apps/common/utils/common.py @@ -334,3 +334,6 @@ def parse_image(content: str): def generate_uuid(tag: str): return str(uuid.uuid5(uuid.NAMESPACE_DNS, tag)) + +def filter_workspace(query_list): + return [q for q in query_list if q.name!="workspace_id"] \ No newline at end of file diff --git a/apps/models_provider/api/model.py b/apps/models_provider/api/model.py index 2b1e797dc..d79849f4a 100644 --- a/apps/models_provider/api/model.py +++ b/apps/models_provider/api/model.py @@ -108,6 +108,9 @@ class GetModelApi(APIMixin): required=True, ) ] + @staticmethod + def get_request(): + return [] @staticmethod def get_response():