mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
fix: dynamo_db.py
handle permissions row
This commit is contained in:
parent
cd8d35107b
commit
34fce00960
2 changed files with 11 additions and 5 deletions
|
@ -282,7 +282,12 @@ class DynamoDBWrapper(CustomDB):
|
|||
new_response = {}
|
||||
for k, v in response.items(): # handle json string
|
||||
if (
|
||||
(k == "aliases" or k == "config" or k == "metadata")
|
||||
(
|
||||
k == "aliases"
|
||||
or k == "config"
|
||||
or k == "metadata"
|
||||
or k == "permissions"
|
||||
)
|
||||
and v is not None
|
||||
and isinstance(v, str)
|
||||
):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue