Spaces:
Running
Running
Upload main.py
Browse files
main.py
CHANGED
@@ -497,6 +497,32 @@ def chatgpt_model(
|
|
497 |
except:
|
498 |
return {"status": "false", "message": "Error response."}
|
499 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
500 |
async def get_data(username):
|
501 |
base_msg = ""
|
502 |
async with AsyncClient() as gpx:
|
|
|
497 |
except:
|
498 |
return {"status": "false", "message": "Error response."}
|
499 |
|
500 |
+
@app.get("/ryuzaki/freechatgpt-beta")
|
501 |
+
def free_chatgpt4_beta(query: str):
|
502 |
+
try:
|
503 |
+
response = RendyDevChat(query).get_response_beta(joke=True)
|
504 |
+
return {
|
505 |
+
"status": "true",
|
506 |
+
"randydev":{
|
507 |
+
"message": response
|
508 |
+
}
|
509 |
+
}
|
510 |
+
except:
|
511 |
+
return {"status": "false", "message": "Error response."}
|
512 |
+
|
513 |
+
@app.get("/ryuzaki/freechatgpt-bing")
|
514 |
+
def free_chatgpt4_bing(query: str):
|
515 |
+
try:
|
516 |
+
response = RendyDevChat(query).get_response_bing(bing=True)
|
517 |
+
return {
|
518 |
+
"status": "true",
|
519 |
+
"randydev":{
|
520 |
+
"message": response
|
521 |
+
}
|
522 |
+
}
|
523 |
+
except:
|
524 |
+
return {"status": "false", "message": "Error response."}
|
525 |
+
|
526 |
async def get_data(username):
|
527 |
base_msg = ""
|
528 |
async with AsyncClient() as gpx:
|