MCPcopy
hub / github.com/AstrBotDevs/AstrBot / list_providers_by_source

Function list_providers_by_source

astrbot/dashboard/api/providers.py:197–203  ·  view source on GitHub ↗
(
    source_id: str,
    capability: str | None = Query(default=None),
    _auth: AuthContext = Depends(require_provider_scope),
    service: ProviderConfigService = Depends(get_service),
)

Source from the content-addressed store, hash-verified

195
196@router.get("/provider-sources/{source_id:path}/providers")
197async def list_providers_by_source(
198 source_id: str,
199 capability: str | None = Query(default=None),
200 _auth: AuthContext = Depends(require_provider_scope),
201 service: ProviderConfigService = Depends(get_service),
202):
203 return ok(service.list_providers(capability=capability, source_id=source_id))
204
205
206@router.post("/provider-sources/{source_id:path}/providers")

Callers

nothing calls this directly

Calls 2

okFunction · 0.90
list_providersMethod · 0.80

Tested by

no test coverage detected