AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
Add an option to set the chunk size using the configoration - BROWSE_CHUNK_MAX_LENGTH=4000 This way, we can avoid errors of exceeding chunk size when using gpt-3.5
itaihochmane34ede79b94a
diff --git a/autogpt/processing/text.py b/autogpt/processing/text.pyindex 52add81401..130de47363 100644--- a/autogpt/processing/text.py+++ b/autogpt/processing/text.py@@ -62,7 +62,7 @@ def summarize_text(print(f"Text length: {text_length} characters")summaries = []- chunks = list(split_text(text))+ chunks = list(split_text(text, CFG.browse_chunk_max_length))scroll_ratio = 1 / len(chunks)for i, chunk in enumerate(chunks):