fix(api): 修正 NVIDIA_LATENCY_SECONDS → NVIDIA_LATENCY_HISTOGRAM

2026-03-29 ogt: CI lint 修復 - 變數名稱錯誤

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-03-29 20:52:57 +08:00
parent 04bfff9d19
commit 2a3e627c37

View File

@@ -747,7 +747,7 @@ class NvidiaProvider:
# Prometheus
NVIDIA_REQUESTS_TOTAL.labels(status="success", tool_name="chat").inc()
NVIDIA_LATENCY_SECONDS.labels(tool_name="chat").observe(latency_ms / 1000)
NVIDIA_LATENCY_HISTOGRAM.labels(tool_name="chat").observe(latency_ms / 1000)
# Langfuse
langfuse_ctx.trace.generation(