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

Method callback_list

litellm/router_python_host.py:131–133  ·  view source on GitHub ↗
(self, name: CallbackList)

Source from the content-addressed store, hash-verified

129 return litellm.logging_callback_manager
130
131 def callback_list(self, name: CallbackList) -> list[object]: # mutable-ok: the process callback list itself
132 value: Final = _LITELLM_GLOBAL.validate_python(getattr(litellm, name))
133 return cast(list[object], value) # cast-ok: the process callback list is an untyped litellm global
134
135 def set_callback_list(self, name: CallbackList, value: list[object]) -> None: # mutable-ok: assigned as given
136 setattr(litellm, name, value)

Callers 5

_callbacksFunction · 0.45
register_router_selectorFunction · 0.45
_callbacksFunction · 0.45
_registerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected