Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
gkorland committed Jan 9, 2024
1 parent 1d4cedf commit a771536
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/api/repo/[graph]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,14 @@ export async function GET(request: NextRequest, { params }: { params: { graph_id
});

const output_text = completion.choices[0]['message']['content'];
console.log(output_text);

query = output_text;
console.log(`query: ${query}\n`);

if(!query) {
return NextResponse.json({ result: "No query generated" }, { status: 500 });
}

let result = await graph.query(query);
let response = JSON.stringify(result.data);

Expand Down

0 comments on commit a771536

Please sign in to comment.