mirror of
https://github.com/Hopiu/llm.git
synced 2026-03-17 05:00:25 +00:00
Fix for Error binding parameter 2: type 'coroutine' is not supported
This commit is contained in:
parent
a029e0b70c
commit
511892b30c
1 changed files with 2 additions and 0 deletions
|
|
@ -895,6 +895,8 @@ def prompt(
|
|||
|
||||
# Log to the database
|
||||
if (logs_on() or log) and not no_log:
|
||||
if isinstance(response, AsyncResponse):
|
||||
response = asyncio.run(response.to_sync_response())
|
||||
response.log_to_db(db)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue