Add images to trace logs.
gpt-4-turbo
or the Claude 3 models that take image (URLs) as inputs are automatically traced.
You can add generated images, such as those generated using DALL-E, to your traces using the trace_insert
method.
images
field that accepts a list of TraceLogImage
objects.
url
: The URL of the image to be attached to the trace. Note that image URLs from model providers like DALL-E expire after a short period of time. If the URL expires, the image will no longer be visible in the UI.caption
: An optional caption for the image. This can be used to help identify where in the trace the image was generated or any other relevant information.[PLACEHOLDER FOR IMAGE - SEE image-1 MESSAGE]
.