open-agent-sdk-typescript
open-agent-sdk-typescript copied to clipboard
fix: support multimodal image content in OpenAI provider
The OpenAI provider drops { type: 'image' } content blocks during message conversion, so images are never sent to the model when using OpenAI-compatible endpoints.
Changes:
convertUserMessage()now converts Anthropic-style image blocks ({ type: 'base64', media_type, data }) to OpenAI'simage_urlformat- Also supports URL-based image sources
- Text-only messages keep simple string format for backward compatibility
query()prompt type widened tostring | any[]for multimodal content arrays
Need more detail to act: does anything else listen on 8317 at the time (lsof -i :8317), and does it reproduce after a reboot with VibeProxy as the only network listener? The next release also changes the proxy's bind behavior (#565), so a retest after it lands would tell us a lot.