mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-18 15:48:04 +02:00
[Haik]: ckpt, initial version of NineRouter singelton
This commit is contained in:
@@ -118,3 +118,10 @@ async def get_models() -> list[dict]:
|
||||
except Exception as e:
|
||||
print(f"9Router models fetch failed: {e}")
|
||||
return []
|
||||
|
||||
|
||||
@typechecked
|
||||
async def disconnect_provider(provider_id: str) -> bool:
|
||||
async with httpx.AsyncClient(timeout=10.0) as client:
|
||||
r = await client.delete(f"{NINE_ROUTER_API}/providers/{provider_id}")
|
||||
return r.status_code == 200
|
||||
|
||||
Reference in New Issue
Block a user