|
|
@@ -1,9 +1,10 @@
|
|
|
from fastapi import APIRouter, Depends
|
|
|
-from .deps import get_speech_service, get_understand_image_service, get_copywriting_evaluation_service
|
|
|
-from ..schemas.base import DataResponse, TextToSpeechRequest, UnderstandImageRequest, CopywritingEvaluationRequest, BusinessLicenseExtractRequest
|
|
|
+from .deps import get_speech_service, get_understand_image_service, get_copywriting_evaluation_service, get_audit_service
|
|
|
+from ..schemas.base import DataResponse, TextToSpeechRequest, UnderstandImageRequest, CopywritingEvaluationRequest, BusinessLicenseExtractRequest, AuditRequest
|
|
|
from ..services.speech_service import SpeechService
|
|
|
from ..services.vl_service import VLService
|
|
|
from ..services.evaluation_service import EvaluationService
|
|
|
+from ..services.audit_service import AuditService
|
|
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@@ -27,3 +28,8 @@ def extract_business_license(req: BusinessLicenseExtractRequest, service: VLServ
|
|
|
@router.post('/llm/copywriting-evaluation', response_model=DataResponse, tags=["llm"])
|
|
|
def copywriting_evaluation(req: CopywritingEvaluationRequest, service: EvaluationService = Depends(get_copywriting_evaluation_service)):
|
|
|
return service.copywriting_evaluation(req)
|
|
|
+
|
|
|
+
|
|
|
+@router.post('/llm/audit/creative', response_model=DataResponse, tags=["llm"])
|
|
|
+def creative_audit(req: AuditRequest, service: AuditService = Depends(get_audit_service)):
|
|
|
+ return service.creative_audit(req)
|