fix : errors related to API based LLMs

This commit is contained in:
martin legrand
2025-05-01 18:17:03 +02:00
parent 68d471bfc6
commit 68ed1834a9
5 changed files with 16 additions and 8 deletions
+2 -2
View File
@@ -17,13 +17,13 @@ class TestBrowserAgentParsing(unittest.TestCase):
# Test various link formats
test_text = """
Check this out: https://thriveonai.com/15-ai-startups-in-japan-to-take-note-of, and www.google.com!
Also try https://test.org/about?page=1, hey this one as well bro https://weatherstack.com/documentation.
Also try https://test.org/about?page=1, hey this one as well bro https://weatherstack.com/documentation/.
"""
expected = [
"https://thriveonai.com/15-ai-startups-in-japan-to-take-note-of",
"www.google.com",
"https://test.org/about?page=1",
"https://weatherstack.com/documentation"
"https://weatherstack.com/documentation",
]
result = self.agent.extract_links(test_text)
self.assertEqual(result, expected)