(model_id: str)
| 16 | |
| 17 | |
| 18 | async 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 | |
| 26 | async def create_model(data: Dict): |