Repository navigation
🐛 Bug Fixes
content: nullon assistant tool-call messages no longer fails deserialization (fixes #65). OpenRouter (and OpenAI) send"content": nullon assistant messages that carrytool_calls.MessageContentnow owns the full wire union (string | array | null):nullmaps toMessageContent::Text(String::new()), and an omittedcontentfield also yields empty text via#[serde(default)]. The field stays non-Option.- Behavior change: resending a received null-content message serializes
"content": ""rather thannull— identical to whatMessage::assistant_with_tools(None, …)already emitted. - Streaming is unchanged:
StreamDelta.contentstaysOption<MessageContent>, so"content": nullin stream deltas still deserializes asNone. MessageContentgains an additiveDefaultimpl.
- Behavior change: resending a received null-content message serializes
🛡️ Security / Dependency Updates
- Dev:
serial_test3.0 → 3.5 to clear RUSTSEC-2026-0205. Dev-dependency only; no downstream impact.
🔧 Internal Improvements
- Added Dependabot: weekly grouped minor/patch updates for Cargo and GitHub Actions.
- trybuild hygiene: re-blessed
consumed_after_into.stderrfor Rust 1.97 withrust-src; the compile-fail suite now skips on beta/nightly or withoutrust-srcinstead of failing on diagnostic drift.
Full changelog: https://github.com/socrates8300/openrouter_api/blob/main/CHANGELOG.md