Fix : browser navigation prompt

This commit is contained in:
martin legrand
2025-03-12 13:33:16 +01:00
parent 9f9907cedb
commit ddc0b2f5d4
3 changed files with 15 additions and 4 deletions
+2
View File
@@ -41,6 +41,8 @@ class Browser:
def is_sentence(self, text):
"""Check if the text is a sentence."""
if "404" in text:
return True # we want the ai to see the error
return len(text.split(" ")) > 5 and '.' in text
def getText(self):