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: specify type for extra_body in CometAPIConfig

TensorNullea0f76812276
diff --git a/litellm/llms/cometapi/chat/transformation.py b/litellm/llms/cometapi/chat/transformation.py
index 391f9626d37..fedb8f61e5b 100644
--- a/litellm/llms/cometapi/chat/transformation.py
+++ b/litellm/llms/cometapi/chat/transformation.py
@@ -41,7 +41,7 @@ class CometAPIConfig(OpenAIGPTConfig):
)
# CometAPI-specific parameters (if any)
- extra_body = {}
+ extra_body: dict[str, Any] = {}
# TODO: Add CometAPI-specific parameter handling here
# Example:
# custom_param = non_default_params.pop("custom_param", None)