dふぁ
Browse files
__pycache__/proxy_server.cpython-39.pyc
CHANGED
|
Binary files a/__pycache__/proxy_server.cpython-39.pyc and b/__pycache__/proxy_server.cpython-39.pyc differ
|
|
|
proxy_server.py
CHANGED
|
@@ -90,6 +90,8 @@ app = FastAPI(
|
|
| 90 |
description= description,
|
| 91 |
)
|
| 92 |
router = APIRouter()
|
|
|
|
|
|
|
| 93 |
origins = ["*"]
|
| 94 |
|
| 95 |
app.add_middleware(
|
|
@@ -1412,11 +1414,13 @@ async def completion(
|
|
| 1412 |
raise HTTPException(status_code=status, detail=error_msg)
|
| 1413 |
|
| 1414 |
|
| 1415 |
-
@
|
| 1416 |
"/v1/chat/completions",
|
| 1417 |
dependencies=[Depends(user_api_key_auth)],
|
| 1418 |
tags=["chat/completions"],
|
| 1419 |
)
|
|
|
|
|
|
|
| 1420 |
@router.post(
|
| 1421 |
"/chat/completions",
|
| 1422 |
dependencies=[Depends(user_api_key_auth)],
|
|
@@ -2674,3 +2678,5 @@ def cleanup_router_config_variables():
|
|
| 2674 |
|
| 2675 |
|
| 2676 |
app.include_router(router)
|
|
|
|
|
|
|
|
|
| 90 |
description= description,
|
| 91 |
)
|
| 92 |
router = APIRouter()
|
| 93 |
+
routers = APIRouter()
|
| 94 |
+
|
| 95 |
origins = ["*"]
|
| 96 |
|
| 97 |
app.add_middleware(
|
|
|
|
| 1414 |
raise HTTPException(status_code=status, detail=error_msg)
|
| 1415 |
|
| 1416 |
|
| 1417 |
+
@routers.post(
|
| 1418 |
"/v1/chat/completions",
|
| 1419 |
dependencies=[Depends(user_api_key_auth)],
|
| 1420 |
tags=["chat/completions"],
|
| 1421 |
)
|
| 1422 |
+
|
| 1423 |
+
|
| 1424 |
@router.post(
|
| 1425 |
"/chat/completions",
|
| 1426 |
dependencies=[Depends(user_api_key_auth)],
|
|
|
|
| 2678 |
|
| 2679 |
|
| 2680 |
app.include_router(router)
|
| 2681 |
+
app.include_router(routers)
|
| 2682 |
+
|