Álvaro Valenzuela Valdes commited on
Commit ·
e89542d
1
Parent(s): 589d3b7
fix: Update analyzeTender API definition to match new multi-model parameters
Browse files- frontend/lib/api.ts +4 -2
frontend/lib/api.ts
CHANGED
|
@@ -46,7 +46,8 @@ export async function searchTenders(params: {
|
|
| 46 |
export async function analyzeTender(
|
| 47 |
tender: Tender,
|
| 48 |
companyProfile: CompanyProfile,
|
| 49 |
-
documentText?: string
|
|
|
|
| 50 |
): Promise<AnalysisResult> {
|
| 51 |
const res = await fetch(`${API_BASE}/api/analyze`, {
|
| 52 |
method: "POST",
|
|
@@ -54,7 +55,8 @@ export async function analyzeTender(
|
|
| 54 |
body: JSON.stringify({
|
| 55 |
tender,
|
| 56 |
company_profile: companyProfile,
|
| 57 |
-
document_text: documentText
|
|
|
|
| 58 |
}),
|
| 59 |
});
|
| 60 |
if (!res.ok) {
|
|
|
|
| 46 |
export async function analyzeTender(
|
| 47 |
tender: Tender,
|
| 48 |
companyProfile: CompanyProfile,
|
| 49 |
+
documentText?: string,
|
| 50 |
+
models?: Record<string, string>
|
| 51 |
): Promise<AnalysisResult> {
|
| 52 |
const res = await fetch(`${API_BASE}/api/analyze`, {
|
| 53 |
method: "POST",
|
|
|
|
| 55 |
body: JSON.stringify({
|
| 56 |
tender,
|
| 57 |
company_profile: companyProfile,
|
| 58 |
+
document_text: documentText,
|
| 59 |
+
models: models
|
| 60 |
}),
|
| 61 |
});
|
| 62 |
if (!res.ok) {
|