MCPcopy
hub / github.com/TaskingAI/TaskingAI / create_model

Function create_model

backend/tests/api_services/model/model.py:26–31  ·  view source on GitHub ↗
(data: Dict)

Source from the content-addressed store, hash-verified

24
25
26async def create_model(data: Dict):
27 headers = get_headers(CONFIG.Authentication)
28 async with aiohttp.ClientSession(headers=headers) as session:
29 request_url = MODEL_BASE_URL
30 response = await session.post(request_url, json=data)
31 return ResponseWrapper(response.status, await response.json())
32
33
34async def update_model(model_id: str, data: Dict):

Callers 2

test_create_modelMethod · 0.90
validate_path_paramsMethod · 0.85

Calls 3

get_headersFunction · 0.90
ResponseWrapperClass · 0.90
jsonMethod · 0.45

Tested by 1

test_create_modelMethod · 0.72