4 Commits

Author SHA1 Message Date
VuQuangBao 03467aeaf2 Attach real input/output/token usage to provider spans for Langfuse cost tracking
Langfuse showed $0.00 cost on every trace even after tracing was wired up:
provider.bedrock_converse.* spans carried only latency, no content or usage.
Converse's own response already includes token usage -- it just wasn't being
read. Captured on the adapter (last_usage, no interface change) and attached
to the span using Langfuse's own OTel attribute convention
(langfuse.observation.*), which its docs say takes precedence over generic
GenAI attributes. Verified live: a fresh trace now shows real prompt/completion
tokens and Langfuse computes real cost once given the model's actual per-token
price.
2026-08-25 16:44:55 +07:00
VuQuangBao 97cb6d16f4 Remove corpus counts from chat chrome 2026-08-10 17:26:58 +07:00
VuQuangBao 60b4397032 Fix ai-service Dockerfile: bake in drug_entities.json, override its path 2026-08-10 10:35:13 +07:00
VuQuangBao 1e8cbdb586 Fix live multi-turn: pass the resolved drug, stop did-you-mean garbage 2026-08-05 16:54:35 +07:00