Skip to content

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]

Fix : test_sap_chat[False]

Sameer Kankute935824e4f942
diff --git a/litellm/llms/base_llm/chat/transformation.py b/litellm/llms/base_llm/chat/transformation.py
index 1867abde310..b592c23846d 100644
--- a/litellm/llms/base_llm/chat/transformation.py
+++ b/litellm/llms/base_llm/chat/transformation.py
@@ -101,6 +101,7 @@ class BaseConfig(ABC):
),
)
and v is not None
+ and not callable(v) # Filter out any callable objects including mocks
}
def get_json_schema_from_pydantic_object(