kAiProxyElapsedMsHeader top-level constant
String
const kAiProxyElapsedMsHeader
Response header the Hub proxy sets to report the upstream provider request duration in milliseconds.
When a browser client tunnels a provider call through the Hub, its local
stopwatch would also count the browser↔Hub round-trip, inflating the measured
generation time. The Hub measures the real upstream request itself and reports
it here so aiRequestMs can use it instead. Lower-cased to match how
package:http normalises header names.
Implementation
const String kAiProxyElapsedMsHeader = 'x-omnyshell-proxy-elapsed-ms';