MCPcopy Create free account
hub / github.com/BerriAI/litellm / _header_value

Function _header_value

litellm/proxy/common_request_processing.py:2044–2045  ·  view source on GitHub ↗
(value: float | None)

Source from the content-addressed store, hash-verified

2042
2043
2044def _header_value(value: float | None) -> str | None:
2045 return str(value) if finite_cost(value) is not None else None
2046
2047
2048def _response_cost_header_value(hidden_params: Mapping[str, object]) -> float | str:

Callers 1

cost_headersFunction · 0.70

Calls 2

finite_costFunction · 0.90
strFunction · 0.85

Tested by

no test coverage detected