Seeing Ai new added
This commit is contained in:
@@ -252,9 +252,10 @@ async def stop_browser_session(session_id: str):
|
|||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
async with httpx.AsyncClient(timeout=10) as client:
|
async with httpx.AsyncClient(timeout=10) as client:
|
||||||
await client.delete(
|
await client.patch(
|
||||||
f"{BU_API_BASE}/browsers/{session_id}",
|
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:
|
except Exception as e:
|
||||||
logger.warning("Failed to stop BU session: %s", e)
|
logger.warning("Failed to stop BU session: %s", e)
|
||||||
|
|||||||
Reference in New Issue
Block a user