From 7b30e5ae381823b44bfc95beb8c2ac504d012981 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sat, 6 Apr 2024 09:00:47 -0700 Subject: [PATCH] fix(utils.py): fix content check in pre-call rules --- litellm/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/utils.py b/litellm/utils.py index e945148036a..5153a414bcc 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -2499,7 +2499,7 @@ def client(original_function): ): rules_obj.pre_call_rules( input="".join( - m["content"] + m.get("content", "") for m in messages if isinstance(m["content"], str) ),