(data: Dict = None)
| 8 | |
| 9 | |
| 10 | async def list_models(data: Dict = None): |
| 11 | headers = get_headers(CONFIG.Authentication) |
| 12 | async with aiohttp.ClientSession(headers=headers) as session: |
| 13 | request_url = MODEL_BASE_URL |
| 14 | response = await session.get(request_url, params=data) |
| 15 | return ResponseWrapper(response.status, await response.json()) |
| 16 | |
| 17 | |
| 18 | async def get_model(model_id: str): |