mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
Fix `_wrap_messages_for_sdk` stripping `role` before `model_construct` — on `openrouter==0.6.0` (minimum dep), the SDK models don't auto-populate a default `role`, so `model_dump()` omitted it entirely, causing `KeyError: 'role'` in pre-release checks.
52 KiB
52 KiB