Spaces:
Running
Running
Upload main.py
Browse files
main.py
CHANGED
@@ -626,7 +626,10 @@ def chatgpt_model(item: ChatgptModel):
|
|
626 |
)
|
627 |
|
628 |
@app.post("/ryuzaki/chatgpt3-turbo", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
|
629 |
-
def chatgpt3_turbo(
|
|
|
|
|
|
|
630 |
if item.is_openai_original:
|
631 |
try:
|
632 |
GPTbase = SOURCE_OPENAI_ACCESS_URL
|
@@ -1293,7 +1296,7 @@ def custom_openapi():
|
|
1293 |
return app.openapi_schema
|
1294 |
openapi_schema = get_openapi(
|
1295 |
title="RyuzakiLib API",
|
1296 |
-
version="2.2.
|
1297 |
summary="Use It Only For Personal Project Else I Need To Delete The Api",
|
1298 |
description=description,
|
1299 |
routes=app.routes,
|
|
|
626 |
)
|
627 |
|
628 |
@app.post("/ryuzaki/chatgpt3-turbo", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
|
629 |
+
def chatgpt3_turbo(
|
630 |
+
item: Chatgpt3Texts,
|
631 |
+
api_key: None = Depends(validate_api_key)
|
632 |
+
):
|
633 |
if item.is_openai_original:
|
634 |
try:
|
635 |
GPTbase = SOURCE_OPENAI_ACCESS_URL
|
|
|
1296 |
return app.openapi_schema
|
1297 |
openapi_schema = get_openapi(
|
1298 |
title="RyuzakiLib API",
|
1299 |
+
version="2.2.5",
|
1300 |
summary="Use It Only For Personal Project Else I Need To Delete The Api",
|
1301 |
description=description,
|
1302 |
routes=app.routes,
|