This commit is contained in:
parent
c18c04f707
commit
faba0fd14f
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue