open-notebook/open_notebook
Justin Florentine 855e730577
fix: preserve AIMessage metadata when cleaning thinking content
Use model_copy() instead of creating new AIMessage to preserve
response_metadata, id, usage_metadata, etc. Also adds test coverage
for malformed thinking tags pattern.

Addresses PR #333 feedback from lfnovo and cubic-dev-ai.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-19 20:08:12 -05:00
..
database fix: add UTF-8 encoding for async migrations file reading (#279) 2025-11-27 09:59:47 -03:00
domain Hide sources notes (#273) 2025-11-25 16:59:26 -03:00
graphs fix: preserve AIMessage metadata when cleaning thinking content 2025-12-19 20:08:12 -05:00
plugins Api podcast migration (#93) 2025-07-17 08:36:11 -03:00
utils fix: strip <think> tags from chat responses 2025-12-18 16:31:23 -05:00
__init__.py refactor: move environment variables loading to application entry point (#283) 2025-12-01 14:59:50 -03:00
config.py feat: add persistent tiktoken cache to reduce re-downloads (#171) 2025-10-19 14:50:52 -03:00
exceptions.py refactor database module and migrations 2024-10-30 16:33:07 -03:00