Spaces:
Running
Running
Upload main.py
Browse files
main.py
CHANGED
@@ -837,7 +837,7 @@ def chatgpt_model(item: ChatgptModel):
|
|
837 |
return SuccessResponse(status="True", randydev={"message": answer})
|
838 |
|
839 |
@app.post("/ryuzaki/chatgpt3-turbo", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
|
840 |
-
def chatgpt3_turbo(
|
841 |
item: Chatgpt3Texts,
|
842 |
user_id: int=None,
|
843 |
api_key: None = Depends(validate_api_key)
|
@@ -869,7 +869,7 @@ def chatgpt3_turbo(
|
|
869 |
return SuccessResponse(status="True", randydev={"message": answer})
|
870 |
|
871 |
@app.post("/ryuzaki/chatgpt4-turbo", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
|
872 |
-
def chatgpt4_turbo(
|
873 |
item: OpenaiTexts,
|
874 |
api_key: None = Depends(validate_api_key)
|
875 |
):
|
@@ -889,7 +889,7 @@ def chatgpt4_turbo(
|
|
889 |
return SuccessResponse(status="False", randydev={"message": contact_support})
|
890 |
|
891 |
@app.post("/ryuzaki/chatgpt-custom", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
|
892 |
-
def chatgpt_customs(
|
893 |
item: ChatgptNewo,
|
894 |
api_key: None = Depends(validate_api_key)
|
895 |
):
|
|
|
837 |
return SuccessResponse(status="True", randydev={"message": answer})
|
838 |
|
839 |
@app.post("/ryuzaki/chatgpt3-turbo", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
|
840 |
+
async def chatgpt3_turbo(
|
841 |
item: Chatgpt3Texts,
|
842 |
user_id: int=None,
|
843 |
api_key: None = Depends(validate_api_key)
|
|
|
869 |
return SuccessResponse(status="True", randydev={"message": answer})
|
870 |
|
871 |
@app.post("/ryuzaki/chatgpt4-turbo", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
|
872 |
+
async def chatgpt4_turbo(
|
873 |
item: OpenaiTexts,
|
874 |
api_key: None = Depends(validate_api_key)
|
875 |
):
|
|
|
889 |
return SuccessResponse(status="False", randydev={"message": contact_support})
|
890 |
|
891 |
@app.post("/ryuzaki/chatgpt-custom", response_model=SuccessResponse, responses={422: {"model": ErrorStatus}})
|
892 |
+
async def chatgpt_customs(
|
893 |
item: ChatgptNewo,
|
894 |
api_key: None = Depends(validate_api_key)
|
895 |
):
|