The open-ended <tool_call>.*$ regex was stripping everything from <tool_call> to end of string, including legitimate model text that followed a tool block. This caused the stream to appear stuck since the cumulative text never grew past the strip point. Switch to only stripping closed <tool_call>...</tool_call> pairs so text after a tool block is preserved. |
||
|---|---|---|
| .. | ||
| assets | ||
| auth | ||
| core | ||
| loggers | ||
| models | ||
| plugins | ||
| requirements | ||
| routes | ||
| state | ||
| storage | ||
| tests | ||
| utils | ||
| __init__.py | ||
| _platform_compat.py | ||
| colab.py | ||
| main.py | ||
| run.py | ||
| startup_banner.py | ||