feat: add show_hard_limit option and update time limit handling in DataScience settings (#1144)

This commit is contained in:
Xu Yang
2025-08-01 18:32:15 +08:00
committed by GitHub
parent d08ce38fb8
commit ea7483f5a7
4 changed files with 18 additions and 14 deletions
+1 -1
View File
@@ -127,7 +127,7 @@ def filter_redundant_text(stdout: str) -> str:
for line in filtered_stdout_lines:
lines_to_count[line] = lines_to_count.get(line, 0) + 1
filtered_stdout = "\n".join(
[line for line in filtered_stdout_lines if lines_to_count[line] <= len(filtered_stdout_lines) // 10]
[line for line in filtered_stdout_lines if lines_to_count[line] <= max(len(filtered_stdout_lines) // 10, 10)]
)
# Iteratively ask the LLM for additional filtering patterns (up to 3 rounds)