diff --git a/src/search_runner.js b/src/search_runner.js index 97100ec..5199c39 100644 --- a/src/search_runner.js +++ b/src/search_runner.js @@ -27,7 +27,7 @@ export async function getSearchConfig() { const worksheetName = currentWorksheet.name; const configTable = currentWorksheet.tables.getItem(`${worksheetName}.ConfigTable`); const valueColumn = getColumn(configTable, "Value"); - await context.sync(); + config = { vertexAISearchProjectNumber: valueColumn.values[1][0], diff --git a/src/synthetic_qa_runner.js b/src/synthetic_qa_runner.js index b42feb4..89e0b04 100644 --- a/src/synthetic_qa_runner.js +++ b/src/synthetic_qa_runner.js @@ -27,7 +27,7 @@ export async function getSyntheticQAConfig() { const worksheetName = currentWorksheet.name; const configTable = currentWorksheet.tables.getItem(`${worksheetName}.ConfigTable`); const valueColumn = getColumn(configTable, "Value"); - await context.sync(); + config = { vertexAIProjectID: valueColumn.values[1][0], @@ -220,7 +220,7 @@ async function processResponse(rowNum, output, generatedQuestionColumn, expected cell_status.format.fill.color = '#FFCCCB'; cell_status.values = [["Failed. Error: " + err.message]]; } finally { - context.sync(); + await context.sync(); }