Skip to content

Commit 53ea418

Browse files
committed
possible summarization fix
1 parent 21904f6 commit 53ea418

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

willa/chatbot/graph_manager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def _create_workflow(self) -> CompiledStateGraph:
4141
summarization_node = SummarizationNode(
4242
max_tokens=int(CONFIG['SUMMARIZATION_MAX_TOKENS']),
4343
model=self._model,
44+
token_counter=self._model.get_num_tokens_from_messages,
4445
input_messages_key="filtered_messages",
4546
output_messages_key="summarized_messages"
4647
)

0 commit comments

Comments
 (0)