We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80151dd commit 5318535Copy full SHA for 5318535
autogpt/processing/text.py
@@ -131,13 +131,12 @@ def summarize_text(
131
logger.info(
132
f"Summarizing chunk {i + 1} / {len(chunks)} of length {chunk_length} tokens"
133
)
134
- summary, _ = summarize_text(chunk, instruction)
+ summary, _ = summarize_text(chunk, config, instruction)
135
summaries.append(summary)
136
137
logger.info(f"Summarized {len(chunks)} chunks")
138
139
- summary, _ = summarize_text("\n\n".join(summaries))
140
-
+ summary, _ = summarize_text("\n\n".join(summaries), config, instruction)
141
return summary.strip(), [
142
(summaries[i], chunks[i][0]) for i in range(0, len(chunks))
143
]
0 commit comments