From 8ee261b1b3c80f7bb50c09f246b94ff53ef95fc4 Mon Sep 17 00:00:00 2001 From: ipu Date: Tue, 19 Aug 2025 13:35:12 +0300 Subject: [PATCH] remove request echo --- src/api/v1/router.py | 6 ------ src/models.py | 1 - 2 files changed, 7 deletions(-) diff --git a/src/api/v1/router.py b/src/api/v1/router.py index 6de1ea0..0e37edf 100644 --- a/src/api/v1/router.py +++ b/src/api/v1/router.py @@ -40,12 +40,6 @@ async def estimate(request: models.EstimationRequest): estimation_service = EstimationService() estimation_response = await estimation_service.estimate_insurance(request.applicants, request.phq, request.plans) - estimation_response.request = request - try: - if estimation_response.request.plans: - estimation_response.request.plans[0].tier = f"Tier {estimation_response.details.tier}" - except Exception as e: - pass return estimation_response diff --git a/src/models.py b/src/models.py index 4c2b753..7b3a628 100644 --- a/src/models.py +++ b/src/models.py @@ -84,7 +84,6 @@ class EstimationResponse(BaseModel): status: str details: EstimationDetails results: List[EstimationResult] - request: EstimationRequest | None = None class InsuranceChatRequest(BaseModel): message: str = Field(..., description="User message")