feat : better web navigation of web agent

This commit is contained in:
martin legrand
2025-04-05 22:13:29 +02:00
parent 06ddc45955
commit 6fb9ce67c0
10 changed files with 113 additions and 78 deletions
+2 -2
View File
@@ -28,10 +28,10 @@ class OllamaLLM(GeneratorLLM):
)
for chunk in stream:
content = chunk['message']['content']
if '\n' in content:
self.logger.info(content)
with self.state.lock:
if '.' in content:
self.logger.info(self.state.current_buffer)
self.state.current_buffer += content
except Exception as e: