remove request echo
This commit is contained in:
parent
c31f8e82e4
commit
8ee261b1b3
2 changed files with 0 additions and 7 deletions
|
|
@ -40,12 +40,6 @@ async def estimate(request: models.EstimationRequest):
|
||||||
|
|
||||||
estimation_service = EstimationService()
|
estimation_service = EstimationService()
|
||||||
estimation_response = await estimation_service.estimate_insurance(request.applicants, request.phq, request.plans)
|
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
|
return estimation_response
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,6 @@ class EstimationResponse(BaseModel):
|
||||||
status: str
|
status: str
|
||||||
details: EstimationDetails
|
details: EstimationDetails
|
||||||
results: List[EstimationResult]
|
results: List[EstimationResult]
|
||||||
request: EstimationRequest | None = None
|
|
||||||
|
|
||||||
class InsuranceChatRequest(BaseModel):
|
class InsuranceChatRequest(BaseModel):
|
||||||
message: str = Field(..., description="User message")
|
message: str = Field(..., description="User message")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue