deerflow2/frontend/src/core/messages
pereverzev 4538c32298
Fix type check for 'thinking' in message content (#2964)
* Fix type check for 'thinking' in message content

When Gemini via Vertex AI returns content as a string inside an array, the in operator throws TypeError because it can't be used on primitives.

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Zil6n <136249885+Zil6n@users.noreply.github.com>
Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-16 17:55:34 +08:00
..
usage-model.ts feat: refine token usage display modes (#2329) 2026-05-04 09:56:16 +08:00
usage.ts feat: stream subagent token usage to header via terminal task events (#2882) 2026-05-13 23:52:19 +08:00
utils.ts Fix type check for 'thinking' in message content (#2964) 2026-05-16 17:55:34 +08:00