mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix(dynamo_db.py): don't auto-create tables, allow database_type == 'dynamodb'
This commit is contained in:
parent
aeff32ac62
commit
352f943dcf
2 changed files with 33 additions and 29 deletions
|
@ -853,7 +853,9 @@ class ProxyConfig:
|
|||
)
|
||||
## dynamodb
|
||||
database_type = general_settings.get("database_type", None)
|
||||
if database_type is not None and database_type == "dynamo_db":
|
||||
if database_type is not None and (
|
||||
database_type == "dynamo_db" or database_type == "dynamodb"
|
||||
):
|
||||
database_args = general_settings.get("database_args", None)
|
||||
custom_db_client = DBClient(
|
||||
custom_db_args=database_args, custom_db_type=database_type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue