diff options
Diffstat (limited to 'g4f/Provider/deprecated/Equing.py')
-rw-r--r-- | g4f/Provider/deprecated/Equing.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/g4f/Provider/deprecated/Equing.py b/g4f/Provider/deprecated/Equing.py index 076b5ac5..9f510e50 100644 --- a/g4f/Provider/deprecated/Equing.py +++ b/g4f/Provider/deprecated/Equing.py @@ -65,5 +65,7 @@ class Equing(BaseProvider): if line: if b'content' in line: line_json = json.loads(line.decode('utf-8').split('data: ')[1]) - if token := line_json['choices'][0]['delta'].get('content'): + + token = line_json['choices'][0]['delta'].get('content') + if token: yield token
\ No newline at end of file |