Carry OCR and missing-source warnings into analysis readiness
This commit is contained in:
+2
-2
@@ -13,11 +13,11 @@ export async function getAiConfig() {
|
||||
}
|
||||
}
|
||||
|
||||
export async function analyzeSpecText({ text, fileName, tender, chain, mode }) {
|
||||
export async function analyzeSpecText({ text, fileName, tender, chain, mode, extraction }) {
|
||||
const res = await fetch('/api/ai/analyze', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${getToken()}` },
|
||||
body: JSON.stringify({ text, fileName, tender, chain, mode }),
|
||||
body: JSON.stringify({ text, fileName, tender, chain, mode, extraction }),
|
||||
});
|
||||
const data = await res.json().catch(() => ({}));
|
||||
if (!data.success) {
|
||||
|
||||
Reference in New Issue
Block a user