Maintain consistent naming conventions across all aspects of the codebase, including file structures, folder organization, environment variables, and identifiers. This ensures predictability and reduces cognitive load for developers.
Maintain consistent naming conventions across all aspects of the codebase, including file structures, folder organization, environment variables, and identifiers. This ensures predictability and reduces cognitive load for developers.
Key principles:
llms/nvidia/
not llms/meta/
for meta-llama
)tests/litellm/integrations/SlackAlerting/test_slack_alerting.py
matches litellm/integrations/SlackAlerting/
)*_API_BASE
for litellm, while supporting *_BASE_URL
for cross-framework compatibility)prisma_airs
instead of panw_prisma_airs
)space_id
vs space_key
based on API requirements)Example:
# Good: Consistent with framework patterns
NVIDIA_API_BASE = os.getenv("NVIDIA_API_BASE") or os.getenv("NVIDIA_BASE_URL") # Support both
# Good: File structure matches provider
# litellm/llms/nvidia/chat/transformation.py
# tests/litellm/llms/nvidia/chat/test_transformation.py
# Good: Concise enum naming
class SupportedGuardrailIntegrations(Enum):
PRISMA_AIRS = "prisma_airs" # Not "panw_prisma_airs"
Enter the URL of a public GitHub repository