Skip to content

Commit eefd2fa

Browse files
authored
fix: reduce the default tool return to something more sane [LET-4180] (#4383)
fix: reduce the default tool return to something more sane (prev limit was allowing like 200k tokens to come through and crash gpt-5
1 parent 9d96797 commit eefd2fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

letta/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def FUNCTION_RETURN_VALUE_TRUNCATED(return_str, return_char: int, return_char_li
340340

341341
# Function return limits
342342
FUNCTION_RETURN_CHAR_LIMIT = 50000 # ~300 words
343-
BASE_FUNCTION_RETURN_CHAR_LIMIT = 1000000 # very high (we rely on implementation)
343+
BASE_FUNCTION_RETURN_CHAR_LIMIT = 50000 # same as regular function limit
344344
FILE_IS_TRUNCATED_WARNING = "# NOTE: This block is truncated, use functions to view the full content."
345345

346346
MAX_PAUSE_HEARTBEATS = 360 # in min

0 commit comments

Comments
 (0)