mirror of
https://github.com/fauxpilot/fauxpilot.git
synced 2025-08-19 21:04:08 -07:00
Apply suggestions from code review
This commit is contained in:
parent
0be814be58
commit
9bc968da02
1 changed files with 2 additions and 0 deletions
|
@ -34,6 +34,7 @@ async def fauxpilot_handler(request: Request, exc: FauxPilotException):
|
||||||
content=exc.json()
|
content=exc.json()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Used to support copilot.vim
|
||||||
@app.get("/copilot_internal/v2/token")
|
@app.get("/copilot_internal/v2/token")
|
||||||
def get_copilot_token():
|
def get_copilot_token():
|
||||||
content = {'token': '1', 'expires_at': 2600000000, 'refresh_in': 900}
|
content = {'token': '1', 'expires_at': 2600000000, 'refresh_in': 900}
|
||||||
|
@ -43,6 +44,7 @@ def get_copilot_token():
|
||||||
)
|
)
|
||||||
|
|
||||||
@app.post("/v1/engines/codegen/completions")
|
@app.post("/v1/engines/codegen/completions")
|
||||||
|
# Used to support copilot.vim
|
||||||
@app.post("/v1/engines/copilot-codex/completions")
|
@app.post("/v1/engines/copilot-codex/completions")
|
||||||
@app.post("/v1/completions")
|
@app.post("/v1/completions")
|
||||||
async def completions(data: OpenAIinput):
|
async def completions(data: OpenAIinput):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue