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

Function get_provider_source_by_id

astrbot/dashboard/api/providers.py:122–127  ·  view source on GitHub ↗
(
    source_id: str = Query(...),
    _auth: AuthContext = Depends(require_provider_scope),
    service: ProviderConfigService = Depends(get_service),
)

Source from the content-addressed store, hash-verified

120
121@router.get("/provider-sources/by-id")
122async def get_provider_source_by_id(
123 source_id: str = Query(...),
124 _auth: AuthContext = Depends(require_provider_scope),
125 service: ProviderConfigService = Depends(get_service),
126):
127 return ok(service.get_provider_source(source_id))
128
129
130@router.put("/provider-sources/by-id")

Callers

nothing calls this directly

Calls 2

okFunction · 0.90
get_provider_sourceMethod · 0.80

Tested by

no test coverage detected