open-notebook/open_notebook/graphs
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
..
ask.py Version 1 (#160) 2025-10-18 12:46:22 -03:00
chat.py fix: preserve AIMessage metadata when cleaning thinking content 2025-12-19 20:08:12 -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: preserve AIMessage metadata when cleaning thinking content 2025-12-19 20:08:12 -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