database support

This commit is contained in:
Sebarocks 2025-08-04 14:05:54 -04:00
parent f7b23a3cec
commit c49636c766
10 changed files with 780 additions and 860 deletions

View file

@ -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]