mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Only use chat messages count in history API endpoint when set by client
This commit is contained in:
parent
6b3ef61dd2
commit
7fab8d6586
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ def chat_history(
|
|||
if n > 0:
|
||||
meta_log["chat"] = meta_log["chat"][-n:]
|
||||
# Else return all messages except latest N
|
||||
else:
|
||||
elif n < 0:
|
||||
meta_log["chat"] = meta_log["chat"][:n]
|
||||
|
||||
update_telemetry_state(
|
||||
|
|
Loading…
Add table
Reference in a new issue