mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 13:18:18 +00:00
Fix online chat actor tests, improve offline chat actor tests
The chat actor (and director) tests haven't been looked into in a long while. They'd gone stale in how they were calling thee functions. And what was required to run them. Now the online chat actor tests work again.
This commit is contained in:
@@ -52,7 +52,10 @@ def generate_chat_history(message_list):
|
||||
message_to_log(
|
||||
user_message,
|
||||
chat_response,
|
||||
{"context": context, "intent": {"query": user_message, "inferred-queries": f'["{user_message}"]'}},
|
||||
{
|
||||
"context": context,
|
||||
"intent": {"type": "memory", "query": user_message, "inferred-queries": [user_message]},
|
||||
},
|
||||
chat_history=chat_history,
|
||||
)
|
||||
return chat_history
|
||||
|
||||
Reference in New Issue
Block a user