Skip to content

Commit

Permalink
fix from_defaults erasing summary buffer history (#13325)
Browse files Browse the repository at this point in the history
  • Loading branch information
logan-markewich committed May 7, 2024
1 parent ce95bd7 commit 83c8e78
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ def from_defaults(
token_limit = DEFAULT_TOKEN_LIMIT

chat_store = chat_store or SimpleChatStore()
chat_history = chat_history or []
chat_store.set_messages(chat_store_key, chat_history)

if chat_history is not None:
chat_store.set_messages(chat_store_key, chat_history)

summarize_prompt = summarize_prompt or SUMMARIZE_PROMPT
return cls(
Expand Down

0 comments on commit 83c8e78

Please sign in to comment.