Ksjsjjdj commited on
Commit
db894ec
·
verified ·
1 Parent(s): ed059ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -559,6 +559,7 @@ async def chatResponseStream(request: ChatCompletionRequest, model_state: any, c
559
  @app.post("/v1/completions")
560
  @app.post("/v1/responses")
561
  @app.post("/responses")
 
562
  @app.post("/api/v1/chat/completions")
563
  async def chat_completions(request: ChatCompletionRequest):
564
  completionId = str(next(CompletionIdGenerator))
 
559
  @app.post("/v1/completions")
560
  @app.post("/v1/responses")
561
  @app.post("/responses")
562
+ @app.post("/api/generate")
563
  @app.post("/api/v1/chat/completions")
564
  async def chat_completions(request: ChatCompletionRequest):
565
  completionId = str(next(CompletionIdGenerator))