Skip to content

Commit 40df595

Browse files
committed
refactor: model
1 parent d05d821 commit 40df595

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/models_provider/views/model_apply.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class EmbedDocuments(APIView):
2828
responses=DefaultModelResponse.get_response(),
2929
tags=[_('Model')] # type: ignore
3030
)
31-
def post(self, request: Request, workspace_id, model_id):
31+
def post(self, request: Request, model_id):
3232
return result.success(
3333
ModelApplySerializers(data={'model_id': model_id}).embed_documents(request.data))
3434

@@ -40,7 +40,7 @@ class EmbedQuery(APIView):
4040
responses=DefaultModelResponse.get_response(),
4141
tags=[_('Model')] # type: ignore
4242
)
43-
def post(self, request: Request, workspace_id, model_id):
43+
def post(self, request: Request, model_id):
4444
return result.success(
4545
ModelApplySerializers(data={'model_id': model_id}).embed_query(request.data))
4646

@@ -52,6 +52,6 @@ class CompressDocuments(APIView):
5252
responses=DefaultModelResponse.get_response(),
5353
tags=[_('Model')] # type: ignore
5454
)
55-
def post(self, request: Request, workspace_id, model_id):
55+
def post(self, request: Request, model_id):
5656
return result.success(
5757
ModelApplySerializers(data={'model_id': model_id}).compress_documents(request.data))

0 commit comments

Comments
 (0)