{"id":"ex-01","messages":[{"role":"user","content":[{"type":"text","text":"What's this?"}]},{"role":"assistant","content":[{"type":"text","text":"Hi! This is Euphony, a web-based interactive tool for visualizing Harmony chat data. It lets you browse, explore, and share conversation data."}]},{"role":"user","content":[{"type":"text","text":"So it's basically like a chat viewer?"}]},{"role":"assistant","content":[{"type":"text","text":"Yes, but it does more than that. You can inspect metadata, filter conversations, render markdown, translate text, view Codex sessions, and inspect Harmony token rendering."}]},{"role":"user","content":[{"type":"text","text":"Nice. How do I actually load data into it?"}]},{"role":"assistant","content":[{"type":"text","text":"You can load data in three ways: paste JSON or JSONL from the clipboard, choose a local file, or provide a public HTTP(S) URL that serves JSON or JSONL."}]},{"role":"user","content":[{"type":"text","text":"And once I load it, I can share these conversations?"}]},{"role":"assistant","content":[{"type":"text","text":"Exactly. After loading, you can share a link to a conversation, and you can also share links to individual messages."}]},{"role":"user","content":[{"type":"text","text":"What if something does not load the way I expect?"}]},{"role":"assistant","content":[{"type":"text","text":"The easiest next steps are to inspect the metadata, check whether the file is valid JSON or JSONL, and compare against the example files bundled with the app."}]}],"metadata":{"title":"Introduction","language":"en"}} {"id":"ex-02","messages":[{"role":"user","create_time":1773604200,"content":[{"type":"text","text":"Cool, I loaded some data. How do I see metadata and render markdown?"}]},{"role":"assistant","create_time":1773604235,"content":[{"type":"text","text":"Use the conversation metadata button for conversation-level metadata, and hover over a message role icon for message-level metadata. You can also enable markdown rendering to display rich formatting and formulas inline."}]},{"role":"tool","name":"euphony","create_time":1773604270,"content":[{"type":"text","text":"# Euphony 示例对话笔记\n\nEuphony 支持复杂标注与 Markdown 渲染。你不仅能看到文字,还能查看结构化元数据,而且所有公式、Markdown 渲染都能直接在对话气泡中展示。\n\n---\n\n## 示例公式:损失融合\n\n\\[\n\\sum_{m \\in \\{\\text{文本}\\}}\n\\underbrace{ \\alpha_m \\cdot \\mathrm{Score}^T(m) }_{\\text{语义层的相关性}}\n\\;+\\;\n\\underbrace{ \\beta_m \\cdot \\mathrm{Score}^S(m) }_{\\substack{\\text{信号层的结构}\\\\\\text{完整性度量}}}\n\\]\n\n- **文本模态**:\\(\\mathrm{Score}^T\\) 表示 BLEU/ROUGE,\\(\\mathrm{Score}^S\\) 表示句法完整性。\n\n---\n\n## 功能展示\n- **数学公式支持**:如上例,复杂的下标、上标和分块说明都能正常渲染。\n- **翻译**:支持将非英文消息直接翻译并内联显示。"}]},{"role":"assistant","create_time":1773604315,"content":[{"type":"text","text":"Markdown rendering also works well with metadata inspection and inline formulas."}]}],"metadata":{"title":"Metadata, Markdown, and Translation","language":"en"}} {"id":"ex-03","messages":[{"role":"user","content":[{"type":"text","text":"My conversations have more than just plain user and assistant text. What else can Euphony load?"}]},{"role":"assistant","content":[{"type":"text","text":"In this viewer, Euphony supports text, code, system content, and developer content. System and developer messages are rendered as first-class parts of the conversation, which is useful when you want to inspect the full prompt stack."}]},{"role":"system","content":[{"type":"system_content","model_identity":"You are ChatGPT, a large language model trained by OpenAI.","reasoning_effort":"medium","conversation_start_date":"2026-04-06","knowledge_cutoff":"2024-06","channel_config":{"valid_channels":["analysis","commentary","final"],"channel_required":true}}]},{"role":"developer","content":[{"instructions":"Keep answers concise, prefer exact file names, and give concrete next steps."}]},{"role":"assistant","content":[{"content_type":"code","text":"{\n \"role\": \"assistant\",\n \"channel\": \"final\",\n \"content\": [\n {\"type\": \"text\", \"text\": \"Rendered code blocks are supported too.\"}\n ]\n}","language":"json"}]},{"role":"assistant","content":[{"content_type":"code","text":"diff --git a/src/components/conversation/conversation.ts b/src/components/conversation/conversation.ts\nindex 1a2b3c4..5d6e7f8 100644\n--- a/src/components/conversation/conversation.ts\n+++ b/src/components/conversation/conversation.ts\n@@ -210,7 +210,7 @@ const renderHeader = () => {\n- const label = 'Conversation';\n+ const label = 'Euphony';\n return html`