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