Deploy Inicial do SteelCheck com Docker Build Automatizado
This commit is contained in:
@@ -27,7 +27,11 @@ const TableRow: React.FC<{item: ComplianceItem}> = ({item}) => (
|
|||||||
)
|
)
|
||||||
|
|
||||||
export const PrintableReport: React.FC<PrintableReportProps> = ({ report }) => {
|
export const PrintableReport: React.FC<PrintableReportProps> = ({ report }) => {
|
||||||
const { identification, compliance, overPerformance, equivalents, confidence } = report;
|
const identification = report?.identification || {};
|
||||||
|
const compliance = report?.compliance || { status: 'NÃO CONFORME', mechanical: [], chemical: [], otherTests: [] };
|
||||||
|
const overPerformance = report?.overPerformance || [];
|
||||||
|
const equivalents = report?.equivalents || [];
|
||||||
|
const confidence = report?.confidence || 0;
|
||||||
const jsonData = JSON.stringify(report);
|
const jsonData = JSON.stringify(report);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -52,7 +52,11 @@ const ComplianceTableRow: React.FC<{ item: ComplianceItem; headerLabel: string }
|
|||||||
);
|
);
|
||||||
|
|
||||||
export const ReportDisplay: React.FC<ReportDisplayProps> = ({ report }) => {
|
export const ReportDisplay: React.FC<ReportDisplayProps> = ({ report }) => {
|
||||||
const { identification, compliance, overPerformance, equivalents, confidence } = report;
|
const identification = report?.identification || {};
|
||||||
|
const compliance = report?.compliance || { status: 'NÃO CONFORME', mechanical: [], chemical: [], otherTests: [] };
|
||||||
|
const overPerformance = report?.overPerformance || [];
|
||||||
|
const equivalents = report?.equivalents || [];
|
||||||
|
const confidence = report?.confidence || 0;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="space-y-8 animate-fade-in pb-12">
|
<div className="space-y-8 animate-fade-in pb-12">
|
||||||
|
|||||||
@@ -462,8 +462,7 @@ export const analyzeWithOpenRouter = async (file: File, apiKey: string, model: s
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
temperature: 0.1,
|
temperature: 0.1
|
||||||
response_format: { type: 'json_object' }
|
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user