Closed Manouchehri closed 3 days ago
from looking at the code it does not look like it's override any other extra_header when traceparent is present
if "extra_headers" not in data:
kinda sounds like it's only checking the incoming request and not the config.
it should not check the config that is intended
But... now this is overriding my config unexpectedly.
is this how you set it on your config ?
model_list:
- model_name: fake-openai-endpoint
litellm_params:
model: openai/fake
api_key: fake-key
api_base: https://exampleopenaiendpoint-production.up.railway.app/
extra_headers: {"X-Custom-Header": "value"}
Yes.
Confirmed. I reverted b16b846711937a1145e8519693f23310cfb885ad and now my extra_headers
is used from my config like expected.
traceparent
is set automatically by Google Cloud Run, it's not something I want to override my intentional config.
@Manouchehri do you use the otel callback ? perhaps we can only run this for users using OTEL through litellm
I don't use it at the moment.
fixed here @Manouchehri https://github.com/BerriAI/litellm/commit/413877d1c6427a9e9c7e4badc146b978337f92d8
What happened?
I believe b16b846711937a1145e8519693f23310cfb885ad introduced a problem where whenever
traceparent
is present, it completely overrides/replaces theextra_headers
configs I have in my yaml.Relevant log output
No response
Twitter / LinkedIn details
https://www.linkedin.com/in/davidmanouchehri/