gpt-5.4 @ high · codex-oauth
codex-oauthhigh
- config
- gpt-5.4-eff-high--cli--codex-oauth--dev
- batch
- 2026-07-19--unified
- transport
- codex-cli-oauth-chatgpt
- protocol
- cli · plan
- served model
- gpt-5.4
- 采集于
- 2026年7月18日 11:54 · N=2
variant
live
slot 0 · P-q · sandboxed iframe

截图是 similarity 通道测量时的原始像素。运行 live 会在 sandboxed iframe 中重新执行原始输出;渲染结果取决于你的浏览器和字体,不保证与测量像素一致。
similarity 邻居
最近
gpt-5.6-luna @high · codex-oauth0.64claude-fable-5 @high · CC0.63deepseek-v3.2 · kiro0.63gpt-5.4 @high · api0.63grok-4.5 @medium · grok-cli0.63最远
minimax-m2.7 · go0.45gpt-5.5 @xhigh · codex-oauth0.47claude-sonnet-5 @xhigh · kiro0.47claude-sonnet-5 @max · CC0.47claude-haiku-4-5 @high · CC0.47限于 session 2026-07-19--unified
similarity 衡量本 session 内的趋同程度 —— 不是质量。
Fidelity —— 卡片展示的数据对不对?
- namematch
- conditionmatch
- datematch
- max tempambiguousinsufficient-distinct-temperature-nodes
- min tempambiguousinsufficient-distinct-temperature-nodes
- hourlyambiguouscoverage · 0 命中 · 0 不符 · 24 未展示
- request sidematch0 处违规
extractor fidelity-extractor-v1+Berlin-2026-07-15
源码 —— 原始模型输出,一字节未改
下载 card.html<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Weather Card</title>
<style>
:root {
--bg-top: #17344f;
--bg-mid: #1f6375;
--bg-bottom: #d59d5f;
--paper: rgba(248, 243, 232, 0.9);
--paper-strong: rgba(255, 250, 242, 0.96);
--ink: #10253a;
--ink-soft: rgba(16, 37, 58, 0.72);
--line: rgba(16, 37, 58, 0.12);
--accent: #c46c37;
--accent-soft: rgba(196, 108, 55, 0.14);
--cool: #2f6f86;
--cool-soft: rgba(47, 111, 134, 0.14);
--shadow: 0 28px 90px rgba(7, 23, 36, 0.24);
--radius-xl: 30px;
--radius-lg: 22px;
--radius-md: 16px;
--radius-sm: 12px;
}
* {
box-sizing: border-box;
}
html, body {
margin: 0;
min-height: 100%;
background:
radial-gradient(circle at 18% 18%, rgba(255, 228, 181, 0.22), transparent 24%),
radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.12), transparent 22%),
radial-gradient(circle at 50% 85%, rgba(255, 214, 146, 0.18), transparent 28%),
linear-gradient(145deg, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bottom) 100%);
color: var(--ink);
font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
overflow: hidden;
}
body::before {
content: "";
position: fixed;
inset: 0;
pointer-events: none;
opacity: 0.18;
background:
repeating-linear-gradient(
90deg,
rgba(255, 255, 255, 0.06) 0,
rgba(255, 255, 255, 0.06) 1px,
transparent 1px,
transparent 72px
),
repeating-linear-gradient(
0deg,
rgba(255, 255, 255, 0.05) 0,
rgba(255, 255, 255, 0.05) 1px,
transparent 1px,
transparent 72px
);
mix-blend-mode: soft-light;
}
.shell {
min-height: 100vh;
display: grid;
place-items: center;
padding: 28px;
position: relative;
isolation: isolate;
}
.shell::before,
.shell::after {
content: "";
position: absolute;
border-radius: 999px;
filter: blur(24px);
opacity: 0.65;
z-index: -1;
animation: drift 14s ease-in-out infinite alternate;
}
.shell::before {
width: 280px;
height: 280px;
left: 6%;
top: 10%;
background: rgba(255, 220, 158, 0.18);
}
.shell::after {
width: 340px;
height: 340px;
right: 10%;
bottom: 8%;
background: rgba(35, 90, 120, 0.22);
animation-duration: 18s;
}
.card {
width: min(1180px, calc(100vw - 56px));
min-height: min(744px, calc(100vh - 56px));
border-radius: var(--radius-xl);
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0)) top/100% 130px no-repeat,
linear-gradient(135deg, var(--paper) 0%, rgba(247, 239, 226, 0.88) 58%, rgba(240, 230, 213, 0.9) 100%);
border: 1px solid rgba(255, 255, 255, 0.34);
box-shadow: var(--shadow);
backdrop-filter: blur(12px);
position: relative;
overflow: hidden;
padding: 34px 34px 28px;
display: grid;
grid-template-rows: auto auto 1fr;
gap: 24px;
animation: rise 900ms cubic-bezier(.2,.8,.2,1);
}
.card::before {
content: "";
position: absolute;
inset: 0;
background:
radial-gradient(circle at top right, rgba(255, 255, 255, 0.34), transparent 26%),
radial-gradient(circle at bottom left, rgba(196, 108, 55, 0.08), transparent 30%);
pointer-events: none;
}
.masthead {
display: flex;
justify-content: space-between;
gap: 20px;
align-items: flex-start;
position: relative;
z-index: 1;
}
.eyebrow {
margin: 0 0 10px;
text-transform: uppercase;
letter-spacing: 0.18em;
font-size: 11px;
color: rgba(16, 37, 58, 0.55);
font-weight: 700;
}
.location {
margin: 0;
font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
font-size: clamp(42px, 5vw, 68px);
line-height: 0.94;
font-weight: 700;
letter-spacing: -0.04em;
max-width: 8ch;
text-wrap: balance;
}
.date-line {
margin-top: 10px;
font-size: 18px;
color: var(--ink-soft);
letter-spacing: 0.01em;
}
.meta {
display: grid;
gap: 12px;
justify-items: end;
min-width: 220px;
}
.pill {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 10px 14px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.46);
border: 1px solid rgba(16, 37, 58, 0.08);
color: var(--ink);
font-size: 13px;
letter-spacing: 0.02em;
backdrop-filter: blur(8px);
}
.pill .dot {
width: 9px;
height: 9px;
border-radius: 50%;
background: linear-gradient(135deg, #e98e49, #be5c2f);
box-shadow: 0 0 0 4px rgba(196, 108, 55, 0.12);
flex: none;
}
.coords {
font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
font-size: 13px;
color: rgba(16, 37, 58, 0.62);
padding-right: 2px;
}
.status {
min-height: 22px;
font-size: 14px;
color: rgba(16, 37, 58, 0.72);
}
.content {
display: grid;
grid-template-columns: minmax(290px, 360px) 1fr;
gap: 24px;
position: relative;
z-index: 1;
}
.hero,
.panel,
.hourly-wrap {
border-radius: var(--radius-lg);
background: rgba(255, 255, 255, 0.38);
border: 1px solid rgba(16, 37, 58, 0.08);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
backdrop-filter: blur(8px);
}
.hero {
padding: 24px;
display: grid;
align-content: space-between;
gap: 24px;
min-height: 346px;
position: relative;
overflow: hidden;
}
.hero::before {
content: "";
position: absolute;
width: 220px;
height: 220px;
right: -28px;
top: -46px;
border-radius: 50%;
background: radial-gradient(circle, rgba(255, 195, 109, 0.34), rgba(255, 195, 109, 0) 70%);
pointer-events: none;
}
.condition-badge {
display: inline-flex;
align-items: center;
gap: 14px;
padding: 16px 18px;
border-radius: 18px;
background: rgba(255, 251, 245, 0.66);
border: 1px solid rgba(16, 37, 58, 0.08);
width: fit-content;
max-width: 100%;
}
.condition-icon {
width: 56px;
height: 56px;
border-radius: 16px;
display: grid;
place-items: center;
font-size: 31px;
background: linear-gradient(160deg, rgba(255, 216, 137, 0.42), rgba(47, 111, 134, 0.18));
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
flex: none;
}
.condition-copy {
min-width: 0;
}
.condition-label {
margin: 0;
font-size: 14px;
text-transform: uppercase;
letter-spacing: 0.14em;
color: rgba(16, 37, 58, 0.54);
font-weight: 700;
}
.condition-text {
margin: 4px 0 0;
font-size: 24px;
line-height: 1.05;
font-weight: 700;
letter-spacing: -0.03em;
text-wrap: balance;
}
.temperatures {
display: grid;
gap: 18px;
}
.temp-main {
display: flex;
align-items: flex-end;
gap: 12px;
flex-wrap: wrap;
}
.temp-max {
font-size: clamp(74px, 8vw, 108px);
line-height: 0.82;
letter-spacing: -0.08em;
font-weight: 800;
}
.temp-unit {
font-size: 24px;
padding-bottom: 18px;
color: rgba(16, 37, 58, 0.54);
font-weight: 700;
}
.temp-min-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 14px 16px;
border-radius: var(--radius-md);
background: rgba(16, 37, 58, 0.045);
border: 1px solid rgba(16, 37, 58, 0.08);
}
.temp-min-label {
font-size: 13px;
text-transform: uppercase;
letter-spacing: 0.16em;
color: rgba(16, 37, 58, 0.54);
font-weight: 700;
}
.temp-min-value {
font-size: 28px;
letter-spacing: -0.04em;
font-weight: 700;
}
.panel {
padding: 22px 22px 18px;
display: grid;
grid-template-rows: auto auto 1fr;
gap: 18px;
min-height: 346px;
}
.panel-top {
display: flex;
justify-content: space-between;
gap: 20px;
align-items: baseline;
}
.panel-title {
margin: 0;
font-size: 15px;
text-transform: uppercase;
letter-spacing: 0.18em;
color: rgba(16, 37, 58, 0.52);
font-weight: 800;
}
.range-chip {
padding: 8px 12px;
border-radius: 999px;
background: var(--cool-soft);
color: var(--cool);
font-size: 13px;
font-weight: 700;
letter-spacing: 0.02em;
white-space: nowrap;
}
.chart {
position: relative;
padding: 8px 2px 0;
min-height: 250px;
}
.chart svg {
width: 100%;
height: 250px;
display: block;
}
.chart-grid line {
stroke: rgba(16, 37, 58, 0.08);
stroke-width: 1;
}
.chart-label {
fill: rgba(16, 37, 58, 0.46);
font-size: 12px;
font-family: "Avenir Next", "Segoe UI", sans-serif;
}
.chart-label.temp {
font-weight: 700;
fill: rgba(16, 37, 58, 0.62);
}
.chart-area {
fill: url(#areaFill);
}
.chart-line {
fill: none;
stroke: var(--accent);
stroke-width: 4;
stroke-linecap: round;
stroke-linejoin: round;
filter: drop-shadow(0 6px 10px rgba(196, 108, 55, 0.18));
}
.chart-dot {
fill: #fffaf4;
stroke: var(--accent);
stroke-width: 3;
}
.chart-note {
display: flex;
justify-content: space-between;
gap: 16px;
font-size: 13px;
color: rgba(16, 37, 58, 0.6);
}
.hourly-wrap {
padding: 18px 18px 8px;
display: grid;
gap: 14px;
position: relative;
z-index: 1;
}
.hourly-head {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 16px;
}
.hourly-title {
margin: 0;
font-size: 15px;
text-transform: uppercase;
letter-spacing: 0.18em;
color: rgba(16, 37, 58, 0.52);
font-weight: 800;
}
.hourly-subtitle {
font-size: 13px;
color: rgba(16, 37, 58, 0.56);
}
.hourly-scroller {
overflow-x: auto;
overflow-y: hidden;
padding-bottom: 10px;
scrollbar-width: thin;
scrollbar-color: rgba(16, 37, 58, 0.18) transparent;
}
.hourly-scroller::-webkit-scrollbar {
height: 10px;
}
.hourly-scroller::-webkit-scrollbar-thumb {
background: rgba(16, 37, 58, 0.18);
border-radius: 999px;
}
.hourly-grid {
display: grid;
grid-auto-flow: column;
grid-auto-columns: minmax(72px, 72px);
gap: 10px;
min-width: max-content;
}
.hour {
border-radius: 18px;
padding: 14px 10px 12px;
background: rgba(255, 255, 255, 0.54);
border: 1px solid rgba(16, 37, 58, 0.08);
text-align: center;
display: grid;
gap: 8px;
position: relative;
overflow: hidden;
transform: translateY(14px);
opacity: 0;
animation: stamp 580ms cubic-bezier(.2,.75,.2,1) forwards;
}
.hour::before {
content: "";
position: absolute;
inset: auto 10px 0;
height: var(--bar-height, 50%);
border-radius: 14px 14px 8px 8px;
background: linear-gradient(180deg, rgba(196, 108, 55, 0.16), rgba(47, 111, 134, 0.26));
pointer-events: none;
z-index: 0;
}
.hour > * {
position: relative;
z-index: 1;
}
.hour-time {
font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
font-size: 12px;
color: rgba(16, 37, 58, 0.58);
}
.hour-temp {
font-size: 23px;
line-height: 1;
font-weight: 800;
letter-spacing: -0.05em;
}
.hour-mark {
font-size: 12px;
color: rgba(16, 37, 58, 0.48);
text-transform: uppercase;
letter-spacing: 0.16em;
font-weight: 700;
}
.loading .status::after {
content: "Loading weather data...";
}
.error .status {
color: #8e2d22;
font-weight: 700;
}
.error .hero,
.error .panel,
.error .hourly-wrap {
opacity: 0.56;
}
@keyframes rise {
from {
opacity: 0;
transform: translateY(18px) scale(0.985);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes drift {
from {
transform: translate3d(0, 0, 0) scale(1);
}
to {
transform: translate3d(12px, -16px, 0) scale(1.08);
}
}
@keyframes stamp {
to {
transform: translateY(0);
opacity: 1;
}
}
@media (max-width: 980px) {
html, body {
overflow: auto;
}
.card {
min-height: auto;
}
.masthead,
.content,
.hourly-head {
grid-template-columns: 1fr;
display: grid;
}
.meta {
justify-items: start;
}
.content {
grid-template-columns: 1fr;
}
.location {
max-width: none;
}
}
</style>
</head>
<body>
<div class="shell loading" id="shell">
<main class="card" aria-live="polite">
<header class="masthead">
<div>
<p class="eyebrow">Weather Study</p>
<h1 class="location" id="locationName">Berlin</h1>
<div class="date-line" id="dateLine">Loading date...</div>
</div>
<div class="meta">
<div class="pill"><span class="dot"></span><span id="sourceLabel">Preparing request</span></div>
<div class="coords" id="coordsLabel">52.52N / 13.405E</div>
<div class="status" id="statusMessage"></div>
</div>
</header>
<section class="content">
<article class="hero">
<div class="condition-badge">
<div class="condition-icon" id="conditionIcon">•</div>
<div class="condition-copy">
<p class="condition-label">Condition</p>
<p class="condition-text" id="conditionText">Waiting for data</p>
</div>
</div>
<div class="temperatures">
<div class="temp-main">
<div class="temp-max" id="tempMax">--</div>
<div class="temp-unit">max °C</div>
</div>
<div class="temp-min-row">
<div class="temp-min-label">Minimum</div>
<div class="temp-min-value" id="tempMin">-- °C</div>
</div>
</div>
</article>
<section class="panel">
<div class="panel-top">
<h2 class="panel-title">Hourly Curve</h2>
<div class="range-chip" id="rangeChip">-- to -- °C</div>
</div>
<div class="chart" id="chart"></div>
<div class="chart-note">
<span id="chartNoteLeft">24-hour UTC view</span>
<span id="chartNoteRight">Open-Meteo compatible source</span>
</div>
</section>
</section>
<section class="hourly-wrap">
<div class="hourly-head">
<h2 class="hourly-title">Hourly Temperatures</h2>
<div class="hourly-subtitle">Every hour for the selected date, in UTC</div>
</div>
<div class="hourly-scroller">
<div class="hourly-grid" id="hourlyGrid"></div>
</div>
</section>
</main>
</div>
<script>
const DEFAULTS = {
lat: 52.52,
lon: 13.405,
name: "Berlin"
};
const WEATHER_CODES = {
0: { label: "Clear Sky", icon: "☀" },
1: { label: "Mainly Clear", icon: "⛅" },
2: { label: "Partly Cloudy", icon: "⛅" },
3: { label: "Overcast", icon: "☁" },
45: { label: "Fog", icon: "〰" },
48: { label: "Rime Fog", icon: "〰" },
51: { label: "Light Drizzle", icon: "☂" },
53: { label: "Drizzle", icon: "☂" },
55: { label: "Dense Drizzle", icon: "☂" },
56: { label: "Freezing Drizzle", icon: "❄" },
57: { label: "Dense Freezing Drizzle", icon: "❄" },
61: { label: "Slight Rain", icon: "☔" },
63: { label: "Rain", icon: "☔" },
65: { label: "Heavy Rain", icon: "☔" },
66: { label: "Freezing Rain", icon: "❄" },
67: { label: "Heavy Freezing Rain", icon: "❄" },
71: { label: "Slight Snow", icon: "❄" },
73: { label: "Snow", icon: "❄" },
75: { label: "Heavy Snow", icon: "❄" },
77: { label: "Snow Grains", icon: "❄" },
80: { label: "Rain Showers", icon: "☔" },
81: { label: "Heavy Showers", icon: "☔" },
82: { label: "Violent Showers", icon: "☔" },
85: { label: "Snow Showers", icon: "❄" },
86: { label: "Heavy Snow Showers", icon: "❄" },
95: { label: "Thunderstorm", icon: "⚡" },
96: { label: "Thunderstorm and Hail", icon: "⛈" },
99: { label: "Severe Thunderstorm", icon: "⛈" }
};
const shell = document.getElementById("shell");
const locationNameEl = document.getElementById("locationName");
const dateLineEl = document.getElementById("dateLine");
const coordsLabelEl = document.getElementById("coordsLabel");
const sourceLabelEl = document.getElementById("sourceLabel");
const statusMessageEl = document.getElementById("statusMessage");
const conditionIconEl = document.getElementById("conditionIcon");
const conditionTextEl = document.getElementById("conditionText");
const tempMaxEl = document.getElementById("tempMax");
const tempMinEl = document.getElementById("tempMin");
const rangeChipEl = document.getElementById("rangeChip");
const chartEl = document.getElementById("chart");
const hourlyGridEl = document.getElementById("hourlyGrid");
function todayUtc() {
return new Date().toISOString().slice(0, 10);
}
function parseNumber(value, fallback) {
const num = Number(value);
return Number.isFinite(num) ? num : fallback;
}
function isValidDateString(value) {
if (!/^\d{4}-\d{2}-\d{2}$/.test(value || "")) return false;
const [y, m, d] = value.split("-").map(Number);
const dt = new Date(Date.UTC(y, m - 1, d));
return dt.getUTCFullYear() === y && dt.getUTCMonth() === m - 1 && dt.getUTCDate() === d;
}
function normalizeDate(value) {
return isValidDateString(value) ? value : todayUtc();
}
function formatDateUtc(dateStr) {
return new Intl.DateTimeFormat("en-US", {
weekday: "long",
month: "long",
day: "numeric",
year: "numeric",
timeZone: "UTC"
}).format(new Date(dateStr + "T00:00:00Z"));
}
function formatCoord(value, positive, negative) {
const dir = value >= 0 ? positive : negative;
return `${Math.abs(value).toFixed(3)}°${dir}`;
}
function roundTemp(value) {
return Math.round(Number(value));
}
function tempString(value) {
const n = roundTemp(value);
return `${n > 0 ? "+" : ""}${n}°`;
}
function weatherForCode(code) {
return WEATHER_CODES[code] || { label: "Unknown Conditions", icon: "•" };
}
function escapeHtml(text) {
return String(text).replace(/[&<>"']/g, function (char) {
return ({
"&": "&",
"<": "<",
">": ">",
'"': """,
"'": "'"
})[char];
});
}
function renderChart(points) {
const width = 760;
const height = 250;
const padLeft = 18;
const padRight = 16;
const padTop = 18;
const padBottom = 34;
const usableW = width - padLeft - padRight;
const usableH = height - padTop - padBottom;
const values = points.map(p => p.temp);
const min = Math.min(...values);
const max = Math.max(...values);
const spread = Math.max(4, max - min || 1);
const yMin = min - 1;
const yMax = max + 1;
const xStep = usableW / Math.max(1, points.length - 1);
const toX = index => padLeft + index * xStep;
const toY = temp => padTop + ((yMax - temp) / (yMax - yMin)) * usableH;
const linePath = points.map((point, index) => `${index === 0 ? "M" : "L"} ${toX(index).toFixed(2)} ${toY(point.temp).toFixed(2)}`).join(" ");
const areaPath = `${linePath} L ${toX(points.length - 1).toFixed(2)} ${(height - padBottom).toFixed(2)} L ${toX(0).toFixed(2)} ${(height - padBottom).toFixed(2)} Z`;
const gridTemps = [max, Math.round((max + min) / 2), min];
const gridLines = gridTemps.map(temp => {
const y = toY(temp).toFixed(2);
return `<line x1="${padLeft}" y1="${y}" x2="${width - padRight}" y2="${y}"></line>
<text x="${width - padRight}" y="${(Number(y) - 8).toFixed(2)}" text-anchor="end" class="chart-label temp">${escapeHtml(tempString(temp))}</text>`;
}).join("");
const dots = points.map((point, index) => {
const x = toX(index).toFixed(2);
const y = toY(point.temp).toFixed(2);
return `<circle class="chart-dot" cx="${x}" cy="${y}" r="4.8"></circle>`;
}).join("");
const labels = points
.filter((_, index) => index % 3 === 0 || index === points.length - 1)
.map((point, index, list) => {
const originalIndex = points.findIndex(p => p.time === point.time && p.temp === point.temp && points.indexOf(p) >= 0);
const x = toX(originalIndex).toFixed(2);
return `<text x="${x}" y="${height - 8}" text-anchor="${index === 0 ? "start" : index === list.length - 1 ? "end" : "middle"}" class="chart-label">${escapeHtml(point.time.slice(0, 2))}:00</text>`;
}).join("");
chartEl.innerHTML = `
<svg viewBox="0 0 ${width} ${height}" role="img" aria-label="Hourly temperatures chart">
<defs>
<linearGradient id="areaFill" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stop-color="rgba(196,108,55,0.34)"></stop>
<stop offset="100%" stop-color="rgba(47,111,134,0.06)"></stop>
</linearGradient>
</defs>
<g class="chart-grid">${gridLines}</g>
<path class="chart-area" d="${areaPath}"></path>
<path class="chart-line" d="${linePath}"></path>
${dots}
${labels}
</svg>
`;
rangeChipEl.textContent = `${tempString(min)} to ${tempString(max)}`;
document.getElementById("chartNoteLeft").textContent = `${points.length}-hour UTC view`;
document.getElementById("chartNoteRight").textContent = spread <= 5 ? "Gentle temperature range" : "Noticeable temperature swing";
}
function renderHourly(points) {
const temps = points.map(p => p.temp);
const min = Math.min(...temps);
const max = Math.max(...temps);
const spread = Math.max(1, max - min);
hourlyGridEl.innerHTML = points.map((point, index) => {
const height = 26 + ((point.temp - min) / spread) * 44;
return `
<article class="hour" style="--bar-height:${height.toFixed(1)}%;" aria-label="${escapeHtml(point.time)} ${escapeHtml(tempString(point.temp))}">
<div class="hour-time">${escapeHtml(point.time)}</div>
<div class="hour-temp">${escapeHtml(tempString(point.temp))}</div>
<div class="hour-mark">UTC</div>
</article>
`;
}).join("");
Array.from(hourlyGridEl.children).forEach((node, index) => {
node.style.animationDelay = `${index * 18}ms`;
});
}
async function loadWeather() {
const params = new URLSearchParams(window.location.search);
const lat = parseNumber(params.get("lat"), DEFAULTS.lat);
const lon = parseNumber(params.get("lon"), DEFAULTS.lon);
const name = (params.get("name") || DEFAULTS.name).trim() || DEFAULTS.name;
const date = normalizeDate(params.get("date"));
const today = todayUtc();
const endpoint = date < today ? "/api/om/archive" : "/api/om/forecast";
locationNameEl.textContent = name;
dateLineEl.textContent = formatDateUtc(date);
coordsLabelEl.textContent = `${formatCoord(lat, "N", "S")} ${formatCoord(lon, "E", "W")}`;
sourceLabelEl.textContent = endpoint === "/api/om/archive" ? "Archive data" : "Forecast data";
const query = new URLSearchParams({
latitude: String(lat),
longitude: String(lon),
daily: "temperature_2m_max,temperature_2m_min,weather_code",
hourly: "temperature_2m",
timezone: "UTC",
temperature_unit: "celsius",
start_date: date,
end_date: date
});
try {
const response = await fetch(`${endpoint}?${query.toString()}`, {
headers: { "Accept": "application/json" }
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
const data = await response.json();
const daily = data && data.daily;
const hourly = data && data.hourly;
if (
!daily ||
!hourly ||
!Array.isArray(daily.temperature_2m_max) ||
!Array.isArray(daily.temperature_2m_min) ||
!Array.isArray(daily.weather_code) ||
!Array.isArray(hourly.time) ||
!Array.isArray(hourly.temperature_2m)
) {
throw new Error("Unexpected payload");
}
const maxTemp = daily.temperature_2m_max[0];
const minTemp = daily.temperature_2m_min[0];
const weatherCode = Number(daily.weather_code[0]);
if (!Number.isFinite(Number(maxTemp)) || !Number.isFinite(Number(minTemp))) {
throw new Error("Missing daily temperature data");
}
const points = hourly.time
.map((time, index) => ({
time: String(time).slice(11, 16),
iso: String(time),
temp: Number(hourly.temperature_2m[index])
}))
.filter(point => point.iso.startsWith(date) && Number.isFinite(point.temp));
if (!points.length) {
throw new Error("Missing hourly temperature data");
}
const weather = weatherForCode(weatherCode);
conditionIconEl.textContent = weather.icon;
conditionTextEl.textContent = weather.label;
tempMaxEl.textContent = tempString(maxTemp);
tempMinEl.textContent = `${tempString(minTemp)}C`;
renderChart(points);
renderHourly(points);
shell.classList.remove("loading", "error");
statusMessageEl.textContent = "";
} catch (error) {
shell.classList.remove("loading");
shell.classList.add("error");
sourceLabelEl.textContent = "Data unavailable";
conditionIconEl.textContent = "!";
conditionTextEl.textContent = "Unable to load weather data";
tempMaxEl.textContent = "--";
tempMinEl.textContent = "-- °C";
rangeChipEl.textContent = "-- to -- °C";
chartEl.innerHTML = "";
hourlyGridEl.innerHTML = "";
statusMessageEl.textContent = "Weather data could not be loaded.";
}
}
loadWeather();
</script>
</body>
</html>L1 —— 廉价的确定性描述量
| bytes 总计 | 27,789 | html / css / js | 2,518 / 13,589 / 11,682 |
|---|---|---|---|
| dom 节点 | 49 | dom 深度 | 9 |
| css 规则 | 80 | 含 js | 是 |
| brightness | 214.0 | contrast | 51.9 |
| colorfulness | 24.2 | 留白 | 83.2% |
该 slot 的 telemetry
| prompt tokens | 0 | completion tokens | 18,150 |
|---|---|---|---|
| total tokens | 0 | wall | 206.2 s |
| cost | — | request id | — |
config.json547 B
{
"N": 2,
"auth": {
"credential_ref": "WCB_NONE",
"method": "oauth-login"
},
"billing": "plan",
"config_id": "gpt-5.4-eff-high--cli--codex-oauth--dev",
"effort": "high",
"family": "gpt",
"m": {
"min": 2,
"q": 2
},
"model_id": "gpt-5.4",
"protocol": "cli",
"served_model": "gpt-5.4",
"telemetry": {
"completion_tokens": 64836,
"cost_usd": null,
"prompt_tokens": null,
"total_tokens": null,
"wall_ms": 769133
},
"transport": "codex-cli-oauth-chatgpt",
"vendor_sanction_ref": null
}send-log2.5 KB
{
"N": 2,
"batch_id": "2026-07-17--dev-codex-oauth-gpt-5.4",
"config_id": "gpt-5.4-eff-high--cli--codex-oauth--dev",
"positions": [
{
"attempts": [
{
"attempt_index": 0,
"backoff_ms": null,
"charged": true,
"ended_at": "2026-07-17T13:47:01.414051+00:00",
"http_status": null,
"outcome": "valid",
"reached_model": true,
"reason": "ok",
"request_id": null,
"started_at": "2026-07-17T13:44:56.480802+00:00"
}
],
"block_index": 0,
"model_reaching_attempt_index": 0,
"slot_index": 0,
"terminal_state": "valid",
"variant": "P-min"
},
{
"attempts": [
{
"attempt_index": 0,
"backoff_ms": null,
"charged": true,
"ended_at": "2026-07-17T13:50:32.491348+00:00",
"http_status": null,
"outcome": "valid",
"reached_model": true,
"reason": "ok",
"request_id": null,
"started_at": "2026-07-17T13:47:06.283457+00:00"
}
],
"block_index": 0,
"model_reaching_attempt_index": 0,
"slot_index": 0,
"terminal_state": "valid",
"variant": "P-q"
},
{
"attempts": [
{
"attempt_index": 0,
"backoff_ms": null,
"charged": true,
"ended_at": "2026-07-17T13:55:39.859807+00:00",
"http_status": null,
"outcome": "valid",
"reached_model": true,
"reason": "ok",
"request_id": null,
"started_at": "2026-07-17T13:50:36.716588+00:00"
}
],
"block_index": 1,
"model_reaching_attempt_index": 0,
"slot_index": 1,
"terminal_state": "valid",
"variant": "P-q"
},
{
"attempts": [
{
"attempt_index": 0,
"backoff_ms": null,
"charged": true,
"ended_at": "2026-07-17T13:57:59.288398+00:00",
"http_status": null,
"outcome": "valid",
"reached_model": true,
"reason": "ok",
"request_id": null,
"started_at": "2026-07-17T13:55:44.417769+00:00"
}
],
"block_index": 1,
"model_reaching_attempt_index": 0,
"slot_index": 1,
"terminal_state": "valid",
"variant": "P-min"
}
],
"retry_policy": {
"max_unreachable_retries": 5,
"rate_limit_backoff": {
"max_attempts": 4,
"max_total_ms": 60000
}
}
}