mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
feat(credential_accessor.py): support loading in credentials from credential_list
Resolves https://github.com/BerriAI/litellm/issues/9114
This commit is contained in:
parent
236e68910c
commit
e518e3558b
5 changed files with 46 additions and 13 deletions
|
@ -5370,18 +5370,18 @@ class Router:
|
|||
client = self.cache.get_cache(
|
||||
key=cache_key, local_only=True, parent_otel_span=parent_otel_span
|
||||
)
|
||||
if client is None:
|
||||
"""
|
||||
Re-initialize the client
|
||||
"""
|
||||
InitalizeOpenAISDKClient.set_client(
|
||||
litellm_router_instance=self, model=deployment
|
||||
)
|
||||
client = self.cache.get_cache(
|
||||
key=cache_key,
|
||||
local_only=True,
|
||||
parent_otel_span=parent_otel_span,
|
||||
)
|
||||
# if client is None:
|
||||
# """
|
||||
# Re-initialize the client
|
||||
# """
|
||||
# InitalizeOpenAISDKClient.set_client(
|
||||
# litellm_router_instance=self, model=deployment
|
||||
# )
|
||||
# client = self.cache.get_cache(
|
||||
# key=cache_key,
|
||||
# local_only=True,
|
||||
# parent_otel_span=parent_otel_span,
|
||||
# )
|
||||
return client
|
||||
else:
|
||||
if kwargs.get("stream") is True:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue