open-telemetry / open-telemetry/opentelemetry-python-genai

[openai] Support multimodal image_url input message parts on chat completions

Open
#548 2 comments 0 reactions 1 assignee View on GitHub

@rads-1996 is already working on this.

Since Sep 2, 2026.

openinference-migration
Dominant language
Python
Stars
39
Forks
63
Avg merge
1d 15h
Merged PRs (30d)
175

Description

[!NOTE]
This issue was generated with AI assistance and requires investigation and confirmation prior to being worked on.

Part of #541.

Support structured multimodal content parts (such as image_url) when capturing input messages on chat completions.

  • Currently _prepare_input_messages in utils.py only extracts string text content and drops structured content arrays containing image_url blocks.
  • Map image_url blocks into gen_ai.input.messages image parts according to GenAI semantic conventions.
  • Affected file: utils.py.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.