(test) proxy - async custom logger

This commit is contained in:
ishaan-jaff 2023-12-07 13:19:17 -08:00
parent 0354d6d48f
commit 2bc583c2a6
4 changed files with 194 additions and 1 deletions

View file

@ -500,7 +500,7 @@ def load_router_config(router: Optional[litellm.Router], config_file_path: str):
password=cache_password
)
elif key == "callbacks":
litellm.callbacks = [get_instance_fn(value=value)]
litellm.callbacks = [get_instance_fn(value=value, config_file_path=config_file_path)]
print_verbose(f"{blue_color_code} Initialized Callbacks - {litellm.callbacks} {reset_color_code}")
elif key == "success_callback":
litellm.success_callback = []