Spaces:
Running
Running
Upload main.py
Browse files
main.py
CHANGED
@@ -675,8 +675,8 @@ def chatgpt4_turbo(
|
|
675 |
else:
|
676 |
for token in chat_completion:
|
677 |
content = token["choices"][0]["delta"].get("content")
|
678 |
-
|
679 |
-
|
680 |
status="True",
|
681 |
randydev={"message": content}
|
682 |
)
|
|
|
675 |
else:
|
676 |
for token in chat_completion:
|
677 |
content = token["choices"][0]["delta"].get("content")
|
678 |
+
if content is not None:
|
679 |
+
return SuccessResponse(
|
680 |
status="True",
|
681 |
randydev={"message": content}
|
682 |
)
|