Skip to content

Commit

Permalink
extra arg being passed causing a runtime error (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpacker authored Nov 27, 2023
1 parent c35e872 commit c8cf4a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memgpt/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def summarize_messages(
trunc_ratio = (MESSAGE_SUMMARY_WARNING_FRAC * context_window / summary_input_tkns) * 0.8 # For good measure...
cutoff = int(len(message_sequence_to_summarize) * trunc_ratio)
summary_input = str(
[summarize_messages(agent_config, context_window, message_sequence_to_summarize[:cutoff])]
[summarize_messages(agent_config=agent_config, message_sequence_to_summarize=message_sequence_to_summarize[:cutoff])]
+ message_sequence_to_summarize[cutoff:]
)
message_sequence = [
Expand Down

0 comments on commit c8cf4a6

Please sign in to comment.