MCPcopy
hub / github.com/TaskingAI/TaskingAI / update_model

Function update_model

backend/tests/api_services/model/model.py:34–39  ·  view source on GitHub ↗
(model_id: str, data: Dict)

Source from the content-addressed store, hash-verified

32
33
34async def update_model(model_id: str, data: Dict):
35 headers = get_headers(CONFIG.Authentication)
36 async with aiohttp.ClientSession(headers=headers) as session:
37 request_url = f"{MODEL_BASE_URL}/{model_id}"
38 response = await session.post(request_url, json=data)
39 return ResponseWrapper(response.status, await response.json())
40
41
42async def delete_model(model_id: str):

Callers 1

test_update_modelMethod · 0.90

Calls 3

get_headersFunction · 0.90
ResponseWrapperClass · 0.90
jsonMethod · 0.45

Tested by 1

test_update_modelMethod · 0.72