Skip to content

v0.7.1

Latest

Choose a tag to compare

@claudewalden0 claudewalden0 released this 12 Aug 21:02
· 15 commits to main since this release
efa946a

🐛 Bug Fixes

  • content: null on assistant tool-call messages no longer fails deserialization (fixes #65). OpenRouter (and OpenAI) send "content": null on assistant messages that carry tool_calls. MessageContent now owns the full wire union (string | array | null): null maps to MessageContent::Text(String::new()), and an omitted content field also yields empty text via #[serde(default)]. The field stays non-Option.
    • Behavior change: resending a received null-content message serializes "content": "" rather than null — identical to what Message::assistant_with_tools(None, …) already emitted.
    • Streaming is unchanged: StreamDelta.content stays Option<MessageContent>, so "content": null in stream deltas still deserializes as None.
    • MessageContent gains an additive Default impl.

🛡️ Security / Dependency Updates

  • Dev: serial_test 3.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.stderr for Rust 1.97 with rust-src; the compile-fail suite now skips on beta/nightly or without rust-src instead of failing on diagnostic drift.

Full changelog: https://github.com/socrates8300/openrouter_api/blob/main/CHANGELOG.md