summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g4f/Provider/GptGo.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/g4f/Provider/GptGo.py b/g4f/Provider/GptGo.py
index be9979f2..442aa90d 100644
--- a/g4f/Provider/GptGo.py
+++ b/g4f/Provider/GptGo.py
@@ -62,5 +62,6 @@ class GptGo(AsyncGeneratorProvider):
line = json.loads(line[len(start):-1])
if line["choices"][0]["finish_reason"] == "stop":
break
- if content := line["choices"][0]["delta"].get("content"):
- yield content \ No newline at end of file
+ content = line["choices"][0]["delta"].get("content")
+ if content:
+ yield content