The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Define generic_api types
yuneng-jiang086e80ef837f
diff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.pyindex 964c6c4e404..978585665f6 100644--- a/litellm/proxy/_types.py+++ b/litellm/proxy/_types.py@@ -2577,7 +2577,13 @@ class AllCallbacks(LiteLLMPydanticObjectBase):custom_callback_api: CallbackOnUI = CallbackOnUI(litellm_callback_name="custom_callback_api",- litellm_callback_params=["GENERIC_LOGGER_ENDPOINT", "GENERIC_LOGGER_HEADER"],+ litellm_callback_params=["GENERIC_LOGGER_ENDPOINT", "GENERIC_LOGGER_HEADERS"],+ ui_callback_name="Custom Callback API",+ )++ generic_api: CallbackOnUI = CallbackOnUI(+ litellm_callback_name="generic_api",+ litellm_callback_params=["GENERIC_LOGGER_ENDPOINT", "GENERIC_LOGGER_HEADERS"],ui_callback_name="Custom Callback API",)