make copilot proxy compatible with official copilot plugins

This commit is contained in:
Jingbei Li 2023-01-31 16:15:02 +08:00
commit fe69980660

View file

@ -35,6 +35,7 @@ async def fauxpilot_handler(request: Request, exc: FauxPilotException):
)
@app.post("/v1/engines/codegen/completions")
@app.post("/v1/engines/copilot-codex/completions")
@app.post("/v1/completions")
async def completions(data: OpenAIinput):
data = data.dict()