database support
This commit is contained in:
parent
f7b23a3cec
commit
c49636c766
10 changed files with 780 additions and 860 deletions
|
|
@ -15,4 +15,5 @@ def get_llm(provider: str):
|
|||
)
|
||||
|
||||
def get_messages(chats, chat_id):
|
||||
return [HumanMessage(**m) if m["role"] == "human" else AIMessage(**m) for m in chats[chat_id]]
|
||||
print(chats)
|
||||
return [HumanMessage(**m) if m["role"] == "human" else AIMessage(**m) for m in chats]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue