Skip to content

Commit 6b2ed34

Browse files
committed
Fix LITELLM_LOG key being taken into account
1 parent aac5363 commit 6b2ed34

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

langevals_core/langevals_core/litellm_patch.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ def patched_completion(*args, **kwargs):
2222
kwargs["vertex_credentials"] = os.environ["GOOGLE_APPLICATION_CREDENTIALS"]
2323

2424
for key, value in os.environ.items():
25-
if key.startswith("LITELLM_") and not key.startswith("LITELLM_EMBEDDINGS_"):
25+
if (
26+
key.startswith("LITELLM_")
27+
and not key.startswith("LITELLM_EMBEDDINGS_")
28+
and key != "LITELLM_LOG"
29+
):
2630
kwargs[key.replace("LITELLM_", "")] = value
2731

2832
return _original_completion(*args, **kwargs)

0 commit comments

Comments
 (0)