Upload client.py with huggingface_hub
Browse files
client.py
CHANGED
|
@@ -100,7 +100,7 @@ def stream_response(
|
|
| 100 |
continue
|
| 101 |
delta = chunk.choices[0].delta
|
| 102 |
|
| 103 |
-
reasoning = getattr(delta, "
|
| 104 |
if reasoning:
|
| 105 |
if not in_thinking:
|
| 106 |
sys.stdout.write(f"\n{DIM}Thinking...\n")
|
|
|
|
| 100 |
continue
|
| 101 |
delta = chunk.choices[0].delta
|
| 102 |
|
| 103 |
+
reasoning = getattr(delta, "reasoning", None)
|
| 104 |
if reasoning:
|
| 105 |
if not in_thinking:
|
| 106 |
sys.stdout.write(f"\n{DIM}Thinking...\n")
|