mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
fix logfire
This commit is contained in:
parent
b343911d59
commit
d89de2fd72
3 changed files with 37 additions and 6 deletions
|
@ -340,6 +340,15 @@ def function_setup(
|
|||
try:
|
||||
global callback_list, add_breadcrumb, user_logger_fn, Logging
|
||||
function_id = kwargs["id"] if "id" in kwargs else None
|
||||
|
||||
# Note: maintain backwards compatibility with logfire. some users use litellm.success_callback=["logfire"]
|
||||
if (
|
||||
litellm.success_callback is not None
|
||||
and "logfire" in litellm.success_callback
|
||||
):
|
||||
litellm.success_callback.remove("logfire")
|
||||
litellm.callbacks.append("logfire")
|
||||
|
||||
if len(litellm.callbacks) > 0:
|
||||
for callback in litellm.callbacks:
|
||||
# check if callback is a string - e.g. "lago", "openmeter"
|
||||
|
@ -7243,7 +7252,7 @@ def get_secret(
|
|||
else:
|
||||
raise ValueError(
|
||||
f"Google KMS requires the encrypted secret to be encoded in base64"
|
||||
)#fix for this vulnerability https://huntr.com/bounties/ae623c2f-b64b-4245-9ed4-f13a0a5824ce
|
||||
) # fix for this vulnerability https://huntr.com/bounties/ae623c2f-b64b-4245-9ed4-f13a0a5824ce
|
||||
response = client.decrypt(
|
||||
request={
|
||||
"name": litellm._google_kms_resource_name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue