add rag; fix estimation service
This commit is contained in:
parent
ada7788516
commit
47cc1541ed
8 changed files with 226 additions and 39 deletions
|
|
@ -106,7 +106,8 @@ async def estimate(request: models.EstimationRequest):
|
|||
# Step 2: Check if DTQ → reject application
|
||||
if underwriting_result["combined"].get("dtq"):
|
||||
# For DTQ cases, call external reject API and return rejected status
|
||||
reject_response = await reject_application(request.uid)
|
||||
if request.uid:
|
||||
reject_response = await reject_application(request.uid)
|
||||
return models.EstimationResponse(
|
||||
status="rejected",
|
||||
details=models.EstimationDetails(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue