diff options
Diffstat (limited to '')
-rw-r--r-- | g4f/Provider/GptGo.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/g4f/Provider/GptGo.py b/g4f/Provider/GptGo.py index 6d477da0..ac3f7fe8 100644 --- a/g4f/Provider/GptGo.py +++ b/g4f/Provider/GptGo.py @@ -62,7 +62,9 @@ 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"): + + content = line["choices"][0]["delta"].get("content"): + if content: yield content |