File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed
Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change 1212 path ('provider/model_params_form' , views .Provide .ModelParamsForm .as_view ()),
1313 path ('provider/model_form' , views .Provide .ModelForm .as_view ()),
1414 path ('workspace/<str:workspace_id>/model' , views .ModelSetting .as_view ()),
15- path ('workspace/<str:workspace_id>/share_model' , views .ModelSetting .Share .as_view ()),
1615 path ('workspace/<str:workspace_id>/model/<str:model_id>/model_params_form' ,
1716 views .ModelSetting .ModelParamsForm .as_view ()),
1817 path ('workspace/<str:workspace_id>/model/<str:model_id>' , views .ModelSetting .Operate .as_view ()),
Original file line number Diff line number Diff line change @@ -210,20 +210,3 @@ class PauseDownload(APIView):
210210 def put (self , request : Request , workspace_id : str , model_id : str ):
211211 return result .success (
212212 ModelSerializer .Operate (data = {'id' : model_id }).pause_download ())
213-
214- class Share (APIView ):
215- authentication_classes = [TokenAuth ]
216-
217- @extend_schema (methods = ['Get' ],
218- summary = _ ('Get Share model' ),
219- description = _ ('Get Share model' ),
220- operation_id = _ ('Get Share model' ), # type: ignore
221- parameters = ModelListResponse .get_parameters (),
222- responses = ModelListResponse .get_response (),
223- tags = [_ ('Model' )]) # type: ignore
224- @has_permissions (PermissionConstants .MODEL_READ .get_workspace_permission ())
225- def get (self , request : Request , workspace_id : str ):
226- return result .success (
227- ModelSerializer .Query (
228- data = {** query_params_to_single_dict (request .query_params )}).list (workspace_id = 'None' ,
229- with_valid = True ))
You can’t perform that action at this time.
0 commit comments