Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -896,7 +896,7 @@ async def chatgpt_customs(
|
|
896 |
try:
|
897 |
GPTbase = "https://gpt-api.mycloud.im/v1"
|
898 |
x = OpenAI(api_key=api_key, api_base=GPTbase)
|
899 |
-
|
900 |
return SuccessResponse(
|
901 |
status="True",
|
902 |
randydev={"message": answer}
|
|
|
896 |
try:
|
897 |
GPTbase = "https://gpt-api.mycloud.im/v1"
|
898 |
x = OpenAI(api_key=api_key, api_base=GPTbase)
|
899 |
+
answer = await x.api_chat(query=item.query, model=item.model)
|
900 |
return SuccessResponse(
|
901 |
status="True",
|
902 |
randydev={"message": answer}
|