Update app.py
Browse files
app.py
CHANGED
|
@@ -555,6 +555,10 @@ async def chatResponseStream(request: ChatCompletionRequest, model_state: any, c
|
|
| 555 |
yield "data: [DONE]\n\n"
|
| 556 |
|
| 557 |
@app.post("/v1/chat/completions")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 558 |
@app.post("/api/v1/chat/completions")
|
| 559 |
async def chat_completions(request: ChatCompletionRequest):
|
| 560 |
completionId = str(next(CompletionIdGenerator))
|
|
|
|
| 555 |
yield "data: [DONE]\n\n"
|
| 556 |
|
| 557 |
@app.post("/v1/chat/completions")
|
| 558 |
+
@app.post("/v1/chat/")
|
| 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))
|