MCPcopy
hub / github.com/TaskingAI/TaskingAI / list_models

Function list_models

backend/tests/api_services/model/model.py:10–15  ·  view source on GitHub ↗
(data: Dict = None)

Source from the content-addressed store, hash-verified

8
9
10async def list_models(data: Dict = None):
11 headers = get_headers(CONFIG.Authentication)
12 async with aiohttp.ClientSession(headers=headers) as session:
13 request_url = MODEL_BASE_URL
14 response = await session.get(request_url, params=data)
15 return ResponseWrapper(response.status, await response.json())
16
17
18async def get_model(model_id: str):

Callers 1

test_list_modelsMethod · 0.90

Calls 4

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

Tested by 1

test_list_modelsMethod · 0.72