forked from Yara724/api
feat: replace OpenAI pricing with AI assessment estimates
Extend durable image assessments with explicit Persian vehicle names, deployment severity settings and advisory market prices normalized to rials. Preserve case access and retry boundaries, and remove the retired OpenAI pricing module and routes.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { resolveVehicleIdentity } from "./vehicle-identity";
|
||||
import { resolveClaimVehicleSources } from "./claim-vehicle-identity";
|
||||
import { ExpertClaimService } from "src/expert-claim/expert-claim.service";
|
||||
import { buildEstimateContext } from "src/price-estimation/price-estimation-context";
|
||||
|
||||
describe("vehicle identity consistency", () => {
|
||||
it("retains saved vehicle names when the verified beneficiary's party data is sparse", () => {
|
||||
@@ -138,14 +137,10 @@ describe("vehicle identity consistency", () => {
|
||||
claim,
|
||||
new Map([["blame", blame]]),
|
||||
);
|
||||
const ai = buildEstimateContext(claim, blame, {}).vehicle;
|
||||
const target = resolveClaimVehicleSources(claim, blame).identity;
|
||||
expect(panel.carName).toBe(target.name);
|
||||
expect(panel.carModel ?? null).toBe(target.model ?? null);
|
||||
expect(ai.make).toBe(panel.carName);
|
||||
expect(ai.model).toBe(panel.carModel ?? null);
|
||||
expect(panel.carName).not.toBe("sedan");
|
||||
expect(ai.make).toBe(damagedRole === "FIRST" ? "پژو" : "فائو ( FAW )");
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user