(model_id: str, data: Dict)
| 32 | |
| 33 | |
| 34 | async 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 | |
| 42 | async def delete_model(model_id: str): |