Missing user prompt in the query.
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Guillem Borrell 2024-06-10 13:42:41 +02:00
parent c18c04f707
commit faba0fd14f

View file

@ -23,7 +23,7 @@ async def query(sid: str = "", q: str = "") -> str:
sid=sid,
).load_folder()
chat = await chat.eval("You're an expert sql developer", db.query_prompt())
chat = await chat.eval("You're an expert sql developer", db.query_prompt(q))
query = extract_code_block(chat.last_response_content())
result = str(db.query(query))
print(result)