mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
fix order of _setup_prisma_client
This commit is contained in:
parent
427580eff5
commit
34e58be36d
2 changed files with 14 additions and 14 deletions
|
@ -18,10 +18,9 @@ class PrismaDBExceptionHandler:
|
|||
"""
|
||||
Returns True if the request should be allowed to proceed despite the DB connection error
|
||||
"""
|
||||
from litellm.proxy.proxy_server import proxy_config
|
||||
from litellm.proxy.proxy_server import general_settings
|
||||
|
||||
_general_settings = proxy_config.config
|
||||
_allow_requests_on_db_unavailable: Union[bool, str] = _general_settings.get(
|
||||
_allow_requests_on_db_unavailable: Union[bool, str] = general_settings.get(
|
||||
"allow_requests_on_db_unavailable", False
|
||||
)
|
||||
if isinstance(_allow_requests_on_db_unavailable, bool):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue