mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 19:54:13 +00:00
fix should_initialize_sync_client
This commit is contained in:
parent
f6eccf84ce
commit
37312f08f2
1 changed files with 9 additions and 5 deletions
|
@ -33,8 +33,12 @@ def should_initialize_sync_client(
|
||||||
if litellm_router_instance is None:
|
if litellm_router_instance is None:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
if litellm_router_instance.router_general_settings is not None:
|
||||||
if (
|
if (
|
||||||
litellm_router_instance.router_general_settings is not None
|
hasattr(litellm_router_instance, "router_general_settings")
|
||||||
|
and hasattr(
|
||||||
|
litellm_router_instance.router_general_settings, "async_only_mode"
|
||||||
|
)
|
||||||
and litellm_router_instance.router_general_settings.async_only_mode is True
|
and litellm_router_instance.router_general_settings.async_only_mode is True
|
||||||
):
|
):
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue