litellm
litellm copied to clipboard
add: Allow auth extra_headers to be set via .env
Title
Allow auth extra_headers to be set via environment variables
Relevant issues
Related issue: https://github.com/BerriAI/litellm/issues/8085
Type
🆕 New Feature ✅ Test
Changes
Load Authorization header from environment variables when available.
[REQUIRED] Testing - Attach a screenshot of any new tests passing locally
Documents/Projects/litellm ‹main› » pytest tests/litellm/llms/bedrock/test_base_aws_llm.py
========================================================================== test session starts ===========================================================================
platform darwin -- Python 3.11.3, pytest-7.4.4, pluggy-1.5.0
rootdir: /Users/gkaretka/Documents/Projects/litellm
plugins: ddtrace-2.19.0, anyio-4.4.0, mock-3.14.0
collected 3 items
tests/litellm/llms/bedrock/test_base_aws_llm.py ...
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| litellm | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Apr 24, 2025 8:36am |
Hey @krrishdholakia, is there anything specific that would be blocking this? It would be pretty nice to have support for this in litellm.
Thanks!