Repository Analysis

BerriAI/litellm

Python SDK, Proxy Server (AI Gateway) to call 100+ LLM APIs in OpenAI (or native) format, with cost tracking, guardrails, loadbalancing and logging. [Bedrock, Azure, OpenAI, VertexAI, Cohere, Anthropic, Sagemaker, HuggingFace, VLLM, NVIDIA NIM]

30.5 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of BerriAI/litellm, a Python project with 53,517 GitHub stars. SynthScan v2.0 examined 2,179,318 lines of code across 6928 source files, recording 56900 pattern matches distributed across 28 syntactic categories. The overall adjusted score of 30.5 places this repository in the Strong AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

30.5
Adjusted Score
30.5
Raw Score
100%
Time Factor
2026-07-14
Last Push
53.5K
Stars
Python
Language
2.2M
Lines of Code
6.9K
Files
56.9K
Pattern Hits
2026-07-14
Scan Date
0.14
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 33HIGH 937MEDIUM 5252LOW 50678

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 56900 distinct pattern matches across 28 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers34955 hits · 30214 pts
SeverityFileLineSnippetContext
LOWARCHITECTURE.md406def test_prompt_caching_transform():CODE
LOW…oard/e2e_tests/migration.serverRootPath.globalSetup.ts3export default async function migrationServerRootPathGlobalSetup() {CODE
LOWui/litellm-dashboard/src/app/model_hub_table/page.tsx6function PublicModelHubTableContent() {CODE
LOWui/litellm-dashboard/src/app/(dashboard)/layout.tsx22function PluginModeProviderWithAuth({ children }: { children: React.ReactNode }) {CODE
LOW…ashboard)/guardrails/_components/TeamGuardrailsTab.tsx72function submissionToTeamGuardrail(item: GuardrailSubmissionItem): TeamGuardrail {CODE
LOW…ashboard)/guardrails/_components/TeamGuardrailsTab.tsx144function buildEquivalentConfigYaml(g: TeamGuardrail): string {CODE
LOW…ard)/guardrails/_components/guardrail_info_helpers.tsx196export function skipSystemMessageToChoice(v: boolean | null | undefined): SkipSystemMessageChoice {CODE
LOW…ard)/guardrails/_components/guardrail_info_helpers.tsx203export function choiceToSkipSystemForCreate(choice: SkipSystemMessageChoice | undefined): boolean | undefined {CODE
LOW…ard)/guardrails/_components/guardrail_info_helpers.tsx219export function choiceToSkipToolForCreate(choice: SkipToolMessageChoice | undefined): boolean | undefined {CODE
LOW…/app/(dashboard)/playground/llm_calls/audio_speech.tsx6export async function makeOpenAIAudioSpeechRequest(CODE
LOW…c/app/(dashboard)/playground/llm_calls/image_edits.tsx5export async function makeOpenAIImageEditsRequest(CODE
LOW…dashboard)/playground/llm_calls/anthropic_messages.tsx7export async function makeAnthropicMessagesRequest(CODE
LOW…/(dashboard)/playground/llm_calls/image_generation.tsx5export async function makeOpenAIImageGenerationRequest(CODE
LOW…pp/(dashboard)/playground/llm_calls/embeddings_api.tsx4export async function makeOpenAIEmbeddingsRequest(CODE
LOW…shboard)/playground/llm_calls/audio_transcriptions.tsx5export async function makeOpenAIAudioTranscriptionRequest(CODE
LOW…ts/EndpointUsage/components/EndpointUsageLineChart.tsx11function transformDailyDataToChart(dailyData: DailyData[]): Array<Record<string, string | number>> {CODE
LOW…)/usage/_components/hooks/usePaginatedDailyActivity.ts89export function usePaginatedDailyActivity({CODE
LOW…rc/app/(dashboard)/hooks/useHideAgentPlatformBanner.ts34export function useHideAgentPlatformBanner() {CODE
LOW…cp-servers/_components/PassthroughAuthorizeSection.tsx33export default function PassthroughAuthorizeSection({CODE
LOWui/litellm-dashboard/src/utils/mcpHeaderUtils.ts7export function sanitizeMcpAliasForHeader(alias: string): string {CODE
LOWui/litellm-dashboard/src/utils/mcpHeaderUtils.ts22export function buildMcpPassthroughAuthHeader(CODE
LOWui/litellm-dashboard/src/utils/keyExpiryUtils.ts41export function calculateExpiryPreviewFromDuration(duration: string | undefined): string | null {CODE
LOWui/litellm-dashboard/src/components/networking.tsx366export function setGlobalLitellmHeaderName(headerName: string = "Authorization") {CODE
LOWui/litellm-dashboard/src/components/networking.tsx371export function getGlobalLitellmHeaderName(): string {CODE
LOW…oard/src/components/update_model_credentials_modal.tsx16export default function UpdateModelCredentialsModal({CODE
LOWui/litellm-dashboard/src/components/ui/chart.tsx299function getPayloadConfigFromPayload(config: ChartConfig, payload: unknown, key: string) {CODE
LOW…ings/HashicorpVault/HashicorpVaultEmptyPlaceholder.tsx9export default function HashicorpVaultEmptyPlaceholder({ onAdd }: HashicorpVaultEmptyPlaceholderProps) {CODE
LOW…minSettings/SSOSettings/SSOSettingsLoadingSkeleton.tsx7export default function SSOSettingsLoadingSkeleton() {CODE
LOW…inSettings/SSOSettings/SSOSettingsEmptyPlaceholder.tsx9export default function SSOSettingsEmptyPlaceholder({ onAdd }: SSOSettingsEmptyPlaceholderProps) {CODE
LOW…CPSemanticFilterSettings/MCPSemanticFilterSettings.tsx32export default function MCPSemanticFilterSettings({ accessToken }: MCPSemanticFilterSettingsProps) {CODE
LOW…PSemanticFilterSettings/MCPSemanticFilterTestPanel.tsx20export default function MCPSemanticFilterTestPanel({CODE
LOW…onents/Settings/RouterSettings/Fallbacks/Fallbacks.tsx70async function testFallbackModelResponse(selectedModel: string, accessToken: string) {CODE
LOW…shboard/src/components/view_logs/ToolsSection/utils.ts48function extractToolCallsFromResponse(log: LogEntry): ToolCall[] {CODE
LOW…ard/src/components/view_logs/LogDetailsDrawer/utils.ts63export function normalizeGuardrailEntries(guardrailInfo: any): any[] {CODE
LOW…ard/src/components/view_logs/LogDetailsDrawer/utils.ts74export function calculateTotalMaskedEntities(entries: any[]): number {CODE
LOW…onents/view_logs/LogDetailsDrawer/LogDetailContent.tsx272function getUncachedInputTextTokens(metadata: Record<string, any>): number | undefined {CODE
LOW…m-dashboard/src/components/llm_calls/responses_api.tsx17export async function makeOpenAIResponsesRequest(CODE
LOW…d/src/components/llm_calls/code_interpreter_handler.ts27export function handleCodeInterpreterCall(event: any, state: CodeInterpreterState): CodeInterpreterState {CODE
LOW…d/src/components/llm_calls/code_interpreter_handler.ts41export function handleCodeInterpreterOutput(CODE
LOW…dashboard/src/components/llm_calls/chat_completion.tsx8export async function makeOpenAIChatCompletionRequest(CODE
LOW…rd/src/components/model_add/credential_form_helpers.ts21export function resetCredentialFormOnProviderChange(CODE
LOW…CloudZeroCostTracking/CloudZeroIntegrationSettings.tsx18export function CloudZeroIntegrationSettings({ settings, onSettingsUpdated }: CloudZeroIntegrationSettingsProps) {CODE
LOW…ts/CloudZeroCostTracking/CloudZeroEmptyPlaceholder.tsx9export default function CloudZeroEmptyPlaceholder({ startCreation }: CloudZeroEmptyPlaceholderProps) {CODE
LOWui/litellm-dashboard/src/data/compliancePrompts.ts566export function getComplianceDatasetPrompts(): CompliancePrompt[] {CODE
LOWci_cd/run_migration.py17def _find_destructive_statements(sql: str) -> list:CODE
LOWci_cd/run_migration.py58def _print_stale_branch_refusal(base_branch: str, behind: int) -> None:CODE
LOWci_cd/run_migration.py149def _print_destructive_refusal(destructive_lines: list) -> None:CODE
LOWenterprise/litellm_enterprise/proxy/proxy_server.py10 async def load_custom_auth_settings(CODE
LOWenterprise/litellm_enterprise/proxy/proxy_server.py26 def get_custom_docs_description() -> Optional[str]:CODE
LOW…se/litellm_enterprise/proxy/audit_logging_endpoints.py25def _build_json_field_or_condition(json_key: str, value: str) -> Dict[str, Any]:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py64 async def _cleanup_stale_managed_objects(self) -> None:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py189 def _resolve_unmanaged_provider_routing(CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py207 def _get_deployment_id_for_bare_model(CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py221 def _get_deployment_id_from_matching_deployments(CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py260 def _get_deployment_id_for_provider(CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py303 async def _track_completed_batch_cost(CODE
LOW…_enterprise/proxy/common_utils/check_responses_cost.py66 async def _cleanup_stale_managed_objects(self) -> None:CODE
LOW…terprise/litellm_enterprise/proxy/auth/route_checks.py8 def is_llm_api_route_disabled() -> bool:CODE
LOW…terprise/litellm_enterprise/proxy/auth/route_checks.py27 def is_management_routes_disabled() -> bool:CODE
LOW…se/litellm_enterprise/proxy/auth/custom_sso_handler.py29 async def handle_custom_ui_sso_sign_in(CODE
34895 more matches not shown…
Decorative Section Separators3064 hits · 11424 pts
SeverityFileLineSnippetContext
MEDIUMui/litellm-dashboard/e2e_tests/run_e2e.sh4# ================================================================COMMENT
MEDIUMui/litellm-dashboard/e2e_tests/run_e2e.sh20# ================================================================COMMENT
MEDIUM…shboard/src/app/(dashboard)/workflows/WorkflowRuns.tsx59// ── design tokens ─────────────────────────────────────────────────────────────COMMENT
MEDIUM…shboard/src/app/(dashboard)/workflows/WorkflowRuns.tsx89// ── helpers ───────────────────────────────────────────────────────────────────COMMENT
MEDIUM…shboard/src/app/(dashboard)/workflows/WorkflowRuns.tsx119// ── status dot ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…shboard/src/app/(dashboard)/workflows/WorkflowRuns.tsx134// ── truncated text value ──────────────────────────────────────────────────────COMMENT
MEDIUM…shboard/src/app/(dashboard)/workflows/WorkflowRuns.tsx164// ── metadata card ─────────────────────────────────────────────────────────────COMMENT
MEDIUM…shboard/src/app/(dashboard)/workflows/WorkflowRuns.tsx289// ── gantt timeline ────────────────────────────────────────────────────────────COMMENT
MEDIUM…shboard/src/app/(dashboard)/workflows/WorkflowRuns.tsx446// ── message row ───────────────────────────────────────────────────────────────COMMENT
MEDIUM…shboard/src/app/(dashboard)/workflows/WorkflowRuns.tsx491// ── main component ────────────────────────────────────────────────────────────COMMENT
MEDIUM…p/(dashboard)/policies/_components/add_policy_form.tsx26// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…p/(dashboard)/policies/_components/add_policy_form.tsx28// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…p/(dashboard)/policies/_components/add_policy_form.tsx146// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…p/(dashboard)/policies/_components/add_policy_form.tsx148// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…p/(dashboard)/policies/_components/add_policy_form.tsx361 // ── Mode Picker Step ──────────────────────────────────────────────────────COMMENT
MEDIUM…p/(dashboard)/policies/_components/add_policy_form.tsx398 // ── Simple Form Step ──────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx107// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx109// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx210// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx212// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx250// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx252// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx436// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx438// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx578// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx580// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx683// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx685// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx1076// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx1078// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx1310// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx1312// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…/src/app/(dashboard)/hooks/guardrails/useGuardrails.ts6// ── Types ────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…/src/app/(dashboard)/hooks/guardrails/useGuardrails.ts30// ── Hook ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…p/(dashboard)/hooks/guardrails/useRegisterGuardrail.ts6// ── Types ────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…p/(dashboard)/hooks/guardrails/useRegisterGuardrail.ts22// ── Fetch function ───────────────────────────────────────────────────────────COMMENT
MEDIUM…p/(dashboard)/hooks/guardrails/useRegisterGuardrail.ts50// ── Hook ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…rc/app/(dashboard)/hooks/projects/useProjectDetails.ts7// ── Fetch function ───────────────────────────────────────────────────────────COMMENT
MEDIUM…rc/app/(dashboard)/hooks/projects/useProjectDetails.ts31// ── Hook ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…src/app/(dashboard)/hooks/projects/useDeleteProject.ts6// ── Fetch function ───────────────────────────────────────────────────────────COMMENT
MEDIUM…src/app/(dashboard)/hooks/projects/useDeleteProject.ts29// ── Hook ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…src/app/(dashboard)/hooks/projects/useUpdateProject.ts6// ── Types ────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…src/app/(dashboard)/hooks/projects/useUpdateProject.ts21// ── Fetch function ───────────────────────────────────────────────────────────COMMENT
MEDIUM…src/app/(dashboard)/hooks/projects/useUpdateProject.ts50// ── Hook ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…oard/src/app/(dashboard)/hooks/projects/useProjects.ts7// ── Types ────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…oard/src/app/(dashboard)/hooks/projects/useProjects.ts41// ── Query keys (shared across project hooks) ─────────────────────────────────COMMENT
MEDIUM…oard/src/app/(dashboard)/hooks/projects/useProjects.ts47// ── Fetch function ───────────────────────────────────────────────────────────COMMENT
MEDIUM…oard/src/app/(dashboard)/hooks/projects/useProjects.ts71// ── Hook ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…src/app/(dashboard)/hooks/projects/useCreateProject.ts6// ── Types ────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…src/app/(dashboard)/hooks/projects/useCreateProject.ts21// ── Fetch function ───────────────────────────────────────────────────────────COMMENT
MEDIUM…src/app/(dashboard)/hooks/projects/useCreateProject.ts46// ── Hook ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ard/src/app/(dashboard)/hooks/keys/useResetKeySpend.ts6// ── Types ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ard/src/app/(dashboard)/hooks/keys/useResetKeySpend.ts16// ── Fetch function ────────────────────────────────────────────────────────────COMMENT
MEDIUM…ard/src/app/(dashboard)/hooks/keys/useResetKeySpend.ts41// ── Hook ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…(dashboard)/hooks/accessGroups/useCreateAccessGroup.ts6// ── Types ────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…(dashboard)/hooks/accessGroups/useCreateAccessGroup.ts18// ── Fetch function ───────────────────────────────────────────────────────────COMMENT
MEDIUM…(dashboard)/hooks/accessGroups/useCreateAccessGroup.ts46// ── Hook ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…dashboard)/hooks/accessGroups/useAccessGroupDetails.ts7// ── Fetch function ───────────────────────────────────────────────────────────COMMENT
MEDIUM…dashboard)/hooks/accessGroups/useAccessGroupDetails.ts31// ── Hook ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…/app/(dashboard)/hooks/accessGroups/useAccessGroups.ts7// ── Types ────────────────────────────────────────────────────────────────────COMMENT
3004 more matches not shown…
Excessive Try-Catch Wrapping5547 hits · 5304 pts
SeverityFileLineSnippetContext
MEDIUM…tellm-dashboard/scripts/generate_compliance_prompts.py85 print(f"Error: CSV file not found: {csv_path}", file=sys.stderr)CODE
MEDIUM…tellm-dashboard/scripts/generate_compliance_prompts.py95 print("Error: CSV file is empty.", file=sys.stderr)CODE
LOW…/litellm-dashboard/src/components/public_model_hub.tsx1695 except Exception as e_extended:CODE
LOW…/litellm-dashboard/src/components/public_model_hub.tsx1744 except Exception as e_extended:CODE
MEDIUM…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx262 print(f"An error occurred: {e}")CODE
LOW…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx261except Exception as e:CODE
MEDIUMci_cd/baseline_db.py52 print(f"Error running prisma command: {e.stderr}")CODE
LOWci_cd/baseline_db.py54 except Exception as e:CODE
MEDIUMci_cd/baseline_db.py55 print(f"Error creating baseline migration: {str(e)}")CODE
MEDIUMci_cd/run_migration.py314 print(f"Error generating migration: {e.stderr}")CODE
LOWci_cd/run_migration.py316 except Exception as e:CODE
MEDIUMci_cd/run_migration.py317 print(f"Error creating migration: {str(e)}")CODE
LOW…se/litellm_enterprise/proxy/vector_stores/endpoints.py118 except Exception as e:CODE
LOW…se/litellm_enterprise/proxy/vector_stores/endpoints.py188 except Exception as e:CODE
LOW…se/litellm_enterprise/proxy/vector_stores/endpoints.py238 except Exception as e:CODE
LOW…se/litellm_enterprise/proxy/vector_stores/endpoints.py303 except Exception as e:CODE
LOW…se/litellm_enterprise/proxy/vector_stores/endpoints.py345 except Exception as e:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py60 except Exception as e:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py238 except Exception:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py278 except Exception:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py300 except Exception:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py386 except Exception:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py434 except Exception as _e:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py510 except Exception as e:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py518 except Exception as cleanup_err:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py549 except Exception as query_err:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py579 except Exception as e:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py600 except Exception as tracking_err:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py625 except Exception as db_err:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py645 except Exception as db_err:CODE
LOW…_enterprise/proxy/common_utils/check_responses_cost.py95 except Exception as cleanup_err:CODE
LOW…_enterprise/proxy/common_utils/check_responses_cost.py146 except Exception as e:CODE
LOW…ise/litellm_enterprise/proxy/auth/user_api_key_auth.py29 except Exception as e:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1342 except Exception:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1347 except Exception as e:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1424 except Exception as e:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py348 except Exception as e:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1174 except Exception as e:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1209 except Exception:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1308 except Exception as e:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1377 except Exception as e:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1579 except Exception as e:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1650 except Exception as e:CODE
LOW…rprise/proxy/management_endpoints/project_endpoints.py470 except Exception as e:CODE
LOW…rprise/proxy/management_endpoints/project_endpoints.py708 except Exception as e:CODE
LOW…rprise/proxy/management_endpoints/project_endpoints.py816 except Exception as e:CODE
LOW…rprise/proxy/management_endpoints/project_endpoints.py897 except Exception as e:CODE
LOW…rprise/proxy/management_endpoints/project_endpoints.py957 except Exception as e:CODE
LOW…enterprise/enterprise_callbacks/example_logging_api.py20 except Exception:CODE
LOW…e/litellm_enterprise/enterprise_callbacks/llm_guard.py46 except Exception:CODE
LOW…e/litellm_enterprise/enterprise_callbacks/llm_guard.py88 except Exception as e:CODE
LOW…e/litellm_enterprise/enterprise_callbacks/llm_guard.py149 except Exception:CODE
MEDIUM…e/litellm_enterprise/enterprise_callbacks/llm_guard.py41def print_verbose(self, print_statement):CODE
LOW…m_enterprise/enterprise_callbacks/callback_controls.py57 except Exception as e:CODE
LOW…litellm_enterprise/enterprise_callbacks/llama_guard.py45 except Exception as e:CODE
LOW…litellm_enterprise/enterprise_callbacks/llama_guard.py59 except Exception:CODE
MEDIUM…litellm_enterprise/enterprise_callbacks/llama_guard.py54def print_verbose(self, print_statement):CODE
LOW…erprise/enterprise_callbacks/send_emails/base_email.py514 except Exception as e:CODE
LOW…erprise/enterprise_callbacks/send_emails/base_email.py579 except Exception as e:CODE
LOW…erprise/enterprise_callbacks/send_emails/base_email.py661 except Exception as e:CODE
5487 more matches not shown…
Unused Imports5333 hits · 4452 pts
SeverityFileLineSnippetContext
LOWenterprise/__init__.py1CODE
LOW…terprise/litellm_enterprise/proxy/enterprise_routes.py7CODE
LOW…se/litellm_enterprise/proxy/audit_logging_endpoints.py10CODE
LOW…se/litellm_enterprise/proxy/vector_stores/endpoints.py11CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py17CODE
LOWenterprise/litellm_enterprise/proxy/auth/__init__.py8CODE
LOW…itellm_enterprise/proxy/hooks/managed_vector_stores.py9CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py39CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py58CODE
LOW…litellm_enterprise/proxy/ui_crud_endpoints/__init__.py1CODE
LOW…rprise/proxy/management_endpoints/project_endpoints.py20CODE
LOW…e/litellm_enterprise/enterprise_callbacks/llm_guard.py10CODE
LOW…litellm_enterprise/enterprise_callbacks/llama_guard.py18CODE
LOWenterprise/enterprise_hooks/aporia_ai.py18CODE
LOWenterprise/enterprise_hooks/aporia_ai.py22CODE
LOWtests/test_openai_endpoints.py6CODE
LOWtests/test_openai_endpoints.py7CODE
LOWtests/_flush_vcr_cache.py1CODE
LOWtests/_flush_vcr_cache.py3CODE
LOWtests/test_team_logging.py4CODE
LOWtests/test_team_logging.py5CODE
LOWtests/test_team_logging.py6CODE
LOWtests/test_team_logging.py7CODE
LOWtests/test_team_logging.py8CODE
LOWtests/test_team_logging.py10CODE
LOWtests/test_end_users.py6CODE
LOWtests/_openai_record_replay_proxy.py34CODE
LOWtests/test_fallbacks.py294CODE
LOWtests/test_gpt5_azure_temperature_support.py5CODE
LOWtests/_vcr_redis_persister.py1CODE
LOWtests/test_resource_cleanup.py7CODE
LOWtests/test_callbacks_on_proxy.py11CODE
LOWtests/test_callbacks_on_proxy.py13CODE
LOWtests/test_team.py7CODE
LOWtests/test_team.py10CODE
LOWtests/test_passthrough_endpoints.py3CODE
LOWtests/test_passthrough_endpoints.py4CODE
LOWtests/test_passthrough_endpoints.py4CODE
LOWtests/test_passthrough_endpoints.py5CODE
LOWtests/test_passthrough_endpoints.py5CODE
LOWtests/test_passthrough_endpoints.py5CODE
LOWtests/fake_openai_endpoint.py24CODE
LOWtests/test_presidio_latency.py4CODE
LOWtests/_ws_vcr.py20CODE
LOWtests/test_new_vector_store_endpoints.py9CODE
LOWtests/test_new_vector_store_endpoints.py16CODE
LOWtests/test_organizations.py6CODE
LOWtests/test_organizations.py7CODE
LOWtests/eval_swe_bench.py30CODE
LOWtests/test_entrypoint.py11CODE
LOWtests/test_config.py8CODE
LOWtests/_vcr_conftest_common.py6CODE
LOWtests/test_users.py8CODE
LOWtests/test_users.py11CODE
LOWtests/test_models.py8CODE
LOWtests/test_proxy_server_non_root.py13CODE
LOWtests/_fake_openai_endpoint_server.py18CODE
LOWtests/logging_callback_tests/base_test.py1CODE
LOWtests/logging_callback_tests/base_test.py2CODE
LOWtests/logging_callback_tests/base_test.py3CODE
5273 more matches not shown…
Self-Referential Comments1132 hits · 3508 pts
SeverityFileLineSnippetContext
MEDIUMterraform/litellm/gcp/.terraform.lock.hcl1# This file is maintained automatically by "terraform init".COMMENT
MEDIUM…aform/litellm/gcp/examples/default/.terraform.lock.hcl1# This file is maintained automatically by "terraform init".COMMENT
MEDIUMterraform/litellm/aws/.terraform.lock.hcl1# This file is maintained automatically by "terraform init".COMMENT
MEDIUM…aform/litellm/aws/examples/default/.terraform.lock.hcl1# This file is maintained automatically by "terraform init".COMMENT
MEDIUM…/litellm-dashboard/src/components/public_model_hub.tsx1905# Create a client that connects to the serverCOMMENT
MEDIUM…/litellm-dashboard/src/components/public_model_hub.tsx1945# Create a client that connects to the serverCOMMENT
MEDIUM…tellm-dashboard/src/components/AIHub/ModelHubTable.tsx1034# Create a client that connects to the serverCOMMENT
MEDIUM…terprise/enterprise_callbacks/send_emails/endpoints.py130 # Create a response with all events (enabled or disabled)COMMENT
MEDIUMtests/test_users.py353 # Create an additional key for user1COMMENT
MEDIUMtests/test_models.py533 # Create a teamCOMMENT
MEDIUMtests/logging_callback_tests/base_test.py41 # Create a mock response object with the structure you needCOMMENT
MEDIUM…ogging_callback_tests/test_standard_logging_payload.py479 # Create a mock Logging objectCOMMENT
MEDIUM…ogging_callback_tests/test_standard_logging_payload.py672 # Create a mock logging object with cost breakdownCOMMENT
MEDIUM…ogging_callback_tests/test_standard_logging_payload.py756 # Create a mock logging object without cost breakdownCOMMENT
MEDIUM…ging_callback_tests/test_logging_redaction_e2e_test.py322 # Create a simple mock object with output items that have reasoning summariesCOMMENT
MEDIUM…sts/logging_callback_tests/test_langfuse_unit_tests.py275 # Create a mock logging payload with tagsCOMMENT
MEDIUMtests/logging_callback_tests/test_spend_logs.py216 # Define the expected metadata keysCOMMENT
MEDIUMtests/logging_callback_tests/test_spend_logs.py359 # Create a standard logging payloadCOMMENT
MEDIUMtests/logging_callback_tests/test_spend_logs.py414 # Create a large string that exceeds the thresholdCOMMENT
MEDIUMtests/logging_callback_tests/test_spend_logs.py452 # Create a small string that's under the thresholdCOMMENT
MEDIUMtests/logging_callback_tests/test_langfuse_e2e_test.py153 # Create a mock Response objectCOMMENT
MEDIUM…ogging_callback_tests/test_opentelemetry_unit_tests.py130 # Create a mock spanCOMMENT
MEDIUM…ogging_callback_tests/test_opentelemetry_unit_tests.py191 # Create a mock spanCOMMENT
MEDIUMtests/logging_callback_tests/test_gcs_pub_sub.py190 # Create a mock for the async_httpx_client's post methodCOMMENT
MEDIUMtests/logging_callback_tests/test_gcs_pub_sub.py246 # Create a mock for the async_httpx_client's post methodCOMMENT
MEDIUM…s/logging_callback_tests/test_log_db_redis_services.py141 # Create a failing functionCOMMENT
MEDIUMtests/logging_callback_tests/test_alerting.py109# Create a mock environment for testingCOMMENT
MEDIUMtests/logging_callback_tests/test_alerting.py853 # Create a string buffer to capture log outputCOMMENT
MEDIUMtests/logging_callback_tests/test_datadog.py502 # Create the payloadCOMMENT
MEDIUMtests/logging_callback_tests/test_datadog.py538 # Create a standard payload with very long contentCOMMENT
MEDIUMtests/logging_callback_tests/test_datadog.py189 # Create a mock for the async_client's post methodCOMMENT
MEDIUMtests/logging_callback_tests/test_datadog.py405 # Create a mock for the async_client's post methodCOMMENT
MEDIUMtests/logging_callback_tests/test_datadog.py560 # Create the payloadCOMMENT
MEDIUM…ts/logging_callback_tests/test_generic_api_callback.py43 # Create a mock for the async_httpx_client's post methodCOMMENT
MEDIUM…ts/logging_callback_tests/test_generic_api_callback.py130 # Create a mock for the async_httpx_client's post methodCOMMENT
MEDIUM…ts/logging_callback_tests/test_generic_api_callback.py219 # Create a mock for the async_httpx_client's post methodCOMMENT
MEDIUM…ts/logging_callback_tests/test_generic_api_callback.py294 # Create a mock for the async_httpx_client's post methodCOMMENT
MEDIUM…ts/logging_callback_tests/test_generic_api_callback.py357 # Create a mock for the async_httpx_client's post methodCOMMENT
MEDIUM…ts/logging_callback_tests/test_generic_api_callback.py416 # Create a mock for the async_httpx_client's post methodCOMMENT
MEDIUMtests/litellm_utils_tests/test_aws_secret_manager.py175 # Create a primary secret with multiple key-value pairsCOMMENT
MEDIUMtests/litellm_utils_tests/test_utils.py693 # Create a test EmbeddingResponse with usage dataCOMMENT
MEDIUMtests/litellm_utils_tests/test_utils.py1647 # Create a mock response objectCOMMENT
MEDIUMtests/litellm_utils_tests/test_utils.py1726 # Create a mock response objectCOMMENT
MEDIUMtests/litellm_utils_tests/test_utils.py1833 # Create a mock CustomLogger classCOMMENT
MEDIUMtests/litellm_utils_tests/test_secret_manager.py32 # Define the path to the vertex_key.json fileCOMMENT
MEDIUMtests/litellm_utils_tests/test_secret_manager.py62 # Create a temporary fileCOMMENT
MEDIUMtests/litellm_utils_tests/test_secret_manager.py173 # Create a unique environment variable nameCOMMENT
MEDIUMtests/litellm_utils_tests/test_secret_manager.py187 # Create a temporary file inside a directory added to the allowlist.COMMENT
MEDIUMtests/litellm_utils_tests/test_secret_manager.py203 # Create a temporary fileCOMMENT
MEDIUMtests/litellm_utils_tests/test_secret_manager.py210 # Create a unique environment variable nameCOMMENT
MEDIUM…s/litellm_utils_tests/test_logging_callback_manager.py254 # Create a fresh ProxyLogging instanceCOMMENT
MEDIUMtests/litellm_utils_tests/test_hashicorp.py293 # Create a new instance with TLS cert configCOMMENT
MEDIUMtests/litellm_utils_tests/test_aiohttp_handler.py28 # Create a transport with the new helperCOMMENT
MEDIUMtests/litellm_utils_tests/test_aiohttp_handler.py96 # Create a simple httpx request to test withCOMMENT
MEDIUMtests/otel_tests/test_prometheus.py812 # Create a user with user_emailCOMMENT
MEDIUMtests/otel_tests/test_prometheus.py851 # Create a user with user_emailCOMMENT
MEDIUMtests/otel_tests/test_team_member_permissions.py230 # Create a teamCOMMENT
MEDIUMtests/otel_tests/test_team_member_permissions.py249 # Create a user keyCOMMENT
MEDIUMtests/otel_tests/test_team_member_permissions.py252 # Create a user keyCOMMENT
MEDIUMtests/otel_tests/test_team_member_permissions.py349 # Create a team with specific member permissionsCOMMENT
1072 more matches not shown…
Cross-File Repetition355 hits · 1775 pts
SeverityFileLineSnippetContext
HIGHtests/test_end_users.py0make 20 parallel calls to /user/new. assert all worked.STRING
HIGHtests/test_team.py0make 20 parallel calls to /user/new. assert all worked.STRING
HIGHtests/test_users.py0make 20 parallel calls to /user/new. assert all worked.STRING
HIGHtests/test_team.py0make sure only models user has access to are returnedSTRING
HIGHtests/test_keys.py0make sure only models user has access to are returnedSTRING
HIGHtests/test_users.py0make sure only models user has access to are returnedSTRING
HIGHtests/test_models.py0make sure only models user has access to are returnedSTRING
HIGHtests/large_text.py0alexander the great this article is about the ancient king of macedonia. for other uses, see alexander the great (disambSTRING
HIGHtests/proxy_unit_tests/large_text.py0alexander the great this article is about the ancient king of macedonia. for other uses, see alexander the great (disambSTRING
HIGHtests/old_proxy_tests/tests/large_text.py0alexander the great this article is about the ancient king of macedonia. for other uses, see alexander the great (disambSTRING
HIGHtests/local_testing/large_text.py0alexander the great this article is about the ancient king of macedonia. for other uses, see alexander the great (disambSTRING
HIGHtests/logging_callback_tests/base_test.py0abstract base test class that enforces a common test across all test classes.STRING
HIGH…sts/pass_through_tests/base_anthropic_messages_test.py0abstract base test class that enforces a common test across all test classes.STRING
HIGHtests/llm_responses_api_testing/base_responses_api.py0abstract base test class that enforces a common test across all test classes.STRING
HIGHtests/vector_store_tests/base_vector_store_test.py0abstract base test class that enforces a common test across all test classes.STRING
HIGHtests/llm_translation/base_rerank_unit_tests.py0abstract base test class that enforces a common test across all test classes.STRING
HIGHtests/llm_translation/base_embedding_unit_tests.py0abstract base test class that enforces a common test across all test classes.STRING
HIGHtests/llm_translation/base_llm_unit_tests.py0abstract base test class that enforces a common test across all test classes.STRING
HIGHtests/image_gen_tests/base_image_generation_test.py0abstract base test class that enforces a common test across all test classes.STRING
HIGHtests/logging_callback_tests/conftest.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGHtests/guardrails_tests/conftest.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGHtests/local_testing/conftest.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGH…/logging_callback_tests/test_custom_callback_router.py0the set of expected inputs to a custom handler for aSTRING
HIGHtests/proxy_unit_tests/test_custom_callback_input.py0the set of expected inputs to a custom handler for aSTRING
HIGHtests/local_testing/test_custom_callback_input.py0the set of expected inputs to a custom handler for aSTRING
HIGHtests/litellm_utils_tests/conftest.py0this fixture reloads litellm before every function. to speed up testing by removing callbacks being chained.STRING
HIGHtests/enterprise/conftest.py0this fixture reloads litellm before every function. to speed up testing by removing callbacks being chained.STRING
HIGHtests/unified_google_tests/conftest.py0this fixture reloads litellm before every function. to speed up testing by removing callbacks being chained.STRING
HIGHtests/proxy_admin_ui_tests/conftest.py0this fixture reloads litellm before every function. to speed up testing by removing callbacks being chained.STRING
HIGHtests/llm_responses_api_testing/conftest.py0this fixture reloads litellm before every function. to speed up testing by removing callbacks being chained.STRING
HIGHtests/vector_store_tests/conftest.py0this fixture reloads litellm before every function. to speed up testing by removing callbacks being chained.STRING
HIGHtests/router_unit_tests/conftest.py0this fixture reloads litellm before every function. to speed up testing by removing callbacks being chained.STRING
HIGHtests/proxy_unit_tests/conftest copy.py0this fixture reloads litellm before every function. to speed up testing by removing callbacks being chained.STRING
HIGHtests/mcp_tests/conftest.py0this fixture reloads litellm before every function. to speed up testing by removing callbacks being chained.STRING
HIGHtests/unified_google_tests/base_interactions_test.py0test creating an interaction with a simple string input.STRING
HIGH…m/interactions/test_google_interactions_integration.py0test creating an interaction with a simple string input.STRING
HIGH…ts/test_litellm/interactions/base_interactions_test.py0test creating an interaction with a simple string input.STRING
HIGHtests/vector_store_tests/rag/test_rag_s3_vectors.py0check required environment variables before each test.STRING
HIGHtests/vector_store_tests/rag/test_rag_bedrock.py0check required environment variables before each test.STRING
HIGHtests/vector_store_tests/rag/test_rag_vertex_ai.py0check required environment variables before each test.STRING
HIGHtests/search_tests/base_search_unit_tests.py0fixture to handle rate limit errors for all test methodsSTRING
HIGHtests/llm_translation/base_llm_unit_tests.py0fixture to handle rate limit errors for all test methodsSTRING
HIGHtests/image_gen_tests/test_image_edits.py0fixture to handle rate limit errors for all test methodsSTRING
HIGHtests/search_tests/base_search_unit_tests.py0test basic search functionality with a simple query.STRING
HIGHtests/search_tests/test_duckduckgo_search.py0test basic search functionality with a simple query.STRING
HIGHtests/search_tests/test_brave_search.py0test basic search functionality with a simple query.STRING
HIGHtests/search_tests/test_duckduckgo_search.py0test that validates the tavily search request payload structure without making real api calls.STRING
HIGHtests/search_tests/test_serper_search.py0test that validates the tavily search request payload structure without making real api calls.STRING
HIGHtests/search_tests/test_tavily_search.py0test that validates the tavily search request payload structure without making real api calls.STRING
HIGHtests/load_tests/test_otel_load_test.py0creates an async task for the litellm.acompletion function. this is just the task, but it is not run here. to run the taSTRING
HIGHtests/load_tests/test_langsmith_load_test.py0creates an async task for the litellm.acompletion function. this is just the task, but it is not run here. to run the taSTRING
HIGHtests/local_testing/test_alangfuse.py0creates an async task for the litellm.acompletion function. this is just the task, but it is not run here. to run the taSTRING
HIGHtests/code_coverage_tests/router_code_coverage.py0extracts all function names from a given python file.STRING
HIGH…code_coverage_tests/user_api_key_auth_code_coverage.py0extracts all function names from a given python file.STRING
HIGHtests/code_coverage_tests/pass_through_code_coverage.py0extracts all function names from a given python file.STRING
HIGHtests/code_coverage_tests/router_code_coverage.py0returns a set of function names that are called in test functions inside 'local_testing' and 'proxy_unit_tests' directorSTRING
HIGHtests/code_coverage_tests/pass_through_code_coverage.py0returns a set of function names that are called in test functions inside 'local_testing' and 'proxy_unit_tests' directorSTRING
HIGH…code_coverage_tests/user_api_key_auth_code_coverage.py0returns a set of function names that are called in test functions inside 'local_testing' and 'proxy_unit_tests' directorSTRING
HIGHtests/llm_translation/test_openai.py0test that tool calls with no arguments is translated correctly. relevant issue: https://github.com/berriai/litellm/issueSTRING
HIGHtests/llm_translation/test_mistral_api.py0test that tool calls with no arguments is translated correctly. relevant issue: https://github.com/berriai/litellm/issueSTRING
295 more matches not shown…
Deep Nesting2020 hits · 1450 pts
SeverityFileLineSnippetContext
LOWci_cd/run_migration.py198CODE
LOW…se/litellm_enterprise/proxy/vector_stores/endpoints.py129CODE
LOW…se/litellm_enterprise/proxy/vector_stores/endpoints.py248CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py303CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py499CODE
LOW…ise/litellm_enterprise/proxy/auth/user_api_key_auth.py9CODE
LOW…itellm_enterprise/proxy/hooks/managed_vector_stores.py301CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py427CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py661CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py681CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py725CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1078CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1543CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1677CODE
LOW…rprise/proxy/management_endpoints/project_endpoints.py90CODE
LOW…rprise/proxy/management_endpoints/project_endpoints.py486CODE
LOW…rprise/proxy/management_endpoints/project_endpoints.py831CODE
LOW…lm_enterprise/enterprise_callbacks/secret_detection.py467CODE
LOW…e/litellm_enterprise/enterprise_callbacks/llm_guard.py96CODE
LOW…m_enterprise/enterprise_callbacks/callback_controls.py16CODE
LOW…erprise/enterprise_callbacks/send_emails/base_email.py418CODE
LOW…terprise/enterprise_callbacks/send_emails/endpoints.py24CODE
LOWenterprise/enterprise_hooks/blocked_user_list.py56CODE
LOWtests/test_team.py41CODE
LOWtests/test_team.py728CODE
LOWtests/eval_swe_bench.py212CODE
LOWtests/eval_swe_bench.py249CODE
LOWtests/eval_swe_bench.py359CODE
LOWtests/_vcr_conftest_common.py262CODE
LOW…ging_callback_tests/test_logging_redaction_e2e_test.py192CODE
LOW…ging_callback_tests/test_logging_redaction_e2e_test.py236CODE
LOW…gging_callback_tests/test_unit_tests_init_callbacks.py91CODE
LOWtests/logging_callback_tests/test_langfuse_e2e_test.py30CODE
LOWtests/logging_callback_tests/test_gcs_pub_sub.py50CODE
LOW…ging_callback_tests/test_bedrock_knowledgebase_hook.py186CODE
LOWtests/logging_callback_tests/test_datadog.py170CODE
LOWtests/logging_callback_tests/test_otel_logging.py42CODE
LOWtests/litellm_utils_tests/test_utils.py1361CODE
LOWtests/litellm_utils_tests/test_proxy_budget_reset.py434CODE
LOWtests/litellm_utils_tests/test_proxy_budget_reset.py471CODE
LOWtests/otel_tests/test_prometheus.py86CODE
LOW…erprise_callbacks/test_prometheus_logging_callbacks.py2291CODE
LOW…ise/litellm_enterprise/integrations/test_prometheus.py88CODE
LOWtests/agent_tests/local_only_agent_tests/test_a2a.py272CODE
LOW…ent_tests/local_only_agent_tests/local_vertex_agent.py34CODE
LOW…sts/pass_through_tests/base_anthropic_messages_test.py72CODE
LOW…ss_through_tests/test_openai_assistants_passthrough.py61CODE
LOWtests/unified_google_tests/test_google_ai_studio.py30CODE
LOWtests/proxy_admin_ui_tests/test_key_management.py738CODE
LOW…llm_responses_api_testing/test_openai_responses_api.py282CODE
LOW…llm_responses_api_testing/test_openai_responses_api.py995CODE
LOW…ses_api_testing/test_google_ai_studio_responses_api.py190CODE
LOWtests/llm_responses_api_testing/base_responses_api.py150CODE
LOWtests/llm_responses_api_testing/base_responses_api.py275CODE
LOWtests/llm_responses_api_testing/base_responses_api.py788CODE
LOWtests/llm_responses_api_testing/test_responses_hooks.py749CODE
LOWtests/documentation_tests/test_circular_imports.py7CODE
LOWtests/documentation_tests/test_circular_imports.py20CODE
LOWtests/documentation_tests/test_circular_imports.py71CODE
LOWtests/documentation_tests/test_requests_lib_usage.py11CODE
1960 more matches not shown…
Modern AI Meta-Vocabulary438 hits · 1304 pts
SeverityFileLineSnippetContext
MEDIUMterraform/provider/docs/resources/vector_store.md118### Vertex AI RAG EngineCOMMENT
MEDIUMterraform/provider/docs/resources/vector_store.md243### Vertex AI RAG EngineCOMMENT
MEDIUMterraform/provider/docs/resources/vector_store.md247 vector_store_id = "6917529027641081856" # Your Vertex AI RAG Engine IDCODE
MEDIUM…shboard)/guardrails/_components/add_guardrail_form.tsx575 // For some guardrails, the config values need to be in litellm_paramsCOMMENT
MEDIUM…hboard)/guardrails/_components/edit_guardrail_form.tsx171 // For some guardrails, the config values need to be in litellm_paramsCOMMENT
MEDIUM…guardrails/_components/custom_code/CustomCodeModal.tsx534 window.open("https://models.litellm.ai/guardrails", "_blank");CODE
MEDIUM…guardrails/_components/custom_code/CustomCodeModal.tsx753 onClick={() => window.open("https://github.com/BerriAI/litellm-guardrails", "_blank")}CODE
MEDIUM…/app/(dashboard)/agents/_components/add_agent_form.tsx69 // Tracing & guardrails stateCOMMENT
MEDIUM…ard/src/app/(dashboard)/policies/_components/index.tsx295 // Create selected guardrailsCOMMENT
MEDIUM…ard/src/app/(dashboard)/policies/_components/index.tsx308 // Refresh guardrails listCOMMENT
MEDIUM…ard/src/app/(dashboard)/policies/_components/index.tsx387 href="https://docs.litellm.ai/docs/proxy/guardrails/guardrail_policies"CODE
MEDIUM…ard/src/app/(dashboard)/policies/_components/index.tsx425 href="https://docs.litellm.ai/docs/proxy/guardrails/guardrail_policies"CODE
MEDIUM…ard/src/app/(dashboard)/policies/_components/index.tsx557 href="https://docs.litellm.ai/docs/proxy/guardrails/guardrail_policies#attachments"CODE
MEDIUM…c/app/(dashboard)/policies/_components/policy_info.tsx41 // Also fetch resolved guardrailsCOMMENT
MEDIUM…rd)/policies/_components/guardrail_selection_modal.tsx41 // Initialize selection: select only new guardrails by defaultCOMMENT
MEDIUM…ashboard)/policies/_components/ai_suggestion_modal.tsx295 // Keep existing guardrails until streaming completes to avoid temporary empty payloads.COMMENT
MEDIUM…app/(dashboard)/hooks/guardrails/useGuardrails.test.ts220 // Mock API returning empty guardrails arrayCOMMENT
MEDIUM…/litellm-dashboard/src/components/add_pass_through.tsx77 // Add guardrails to formValues (only if not empty)COMMENT
MEDIUMui/litellm-dashboard/src/components/model_info_view.tsx1021 href="https://docs.litellm.ai/docs/proxy/guardrails/quick_start"CODE
MEDIUMui/litellm-dashboard/src/components/Teams.tsx184 // Add this useEffect to fetch guardrailsCOMMENT
MEDIUMui/litellm-dashboard/src/components/Teams.tsx841 href="https://docs.litellm.ai/docs/proxy/guardrails/quick_start"CODE
MEDIUMui/litellm-dashboard/src/components/Teams.tsx895 href="https://docs.litellm.ai/docs/proxy/guardrails/guardrail_policies"CODE
MEDIUM…mponents/view_logs/GuardrailViewer/GuardrailViewer.tsx345 // Pre-call guardrails — use modeMatches so array modes (e.g. ["pre_call", "post_call"])COMMENT
MEDIUM…mponents/view_logs/GuardrailViewer/GuardrailViewer.tsx376 // During-call guardrails (rare)COMMENT
MEDIUM…mponents/view_logs/GuardrailViewer/GuardrailViewer.tsx388 // Post-call guardrailsCOMMENT
MEDIUM…oard/src/components/llm_calls/chat_completion.test.tsx97 undefined, // guardrailsCODE
MEDIUM…oard/src/components/llm_calls/chat_completion.test.tsx160 undefined, // guardrailsCODE
MEDIUM…oard/src/components/llm_calls/chat_completion.test.tsx207 undefined, // guardrailsCODE
MEDIUM…oard/src/components/llm_calls/chat_completion.test.tsx240 undefined, // guardrailsCODE
MEDIUM…hboard/src/components/llm_calls/responses_api.test.tsx112 undefined, // guardrailsCODE
MEDIUMui/litellm-dashboard/src/components/team/TeamInfo.tsx311 // Fetch resolved guardrails for all policiesCOMMENT
MEDIUMui/litellm-dashboard/src/components/team/TeamInfo.tsx1249 href="https://docs.litellm.ai/docs/proxy/guardrails/quick_start"CODE
MEDIUMui/litellm-dashboard/src/components/team/TeamInfo.tsx1321 href="https://docs.litellm.ai/docs/proxy/guardrails/guardrail_policies"CODE
MEDIUM…m-dashboard/src/components/templates/key_info_view.tsx97 // Fetch resolved guardrails for all policiesCOMMENT
MEDIUM…shboard/src/components/add_model/advanced_settings.tsx150 href="https://docs.litellm.ai/docs/proxy/guardrails/quick_start"CODE
MEDIUM…nts/common_components/PassThroughGuardrailsSection.tsx33 // Create new settings object with selected guardrailsCOMMENT
MEDIUM…shboard/src/components/organisms/create_key_button.tsx1219 href="https://docs.litellm.ai/docs/proxy/guardrails/quick_start"CODE
MEDIUM…shboard/src/components/organisms/create_key_button.tsx1255 href="https://docs.litellm.ai/docs/proxy/guardrails/quick_start"CODE
MEDIUM…shboard/src/components/organisms/create_key_button.tsx1282 href="https://docs.litellm.ai/docs/proxy/guardrails/guardrail_policies"CODE
MEDIUMtests/otel_tests/test_guardrails.py175 # test no guardrails triggered for key without guardrailsCOMMENT
MEDIUMtests/otel_tests/test_guardrails.py187 # test guardrails triggered for key with guardrailsCOMMENT
MEDIUMtests/otel_tests/test_guardrails.py273 # Create team with guardrailsCOMMENT
MEDIUMtests/otel_tests/test_guardrails.py295 # Test no guardrails triggered for key without a teamCOMMENT
MEDIUMtests/vector_store_tests/rag/test_rag_s3_vectors.py62 # dimension is auto-detected from embedding model (text-embedding-3-small = 1536)COMMENT
MEDIUMtests/vector_store_tests/rag/test_rag_openai.py76 # Query with RAGCOMMENT
MEDIUMtests/vector_store_tests/rag/test_rag_openai.py123 # Query with RAG and rerankCOMMENT
MEDIUMtests/proxy_unit_tests/test_proxy_routes.py115 # LiteLLM native RAG routesCOMMENT
MEDIUMtests/proxy_unit_tests/test_key_generate_prisma.py3279 # team update with guardrailsCOMMENT
MEDIUMtests/mcp_tests/test_mcp_server.py2936 # - and inside `call_tool` for guardrails/hooksCOMMENT
MEDIUMtests/mcp_tests/test_mcp_guardrails.py694 proxy_logging = MockProxyLogging([]) # No guardrailsCODE
MEDIUMtests/load_tests/test_linear_memory_growth.py25 limit_memory, # noqa: F401 # pytest fixture used via dependency injectionCODE
MEDIUMtests/load_tests/test_linear_memory_growth.py26 mock_server, # noqa: F401 # pytest fixture used via dependency injectionCODE
MEDIUMtests/load_tests/test_linear_memory_growth.py28 test_router, # noqa: F401 # pytest fixture used via dependency injectionCODE
MEDIUMtests/llm_translation/test_bedrock_completion.py1338 "text": "<environment_details>\n# VSCode Visible Files\ncomputer-vision/hm-open3d/src/main.py\n\CODE
MEDIUMtests/llm_translation/test_bedrock_completion.py1641 "text": "<environment_details>\n# VSCode Visible Files\ncomputer-vision/hm-open3d/src/main.py\n\CODE
MEDIUMtests/llm_translation/test_bedrock_completion.py1864 "text": "<environment_details>\n# VSCode Visible Files\ncomputer-vision/hm-open3d/src/main.py\n\CODE
MEDIUMtests/guardrails_tests/conftest.py3# xdist-compatible test isolation for guardrails tests.COMMENT
MEDIUMtests/guardrails_tests/test_guardrail_load_balancing.py45 # Create two mock guardrails with same nameCOMMENT
MEDIUMtests/guardrails_tests/test_guardrail_load_balancing.py49 # Create router with multiple guardrails of same nameCOMMENT
MEDIUMtests/guardrails_tests/test_guardrail_load_balancing.py92 # Both guardrails should have been called (load balanced)COMMENT
378 more matches not shown…
Redundant / Tautological Comments842 hits · 1245 pts
SeverityFileLineSnippetContext
LOWui/litellm-dashboard/build_ui_custom_path.sh3# Check if UI_BASE_PATH argument is providedCOMMENT
LOWui/litellm-dashboard/build_ui_custom_path.sh13# Check if nvm is not installedCOMMENT
LOWui/litellm-dashboard/build_ui_custom_path.sh38# Check if nvm use was successfulCOMMENT
LOWui/litellm-dashboard/build_ui_custom_path.sh47# Check if the build was successfulCOMMENT
LOWui/litellm-dashboard/build_ui.sh3# Check if nvm is not installedCOMMENT
LOWui/litellm-dashboard/build_ui.sh28# Check if nvm use was successfulCOMMENT
LOWui/litellm-dashboard/build_ui.sh38# Check if the build was successfulCOMMENT
LOWdocker/build_admin_ui.sh20# Check if we are on macOSCOMMENT
LOW…se/litellm_enterprise/proxy/vector_stores/endpoints.py67 # Check if vector store already existsCOMMENT
LOW…se/litellm_enterprise/proxy/vector_stores/endpoints.py214 # Check if vector store existsCOMMENT
LOW…_enterprise/proxy/common_utils/check_responses_cost.py152 # Check if response is in a terminal stateCOMMENT
LOW…terprise/litellm_enterprise/proxy/auth/route_checks.py16 ## Check if DISABLE_LLM_API_ENDPOINTS is setCOMMENT
LOW…itellm_enterprise/proxy/hooks/managed_vector_stores.py335 # Check if it's a managed vector store IDCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1082 ## Check if unified_file_id is in the responseCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1332 # Check if the scheduler has the batch cost checking job registeredCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1337 # Check if the check_batch_cost_job exists in the schedulerCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1415 # Check if any referenced file ID matches the file we're trying to deleteCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py463 # Check if any files are stored in storage backends and need base64 conversionCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1221 ## Check if unified_file_id is in the responseCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1446 # Check if batch polling is enabledCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1451 # Check if file is referenced by any non-terminal batchesCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1507 # Check if file deletion should be blocked due to batch referencesCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1601 # Check if this is a base64 encoded unified file IDCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1705 # Set format to help Gemini determine mime typeCOMMENT
LOW…rprise/proxy/management_endpoints/project_endpoints.py388 # Check if user has permission to create projects for this teamCOMMENT
LOW…rprise/proxy/management_endpoints/project_endpoints.py409 # Check if project_id already existsCOMMENT
LOW…rprise/proxy/management_endpoints/project_endpoints.py763 # Check if user is admin (only admins can delete projects)COMMENT
LOW…rprise/proxy/management_endpoints/project_endpoints.py780 # Check if project existsCOMMENT
LOW…rprise/proxy/management_endpoints/project_endpoints.py793 # Check if there are any keys associated with this projectCOMMENT
LOW…rprise/proxy/management_endpoints/project_endpoints.py870 # Check if user has access to this project (admin or team member)COMMENT
LOW…m_enterprise/enterprise_callbacks/callback_controls.py91 # Check if admin has disabled this featureCOMMENT
LOW…erprise/enterprise_callbacks/send_emails/base_email.py133 # Check if API key should be included in emailCOMMENT
LOW…erprise/enterprise_callbacks/send_emails/base_email.py180 # Check if API key should be included in emailCOMMENT
LOW…se/litellm_enterprise/integrations/custom_guardrail.py44 # Check if any request tag matches a Mode tag keyCOMMENT
LOWtests/test_entrypoint.py46 # Print the output for debugging purposesCOMMENT
LOW…sts/logging_callback_tests/test_langfuse_unit_tests.py130 # Check if the logger is cachedCOMMENT
LOWtests/logging_callback_tests/test_gcs_pub_sub.py56 # Check if current path should be ignoredCOMMENT
LOWtests/logging_callback_tests/test_alerting.py884 # Check if the payload was loggedCOMMENT
LOW…ging_callback_tests/test_bedrock_knowledgebase_hook.py211 # Check if this chunk has search_results in provider_specific_fieldsCOMMENT
LOWtests/logging_callback_tests/test_datadog.py144 standard_payload["status"] = "failure" # Set status to failureCODE
LOWtests/litellm_utils_tests/test_utils.py1208 # Set force_ipv4 to TrueCOMMENT
LOWtests/litellm_utils_tests/test_secret_manager.py40 # Read the file contentCOMMENT
LOWtests/litellm_utils_tests/test_health_check.py110 # Check if response is successful (no error)COMMENT
LOWtests/litellm_utils_tests/test_health_check.py114 # Check if error is a transient Azure internal server errorCOMMENT
LOWtests/litellm_utils_tests/test_bedrock_token_counter.py98 # Check if the model doesn't support token countingCOMMENT
LOWtests/otel_tests/test_prometheus.py99 # Check if the request failed as expectedCOMMENT
LOWtests/otel_tests/test_prometheus.py108 # Check if the failure metric is present and correct - use pattern matching for robustnessCOMMENT
LOWtests/otel_tests/test_prometheus.py125 # Check if either pattern is in metrics and contains required fieldsCOMMENT
LOWtests/otel_tests/test_prometheus.py191 # Check if the request succeeded as expectedCOMMENT
LOWtests/otel_tests/test_prometheus.py208 # Check if the success metric is present and correct - use flexible matchingCOMMENT
LOWtests/otel_tests/test_prometheus.py315 # Check if successful fallback metric is incremented - use flexible matchingCOMMENT
LOWtests/otel_tests/test_prometheus.py335 # Check if failed fallback metric is incremented - use flexible matchingCOMMENT
LOW…tellm_enterprise/integrations/test_custom_guardrail.py212 ) # Set premium_user to TrueCODE
LOWtests/pass_through_tests/test_vertex_ai.py29 # Read the file contentCOMMENT
LOWtests/pass_through_tests/test_anthropic_passthrough.py75 # Check if spend data exists and has entriesCOMMENT
LOWtests/pass_through_tests/test_anthropic_passthrough.py241 # Check if spend data exists and has entriesCOMMENT
LOW…/openai_endpoints_tests/test_openai_files_endpoints.py99 assert content # Check if content is not emptyCODE
LOWtests/unified_google_tests/base_google_test.py38 # Read the file contentCOMMENT
LOWtests/proxy_admin_ui_tests/test_usage_endpoints.py217 # Check if the response has the expected shape for both admin and internal userCOMMENT
LOWtests/proxy_admin_ui_tests/test_usage_endpoints.py242 # Check if the lists are sorted by total_spend in descending orderCOMMENT
782 more matches not shown…
Docstring Block Structure205 hits · 1025 pts
SeverityFileLineSnippetContext
HIGH…se/litellm_enterprise/proxy/audit_logging_endpoints.py181 Get detailed information about a specific audit log entry by its ID. Args: id (str): The unique identiSTRING
HIGH…se/litellm_enterprise/proxy/auth/custom_sso_handler.py32 Allow a user to execute their custom code to parse incoming request headers and return a OpenID object STRING
HIGH…itellm_enterprise/proxy/hooks/managed_vector_stores.py264 Check if user has access to a managed vector store in request data. Args: data: ReSTRING
HIGHtests/local_testing/test_alangfuse.py57 Searches the given log file for logs containing the "/api/public" string. Parameters: - log_file_path (strSTRING
HIGH…mock_guardrail_server/mock_bedrock_guardrail_server.py164 Verify the Bearer token from the Authorization header. Args: authorization: The Authorization header vSTRING
HIGH…mpt_management_server/mock_prompt_management_server.py207 Get a prompt by ID with optional filtering. This endpoint implements the LiteLLM Generic Prompt Management APISTRING
HIGHlitellm/cost_calculator.py1956 Default image cost calculator for image generation Args: model (str): Model name image_responsSTRING
HIGHlitellm/cost_calculator.py2030 Default video cost calculator for video generation Args: model (str): Model name duration_secoSTRING
HIGHlitellm/utils.py2145 Check if the given model supports system messages and return a boolean value. Parameters: model (str): TheSTRING
HIGHlitellm/utils.py2166 Check if the given model supports web search and return a boolean value. Parameters: model (str): The modeSTRING
HIGHlitellm/utils.py2187 Check if the given model supports URL context and return a boolean value. Parameters: model (str): The modSTRING
HIGHlitellm/utils.py2208 Check if the given model supports native streaming and return a boolean value. Parameters: model (str): ThSTRING
HIGHlitellm/utils.py2291 Check if the given model supports function calling and return a boolean value. Parameters: model (str): ThSTRING
HIGHlitellm/utils.py2333 Check if the given model supports function calling and return a boolean value. Parameters: model (str): ThSTRING
HIGHlitellm/utils.py2436 Check if the given model supports prompt caching and return a boolean value. Parameters: model (str): The STRING
HIGHlitellm/utils.py2457 Check if the given model supports computer use and return a boolean value. Parameters: model (str): The moSTRING
HIGHlitellm/utils.py4778 Get the maximum number of output tokens allowed for a given model. Parameters: model (str): The name of thSTRING
HIGHlitellm/utils.py5580 Get a dict for the maximum tokens (context window), input_cost_per_token, output_cost_per_token for a given model.STRING
HIGHlitellm/utils.py7447 Ensures all user messages are valid OpenAI chat completion messages. Args: messages: List of message dSTRING
HIGHlitellm/router.py10893 Returns deployments available for pass-through endpoints (based on load balancing strategy) Similar toSTRING
HIGHlitellm/main.py457 Asynchronously executes a litellm.completion() call for any of litellm supported llms (example gpt-4, gpt-3.5-turboSTRING
HIGHlitellm/main.py824 Generate a mock completion response for testing or debugging purposes. This is a helper function that simulateSTRING
HIGHlitellm/main.py5912 Embedding function that calls an API to generate embeddings for the given input. Parameters: - model: The STRING
HIGHlitellm/proxy/common_utils/performance_utils.py199Wrap a function directly with line_profiler. This is the recommended way to profile functions, especially closures STRING
HIGHlitellm/proxy/common_utils/path_utils.py13 Join path components and verify the result stays within base_dir. Resolves symlinks and '..' sequences, then cSTRING
HIGHlitellm/proxy/common_utils/path_utils.py41 Extract a safe filename from a user-supplied path. Strips all directory components (both Unix and Windows sepaSTRING
HIGH…proxy/guardrails/guardrail_hooks/bedrock_guardrails.py1645 Apply Bedrock guardrail to a batch of texts for testing purposes. This method allows users to test BedSTRING
HIGH…ils/guardrail_hooks/prompt_security/prompt_security.py85 Apply Prompt Security guardrail to the given inputs. This method is called by LiteLLM's guardrail framSTRING
HIGH…s/guardrail_hooks/zscaler_ai_guard/zscaler_ai_guard.py129 Apply Zscaler AI Guard guardrail to batch of texts. Args: inputs: Dictionary containing teSTRING
HIGH…s/guardrail_hooks/custom_code/custom_code_guardrail.py198 Apply the custom code guardrail to the inputs. This method calls the user-defined apply_guardrail funcSTRING
HIGH…s/guardrail_hooks/custom_code/custom_code_guardrail.py294 Process the result from the custom code function. Args: result: The return value from applSTRING
HIGH…roxy/guardrails/guardrail_hooks/qualifire/qualifire.py403 Apply Qualifire guardrail to the given inputs. This method is called by the unified guardrail system fSTRING
HIGH…ellm/proxy/guardrails/guardrail_hooks/pillar/pillar.py301 Pre-call hook to scan the request for security threats before sending to LLM. Args: user_aSTRING
HIGH…ellm/proxy/guardrails/guardrail_hooks/pillar/pillar.py345 During-call hook to scan the request in parallel with LLM processing. Args: data: Request STRING
HIGH…ellm/proxy/guardrails/guardrail_hooks/pillar/pillar.py379 Post-call hook to scan LLM responses before returning to user. Args: data: Original requesSTRING
HIGH…ellm/proxy/guardrails/guardrail_hooks/pillar/pillar.py427 Core method to run the Pillar guardrail scan. Args: data: Request data containing messagesSTRING
HIGH…ellm/proxy/guardrails/guardrail_hooks/pillar/pillar.py473 Handle API errors based on fallback_on_error configuration. Args: error: The exception thaSTRING
HIGH…s/guardrail_hooks/crowdstrike_aidr/crowdstrike_aidr.py288 Makes the API call to the CrowdStrike AIDR AI Guard endpoint. The function itself will raise an error iSTRING
HIGH…roxy/guardrails/guardrail_hooks/enkryptai/enkryptai.py439 Apply EnkryptAI guardrail to a batch of texts. Args: inputs: Dictionary containing texts aSTRING
HIGH…ils/guardrail_hooks/litellm_content_filter/patterns.py60 Get a compiled regex pattern by name. Args: pattern_name: Name of the prebuilt pattern Returns: STRING
HIGH…ardrail_hooks/litellm_content_filter/content_filter.py320 Resolve a category file path that may be relative. Paths in policy templates (e.g. category_file) are STRING
HIGH…ardrail_hooks/litellm_content_filter/content_filter.py1312 Apply all content filtering checks to a single text. This method performs: 1. Category keywordSTRING
HIGH…ardrail_hooks/litellm_content_filter/content_filter.py1755 Apply content filtering guardrail to a batch of texts. This method checks for sensitive patterns and bSTRING
HIGH…/proxy/guardrails/guardrail_hooks/grayswan/grayswan.py167 Apply Gray Swan guardrail to extracted text content. This method is called by the unified guardrail sySTRING
HIGH…/proxy/guardrails/guardrail_hooks/grayswan/grayswan.py414 Process GraySwan API response and handle violations. Args: response_json: Response from GrSTRING
HIGH…ellm/proxy/guardrails/guardrail_hooks/pangea/pangea.py103 Makes the API call to the Pangea AI Guard endpoint. The function itself will raise an error in the caseSTRING
HIGH…l_hooks/generic_guardrail_api/generic_guardrail_api.py360 Apply the Generic Guardrail API to the given inputs. This is the main method that gets called by the fSTRING
HIGH…proxy/guardrails/guardrail_hooks/openai/moderations.py185 Apply OpenAI moderation guardrail using the unified guardrail interface. This method is called by the STRING
HIGH…tellm/proxy/_experimental/mcp_server/rest_endpoints.py409 Resolve allowed MCP servers for a tool call with IP filtering. Args: request: The HTTP reqSTRING
HIGHlitellm/proxy/_experimental/mcp_server/server.py880 Call a specific tool with the provided arguments Args: name (str): Name of the tool to callSTRING
HIGH…oxy/_experimental/mcp_server/discoverable_endpoints.py148 Decode an encrypted state to retrieve all OAuth session data. Args: encrypted_state: The encrypted strSTRING
HIGH…m/proxy/_experimental/mcp_server/mcp_server_manager.py3473 Filter arguments to only include allowed parameters for the given tool. Args: tool_name: NSTRING
HIGH…m/proxy/_experimental/mcp_server/mcp_server_manager.py3826 Call a regular MCP tool using the MCP client. Args: mcp_server: The MCP server configuratiSTRING
HIGH…_experimental/mcp_server/auth/user_api_key_auth_mcp.py154 Process and validate MCP request headers from the ASGI scope. This includes: 1. Extracting and STRING
HIGH…roxy/openai_files_endpoints/storage_backend_service.py42 Upload a file to a storage backend and create a file object. Args: file_data: File data diSTRING
HIGHlitellm/proxy/openai_files_endpoints/common_utils.py95 Encode a file/batch ID with model routing information. Format: <prefix><base64(litellm:<original_id>;model,<moSTRING
HIGHlitellm/proxy/openai_files_endpoints/common_utils.py262 Retrieve API credentials for a model from the LLM Router. Args: llm_router: LiteLLM Router instance STRING
HIGHlitellm/proxy/openai_files_endpoints/common_utils.py408 Orchestrate model-based credential routing for file operations. Args: file_id: File ID (may contain emSTRING
HIGHlitellm/proxy/auth/route_checks.py538 Check if route matches the allowed_route pattern. Supports both exact match and prefix match. STRING
HIGHlitellm/proxy/auth/login_utils.py56 Get UI username and password from environment variables or master key. Args: master_key: Master key foSTRING
145 more matches not shown…
Cross-Language Confusion186 hits · 768 pts
SeverityFileLineSnippetContext
HIGHci_cd/run_migration.py77 print(f" git fetch origin && git rebase origin/{base_branch}", file=out)CODE
HIGHci_cd/run_migration.py177 " 1. git fetch origin && git status # confirm branch is up to date", file=outCODE
HIGH…gh_unit_tests/test_unit_test_anthropic_pass_through.py252 'data: {"type":"message_start","message":{"id":"msg_01G7T4YSBzHjmgTyizv1UfkB","type":"message","role":"assistantCODE
HIGH…gh_unit_tests/test_unit_test_anthropic_pass_through.py306 'data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"output_tokens":CODE
HIGHtests/proxy_unit_tests/messages_with_counts.py732 null,CODE
HIGH…s/proxy_behavior/management/test_team_budget_limits.py377 """A team admin cannot strip the team's cap (max_budget=null); removing theSTRING
HIGH…s/proxy_behavior/management/test_team_budget_limits.py401 """A proxy admin may remove a team's cap (max_budget=null)."""STRING
HIGHtests/llm_translation/test_openai.py926 "description": 'Executes a given bash command in a persistent shell session with optional timeout, eCODE
HIGHtests/llm_translation/test_prompt_factory.py342 "arguments": '{"completed_steps": [], "next_steps": [{"tool_name": "AccountingResearchTool", "deCODE
HIGHtests/llm_translation/test_prompt_factory.py351 "content": '{"completed_steps":[],"next_steps":[{"tool_name":"AccountingResearchTool","description":"ResearcCODE
HIGHtests/llm_translation/test_bedrock_completion.py1330 "content": "You are Claude Dev, a highly skilled software developer with extensive knowledge in many proCODE
HIGHtests/llm_translation/test_anthropic_completion.py659 "text": '<extra_info>\nThe following information has been included based on a keyword match for "gitCODE
HIGHtests/test_litellm/test_video_generation.py1308 """first_id / last_id may be absent or null; should not raise."""STRING
HIGH…/test_litellm/test_anthropic_beta_headers_filtering.py407 must be forwarded instead of stripped (it was previously mapped to null,STRING
HIGH…/test_litellm/test_anthropic_beta_headers_filtering.py419 mapped to null) silently re-enables Anthropic's server-side buffering ofSTRING
HIGHtests/test_litellm/test__types.py10 When budget_id is null, DB join returns no litellm_budget_table key.STRING
HIGHtests/test_litellm/test__types.py17 # litellm_budget_table intentionally absent (as DB join returns when budget_id is null)COMMENT
HIGHtests/test_litellm/test_check_licenses.py5legacy ``info.license`` field null, so the checker must read the new field (andSTRING
HIGHtests/test_litellm/types/test_types_utils.py249 Test that invalid (non-list, non-null) top_logprobs values are stillSTRING
HIGHtests/test_litellm/types/test_types_utils.py250 rejected by Pydantic validation. The validator only normalizes null,STRING
HIGHtests/test_litellm/types/llms/test_types_llms_openai.py280 status=null).STRING
HIGH…s/test_litellm/proxy/test_common_request_processing.py1142 'data: {"error": {"code": null, "message": "code is null"}}',CODE
HIGH…t_litellm/proxy/guardrails/test_guardrail_endpoints.py1672 """List submissions only returns team guardrails (team_id not null)."""STRING
HIGH…xy/guardrails/guardrail_hooks/test_panw_prisma_airs.py2427 b'data: {"type":"content_block_delta","index":0,"delta":null}\n',CODE
HIGH…xy/guardrails/guardrail_hooks/test_panw_prisma_airs.py2410 """Non-dict JSON (null, arrays, ints) should be silently skipped."""STRING
HIGH…/guardrails/guardrail_hooks/test_bedrock_guardrails.py1468 # No BLOCKED actions found (all lists null) → should return FalseCOMMENT
HIGH…roxy/spend_tracking/test_spend_management_endpoints.py2001 "metadata": '{"applied_guardrails": [], "batch_models": null, "mcp_tool_call_metadata": null, "vectoCODE
HIGH…roxy/spend_tracking/test_spend_management_endpoints.py2097 "metadata": '{"applied_guardrails": [], "batch_models": null, "mcp_tool_call_metadata": null, "vectoCODE
HIGH…roxy/spend_tracking/test_spend_management_endpoints.py2191 "metadata": '{"applied_guardrails": [], "batch_models": null, "mcp_tool_call_metadata": null, "vectoCODE
HIGH…sts/test_litellm/proxy/memory/test_memory_endpoints.py659 expectation of `PUT {"metadata": null}`.STRING
HIGH…/proxy/_experimental/mcp_server/test_mcp_sigv4_auth.py1099 # Credentials should be cleared. The clear reaches prisma as Json(None) (SQL null), whichCOMMENT
HIGH…xy/_experimental/mcp_server/test_mcp_partial_update.py622 # The clear must reach prisma as Json(None) (SQL null), never a raw None, which prisma rejects.COMMENT
HIGH…xy/_experimental/mcp_server/test_mcp_partial_update.py24 """The clear sentinel after the edge translation: prisma Json(None) (SQL null) or a bare None."""STRING
HIGH…xy/_experimental/mcp_server/test_mcp_partial_update.py396 columns null) must move the settings to the columns and drop them from theSTRING
HIGH…roxy/ui_crud_endpoints/test_proxy_setting_endpoints.py720 # Send mixed SSO settings - some null, some validCOMMENT
HIGH…lm/proxy/management_endpoints/test_budget_endpoints.py351 """Clearing budget_duration (explicit null) must not recompute against a None duration."""STRING
HIGH…xy/management_endpoints/test_access_group_endpoints.py1315 # Verify the DB update was called with [] (not null) for list fieldsCOMMENT
HIGH…ellm/proxy/management_endpoints/test_team_endpoints.py4806 (max_budget=null), which is the strongest possible raise (finite -> unlimited).STRING
HIGH…ellm/proxy/management_endpoints/test_team_endpoints.py9087 When budget_duration is explicitly set to null, _set_budget_reset_atSTRING
HIGH…ellm/proxy/management_endpoints/test_team_endpoints.py9187 When team_member_budget is explicitly null, clear_team_member_budget_fieldsSTRING
HIGH…ellm/proxy/management_endpoints/test_team_endpoints.py9233 When team_member_rpm_limit and team_member_tpm_limit are explicitly null,STRING
HIGH…ellm/proxy/management_endpoints/test_team_endpoints.py9283 When all team_member fields are explicitly null, all correspondingSTRING
HIGH…/management_endpoints/test_key_management_endpoints.py1791 """budget_limits=[] / None must serialize to JSON null, never reach Prisma raw."""STRING
HIGH…/management_endpoints/test_key_management_endpoints.py13173 When budget_duration is explicitly set to null, prepare_key_update_dataSTRING
HIGH…tellm/proxy/proxy_server/test_routes_model_cost_map.py227 """No prisma client → returns the not-scheduled shape (4 keys, all-null)."""STRING
HIGH…handlers/test_anthropic_passthrough_logging_handler.py1003 'event: message_start\ndata: {"type":"message_start","message":{"id":"msg_1","type":"message","role":"assistCODE
HIGH…handlers/test_anthropic_passthrough_logging_handler.py1007 'event: message_delta\ndata: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null}CODE
HIGH…handlers/test_anthropic_passthrough_logging_handler.py1019 'event: message_start\ndata: {"type":"message_start","message":{"id":"msg_1","type":"message","role":"assistCODE
HIGH…handlers/test_anthropic_passthrough_logging_handler.py1029 'event: message_start\ndata: {"type":"message_start","message":{"id":"msg_1","type":"message","role":"assistCODE
HIGH…handlers/test_anthropic_passthrough_logging_handler.py1036 'event: message_delta\ndata: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null}CODE
HIGH…handlers/test_anthropic_passthrough_logging_handler.py1046 'event: message_start\ndata: {"type":"message_start","message":{"id":"msg_1","type":"message","role":"assistCODE
HIGH…handlers/test_anthropic_passthrough_logging_handler.py1050 'event: message_delta\ndata: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null}CODE
HIGHtests/test_litellm/passthrough/test_passthrough_main.py656 so the client saw HTTP 200 + unparseable SSE body → silent task_complete(null).STRING
HIGH…lm/responses/test_responses_websocket_all_providers.py1073 event = '{"type":"response.completed","response":null}'CODE
HIGHtests/test_litellm/repositories/test_repositories.py1476 "param_value": '{"new_key": "value", "null_key": null}',CODE
HIGH…rations/open_telemetry/test_passthrough_parent_span.py134 'data: {"type":"message_start","message":{"id":"msg_1","type":"message","role":"assistant","model":"claude-sonnet-4-CODE
HIGH…rations/open_telemetry/test_passthrough_parent_span.py142 'data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"output_tokens":2}}'CODE
HIGH…est_litellm/litellm_core_utils/messages_with_counts.py740 null,CODE
HIGHtests/test_litellm/llms/sap/chat/test_sap_chat_calls.py43 b'data: {"request_id": "a07127d3-cb74-9427-a4dc-ef9bf424fb43", "intermediate_results": {"templating": [{"content": "CODE
HIGH…ertex_ai/gemini/test_gemini_image_url_missing_field.py34 """When image_url key is present but explicitly null, a BadRequestError is raised."""STRING
126 more matches not shown…
Fake / Example Data824 hits · 709 pts
SeverityFileLineSnippetContext
LOWproxy_server_config.yaml66 api_key: fake-keyCODE
LOWproxy_server_config.yaml71 api_key: my-fake-keyCODE
LOWproxy_server_config.yaml78 api_key: my-fake-keyCODE
LOWproxy_server_config.yaml85 api_key: my-fake-keyCODE
LOWproxy_server_config.yaml91 api_key: my-fake-keyCODE
LOWproxy_server_config.yaml150 api_key: my-fake-keyCODE
LOWproxy_server_config.yaml156 api_key: my-fake-keyCODE
LOWpolicy_templates.json1549 "placeholder": "e.g. Acme Airlines"CODE
LOWpolicy_templates.json1923 "placeholder": "e.g. Acme Airlines"CODE
LOWterraform/provider/docs/resources/team_member_add.md25 user_email = "user@example.com"CODE
LOWterraform/provider/litellm/resource_team_member_test.go28 "user_email": "user@example.com",CODE
LOW…lm-dashboard/tests/CreateKeyPage.expiredToken.test.tsx257 user_email: "user@example.com",CODE
LOW…lm-dashboard/tests/CreateKeyPage.expiredToken.test.tsx288 user_email: "user@example.com",CODE
LOWui/litellm-dashboard/tests/setupTests.ts144 userEmail: "user@example.com",CODE
LOW…-dashboard/e2e_tests/tests/modelsPage/addModel.spec.ts49 api_key: "fake-key",CODE
LOWui/litellm-dashboard/src/app/chat/layout.test.tsx18 userEmail: "user@example.com",CODE
LOW…nd-endpoints/components/ModelRetrySettingsTab.test.tsx113 expect(inputs[2]).toHaveAttribute("placeholder", "7"); // inherited from globalCODE
LOW…nd-endpoints/components/ModelRetrySettingsTab.test.tsx115 expect(inputs[0]).toHaveAttribute("placeholder", "1"); // inherited from defaultRetryCODE
LOW…pp/(dashboard)/tag-management/_components/tag_info.tsx82 fetchUserModels("dummy-user", "Admin", accessToken, setUserModels);CODE
LOW…src/app/(dashboard)/api-keys/ApiKeysDashboard.test.tsx33 userEmail: "admin@example.com",CODE
LOW…d)/usage/_components/components/UsagePageView.test.tsx752 const userSelect = userSelects.find((el) => el.getAttribute("placeholder") === "Select user to filter...");CODE
LOW…d)/usage/_components/components/UsagePageView.test.tsx863 const userSelect = userSelects.find((el) => el.getAttribute("placeholder") === "Select user to filter...");CODE
LOW…hboard/src/app/(dashboard)/hooks/useAuthorized.test.ts117 user_email: "user@example.com",CODE
LOW…hboard/src/app/(dashboard)/hooks/useAuthorized.test.ts138 expect(result.current.userEmail).toBe("user@example.com");CODE
LOW…hboard/src/app/(dashboard)/hooks/useAuthorized.test.ts184 user_email: "user@example.com",CODE
LOW…hboard/src/app/(dashboard)/hooks/useAuthorized.test.ts205 expect(result.current.userEmail).toBe("user@example.com");CODE
LOW…hboard/src/app/(dashboard)/hooks/useAuthorized.test.ts243 user_email: "user@example.com",CODE
LOW…_components/coordination_redis_settings/index.test.tsx191 expect(password).toHaveAttribute("placeholder", expect.stringMatching(/already set/i));CODE
LOW…shboard/src/app/onboarding/OnboardingFormBody.test.tsx41 render(<OnboardingFormBody {...defaultProps} userEmail="user@example.com" />);CODE
LOW…shboard/src/app/onboarding/OnboardingFormBody.test.tsx43 expect(screen.getByLabelText("Email Address")).toHaveValue("user@example.com");CODE
LOWui/litellm-dashboard/src/utils/jwtUtils.test.ts67 user_email: "user@example.com",CODE
LOW…/litellm-dashboard/src/components/public_model_hub.tsx1686 'Authorization': 'Bearer dummy-token-for-extended-card'CODE
LOW…/litellm-dashboard/src/components/public_model_hub.tsx1735 'Authorization': 'Bearer dummy-token-for-extended-card'CODE
LOW…-dashboard/src/components/bulk_create_users_button.tsx86 ["user@example.com", "internal_user", "team-id-1,team-id-2", "100", "30d", "gpt-3.5-turbo,gpt-4"],CODE
LOWui/litellm-dashboard/src/components/SSOModals.test.tsx250 user_email: "admin@example.com",CODE
LOWui/litellm-dashboard/src/components/SSOModals.test.tsx295 expect(emailInput.value).toBe("admin@example.com");CODE
LOWui/litellm-dashboard/src/components/SSOModals.test.tsx355 fireEvent.change(emailInput, { target: { value: "admin@example.com" } });CODE
LOWui/litellm-dashboard/src/components/SSOModals.test.tsx391 user_email: "admin@example.com",CODE
LOW…src/components/organization/organization_view.test.tsx79 organization_alias: "Acme Corp",CODE
LOW…src/components/organization/organization_view.test.tsx83 created_by: "admin@example.com",CODE
LOW…src/components/organization/organization_view.test.tsx119 expect(findAllByText("Acme Corp")).toBeTruthy();CODE
LOW…src/components/organization/organization_view.test.tsx140 expect(screen.getByText("Acme Corp")).toBeInTheDocument();CODE
LOW…ard/src/components/claude_code_plugins/helpers.test.ts304 expect(isValidEmail("user@example.com")).toBe(true);CODE
LOW…rc/components/DeletedKeysPage/DeletedKeysPage.test.tsx66 user_email: "user@example.com",CODE
LOW…tedKeysPage/DeletedKeysTable/DeletedKeysTable.test.tsx60 user_email: "user@example.com",CODE
LOW…c/components/VirtualKeysPage/VirtualKeysTable.test.tsx117 user_email: "user@example.com",CODE
LOW…c/components/VirtualKeysPage/VirtualKeysTable.test.tsx119 user_email: "user@example.com",CODE
LOW…c/components/VirtualKeysPage/VirtualKeysTable.test.tsx198 expect(screen.getByText("user@example.com")).toBeInTheDocument();CODE
LOW…c/components/VirtualKeysPage/VirtualKeysTable.test.tsx204 keysResult([{ ...mockKey, user: { user_id: "user-1", user_email: "user@example.com", user_alias: "The User" } }]),CODE
LOW…c/components/VirtualKeysPage/VirtualKeysTable.test.tsx211 expect(within(row).queryByText("user@example.com")).not.toBeInTheDocument();CODE
LOW…-dashboard/src/components/team/EditMembership.test.tsx48 const emailInput = screen.getByPlaceholderText("user@example.com");CODE
LOW…tellm-dashboard/src/components/team/EditMembership.tsx179 <TextInput placeholder="user@example.com" />CODE
LOW…hboard/src/components/templates/KeyInfoHeader.test.tsx12 createdBy: "admin@example.com",CODE
LOW…components/add_model/provider_specific_fields.test.tsx200 expect(apiKeyInput).toHaveAttribute("placeholder", "Enter your Azure API Key");CODE
LOW…components/add_model/provider_specific_fields.test.tsx205 expect(azureAdTokenInput).toHaveAttribute("placeholder", "Enter your Azure AD Token");CODE
LOW…onents/common_components/KeyLifecycleSettings.test.tsx99 expect(input).toHaveAttribute("placeholder", "e.g., 30d or leave empty to never expire");CODE
LOW…onents/common_components/KeyLifecycleSettings.test.tsx106 expect(input).toHaveAttribute("placeholder", "e.g., 30d");CODE
LOW…s/UsagePage/components/EntityUsage/TopKeyView.test.tsx41 userEmail: "user@example.com",CODE
LOWdocker/build_from_pip/litellm_config.yaml5 api_key: fake-keyCODE
LOWtests/test_otel_thread_leak.py42 return {"Authorization": "Bearer fake_token"}CODE
764 more matches not shown…
Magic Placeholder Names142 hits · 539 pts
SeverityFileLineSnippetContext
HIGHterraform/provider/docs/index.md75export LITELLM_API_KEY="your-api-key"CODE
HIGH…guardrails/_components/custom_code/CustomCodeModal.tsx81 headers={"Authorization": "Bearer YOUR_API_KEY"},CODE
HIGH…d)/playground/components/chat_ui/SessionManagement.tsx92 -H "Authorization: Bearer your-api-key" \\CODE
HIGH…hboard)/api-reference/_components/APIReferenceView.tsx52 api_key="your_api_key",CODE
HIGH…(dashboard)/mcp-servers/_components/MCPToolsetsTab.tsx404 "headers": { "x-litellm-api-key": "Bearer <your-api-key>" }CODE
HIGH…/litellm-dashboard/src/components/public_model_hub.tsx1471 apiKey: "your_api_key",CODE
HIGH…/litellm-dashboard/src/components/public_model_hub.tsx1493 apiKey: "your_api_key",CODE
HIGH…tellm-dashboard/src/components/AIHub/ModelHubTable.tsx695 api_key="your_api_key",CODE
HIGHtests/llm_translation/test_minimax_tts.py227 os.environ["MINIMAX_API_KEY"] = "your-api-key-here"CODE
HIGHtests/llm_translation/test_minimax_tts.py249 os.environ["MINIMAX_API_KEY"] = "your-api-key-here"CODE
HIGHcookbook/codellama-server/README.MD124 os.environ['OPENAI_API_KEY]` = "YOUR_API_KEY"CODE
HIGHcookbook/litellm_proxy_server/readme.md145 os.environ['OPENAI_API_KEY]` = "YOUR_API_KEY"CODE
HIGHscripts/health_check/health_check_client_README.md21export LITELLM_API_KEY="your-api-key"CODE
HIGHscripts/health_check/health_check_client_README.md28export LITELLM_API_KEY="your-api-key"CODE
HIGHscripts/health_check/health_check_client_README.md36export LITELLM_API_KEY="your-api-key"CODE
HIGHscripts/health_check/health_check_client_README.md54 -e LITELLM_API_KEY="your-api-key" \CODE
HIGHscripts/health_check/health_check_client_README.md63 -e LITELLM_API_KEY="your-api-key" \CODE
HIGHscripts/health_check/health_check_client_README.md75$env:LITELLM_API_KEY="your-api-key"CODE
HIGHscripts/health_check/health_check_client_README.md82export LITELLM_API_KEY="your-api-key"CODE
HIGHscripts/health_check/health_check_client_README.md89$env:LITELLM_API_KEY="your-api-key"CODE
HIGHscripts/health_check/health_check_client_README.md97$env:LITELLM_API_KEY="your-api-key"CODE
HIGHscripts/health_check/health_check_client_README.md105export LITELLM_API_KEY="your-api-key"CODE
HIGHscripts/health_check/run_parallel_health_checks.sh8# export LITELLM_API_KEY="your-api-key"COMMENT
HIGHlitellm/router.py381 "api_key": <your-api-key>,STRING
HIGHlitellm/router.py390 "api_key": <your-api-key>,STRING
HIGHlitellm/router.py399 "api_key": <your-api-key>,STRING
HIGHlitellm/proxy/_lazy_openapi_snapshot.json3174 "description": "Create a new agent\n\nExample Request:\n```bash\ncurl -X POST \"http://localhost:4000/v1/agentCODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json3221 "description": "Make multiple agents publicly discoverable\n\nExample Request:\n```bash\ncurl -X POST \"http:/CODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json3268 "description": "Delete an agent\n\nExample Request:\n```bash\ncurl -X DELETE \"http://localhost:4000/agents/12CODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json3312 "description": "Get a specific agent by ID\n\nExample Request:\n```bash\ncurl -X GET \"http://localhost:4000/aCODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json3358 "description": "Update an existing agent\n\nExample Request:\n```bash\ncurl -X PUT \"http://localhost:4000/ageCODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json3414 "description": "Update an existing agent\n\nExample Request:\n```bash\ncurl -X PUT \"http://localhost:4000/ageCODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json3472 "description": "Make an agent publicly discoverable\n\nExample Request:\n```bash\ncurl -X POST \"http://localhCODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json11489 "description": "Create a new guardrail\n\n\ud83d\udc49 [Guardrail docs](https://docs.litellm.ai/docs/proxy/guaCODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json11581 "description": "List the guardrails that are available on the proxy server\n\n\ud83d\udc49 [Guardrail docs](htCODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json11882 "description": "Test custom code guardrail logic without creating a guardrail.\n\nThis endpoint allows admins CODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json12396 "description": "Delete a guardrail\n\n\ud83d\udc49 [Guardrail docs](https://docs.litellm.ai/docs/proxy/guardraCODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json12440 "description": "Get detailed information about a specific guardrail by ID\n\n\ud83d\udc49 [Guardrail docs](httCODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json12484 "description": "Partially update an existing guardrail\n\n\ud83d\udc49 [Guardrail docs](https://docs.litellm.aCODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json12538 "description": "Update an existing guardrail\n\n\ud83d\udc49 [Guardrail docs](https://docs.litellm.ai/docs/proCODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json12594 "description": "Get detailed information about a specific guardrail by ID\n\n\ud83d\udc49 [Guardrail docs](httCODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json12715 "description": "List the guardrails that are available in the database using GuardrailRegistry\n\n\ud83d\udc49CODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json21270 "description": "Create a new policy.\n\nExample Request:\n```bash\ncurl -X POST \"http://localhost:4000/policiCODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json21317 "description": "Create a new policy attachment.\n\nExample Request:\n```bash\ncurl -X POST \"http://localhost:CODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json21364 "description": "Estimate how many keys and teams would be affected by a policy attachment.\n\nUse this before CODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json21411 "description": "List all policy attachments from the database.\n\nExample Request:\n```bash\ncurl -X GET \"httCODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json21438 "description": "Delete a policy attachment.\n\nExample Request:\n```bash\ncurl -X DELETE \"http://localhost:40CODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json21482 "description": "Get a policy attachment by ID.\n\nExample Request:\n```bash\ncurl -X GET \"http://localhost:40CODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json21587 "description": "List all policies from the database. Optionally filter by version_status.\n\nQuery params:\n- CODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json21792 "description": "Resolve which policies and guardrails apply for a given context.\n\nUse this endpoint to debugCODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json21853 "description": "Test a guardrail pipeline with sample messages.\n\nExecutes the pipeline steps against the proCODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json21973 "description": "Delete a policy.\n\nExample Request:\n```bash\ncurl -X DELETE \"http://localhost:4000/policiesCODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json22017 "description": "Get a policy by ID.\n\nExample Request:\n```bash\ncurl -X GET \"http://localhost:4000/policiesCODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json22063 "description": "Update an existing policy.\n\nExample Request:\n```bash\ncurl -X PUT \"http://localhost:4000/pCODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json22121 "description": "Get the resolved guardrails for a policy (including inherited guardrails).\n\nThis endpoint reCODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json22523 "description": "Estimate how many keys and teams would be affected by a policy attachment.\n\nUse this before CODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json22570 "description": "Resolve which policies and guardrails apply for a given context.\n\nUse this endpoint to debugCODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json23079 "description": "Create a new prompt\n\n\ud83d\udc49 [Prompt docs](https://docs.litellm.ai/docs/proxy/prompt_maCODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json23124 "description": "List the prompts that are available on the proxy server\n\n\ud83d\udc49 [Prompt docs](https://CODE
HIGHlitellm/proxy/_lazy_openapi_snapshot.json23179 "description": "Test a prompt by rendering it with variables and executing an LLM call.\n\nThis endpoint allowCODE
82 more matches not shown…
Structural Annotation Overuse272 hits · 475 pts
SeverityFileLineSnippetContext
LOW…lm-dashboard/e2e_tests/tests/modelHub/modelHub.spec.ts24 // Step 1: pick the seeded models via "Select All"COMMENT
LOW…/app/(dashboard)/agents/_components/add_agent_form.tsx52 // Step 3: key assignment stateCOMMENT
LOW…/app/(dashboard)/agents/_components/add_agent_form.tsx64 // Step 4: resultsCOMMENT
LOWtests/litellm_utils_tests/test_cyberark.py378 # Step 1: Create initial secret with old aliasCOMMENT
LOWtests/litellm_utils_tests/test_cyberark.py386 # Step 2: Rotate to new alias with new valueCOMMENT
LOWtests/litellm_utils_tests/test_cyberark.py398 # Step 3: Verify new alias has new valueCOMMENT
LOWtests/litellm_utils_tests/test_cyberark.py403 # Step 4: Verify old alias still exists (CyberArk doesn't delete via API)COMMENT
LOWtests/litellm_utils_tests/test_cyberark.py251 # Step 1: Write initial secret (simulates key creation)COMMENT
LOWtests/litellm_utils_tests/test_cyberark.py264 # Step 2: Rotate the secret (simulates key rotation)COMMENT
LOWtests/litellm_utils_tests/test_cyberark.py277 # Step 3: Verify the secret now returns the NEW valueCOMMENT
LOW…ent_tests/local_only_agent_tests/local_vertex_agent.py37 # Step 1: Authenticate with Google CloudCOMMENT
LOW…ent_tests/local_only_agent_tests/local_vertex_agent.py46 # Step 2: Build the endpoint URLCOMMENT
LOW…ent_tests/local_only_agent_tests/local_vertex_agent.py57 # Step 3: Create authenticated httpx clientCOMMENT
LOW…ent_tests/local_only_agent_tests/local_vertex_agent.py67 # Step 4: Build the query request (non-streaming)COMMENT
LOW…_responses_api_testing/test_anthropic_responses_api.py81 # Step 1: Initial request with the toolCOMMENT
LOW…_responses_api_testing/test_anthropic_responses_api.py99 # Step 2: Send the results of the tool call back to the modelCOMMENT
LOW…llm_responses_api_testing/test_openai_responses_api.py1229 # Step 1: OpenAI will use MCP LIST, and return a list of MCP calls for our approvalCOMMENT
LOW…llm_responses_api_testing/test_openai_responses_api.py1242 # Step 2: Send followup with approval for the MCP callCOMMENT
LOW…ses_api_testing/test_google_ai_studio_responses_api.py127 # Step 1: Initial request with toolsCOMMENT
LOW…ses_api_testing/test_google_ai_studio_responses_api.py227 # Step 1: Streaming request with toolsCOMMENT
LOWtests/documentation_tests/test_exception_types.py48 # Step 2: Extract the table contentCOMMENT
LOWtests/documentation_tests/test_exception_types.py51 # Step 3: Create a pattern to capture the Error Types from each rowCOMMENT
LOWtests/vector_store_tests/rag/base_rag_tests.py136 # Step 1: IngestSTRING
LOWtests/vector_store_tests/rag/base_rag_tests.py147 # Step 2: Query with retry (indexing may take time)STRING
LOWtests/old_proxy_tests/tests/test_q.py43# Step 2: Queue a request to the proxy, using your generated_keyCOMMENT
LOWtests/old_proxy_tests/tests/test_q.py67# Step 3: Poll the requestCOMMENT
LOWtests/old_proxy_tests/tests/load_test_q.py55# Step 2: Queue 50 requests to the proxy, using your generated_keyCOMMENT
LOWtests/llm_translation/test_bedrock_completion.py2856 "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` fCODE
LOWtests/llm_translation/test_bedrock_completion.py2861 "text": "I'll help you implement the `__len__` method for Pipeline in scikit-learn to fix the isCODE
LOWtests/llm_translation/test_anthropic_completion.py1169 "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` fCODE
LOWtests/llm_translation/test_anthropic_completion.py1174 "text": "I'll help you implement the `__len__` method for Pipeline in scikit-learn to fix the isCODE
LOWtests/llm_translation/test_gemini.py1173 # Step 2: check if the model wanted to call a functionCOMMENT
LOWtests/llm_translation/test_gemini.py1176 # Step 3: call the functionCOMMENT
LOWtests/llm_translation/test_gemini.py1183 # Step 4: send the info for each function call and function response to the modelCOMMENT
LOWtests/llm_translation/realtime/base_realtime_tests.py343 # Step 1: Send a user message after connection is establishedCOMMENT
LOWtests/llm_translation/realtime/base_realtime_tests.py366 # Step 2: Trigger the response after user message is acknowledgedCOMMENT
LOWtests/llm_translation/realtime/base_realtime_tests.py383 # Step 3: Wait for LLM responsesCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py38 # Step 1: litellm.embedding() extracts and passes shared_sessionCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py42 # Step 2: OpenAI handlers pass it forwardCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py48 # Step 3: _get_openai_client passes it to AsyncHTTPHandlerCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py52 # Step 4: AsyncHTTPHandler.create_client passes it to _create_async_transportCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py56 # Step 5: _create_async_transport passes it to _create_aiohttp_transportCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py60 # Step 6: _create_aiohttp_transport uses itCOMMENT
LOWtests/test_litellm/test_project_alias_tracking.py121 # Step 1: Auth → sanitized metadataCOMMENT
LOWtests/test_litellm/test_project_alias_tracking.py126 # Step 2: Sanitized metadata → standard logging metadataCOMMENT
LOWtests/test_litellm/test_cost_calculator.py247 # Step 1: Test a model where input_cost_per_image_token is not set.COMMENT
LOWtests/test_litellm/test_cost_calculator.py263 # Step 2: Set input_cost_per_image_token.COMMENT
LOWtests/test_litellm/proxy/test_proxy_server.py327 # Step 1: login — get codeCOMMENT
LOWtests/test_litellm/proxy/test_proxy_server.py335 # Step 2: exchange — get JWTCOMMENT
LOW…y/_experimental/mcp_server/test_jwt_mcp_enforcement.py267 # Step 1: Verify JWT auth returns correct team_idCOMMENT
LOW…y/_experimental/mcp_server/test_jwt_mcp_enforcement.py289 # Step 2: Create UserAPIKeyAuth with the team_id from JWT authCOMMENT
LOW…y/_experimental/mcp_server/test_jwt_mcp_enforcement.py296 # Step 3: Verify MCPRequestHandler returns team's MCP serversCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1827 # Step 1: Create vector store on Instance 1COMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1833 # Step 2: Instance 2 fetches and caches the vector storeCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1580 # Step 1: Create vector store on Instance 1COMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1601 # Step 2: Instance 2 should be able to find it via database fallbackCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1619 # Step 3: Test that Instance 2 can list vector stores from databaseCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1654 # Step 4: Delete vector store on Instance 1COMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1679 # Step 5: Instance 2 should NOT show it in the list (database is source of truth)COMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1716 # Step 6: Test that using a deleted vector store fails gracefullyCOMMENT
212 more matches not shown…
Verbosity Indicators247 hits · 442 pts
SeverityFileLineSnippetContext
LOW…lm-dashboard/e2e_tests/tests/modelHub/modelHub.spec.ts24 // Step 1: pick the seeded models via "Select All"COMMENT
LOW…/app/(dashboard)/agents/_components/add_agent_form.tsx52 // Step 3: key assignment stateCOMMENT
LOW…/app/(dashboard)/agents/_components/add_agent_form.tsx64 // Step 4: resultsCOMMENT
LOW…itellm_enterprise/proxy/hooks/managed_vector_stores.py89 # For TypedDict responses, we need to check if _hidden_params was addedCOMMENT
LOWtests/litellm_utils_tests/test_cyberark.py378 # Step 1: Create initial secret with old aliasCOMMENT
LOWtests/litellm_utils_tests/test_cyberark.py386 # Step 2: Rotate to new alias with new valueCOMMENT
LOWtests/litellm_utils_tests/test_cyberark.py398 # Step 3: Verify new alias has new valueCOMMENT
LOWtests/litellm_utils_tests/test_cyberark.py403 # Step 4: Verify old alias still exists (CyberArk doesn't delete via API)COMMENT
LOWtests/litellm_utils_tests/test_cyberark.py251 # Step 1: Write initial secret (simulates key creation)COMMENT
LOWtests/litellm_utils_tests/test_cyberark.py264 # Step 2: Rotate the secret (simulates key rotation)COMMENT
LOWtests/litellm_utils_tests/test_cyberark.py277 # Step 3: Verify the secret now returns the NEW valueCOMMENT
LOW…ent_tests/local_only_agent_tests/local_vertex_agent.py37 # Step 1: Authenticate with Google CloudCOMMENT
LOW…ent_tests/local_only_agent_tests/local_vertex_agent.py46 # Step 2: Build the endpoint URLCOMMENT
LOW…ent_tests/local_only_agent_tests/local_vertex_agent.py57 # Step 3: Create authenticated httpx clientCOMMENT
LOW…ent_tests/local_only_agent_tests/local_vertex_agent.py67 # Step 4: Build the query request (non-streaming)COMMENT
LOW…_responses_api_testing/test_anthropic_responses_api.py81 # Step 1: Initial request with the toolCOMMENT
LOW…_responses_api_testing/test_anthropic_responses_api.py99 # Step 2: Send the results of the tool call back to the modelCOMMENT
LOW…llm_responses_api_testing/test_openai_responses_api.py1229 # Step 1: OpenAI will use MCP LIST, and return a list of MCP calls for our approvalCOMMENT
LOW…llm_responses_api_testing/test_openai_responses_api.py1242 # Step 2: Send followup with approval for the MCP callCOMMENT
LOW…ses_api_testing/test_google_ai_studio_responses_api.py127 # Step 1: Initial request with toolsCOMMENT
LOW…ses_api_testing/test_google_ai_studio_responses_api.py227 # Step 1: Streaming request with toolsCOMMENT
LOWtests/documentation_tests/test_exception_types.py48 # Step 2: Extract the table contentCOMMENT
LOWtests/documentation_tests/test_exception_types.py51 # Step 3: Create a pattern to capture the Error Types from each rowCOMMENT
LOWtests/vector_store_tests/rag/base_rag_tests.py136 # Step 1: IngestSTRING
LOWtests/vector_store_tests/rag/base_rag_tests.py147 # Step 2: Query with retry (indexing may take time)STRING
LOWtests/old_proxy_tests/tests/test_q.py43# Step 2: Queue a request to the proxy, using your generated_keyCOMMENT
LOWtests/old_proxy_tests/tests/test_q.py67# Step 3: Poll the requestCOMMENT
LOWtests/old_proxy_tests/tests/load_test_q.py55# Step 2: Queue 50 requests to the proxy, using your generated_keyCOMMENT
LOWtests/llm_translation/test_bedrock_completion.py2856 "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` fCODE
LOWtests/llm_translation/test_bedrock_completion.py2861 "text": "I'll help you implement the `__len__` method for Pipeline in scikit-learn to fix the isCODE
LOWtests/llm_translation/test_anthropic_completion.py1169 "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` fCODE
LOWtests/llm_translation/test_anthropic_completion.py1174 "text": "I'll help you implement the `__len__` method for Pipeline in scikit-learn to fix the isCODE
LOWtests/llm_translation/test_gemini.py1173 # Step 2: check if the model wanted to call a functionCOMMENT
LOWtests/llm_translation/test_gemini.py1176 # Step 3: call the functionCOMMENT
LOWtests/llm_translation/test_gemini.py1183 # Step 4: send the info for each function call and function response to the modelCOMMENT
LOWtests/llm_translation/realtime/base_realtime_tests.py343 # Step 1: Send a user message after connection is establishedCOMMENT
LOWtests/llm_translation/realtime/base_realtime_tests.py366 # Step 2: Trigger the response after user message is acknowledgedCOMMENT
LOWtests/llm_translation/realtime/base_realtime_tests.py383 # Step 3: Wait for LLM responsesCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py38 # Step 1: litellm.embedding() extracts and passes shared_sessionCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py42 # Step 2: OpenAI handlers pass it forwardCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py48 # Step 3: _get_openai_client passes it to AsyncHTTPHandlerCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py52 # Step 4: AsyncHTTPHandler.create_client passes it to _create_async_transportCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py56 # Step 5: _create_async_transport passes it to _create_aiohttp_transportCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py60 # Step 6: _create_aiohttp_transport uses itCOMMENT
LOWtests/test_litellm/test_project_alias_tracking.py121 # Step 1: Auth → sanitized metadataCOMMENT
LOWtests/test_litellm/test_project_alias_tracking.py126 # Step 2: Sanitized metadata → standard logging metadataCOMMENT
LOWtests/test_litellm/test_cost_calculator.py247 # Step 1: Test a model where input_cost_per_image_token is not set.COMMENT
LOWtests/test_litellm/test_cost_calculator.py263 # Step 2: Set input_cost_per_image_token.COMMENT
LOWtests/test_litellm/proxy/test_proxy_server.py327 # Step 1: login — get codeCOMMENT
LOWtests/test_litellm/proxy/test_proxy_server.py335 # Step 2: exchange — get JWTCOMMENT
LOW…y/_experimental/mcp_server/test_jwt_mcp_enforcement.py267 # Step 1: Verify JWT auth returns correct team_idCOMMENT
LOW…y/_experimental/mcp_server/test_jwt_mcp_enforcement.py289 # Step 2: Create UserAPIKeyAuth with the team_id from JWT authCOMMENT
LOW…y/_experimental/mcp_server/test_jwt_mcp_enforcement.py296 # Step 3: Verify MCPRequestHandler returns team's MCP serversCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1827 # Step 1: Create vector store on Instance 1COMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1833 # Step 2: Instance 2 fetches and caches the vector storeCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1580 # Step 1: Create vector store on Instance 1COMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1601 # Step 2: Instance 2 should be able to find it via database fallbackCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1619 # Step 3: Test that Instance 2 can list vector stores from databaseCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1654 # Step 4: Delete vector store on Instance 1COMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1679 # Step 5: Instance 2 should NOT show it in the list (database is source of truth)COMMENT
187 more matches not shown…
Over-Commented Block486 hits · 404 pts
SeverityFileLineSnippetContext
LOWpyproject.toml321]COMMENT
LOWpackaging/homebrew/lite.rb1# Homebrew formula for the thin LiteLLM `lite` CLI (litellm[cli]).COMMENT
LOWterraform/litellm/gcp/locals.tf1# Gateway path prefixes — mirrored verbatim from gateway/routes/allowlist.pyCOMMENT
LOWterraform/litellm/gcp/cloudsql.tf1# Cloud SQL for PostgreSQL — one primary + one read replica.COMMENT
LOWterraform/litellm/gcp/bootstrap.tf1# Auto-runs the prisma schema migration as part of `terraform apply`. MirrorsCOMMENT
LOWterraform/litellm/gcp/examples/default/main.tf1# One-command deploy of the LiteLLM GCP stack.COMMENT
LOWterraform/litellm/aws/ecs.tf41# the helm chart's `litellm.serverEnv` helper on the IAM-auth branch:COMMENT
LOWterraform/litellm/aws/autoscaling.tf1# Application Auto Scaling for the three ECS services. Mirrors the HPA valuesCOMMENT
LOWterraform/litellm/aws/locals.tf1# Gateway path prefixes — mirrored verbatim from gateway/routes/allowlist.pyCOMMENT
LOWterraform/litellm/aws/s3.tf1# General-purpose S3 bucket for the proxy. LiteLLM uses S3 for:COMMENT
LOWterraform/litellm/aws/migrations.tf1# Task definition for the dedicated litellm-migrations image. Mirrors theCOMMENT
LOWterraform/litellm/aws/rds.tf1# Aurora Postgres cluster with one writer + one reader instance, IAMCOMMENT
LOWterraform/litellm/aws/bootstrap.tf1# Auto-runs the two manual steps that used to follow `terraform apply`:COMMENT
LOWterraform/litellm/aws/examples/default/main.tf1# One-command deploy of the LiteLLM AWS stack.COMMENT
LOWterraform/litellm/aws/examples/default/providers.tf1# The provider is configured HERE, in the root, not in the module. That isCOMMENT
LOWterraform/litellm/aws/examples/default/providers.tf21 # "cost-center" = "platform"COMMENT
LOWui/litellm-dashboard/e2e_tests/run_e2e.sh1#!/usr/bin/env bashCOMMENT
LOW…lm-dashboard/e2e_tests/tests/modelHub/modelHub.spec.ts41COMMENT
LOW…d/e2e_tests/tests/login/serverRootPathRedirect.spec.ts1import { expect, test } from "@playwright/test";COMMENT
LOW…/app/(dashboard)/agents/_components/add_agent_form.tsx161COMMENT
LOW…/app/(dashboard)/agents/_components/add_agent_form.tsx601 setAgentType(value);COMMENT
LOW…dashboard)/agents/_components/agent_card_discovery.tsx81 const [selectedCapabilities, setSelectedCapabilities] = useState<Record<string, boolean>>({});COMMENT
LOW…shboard)/mcp-servers/_components/create_mcp_server.tsx741 }, [isModalVisible, form, clearTools, resetOAuthFlow]);COMMENT
LOW…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx141# "content": [COMMENT
LOW…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx201# "content": [COMMENT
LOWui/litellm-dashboard/src/components/mcp_tools/types.tsx61// (url, or spec_path for OpenAPI servers), the OAuth mode/grant (auth_type, oauth_flow_type), the OAuthCOMMENT
LOWui/litellm-dashboard/src/components/mcp_tools/types.tsx161export const MCP_OAUTH2_FLOW_INTERACTIVE = "authorization_code";COMMENT
LOWtests/test_callbacks_on_proxy.py21# sampling window. A one-time bump that then plateaus is benign pollution fromCOMMENT
LOWtests/_vcr_conftest_common.py401# until it overflows ``MAX_EPISODES_PER_CASSETTE`` and re-records live forever.COMMENT
LOWtests/_vcr_conftest_common.py561 return str(getattr(request, "method", "") or "").upper() == "POST"COMMENT
LOWtests/_vcr_conftest_common.py1481 continueCOMMENT
LOW…/logging_callback_tests/test_custom_callback_router.py21# Test Scenarios (test across completion, streaming, embedding)COMMENT
LOWtests/logging_callback_tests/test_alerting.py561# ) as mock_send_alert:COMMENT
LOW…ging_callback_tests/test_bedrock_knowledgebase_hook.py641# """COMMENT
LOW…ging_callback_tests/test_bedrock_knowledgebase_hook.py661# standard_logging_vector_store_request_metadata: Optional[List[StandardLoggingVectorStoreRequest]] = metadata["vectCOMMENT
LOW…e/litellm_enterprise/proxy/hooks/test_managed_files.py201COMMENT
LOW…e/litellm_enterprise/proxy/hooks/test_managed_files.py221# assert all(f.id.startswith(SpecialEnums.LITELM_MANAGED_FILE_ID_PREFIX.value) for f in files)COMMENT
LOW…e/litellm_enterprise/proxy/hooks/test_managed_files.py241# assert retrieved_file.filename == "test.txt"COMMENT
LOW…e/litellm_enterprise/proxy/hooks/test_managed_files.py261COMMENT
LOW…e/litellm_enterprise/proxy/hooks/test_managed_files.py281# with pytest.raises(Exception):COMMENT
LOW…ise/litellm_enterprise/integrations/test_prometheus.py1061# ==============================================================================COMMENT
LOW…s/local_only_agent_tests/test_a2a_completion_bridge.py281 # if hasattr(delta, "content") and delta.content:COMMENT
LOWtests/pass_through_tests/test_gemini.js1// const { GoogleGenerativeAI } = require("@google/generative-ai");COMMENT
LOWtests/pass_through_tests/test_gemini.js21// }COMMENT
LOWtests/proxy_admin_ui_tests/ui_unit_tests/jest.setup.js1// Add any global setup hereCOMMENT
LOWtests/vector_store_tests/test_milvus_vector_store.py441 request_data = self._extract_request_body(mock_post)COMMENT
LOWtests/vector_store_tests/test_milvus_vector_store.py461# "default_output_fields": [COMMENT
LOW…ough_unit_tests/test_anthropic_messages_tool_search.py41COMMENT
LOW…ough_unit_tests/test_anthropic_messages_tool_search.py61# Vertex AI Anthropic partner models.COMMENT
LOW…hrough_unit_tests/test_bedrock_tool_use_beta_header.py41 print(f"✅ Test passed! Response: {response}")COMMENT
LOW…hrough_unit_tests/test_bedrock_tool_use_beta_header.py61# },COMMENT
LOW…ough_unit_tests/test_anthropic_messages_passthrough.py581COMMENT
LOW…ough_unit_tests/test_anthropic_messages_passthrough.py601# handler = BaseLLMHTTPHandler()COMMENT
LOW…ough_unit_tests/test_anthropic_messages_passthrough.py621COMMENT
LOW…ough_unit_tests/test_anthropic_messages_passthrough.py641# anthropic_messages_provider_config=mock_provider_config,COMMENT
LOWtests/router_unit_tests/test_router_helper_utils.py1541COMMENT
LOWtests/proxy_unit_tests/test_proxy_gunicorn.py1# #### What this tests ####COMMENT
LOWtests/proxy_unit_tests/test_proxy_gunicorn.py21# filepath = os.path.dirname(os.path.abspath(__file__))COMMENT
LOWtests/proxy_unit_tests/test_proxy_gunicorn.py41# os.environ["AZURE_API_BASE"] = azure_info['api_base']COMMENT
LOWtests/proxy_unit_tests/test_proxy_server_spend.py1# import openai, json, time, asyncioCOMMENT
426 more matches not shown…
Hallucination Indicators33 hits · 365 pts
SeverityFileLineSnippetContext
CRITICALtests/audio_tests/test_whisper.py285 mock_azure_client.audio.transcriptions.with_raw_response.create.assert_called_once()CODE
CRITICAL…xy/guardrails/guardrail_hooks/test_panw_prisma_airs.py2188 sent_payload = mock_client.client.post.call_args.kwargs.get(CODE
CRITICAL…xy/guardrails/guardrail_hooks/test_panw_prisma_airs.py2223 sent_payload = mock_client.client.post.call_args.kwargs.get(CODE
CRITICAL…sts/test_litellm/proxy/memory/test_memory_endpoints.py793 self.prisma.db.litellm_teamtable.teams.append(CODE
CRITICAL…sts/test_litellm/proxy/memory/test_memory_endpoints.py818 self.prisma.db.litellm_teamtable.teams.append(CODE
CRITICAL…sts/test_litellm/proxy/memory/test_memory_endpoints.py838 self.prisma.db.litellm_teamtable.teams.append(CODE
CRITICAL…llm/proxy/openai_files_endpoint/test_files_endpoint.py736 print(f"Content: {gemini_route.calls.last.request.content.decode()}")CODE
CRITICAL…llm/proxy/openai_files_endpoint/test_files_endpoint.py737 print(f"Response: {gemini_route.calls.last.response.content.decode()}")CODE
CRITICAL…llm/proxy/openai_files_endpoint/test_files_endpoint.py739 assert "test-file-id" in gemini_route.calls.last.request.content.decode()CODE
CRITICAL…est_litellm/proxy/hooks/test_sensitive_data_routing.py639 handler_with_redis.internal_usage_cache.dual_cache.redis_cache.async_set_cache.assert_called_once()CODE
CRITICAL…gement_endpoints/test_workflow_management_endpoints.py167 self._prisma.db.litellm_workflowrun.create.assert_awaited_once()CODE
CRITICAL…gement_endpoints/test_workflow_management_endpoints.py270 self._prisma.db.litellm_workflowrun.update.assert_awaited_once()CODE
CRITICAL…gement_endpoints/test_workflow_management_endpoints.py599 self._prisma.db.litellm_workflowrun.update.assert_not_awaited()CODE
CRITICALtests/test_litellm/proxy/client/test_models.py349 assert "not found" in exc_info.value.orig_exception.response.text.lower()CODE
CRITICALtests/test_litellm/proxy/client/test_models.py720 assert "not found" in exc_info.value.orig_exception.response.text.lower()CODE
CRITICALtests/test_litellm/repositories/test_repositories.py1604 repo._prisma_client.db.litellm_deletedverificationtoken._records.values()CODE
CRITICAL…ellm/integrations/test_prometheus_rate_limit_labels.py427 logger.litellm_remaining_api_key_requests_for_model.labels.return_value.set.assert_called_once_with(CODE
CRITICAL…ellm/integrations/test_prometheus_rate_limit_labels.py430 logger.litellm_remaining_api_key_tokens_for_model.labels.return_value.set.assert_called_once_with(CODE
CRITICAL…ellm/integrations/test_prometheus_rate_limit_labels.py383 logger.litellm_remaining_api_key_requests_for_model.labels.return_value.set.assert_called_once_with(CODE
CRITICAL…ellm/integrations/test_prometheus_rate_limit_labels.py386 logger.litellm_remaining_api_key_tokens_for_model.labels.return_value.set.assert_called_once_with(CODE
CRITICAL…ellm/integrations/test_prometheus_rate_limit_labels.py408 logger.litellm_remaining_api_key_requests_for_model.labels.return_value.set.assert_called_once_with(CODE
CRITICAL…ellm/integrations/test_prometheus_rate_limit_labels.py411 logger.litellm_remaining_api_key_tokens_for_model.labels.return_value.set.assert_called_once_with(CODE
CRITICAL…ellm/integrations/test_prometheus_rate_limit_labels.py446 logger.litellm_remaining_api_key_requests_for_model.labels.return_value.set.assert_called_once_with(CODE
CRITICAL…ellm/integrations/test_prometheus_rate_limit_labels.py449 logger.litellm_remaining_api_key_tokens_for_model.labels.return_value.set.assert_called_once_with(CODE
CRITICAL…ellm/integrations/test_prometheus_rate_limit_labels.py468 logger.litellm_remaining_api_key_requests_for_model.labels.return_value.set.assert_called_once_with(CODE
CRITICAL…ellm/integrations/test_prometheus_rate_limit_labels.py471 logger.litellm_remaining_api_key_tokens_for_model.labels.return_value.set.assert_called_once_with(CODE
CRITICAL…st_litellm/llms/base_llm/test_base_managed_resource.py108 resource.prisma_client.db.litellm_test_resource_table.find_many.assert_not_awaited()CODE
CRITICALtests/test_litellm/caching/test_azure_blob_cache.py95 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICALtests/test_litellm/caching/test_azure_blob_cache.py172 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICALlitellm/proxy/hooks/azure_content_safety.py31 from azure.core.exceptions import HttpResponseErrorCODE
CRITICALlitellm/caching/azure_blob_cache.py23 from azure.core.exceptions import ResourceExistsErrorCODE
CRITICALlitellm/caching/azure_blob_cache.py61 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICALlitellm/caching/azure_blob_cache.py78 from azure.core.exceptions import ResourceNotFoundErrorCODE
Modern Structural Boilerplate301 hits · 295 pts
SeverityFileLineSnippetContext
LOW…terprise/litellm_enterprise/proxy/enterprise_routes.py12__all__ = ["router", "ui_crud_endpoints"]CODE
LOWenterprise/litellm_enterprise/proxy/auth/__init__.py10__all__ = ["EnterpriseCustomSSOHandler"]CODE
LOW…litellm_enterprise/proxy/ui_crud_endpoints/__init__.py3__all__ = ["ui_settings_extensions"]CODE
LOW…ellm_enterprise/proxy/management_endpoints/__init__.py10__all__ = ["management_endpoints_router"]CODE
LOWtests/test_team_members.py10logger = logging.getLogger(__name__)CODE
LOW…drails/guardrail_hooks/_cisco_ai_defense_test_utils.py312__all__ = [CODE
LOW…test_litellm/proxy/batches_endpoints/test_endpoints.py227def set_body(harness: Harness, body: Dict[str, Any]) -> None:CODE
LOW…lm/proxy/management_endpoints/test_policy_endpoints.py28 def set_return(self, return_inputs: GenericGuardrailAPIInputs) -> None:CODE
LOW…t_litellm/secret_managers/test_secret_managers_main.py11logger = logging.getLogger(__name__)CODE
LOW…m/ocr/test_ocr_azure_document_intelligence_api_base.py22 def update_from_kwargs(self, **kwargs: object) -> None:CODE
LOW…ellm/integrations/test_prometheus_rate_limit_labels.py352def _set_virtual_key_metrics(logger: PrometheusLogger, kwargs: dict) -> None:CODE
LOW…2e/quota_management/spend_tracking/spend_e2e_client.py49__all__ = [CODE
LOWtests/e2e/management/management_client.py58 def update_key_models(self, key: str, models: list[str]) -> None:CODE
LOWlitellm/__init__.py1430def set_global_bitbucket_config(config: Dict[str, Any]) -> None:CODE
LOWlitellm/__init__.py1440def set_global_gitlab_config(config: Dict[str, Any]) -> None:CODE
LOWlitellm/_lazy_imports_registry.py1461__all__ = [CODE
LOWlitellm/router.py2837 def _set_deployment_num_retries_on_exception(self, exception: Exception, deployment: dict) -> None:CODE
LOWlitellm/router.py2856 def _set_failed_deployment_id_on_exception(self, exception: Exception, deployment: dict) -> None:CODE
LOWlitellm/router.py8089 def _update_deployment_indices_after_removal(self, model_id: str, removal_idx: int) -> None:CODE
LOWlitellm/router.py8147 def _update_team_model_index(self, model: dict, idx: int) -> None:CODE
LOWlitellm/vector_stores/__init__.py4__all__ = ["search", "asearch", "create", "acreate", "VectorStoreRegistry"]CODE
LOWlitellm/interactions/__init__.py68__all__ = [CODE
LOW…eractions/litellm_responses_transformation/__init__.py12__all__ = [CODE
LOWlitellm/interactions/agents/__init__.py28__all__ = [CODE
LOWlitellm/evals/__init__.py20__all__ = [CODE
LOWlitellm/types/policy_engine.py22__all__ = [CODE
LOWlitellm/types/search.py16__all__ = ["SearchProvider", "SearchProviders"]CODE
LOWlitellm/types/interactions/__init__.py77__all__ = [CODE
LOW…types/proxy/guardrails/guardrail_hooks/ibm/__init__.py12__all__ = [CODE
LOWlitellm/types/proxy/policy_engine/__init__.py61__all__ = [CODE
LOWlitellm/types/management_endpoints/__init__.py22__all__ = [CODE
LOWlitellm/types/google_genai/__init__.py8__all__ = [CODE
LOWlitellm/proxy/proxy_server.py3568def _set_redis_usage_cache(coordination_redis_cache: RedisCache | None) -> None:CODE
LOWlitellm/proxy/utils.py4822 async def _set_spend_logs_row_count_in_proxy_state(self) -> None:STRING
LOWlitellm/proxy/health_check.py14logger = logging.getLogger(__name__)CODE
LOWlitellm/proxy/rag_endpoints/__init__.py5__all__ = ["router"]CODE
LOWlitellm/proxy/common_utils/performance_utils.py100 def set_last_profile_path(path: PathLib) -> None:CODE
LOWlitellm/proxy/image_endpoints/__init__.py3__all__ = ["image_generation"]CODE
LOWlitellm/proxy/response_polling/__init__.py13__all__ = [CODE
LOWlitellm/proxy/guardrails/guardrail_hooks/presidio.py1363 def update_in_memory_litellm_params(self, litellm_params: LitellmParams) -> None:CODE
LOW…lm/proxy/guardrails/guardrail_hooks/tool_permission.py123 def update_in_memory_litellm_params(self, litellm_params: Union[LitellmParams, dict]) -> None:CODE
LOW…s/guardrail_hooks/panw_prisma_airs/panw_prisma_airs.py1463 def _set_tool_call_arguments(tool_call, masked_text: str) -> None:CODE
LOW…uardrails/guardrail_hooks/cisco_ai_defense/__init__.py83__all__ = [CODE
LOW…s/guardrail_hooks/custom_code/custom_code_guardrail.py373 def update_custom_code(self, new_code: str) -> None:CODE
LOW…oxy/guardrails/guardrail_hooks/custom_code/__init__.py65__all__ = [CODE
LOW…guardrail_hooks/custom_code/response_rejection_code.py73__all__ = [STRING
LOW…ardrails/guardrail_hooks/unified_guardrail/__init__.py11__all__ = ["endpoint_translation_mappings"]CODE
LOW…lm/proxy/guardrails/guardrail_hooks/pillar/__init__.py66__all__ = [CODE
LOW…ellm/proxy/guardrails/guardrail_hooks/pillar/pillar.py548 def _set_bool_header(self, headers: Dict[str, str], header_name: str, value: Optional[bool]) -> None:CODE
LOW…proxy/guardrails/guardrail_hooks/enkryptai/__init__.py3__all__ = ["EnkryptAIGuardrails"]CODE
LOW…s/litellm_content_filter/competitor_intent/__init__.py16__all__ = [CODE
LOW…rails/guardrail_hooks/block_code_execution/__init__.py88__all__ = [CODE
LOW…/proxy/guardrails/guardrail_hooks/grayswan/__init__.py66__all__ = [CODE
LOW…/guardrails/guardrail_hooks/mcp_jwt_signer/__init__.py78__all__ = [CODE
LOW…/guardrails/guardrail_hooks/ibm_guardrails/__init__.py68__all__ = ["IBMGuardrailDetector", "initialize_guardrail"]CODE
LOW…/guardrails/guardrail_hooks/llm_as_a_judge/__init__.py279__all__ = [CODE
LOW…ellm/proxy/_experimental/mcp_server/faults/__init__.py27__all__ = [CODE
LOW…perimental/mcp_server/outbound_credentials/__init__.py46__all__ = [CODE
LOW…erimental/mcp_server/guardrail_translation/__init__.py16__all__ = ["guardrail_translation_mappings", "MCPGuardrailTranslationHandler"]CODE
LOWlitellm/proxy/auth/resolvers/__init__.py19__all__ = [CODE
241 more matches not shown…
AI Structural Patterns370 hits · 286 pts
SeverityFileLineSnippetContext
LOW…se/litellm_enterprise/proxy/audit_logging_endpoints.py52CODE
LOW…itellm_enterprise/proxy/hooks/managed_vector_stores.py126CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1027CODE
LOW…proxy/management_endpoints/key_management_endpoints.py42CODE
LOWtests/test_keys.py60CODE
LOWtests/test_users.py44CODE
LOWtests/otel_tests/test_e2e_model_access.py55CODE
LOWtests/otel_tests/test_e2e_budgeting.py82CODE
LOW…/llm_responses_api_testing/test_azure_responses_api.py133CODE
LOW…/llm_responses_api_testing/test_azure_responses_api.py236CODE
LOW…_through_unit_tests/test_websearch_interception_e2e.py945CODE
LOWtests/proxy_unit_tests/test_proxy_utils.py1593CODE
LOWtests/search_tests/test_searxng_search.py207CODE
LOWtests/spend_tracking_tests/test_spend_accuracy_tests.py114CODE
LOWtests/proxy_behavior/management/conftest.py136CODE
LOWtests/test_litellm/test_video_generation.py883CODE
LOWtests/test_litellm/test_video_generation.py121CODE
LOWtests/test_litellm/test_video_generation.py709CODE
LOW…m/interactions/test_google_interactions_integration.py346CODE
LOW…drails/guardrail_hooks/_cisco_ai_defense_test_utils.py177CODE
LOW…rimental/mcp_server/auth/test_user_api_key_auth_mcp.py4909CODE
LOW…test_litellm/proxy/batches_endpoints/test_endpoints.py1338CODE
LOW…_litellm/proxy/policy_engine/test_policy_versioning.py22CODE
LOW…ellm/proxy/policy_engine/test_policy_versioning_e2e.py14CODE
LOW…xy/management_endpoints/test_access_group_endpoints.py27CODE
LOW…/test_litellm/responses/test_text_format_conversion.py95CODE
LOWtests/test_litellm/ocr/test_rust_bridge.py185CODE
LOW…s/github_copilot/test_github_copilot_transformation.py550CODE
LOW…ts/test_litellm/llms/databricks/test_databricks_e2e.py694CODE
LOWtests/e2e/quota_management/budgets/budget_client.py168CODE
LOWtests/batches_tests/test_bedrock_files_and_batches.py74CODE
LOWtests/local_testing/test_completion.py4308CODE
LOWtests/multi_instance_e2e_tests/test_update_team_e2e.py64CODE
LOW.github/scripts/triage_with_llm.py1181CODE
LOWlitellm/cost_calculator.py296CODE
LOWlitellm/cost_calculator.py1046CODE
LOWlitellm/cost_calculator.py1108CODE
LOWlitellm/cost_calculator.py1708CODE
LOWlitellm/utils.py2093CODE
LOWlitellm/utils.py2942CODE
LOWlitellm/utils.py3753CODE
LOWlitellm/exceptions.py426CODE
LOWlitellm/router.py265CODE
LOWlitellm/router.py3215CODE
LOWlitellm/router.py4243CODE
LOWlitellm/router.py4272CODE
LOWlitellm/router.py6548CODE
LOWlitellm/main.py406CODE
LOWlitellm/main.py811CODE
LOWlitellm/main.py4798CODE
LOWlitellm/main.py5840CODE
LOWlitellm/main.py5866CODE
LOWlitellm/main.py5893CODE
LOWlitellm/main.py7023CODE
LOWlitellm/main.py7498CODE
LOWlitellm/main.py7776CODE
LOWlitellm/vector_stores/vector_store_registry.py444CODE
LOWlitellm/vector_stores/main.py90CODE
LOWlitellm/vector_stores/main.py154CODE
LOWlitellm/vector_stores/main.py267CODE
310 more matches not shown…
Cross-Language Confusion (JS/TS)46 hits · 281 pts
SeverityFileLineSnippetContext
HIGH…hboard)/api-reference/_components/APIReferenceView.tsx66print(response)`}CODE
HIGH…hboard)/api-reference/_components/APIReferenceView.tsx100print(response)`}CODE
HIGH…hboard)/api-reference/_components/APIReferenceView.tsx131print(response)`}CODE
HIGH…d/src/app/(dashboard)/budgets/_components/constants.ts42print(completion.choices[0].message)`;CODE
HIGH…/_components/prompt_editor_view/PromptCodeSnippets.tsx128print(response)`;CODE
HIGH…/_components/prompt_editor_view/PromptCodeSnippets.tsx146print(response)`;CODE
HIGH…/_components/prompt_editor_view/PromptCodeSnippets.tsx160print(response)`;CODE
HIGHui/litellm-dashboard/src/components/networking.tsx6529 // if 404 - return NoneCOMMENT
HIGH…/litellm-dashboard/src/components/public_model_hub.tsx1781print(response.model_dump(mode='json', exclude_none=True))`}CODE
HIGH…/litellm-dashboard/src/components/public_model_hub.tsx1805print(response.model_dump(mode='json', exclude_none=True))`;CODE
HIGH…/litellm-dashboard/src/components/public_model_hub.tsx1912 print(f"Available tools: {[tool.name for tool in tools]}")CODE
HIGH…/litellm-dashboard/src/components/public_model_hub.tsx1919 print(f"Response: {response}")CODE
HIGH…/litellm-dashboard/src/components/public_model_hub.tsx1952 print(f"Available tools: {[tool.name for tool in tools]}")CODE
HIGH…/litellm-dashboard/src/components/public_model_hub.tsx1959 print(f"Response: {response}")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx254 print(f"Image saved to {image_path}")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx259 print("Could not find image URL in response.")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx260 print("Full response:", json_response)CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx262 print(f"An error occurred: {e}")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx263 print("Full response:", json_response)CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx339 print(f"Image saved to {image_filename}")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx344 print("No image generated. Model response:")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx345 print("\\n".join(text_response))CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx347 print("No image data found in response.")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx348 print("Full response for debugging:")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx349 print(response)CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx423 print(f"Image saved to {image_filename}")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx428 print("No image generated. Model response:")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx429 print("\\n".join(text_response))CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx431 print("No image data found in response.")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx432 print("Full response for debugging:")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx433 print(response)CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx506 print(f"Image saved to {image_filename}")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx511 print("No image generated. Model response:")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx512 print("\\n".join(text_response))CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx514 print("No image data found in response.")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx515 print("Full response for debugging:")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx516 print(response)CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx132print(response)CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx192print(response.output_text)CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx528print(response.data[0].embedding)CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx542print(response.text)CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx557print(f"Audio saved to {output_filename}")CODE
HIGH…d/src/components/routing_groups/RoutingGroupsTable.tsx64print(response)`;CODE
HIGH…tellm-dashboard/src/components/AIHub/ModelHubTable.tsx709print(response.choices[0].message.content)`}CODE
HIGH…tellm-dashboard/src/components/AIHub/ModelHubTable.tsx1041 print(f"Available tools: {[tool.name for tool in tools]}")CODE
HIGH…tellm-dashboard/src/components/AIHub/ModelHubTable.tsx1048 print(f"Response: {response}")CODE
AI Slop Vocabulary53 hits · 114 pts
SeverityFileLineSnippetContext
LOWterraform/litellm/gcp/network.tf35# min/max instances are required by the API now (you can't just setCOMMENT
MEDIUMterraform/litellm/aws/iam.tf31# the first 7 components — robust to any combination of empty/non-emptyCOMMENT
MEDIUM…/(dashboard)/prompts/_components/variable_textarea.tsx55 // "Tags Below" approach which is robust and functional.COMMENT
LOW…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx282 # For this example, we'll just return a placeholder IDCOMMENT
LOW…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx449 # For this example, we'll just return a placeholder IDCOMMENT
MEDIUM…proxy_behavior/management/test_f7_coverage_closeout.py289 # cleanup contract uniform with the sibling test and is robust toCOMMENT
MEDIUM…ts/proxy_behavior/management/test_key_budget_limits.py381# that the harness does not yet ship; pinning it would force a widerCOMMENT
MEDIUM…s/proxy_behavior/management/test_team_member_update.py12# org may update members; else 403. (The harness forces premium_user, so theCOMMENT
MEDIUMtests/llm_translation/test_bedrock_completion.py2856 "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` fCODE
MEDIUMtests/llm_translation/test_bedrock_completion.py2856 "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` fCODE
MEDIUMtests/llm_translation/test_anthropic_completion.py1169 "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` fCODE
MEDIUMtests/llm_translation/test_anthropic_completion.py1169 "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` fCODE
MEDIUM…gement_endpoints/test_callback_management_endpoints.py122 # Add string representations to different callback types to test comprehensive categorizationCOMMENT
LOW…/management_endpoints/test_key_management_endpoints.py5432 # Patch attach_object_permission_to_dict to just return the dict unchangedCOMMENT
MEDIUMtests/test_litellm/proxy/proxy_server/conftest.py22# — but it lets the harness work in editable-source layouts too.COMMENT
MEDIUMtests/test_litellm/proxy/proxy_server/_pin_check.py114 # Skip the harness's own smoke tests — they don't count towardCOMMENT
MEDIUM…ts/test_litellm/integrations/newrelic/test_newrelic.py799# _process_success — comprehensive happy-pathCOMMENT
MEDIUM…re_utils/llm_cost_calc/test_tool_call_cost_tracking.py606# The unit tests in test_azure_assistant_cost_tracking.py provide comprehensive coverageCOMMENT
MEDIUMtests/test_litellm/llms/volcengine/test_volcengine.py46 """Test comprehensive thinking parameter handling scenarios"""STRING
MEDIUM…ts/test_litellm/llms/anthropic/batches/test_handler.py267 # Await directly - robust under asyncio_mode=auto's session-scoped loopCOMMENT
LOW…st_litellm/llms/custom_httpx/test_aiohttp_transport.py134 # It should handle the error gracefully and just return what was receivedCOMMENT
MEDIUMtests/test_litellm/batches/test_main.py42# Seam harness - one mock per provider handler instance + the Bedrock ARNCOMMENT
LOWtests/local_testing/test_dual_cache.py51 # this should only read in memory since we just set test_keyCOMMENT
MEDIUMscripts/benchmark_proxy_vs_provider.py559 # 7. Combined options for comprehensive testingCOMMENT
MEDIUMscripts/eval_compression.py952# Main harnessCOMMENT
LOW.github/scripts/triage_with_llm.py1474 # Short-circuit: if body very clearly links a related issue, just pass.COMMENT
LOWlitellm/constants.py924# supports all together ai models, just pass in the model id e.g. completion(model="together_computer/replit_code_3b",..COMMENT
LOWlitellm/_lazy_imports.py237 # Step 3: If we've already imported it, just return the cached versionCOMMENT
LOWlitellm/_lazy_imports.py270# Most of them just call _generic_lazy_import with their specific import map.COMMENT
LOWlitellm/_lazy_imports.py343 # If we've already imported it, just return the cached versionCOMMENT
LOWlitellm/utils.py6790 # do nothing, just return messagesCOMMENT
LOWlitellm/utils.py6851 except Exception as e: # [NON-Blocking, if error occurs just return final_messagesCODE
LOWlitellm/proxy/proxy_server.py4268 ## to pass a complete url, or set ssl=True, etc. just set it as `os.environ[REDIS_URL] = <your-redisCOMMENT
LOWlitellm/proxy/utils.py2989 # Check to see if all of the necessary views exist and if they do, simply returnCOMMENT
MEDIUMlitellm/proxy/common_utils/callback_utils.py637 # prefix check is robust under salt-key rotation; a decrypt-basedCOMMENT
MEDIUMlitellm/proxy/common_utils/key_rotation_manager.py163 # Create regenerate request with grace period for seamless cutoverCOMMENT
LOWlitellm/proxy/guardrails/guardrail_hooks/presidio.py433 # No need to build numbered tokens — just use Presidio'sCOMMENT
LOW…guardrail_hooks/unified_guardrail/unified_guardrail.py407 # If call type not supported, just pass through all chunksCOMMENT
LOWlitellm/proxy/openai_files_endpoints/common_utils.py686 # Extract target_storage (simplified - just use form parameter)COMMENT
MEDIUM…proxy/management_endpoints/key_management_endpoints.py4618 # non-admin can't elevate via a key_type preset that theCOMMENT
MEDIUMlitellm/proxy/prompts/prompt_endpoints.py1177 # Create PromptTemplate to leverage existing parameter extraction logicCOMMENT
MEDIUMlitellm/proxy/db/db_spend_update_writer.py1499 # robust to future changes in the key format.COMMENT
LOWlitellm/proxy/client/cli/interface.py23 # If terminal is too small, just add some newlines to push content upCOMMENT
LOWlitellm/litellm_core_utils/safe_json_dumps.py25 # Base-case: if it is a primitive, simply return it.COMMENT
LOWlitellm/litellm_core_utils/streaming_handler.py529 else: # function/tool calling chunk - when content is None. in this case we just return the original chCODE
LOWlitellm/router_utils/common_utils.py110 # rather than a list - nothing to filter, just pass throughCOMMENT
LOWlitellm/llms/github_copilot/chat/transformation.py65 # No conversion needed - just return messages as-isCOMMENT
LOWlitellm/llms/deepinfra/rerank/transformation.py232 # If parsing fails, just use the original error_messageCOMMENT
LOW…ellm/llms/soniox/audio_transcription/transformation.py138 # we just return the resolved base.COMMENT
LOWlitellm/llms/searxng/search/transformation.py166 # For simplicity, we'll just use page 1 and let SearXNG return its default number of resultsCOMMENT
LOWlitellm/llms/bedrock/chat/converse_transformation.py514 if "arn" in model: # we can't infer the model from the arn, so just add all paramsCODE
LOWlitellm/llms/anthropic/chat/handler.py915 # These are automatically handled by Anthropic API, we just pass them throughCOMMENT
LOWlitellm/llms/openai/responses/transformation.py217 # For other dict items, just pass throughCOMMENT
Slop Phrases18 hits · 46 pts
SeverityFileLineSnippetContext
MEDIUMtests/old_proxy_tests/tests/load_test_embedding.py68# Number of concurrent calls (you can adjust this)COMMENT
MEDIUM…sts/old_proxy_tests/tests/load_test_embedding_proxy.py68# Number of concurrent calls (you can adjust this)COMMENT
MEDIUMtests/llm_translation/test_openai.py853 "text": '\nYou are an interactive CLI tool that helps users with software engineering tasks. UseCODE
MEDIUM…rdrail_hooks/test_response_rejection_guardrail_code.py38 inputs={"texts": ["Here is how you can do that: step 1, step 2."]},CODE
MEDIUM…rdrail_hooks/test_response_rejection_guardrail_code.py42 assert result["texts"] == ["Here is how you can do that: step 1, step 2."]CODE
MEDIUMtests/local_testing/test_azure_content_safety.py227 mock_response="I'm unable to help with you with hate speech",CODE
MEDIUMtests/local_testing/test_azure_content_safety.py305 mock_response="I'm unable to help with you with hate speech",CODE
MEDIUMtests/local_testing/test_basic_python_version.py40 # Assertion to satisfy the test, you can add other checks as neededCOMMENT
MEDIUMcookbook/litellm_router/load_test_proxy.py113# Number of concurrent calls (you can adjust this)COMMENT
MEDIUMcookbook/litellm_router/load_test_queuing.py135# Number of concurrent calls (you can adjust this)COMMENT
MEDIUMcookbook/litellm_router/load_test_router.py108# Number of concurrent calls (you can adjust this)COMMENT
MEDIUMlitellm/proxy/proxy_server.py15276 Note: This is a mock endpoint primarily meant for demonstration purposes, and does not actually provide or change anSTRING
MEDIUMlitellm/proxy/utils.py779 # This is a basic implementation - can be enhanced based on specific guardrail formatsCOMMENT
MEDIUM…guardrail_hooks/custom_code/response_rejection_code.py19 "i'm unable to help",CODE
MEDIUM…guardrail_hooks/custom_code/response_rejection_code.py48 "i'm unable to help",CODE
LOWlitellm/integrations/SlackAlerting/slack_alerting.py1595 # Also, don't forget to update the report_sent time after sending the report!COMMENT
LOWlitellm/integrations/SlackAlerting/slack_alerting.py1595 # Also, don't forget to update the report_sent time after sending the report!COMMENT
LOWlitellm/llms/anthropic/chat/transformation.py622 else: # use anthropic defaults and make sure to send the disable_parallel_tool_use flagCODE
Dead Code13 hits · 26 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_litellm/test_router.py1865CODE
MEDIUM…st_litellm/proxy/agent_endpoints/test_a2a_endpoints.py1215CODE
MEDIUM…/hooks/test_async_post_call_streaming_iterator_hook.py174CODE
MEDIUM…/pass_through_endpoints/test_pass_through_endpoints.py1279CODE
MEDIUM…/pass_through_endpoints/test_pass_through_endpoints.py1347CODE
MEDIUM…lm/responses/test_responses_websocket_all_providers.py242CODE
MEDIUM…lm/responses/test_responses_websocket_all_providers.py364CODE
MEDIUM…on_transformation/test_litellm_completion_responses.py2534CODE
MEDIUM…tellm/a2a_protocol/test_a2a_exception_mapping_utils.py128CODE
MEDIUM…st_litellm/a2a_protocol/test_a2a_streaming_iterator.py87CODE
MEDIUM…ental_pass_through/messages/test_streaming_iterator.py116CODE
MEDIUM…m/llms/sagemaker/test_sagemaker_nova_transformation.py340CODE
MEDIUMlitellm/proxy/_experimental/post_call_rules.py4CODE
Example Usage Blocks11 hits · 17 pts
SeverityFileLineSnippetContext
LOWui/litellm-dashboard/e2e_tests/run_e2e.sh10# Usage:COMMENT
LOWtests/code_coverage_tests/recursive_detector.py121 # Example usageCOMMENT
LOWscripts/test_guardrails_register_endpoints.sh6# Usage:COMMENT
LOWscripts/create_team_key_and_submit_guardrail.sh6# Usage:COMMENT
LOWscripts/test_agent_mcp_endpoints.sh6# Usage:COMMENT
LOWscripts/health_check/run_parallel_health_checks.sh6# Usage:COMMENT
LOWlitellm/proxy/common_utils/load_config_utils.py166# # Example usageCOMMENT
LOWlitellm/litellm_core_utils/sensitive_data_masker.py217# Usage example:COMMENT
LOWlitellm/router_utils/cooldown_cache.py167# Usage example:COMMENT
LOWlitellm/router_utils/pattern_match_deployments.py237# Example usage:COMMENT
LOWlitellm/llms/vertex_ai/vertex_embeddings/types.py62# Example usage:COMMENT
AI Response Leakage2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtests/llm_translation/test_bedrock_completion.py2856 "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` fCODE
HIGHtests/llm_translation/test_anthropic_completion.py1169 "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` fCODE
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHlitellm/proxy/hooks/litellm_skills/main.py622# Auto-generated code to execute skillCOMMENT
Overly Generic Function Names3 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/litellm_utils_tests/test_utils.py2071 async def test_function(**kwargs):CODE
LOWtests/test_litellm/test_compression.py174 "content": "# utils.py\n" + "def helper():\n pass\n" * 2000,STRING
LOWlitellm/llms/custom_httpx/mock_transport.py85 def handle_request(self, request: httpx.Request) -> httpx.Response:CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWlitellm/secret_managers/main.py175 # TODO: Add caching for HTTP requestsCOMMENT