litellm-mirror/litellm/router_utils
Krish Dholakia 3fbb4f8fac Azure Service Principal with Secret authentication workflow. (#5131) (#5437)
* Azure Service Principal with Secret authentication workflow. (#5131)

* Implement Azure Service Principal with Secret authentication workflow.

* Use `ClientSecretCredential` instead of `DefaultAzureCredential`.

* Move imports into the function.

* Add type hint for `azure_ad_token_provider`.

* Add unit test for router initialization and sample completion using Azure Service Principal with Secret authentication workflow.

* Add unit test for router initialization with neither API key nor using Azure Service Principal with Secret authentication workflow.

* fix(client_initializtion_utils.py): fix typing + overrides

* test: fix linting errors

* fix(client_initialization_utils.py): fix client init azure ad token logic

* fix(router_client_initialization.py): add flag check for reading azure ad token from environment

* test(test_streaming.py): skip end of life bedrock model

* test(test_router_client_init.py): add correct flag to test

---------

Co-authored-by: kzych-inpost <142029278+kzych-inpost@users.noreply.github.com>
2024-09-02 14:29:00 -07:00
..
client_initalization_utils.py Azure Service Principal with Secret authentication workflow. (#5131) (#5437) 2024-09-02 14:29:00 -07:00
cooldown_cache.py fix(cooldown_cache.py): fix linting errors 2024-08-27 07:40:28 -07:00
cooldown_callbacks.py refactor prom metrics 2024-08-09 09:02:23 -07:00
fallback_event_handlers.py fix run sync fallbacks 2024-08-20 12:55:36 -07:00
handle_error.py fix use safe access for router alerting 2024-06-14 15:17:32 -07:00