open-agent-sdk-typescript icon indicating copy to clipboard operation
open-agent-sdk-typescript copied to clipboard

fix: support multimodal image content in OpenAI provider

Open buuzzy opened this issue 7 months ago • 0 comments

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's image_url format
  • Also supports URL-based image sources
  • Text-only messages keep simple string format for backward compatibility
  • query() prompt type widened to string | any[] for multimodal content arrays

buuzzy avatar Apr 17 '26 01:04 buuzzy

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.

ranaroussi avatar Sep 26 '26 09:09 ranaroussi