Update app.py
Browse files
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))
|