MCPcopy Create free account
hub / github.com/BerriAI/litellm / get_proxy_hook

Method get_proxy_hook

litellm/proxy/utils.py:557–561  ·  view source on GitHub ↗

Get a proxy hook from the proxy_hook_mapping

(self, hook: str)

Source from the content-addressed store, hash-verified

555 self.proxy_hook_mapping[hook] = proxy_hook_obj
556
557 def get_proxy_hook(self, hook: str) -> Optional[CustomLogger]:
558 """
559 Get a proxy hook from the proxy_hook_mapping
560 """
561 return self.proxy_hook_mapping.get(hook)
562
563 def _init_litellm_callbacks(self, llm_router: Optional[Router] = None):
564 self._add_proxy_hooks(llm_router)

Callers 15

vector_store_createFunction · 0.80
pass_through_requestFunction · 0.80
retrieve_batchFunction · 0.80
list_batchesFunction · 0.80
cancel_batchFunction · 0.80
responses_apiFunction · 0.80
route_create_fileFunction · 0.80

Calls 1

getMethod · 0.65