MCPcopy
hub / github.com/TaskingAI/TaskingAI / get_model

Function get_model

backend/tests/api_services/model/model.py:18–23  ·  view source on GitHub ↗
(model_id: str)

Source from the content-addressed store, hash-verified

16
17
18async def get_model(model_id: str):
19 headers = get_headers(CONFIG.Authentication)
20 async with aiohttp.ClientSession(headers=headers) as session:
21 request_url = f"{MODEL_BASE_URL}/{model_id}"
22 response = await session.get(request_url)
23 return ResponseWrapper(response.status, await response.json())
24
25
26async def create_model(data: Dict):

Callers 4

test_create_modelMethod · 0.90
test_get_modelMethod · 0.90
test_update_modelMethod · 0.90
test_delete_modelMethod · 0.90

Calls 4

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

Tested by 4

test_create_modelMethod · 0.72
test_get_modelMethod · 0.72
test_update_modelMethod · 0.72
test_delete_modelMethod · 0.72