How to log LLM requests that include images
{ "type": "image_url", "image_url": { "url": "https://keywordsai-static.s3.us-east-1.amazonaws.com/docs/integrations/integration_cards/openai_agent_v0.png", "detail": "auto" } }
{ "model": "gpt-4-vision-preview", "prompt_messages": [ { "role": "user", "content": [ { "type": "text", "text": "What do you see in this image?" }, { "type": "image_url", "image_url": { "url": "https://keywordsai-static.s3.us-east-1.amazonaws.com/docs/integrations/integration_cards/openai_agent_v0.png", "detail": "auto" } } ] } ], "completion_message": { "role": "assistant", "content": "This image is the logo for OpenAI Agent, featuring a circular design with a stylized 'O' shape." }, "prompt_tokens": 1120, "completion_tokens": 23 }
image_url
detail
auto
low
high
Was this page helpful?