Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Improve error logging in ChatGoogle class by including response details in the error message when no response is received from the model.

Magnus Müllerb72dea7972ec
diff --git a/browser_use/llm/google/chat.py b/browser_use/llm/google/chat.py
index b997d1097..98a958a29 100644
--- a/browser_use/llm/google/chat.py
+++ b/browser_use/llm/google/chat.py
@@ -290,7 +290,7 @@ class ChatGoogle(BaseChatModel):
else:
self.logger.error('❌ No response text received')
raise ModelProviderError(
- message='No response from model',
+ message=f'No response from model {response}',
status_code=500,
model=self.model,
)