MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / post

Method post

apps/application/views/application.py:458–463  ·  view source on GitHub ↗
(self, request: Request, workspace_id: str, application_id: str)

Source from the content-addressed store, hash-verified

456 CompareConstants.AND),
457 RoleConstants.WORKSPACE_MANAGE.get_workspace_role())
458 def post(self, request: Request, workspace_id: str, application_id: str):
459 byte_data = ApplicationOperateSerializer(
460 data={'application_id': application_id, 'workspace_id': workspace_id,
461 'user_id': request.user.id}).text_to_speech(request.data)
462 return HttpResponse(byte_data, status=200, headers={'Content-Type': 'audio/mp3',
463 'Content-Disposition': 'attachment; filename="abc.mp3"'})
464
465
466class PlayDemoText(APIView):

Callers

nothing calls this directly

Calls 2

text_to_speechMethod · 0.45

Tested by

no test coverage detected