mirror of
https://github.com/bitbaum/ai-kit.git
synced 2026-12-04 05:48:21 +01:00
The implementation always carried them. `callLink` forwards `messages` into the request body untouched, so a multimodal message has worked at runtime since the first release while `ChatMessage.content` said it could not. The cost of that gap is not theoretical. A consumer that needs to send a screenshot — heidi, today — has to cast around this package's own type, and a cast written to work around a library is the kind of thing the next consumer copies without asking why it is there. This is the fleet's AI layer; sending a picture should not require getting past it. Backward compatible by construction: `string | ContentPart[]`, every existing caller passes a string, and a string is still assignable. `ContentPart` is OpenAI's shape, which is the shape every provider in the default chain already speaks — `image_url.url` takes a `data:` URL or an `https:` one. Two tests, both asserting the wire rather than the type: parts arrive intact, and a plain string still leaves as exactly a string. Claude-Session: https://claude.ai/code/session_01FzYBD3sZroCAYeRgTYrpfT Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>