mirror of
https://github.com/browser-use/browser-use
synced 2026-05-06 17:52:15 +02:00
fix message
This commit is contained in:
@@ -3562,11 +3562,13 @@ class BrowserSession(BaseModel):
|
||||
|
||||
if is_new_tab_page(page.url):
|
||||
self.logger.warning(
|
||||
f'▫️ Sending LLM 1px placeholder instead of real screenshot of: {_log_pretty_url(page.url)} (page empty)'
|
||||
f'▫️ Sending LLM no screenshot instead of real screenshot of: {_log_pretty_url(page.url)} (page empty)'
|
||||
)
|
||||
# Not an exception because there's no point in retrying if we hit this, its always pointless to screenshot about:blank
|
||||
# Originally returned a 1x1 white PNG to avoid wasting tokens, but groq LLaMa models do not accept this
|
||||
# So we return None instead, which the LLM can handle more reliably
|
||||
# TODO: this should be decided on an LLM level - now take_screenshot doesnt give you the screenshot if the page is empty
|
||||
# this might be weird behavior for the library overall
|
||||
return None
|
||||
|
||||
# Always bring page to front before rendering, otherwise it crashes in some cases, not sure why
|
||||
|
||||
Reference in New Issue
Block a user