(data: Dict)
| 5 | |
| 6 | |
| 7 | async def chat_completion(data: Dict): |
| 8 | async with aiohttp.ClientSession() as session: |
| 9 | request_url = f"{Config.BASE_URL}/chat_completion" |
| 10 | response = await session.post(request_url, json=data) |
| 11 | return ResponseWrapper(response.status, await response.json()) |
| 12 | |
| 13 | |
| 14 | async def text_embedding(data: Dict): |