mirror of
https://github.com/khoaliber/khoj.git
synced 2026-04-28 00:19:25 +00:00
ecddf98430
Previously was assuming the system prompt is being always passed as the first message. So expected there to be at least 2 messages in logs. This broke chat actors querying with single long non system message. A more robust way to extract system prompt is via the message role instead