Seeing Ai new added

This commit is contained in:
Ace
2026-06-24 17:26:32 +02:00
parent 4c1d994054
commit f7258d38f6
+3 -2
View File
@@ -252,9 +252,10 @@ async def stop_browser_session(session_id: str):
return
try:
async with httpx.AsyncClient(timeout=10) as client:
await client.delete(
await client.patch(
f"{BU_API_BASE}/browsers/{session_id}",
headers={"X-Browser-Use-API-Key": BU_API_KEY}
headers={"X-Browser-Use-API-Key": BU_API_KEY, "Content-Type": "application/json"},
json={"action": "stop"}
)
except Exception as e:
logger.warning("Failed to stop BU session: %s", e)