{% extends "base.html" %} {% block content %}

{{ record.method }} {{ record.endpoint }}

Request #{{ record.id }}

Status {{ record.response_status | default('pending', true) }} Duration {{ record.duration_ms | default('-', true) }} ms Model {{ record.model | default('unknown', true) }}
{% if record.error %}
{{ record.error }}
{% endif %}

Request

{{ record.request_content_type | default('body', true) }}
{{ request_render.text }}

Response

{% for option in ["auto", "json", "text", "markdown", "tool", "sse"] %} {{ option }} {% endfor %}
{% if response_render.mode == "markdown" and response_render.html %}
{{ response_render.html | safe }}
{% elif response_render.mode == "tool" and response_render.tool_blocks %}
{% for block in response_render.tool_blocks %}
{{ block.kind }}
{{ block.payload | tojson(indent=2) }}
{% endfor %}
{% else %}
{{ response_render.text }}
{% endif %}
{% if images %}

Images Sent

{{ images | length }} image{{ '' if images | length == 1 else 's' }}
{% for image in images %}
Request image {{ loop.index }}
{{ image.mime_type | default(image.kind, true) }}
{% endfor %}
{% endif %}

Request Headers

{{ record.request_headers_json }}

Response Headers

{{ record.response_headers_json | default('{}', true) }}

Upstream

{{ record.upstream_url }}
{% endblock %}