@@ -174,7 +174,7 @@ const pollUntilFinished = async (taskId, maxAttempts = 50) => {
|
||||
if (askingTask?.status === "FINISHED") {
|
||||
if (askingTask?.candidates?.length > 0) {
|
||||
return { sql: askingTask.candidates[0].sql, type: "sql" };
|
||||
}
|
||||
}
|
||||
return {
|
||||
sql: null,
|
||||
type: "clarification",
|
||||
|
||||
Reference in New Issue
Block a user