ndc8
commited on
Commit
·
84eb396
1
Parent(s):
e46cec3
fix
Browse files- backend_service.py +1 -1
backend_service.py
CHANGED
|
@@ -483,7 +483,6 @@ async def list_models():
|
|
| 483 |
|
| 484 |
# ...existing code...
|
| 485 |
|
| 486 |
-
@app.post("/api/response")
|
| 487 |
@app.post("/v1/chat/completions", response_model=ChatCompletionResponse)
|
| 488 |
async def create_chat_completion(
|
| 489 |
request: ChatCompletionRequest,
|
|
@@ -534,6 +533,7 @@ async def create_chat_completion(
|
|
| 534 |
logger.error(f"Error in chat completion: {e}")
|
| 535 |
raise HTTPException(status_code=500, detail=f"Internal server error: {str(e)}")
|
| 536 |
|
|
|
|
| 537 |
@app.post("/v1/completions")
|
| 538 |
async def create_completion(
|
| 539 |
request: CompletionRequest,
|
|
|
|
| 483 |
|
| 484 |
# ...existing code...
|
| 485 |
|
|
|
|
| 486 |
@app.post("/v1/chat/completions", response_model=ChatCompletionResponse)
|
| 487 |
async def create_chat_completion(
|
| 488 |
request: ChatCompletionRequest,
|
|
|
|
| 533 |
logger.error(f"Error in chat completion: {e}")
|
| 534 |
raise HTTPException(status_code=500, detail=f"Internal server error: {str(e)}")
|
| 535 |
|
| 536 |
+
|
| 537 |
@app.post("/v1/completions")
|
| 538 |
async def create_completion(
|
| 539 |
request: CompletionRequest,
|