(params: Dict)
| 8 | |
| 9 | |
| 10 | async def rerank(params: Dict): |
| 11 | headers = get_headers(CONFIG.Authentication) |
| 12 | async with aiohttp.ClientSession(headers=headers) as session: |
| 13 | request_url = f"{INFERENCE_BASE_URL}/rerank" |
| 14 | response = await session.post(request_url, json=params) |
| 15 | return ResponseWrapper(response.status, await response.json()) |