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 }) => {
|
||||
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);
|
||||
|
||||
return (
|
||||
|
||||
@@ -52,7 +52,11 @@ const ComplianceTableRow: React.FC<{ item: ComplianceItem; headerLabel: string }
|
||||
);
|
||||
|
||||
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 (
|
||||
<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,
|
||||
response_format: { type: 'json_object' }
|
||||
temperature: 0.1
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user