Skip to content

Commit 3acda6f

Browse files
committed
feat: update converted text notice to suggest using grep for large files
1 parent cff1488 commit 3acda6f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

astrbot/core/computer/file_read_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,20 +508,20 @@ def _build_converted_text_notice(
508508
return (
509509
"Converted text was saved to "
510510
f"`{converted_text_path}`. The requested output is still too large to "
511-
"return directly. Read that text file with a narrower `offset`/`limit` window."
511+
"return directly. Read or grep that file with a narrower window."
512512
)
513513

514514
if selection_returned:
515515
return (
516516
"Full converted text is also available at "
517-
f"`{converted_text_path}`. Use that file with a narrow `offset`/`limit` "
517+
f"`{converted_text_path}`. Read or grep that file with a narrow "
518518
"window for additional reads."
519519
)
520520

521521
return (
522522
"Converted text was saved to "
523523
f"`{converted_text_path}` because the parsed document is too large to "
524-
"return directly. Read that text file with a narrow `offset`/`limit` window."
524+
"return directly. Read or grep that file with a narrow window."
525525
)
526526

527527

0 commit comments

Comments
 (0)