open-notebook/open_notebook/graphs
Justin Florentine 869664a10b
fix: strip <think> tags from chat responses
Add thinking content cleaning to notebook and source chat graphs.
Previously, models that output <think>...</think> tags (like DeepSeek)
or malformed variants without opening tags (like Nemotron) would leak
reasoning content into user-visible responses.

Changes:
- chat.py: Clean AI response content before returning messages
- source_chat.py: Same fix for source-specific chat
- text_utils.py: Handle malformed output where opening <think> tag
  is missing but </think> is present

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-18 16:31:23 -05:00
..
ask.py Version 1 (#160) 2025-10-18 12:46:22 -03:00
chat.py fix: strip <think> tags from chat responses 2025-12-18 16:31:23 -05:00
prompt.py Version 1 (#160) 2025-10-18 12:46:22 -03:00
source.py Release 1.2 (#242) 2025-11-01 14:40:00 -03:00
source_chat.py fix: strip <think> tags from chat responses 2025-12-18 16:31:23 -05:00
tools.py change model provisioning parameters 2024-11-08 16:08:54 -03:00
transformation.py Version 1 (#160) 2025-10-18 12:46:22 -03:00
utils.py Api podcast migration (#93) 2025-07-17 08:36:11 -03:00