Skip to content

[BUG]: LLM Obs does not correctly handle google FilePart / ImagePart type #15720

@ryan-castner

Description

@ryan-castner

Tracer Version(s)

3.19.0

Python Version(s)

3.11.4

Pip Version(s)

25.1.1

Bug Report

Hey, was playing around with the new gemini 3 flash preview model doing some OCR and when looking at the llm obs I noticed that ImagePart and FilePart types are not supported. As a result you get a kinda confusing UI where it looks like the LLM did not receive the right info:

Image

This line comes from

return Message(content="Unsupported file type: {}".format(type(part)), role=role)

  return Message(content="Unsupported file type: {}".format(type(part)), role=role)

Image Parts store their data in the inline_data attribute (containing bytes and mime_type)

Reproduction Code

Use google-genai python package and send an request with an imagepart in it.

Error Logs

No response

Libraries in Use

No response

Operating System

Darwin Kernel Version 24.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions