mirror of
https://git.coastit.co.za/caitlin/CRM_ENVR.git
synced 2026-07-10 11:15:43 +02:00
Seeing Ai new added
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user