mirror of
https://github.com/fauxpilot/fauxpilot.git
synced 2025-08-19 21:04:08 -07:00
Add OpenAI completions endpoint
This commit is contained in:
parent
8081e3ef0a
commit
6671196ec8
1 changed files with 1 additions and 0 deletions
|
@ -23,6 +23,7 @@ app = FastAPI(
|
|||
|
||||
|
||||
@app.post("/v1/engines/codegen/completions", status_code=200)
|
||||
@app.post("/v1/completions", status_code=200)
|
||||
async def completions(data: OpenAIinput):
|
||||
data = data.dict()
|
||||
print(data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue