MCPcopy Index your code
hub / github.com/SudoACoder/CodeXpert / completion

Function completion

server.py:16–29  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

14
15@app.post("/api")
16async def completion(request: Request):
17 try:
18 data = await request.json()
19 prompt = data["prompt"]
20
21 res = model_l(
22 prompt,
23 temperature=0.6,
24 echo=False,
25 max_tokens=64,
26 )
27 return {"responses": res["choices"]}
28 except:
29 return {"responses": "Error!"}
30
31
32if __name__ == "__main__":

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected