MCPcopy
hub / github.com/TaskingAI/TaskingAI / list_providers

Function list_providers

backend/tests/api_services/model/provider.py:8–13  ·  view source on GitHub ↗
(data: dict)

Source from the content-addressed store, hash-verified

6
7
8async def list_providers(data: dict):
9 headers = get_headers(CONFIG.Authentication)
10 async with aiohttp.ClientSession(headers=headers) as session:
11 request_url = PROVIDER_BASE_URL
12 response = await session.get(request_url, params=data)
13 return ResponseWrapper(response.status, await response.json())
14
15
16async def get_provider(params: dict):

Callers 1

test_list_providersMethod · 0.90

Calls 4

get_headersFunction · 0.90
ResponseWrapperClass · 0.90
getMethod · 0.45
jsonMethod · 0.45

Tested by 1

test_list_providersMethod · 0.72