Spaces:
Paused
Paused
Remove unnecessary print
Browse files
g4f/Provider/Providers/Better.py
CHANGED
|
@@ -40,7 +40,6 @@ def _create_completion(model: str, messages: list, stream: bool, **kwargs):
|
|
| 40 |
if decoded.startswith('data: '):
|
| 41 |
data_str = decoded.replace('data: ', '')
|
| 42 |
data = json.loads(data_str)
|
| 43 |
-
print(data)
|
| 44 |
if 'choices' in data and 'delta' in data['choices'][0]:
|
| 45 |
delta = data['choices'][0]['delta']
|
| 46 |
content = delta.get('content', '')
|
|
|
|
| 40 |
if decoded.startswith('data: '):
|
| 41 |
data_str = decoded.replace('data: ', '')
|
| 42 |
data = json.loads(data_str)
|
|
|
|
| 43 |
if 'choices' in data and 'delta' in data['choices'][0]:
|
| 44 |
delta = data['choices'][0]['delta']
|
| 45 |
content = delta.get('content', '')
|