MCPcopy Create free account
hub / github.com/TaskingAI/TaskingAI / chat_completion

Function chat_completion

inference/test/inference_service/inference.py:7–11  ·  view source on GitHub ↗
(data: Dict)

Source from the content-addressed store, hash-verified

5
6
7async 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
14async def text_embedding(data: Dict):

Calls 2

ResponseWrapperClass · 0.90
jsonMethod · 0.45