Repository Analysis

BerriAI/litellm

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

29.7 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of BerriAI/litellm, a Python project with 57,487 GitHub stars. SynthScan v2.0 examined 2,620,758 lines of code across 8165 source files, recording 70337 pattern matches distributed across 28 syntactic categories. The overall adjusted score of 29.7 places this repository in the Moderate 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).

29.7
Adjusted Score
29.7
Raw Score
100%
Time Factor
2026-08-28
Last Push
57.5K
Stars
Python
Language
2.6M
Lines of Code
8.2K
Files
70.3K
Pattern Hits
2026-08-29
Scan Date
0.13
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 42HIGH 1039MEDIUM 5465LOW 63791

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 70337 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 Identifiers47516 hits · 40020 pts
SeverityFileLineSnippetContext
LOWARCHITECTURE.md406def test_prompt_caching_transform():CODE
LOWui/litellm-dashboard/src/app/model_hub_table/page.tsx6function PublicModelHubTableContent() {CODE
LOWui/litellm-dashboard/src/app/(dashboard)/layout.tsx24function PluginModeProviderWithAuth({ children }: { children: React.ReactNode }) {CODE
LOW…ashboard)/guardrails/_components/TeamGuardrailsTab.tsx138function submissionToTeamGuardrail(item: GuardrailSubmissionItem): TeamGuardrail {CODE
LOW…ashboard)/guardrails/_components/TeamGuardrailsTab.tsx210function buildEquivalentConfigYaml(g: TeamGuardrail): string {CODE
LOW…ard)/guardrails/_components/guardrail_info_helpers.tsx239export function skipSystemMessageToChoice(v: boolean | null | undefined): SkipSystemMessageChoice {CODE
LOW…ard)/guardrails/_components/guardrail_info_helpers.tsx246export function choiceToSkipSystemForCreate(choice: SkipSystemMessageChoice | undefined): boolean | undefined {CODE
LOW…ard)/guardrails/_components/guardrail_info_helpers.tsx262export 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.tsx10export 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…shboard)/playground/components/chat_ui/ChatUI.test.tsx36async function openComboboxByPlaceholder(placeholder: string) {CODE
LOW…ts/EndpointUsage/components/EndpointUsageLineChart.tsx11function transformDailyDataToChart(dailyData: DailyData[]): Array<Record<string, string | number>> {CODE
LOW…)/usage/_components/hooks/usePaginatedDailyActivity.ts189export function usePaginatedDailyActivity({CODE
LOW…app/(dashboard)/hooks/useHideAutoRouterAnnouncement.ts33export function useHideAutoRouterAnnouncement() {CODE
LOW…/app/(dashboard)/users/_components/view_users.test.tsx41 DefaultUserSettingsForm: function DefaultUserSettingsFormMock() {CODE
LOW…cp-servers/_components/PassthroughAuthorizeSection.tsx38export 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.tsx414export function setGlobalLitellmHeaderName(headerName: string = "Authorization") {CODE
LOWui/litellm-dashboard/src/components/networking.tsx419export function getGlobalLitellmHeaderName(): string {CODE
LOW…oard/src/components/update_model_credentials_modal.tsx31export default function UpdateModelCredentialsModal({CODE
LOWui/litellm-dashboard/src/components/ui/chart.tsx303function getPayloadConfigFromPayload(config: ChartConfig, payload: unknown, key: string) {CODE
LOW…ings/HashicorpVault/HashicorpVaultEmptyPlaceholder.tsx9export default function HashicorpVaultEmptyPlaceholder({ onAdd }: HashicorpVaultEmptyPlaceholderProps) {CODE
LOW…minSettings/SSOSettings/SSOSettingsLoadingSkeleton.tsx10export default function SSOSettingsLoadingSkeleton() {CODE
LOW…inSettings/SSOSettings/SSOSettingsEmptyPlaceholder.tsx9export default function SSOSettingsEmptyPlaceholder({ onAdd }: SSOSettingsEmptyPlaceholderProps) {CODE
LOW…CPSemanticFilterSettings/MCPSemanticFilterSettings.tsx103export default function MCPSemanticFilterSettings({ accessToken }: MCPSemanticFilterSettingsProps) {CODE
LOW…PSemanticFilterSettings/MCPSemanticFilterTestPanel.tsx24export default function MCPSemanticFilterTestPanel({CODE
LOW…onents/Settings/RouterSettings/Fallbacks/Fallbacks.tsx77async function testFallbackModelResponse(selectedModel: string, accessToken: string) {CODE
LOW…ents/PassThroughSettings/PassThroughEndpointsTable.tsx30export function PassThroughEndpointsTable({CODE
LOW…shboard/src/components/view_logs/ToolsSection/utils.ts48function extractToolCallsFromResponse(log: LogEntry): ToolCall[] {CODE
LOW…nts/view_logs/LogDetailsDrawer/RoutingDecisionCard.tsx43function describeScoreAgainstBoundaries(CODE
LOW…nts/view_logs/LogDetailsDrawer/RoutingDecisionCard.tsx80function describeReasoningOverride(tierLabel: string | undefined, floor: number | undefined): string {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.tsx338function getUncachedInputTextTokens(metadata: Record<string, any>): number | undefined {CODE
LOW…m-dashboard/src/components/llm_calls/responses_api.tsx61export 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.tsx25export async function makeOpenAIChatCompletionRequest(CODE
LOW…rd/src/components/shared/table_cells/AutoRouterTag.tsx14export function AutoRouterModelGroupsProvider({ children }: { children: ReactNode }) {CODE
LOW…rd/src/components/shared/table_cells/AutoRouterTag.tsx24export function useIsAutoRoutedModelGroup(modelGroup?: string | null): boolean {CODE
LOW…rd/src/components/model_add/credential_form_helpers.ts26export function resetCredentialFormOnProviderChange(CODE
LOW…tellm-dashboard/src/components/team/teamModelAccess.ts18export function normalizeTeamModelSelection(models: string[] | undefined): string[] {CODE
LOW…CloudZeroCostTracking/CloudZeroIntegrationSettings.tsx45export function CloudZeroIntegrationSettings({ settings, onSettingsUpdated }: CloudZeroIntegrationSettingsProps) {CODE
LOW…ts/CloudZeroCostTracking/CloudZeroEmptyPlaceholder.tsx8export 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…se/litellm_enterprise/proxy/vector_stores/endpoints.py60def managed_vector_store_table(prisma_client: "PrismaClient") -> ManagedVectorStoreTable:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py64 def _is_missing_batch_processed_column_error(err: Exception) -> bool:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py68 async def confirm_batch_processed_support(self) -> None:CODE
47456 more matches not shown…
Decorative Section Separators3257 hits · 12034 pts
SeverityFileLineSnippetContext
MEDIUM…shboard/src/app/(dashboard)/workflows/WorkflowRuns.tsx62// ── design tokens ─────────────────────────────────────────────────────────────COMMENT
MEDIUM…shboard/src/app/(dashboard)/workflows/WorkflowRuns.tsx92// ── helpers ───────────────────────────────────────────────────────────────────COMMENT
MEDIUM…shboard/src/app/(dashboard)/workflows/WorkflowRuns.tsx122// ── status dot ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…shboard/src/app/(dashboard)/workflows/WorkflowRuns.tsx128// ── truncated text value ──────────────────────────────────────────────────────COMMENT
MEDIUM…shboard/src/app/(dashboard)/workflows/WorkflowRuns.tsx147// ── metadata card ─────────────────────────────────────────────────────────────COMMENT
MEDIUM…shboard/src/app/(dashboard)/workflows/WorkflowRuns.tsx229// ── gantt timeline ────────────────────────────────────────────────────────────COMMENT
MEDIUM…shboard/src/app/(dashboard)/workflows/WorkflowRuns.tsx340// ── message row ───────────────────────────────────────────────────────────────COMMENT
MEDIUM…shboard/src/app/(dashboard)/workflows/WorkflowRuns.tsx359// ── collapsible section ───────────────────────────────────────────────────────COMMENT
MEDIUM…shboard/src/app/(dashboard)/workflows/WorkflowRuns.tsx379// ── main component ────────────────────────────────────────────────────────────COMMENT
MEDIUM…p/(dashboard)/policies/_components/add_policy_form.tsx333 // ── Mode Picker Step ──────────────────────────────────────────────────────COMMENT
MEDIUM…p/(dashboard)/policies/_components/add_policy_form.tsx362 // ── Simple Form Step ──────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx106// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx108// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx217// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx219// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx256// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx258// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx516// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx518// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx663// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx665// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx770// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx772// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx1211// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx1213// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx1446// ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…hboard)/policies/_components/pipeline_flow_builder.tsx1448// ─────────────────────────────────────────────────────────────────────────────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.ts23// ── Fetch function ───────────────────────────────────────────────────────────COMMENT
MEDIUM…src/app/(dashboard)/hooks/projects/useUpdateProject.ts52// ── 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.ts23// ── Fetch function ───────────────────────────────────────────────────────────COMMENT
MEDIUM…src/app/(dashboard)/hooks/projects/useCreateProject.ts48// ── 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/useAccessGroupDetails.ts7// ── Fetch function ───────────────────────────────────────────────────────────COMMENT
MEDIUM…dashboard)/hooks/accessGroups/useAccessGroupDetails.ts31// ── Hook ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…/app/(dashboard)/hooks/accessGroups/useAccessGroups.ts7// ── Types ────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…/app/(dashboard)/hooks/accessGroups/useAccessGroups.ts24// ── Query keys (shared across access-group hooks) ────────────────────────────COMMENT
MEDIUM…/app/(dashboard)/hooks/accessGroups/useAccessGroups.ts28// ── Fetch function ───────────────────────────────────────────────────────────COMMENT
MEDIUM…/app/(dashboard)/hooks/accessGroups/useAccessGroups.ts52// ── Hook ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…(dashboard)/hooks/accessGroups/useDeleteAccessGroup.ts6// ── Fetch function ───────────────────────────────────────────────────────────COMMENT
MEDIUM…(dashboard)/hooks/accessGroups/useDeleteAccessGroup.ts30// ── Hook ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…p/(dashboard)/hooks/accessGroups/useEditAccessGroup.ts6// ── Types ────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…p/(dashboard)/hooks/accessGroups/useEditAccessGroup.ts23// ── Fetch function ───────────────────────────────────────────────────────────COMMENT
MEDIUM…p/(dashboard)/hooks/accessGroups/useEditAccessGroup.ts52// ── Hook ─────────────────────────────────────────────────────────────────────COMMENT
3197 more matches not shown…
Excessive Try-Catch Wrapping5663 hits · 5356 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.tsx1275 except Exception as e_extended:CODE
LOW…/litellm-dashboard/src/components/public_model_hub.tsx1324 except Exception as e_extended:CODE
MEDIUM…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx259 print(f"An error occurred: {e}")CODE
LOW…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx258except 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.py145 except Exception as e:CODE
LOW…se/litellm_enterprise/proxy/vector_stores/endpoints.py215 except Exception as e:CODE
LOW…se/litellm_enterprise/proxy/vector_stores/endpoints.py265 except Exception as e:CODE
LOW…se/litellm_enterprise/proxy/vector_stores/endpoints.py330 except Exception as e:CODE
LOW…se/litellm_enterprise/proxy/vector_stores/endpoints.py372 except Exception as e:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py78 except Exception as probe_err:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py108 except Exception as e:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py121 except Exception as e:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py134 except Exception as e:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py250 except Exception as db_err:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py279 except Exception as db_err:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py300 except Exception as db_err:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py387 except Exception as db_err:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py525 except Exception:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py565 except Exception:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py609 except Exception:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py698 except Exception:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py750 except Exception as _e:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py809 except Exception:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py836 except Exception as e:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py844 except Exception as cleanup_err:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py876 except Exception as query_err:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py908 except Exception as e:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py931 except Exception as tracking_err:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py965 except Exception as db_err:CODE
LOW…_enterprise/proxy/common_utils/check_responses_cost.py126 except Exception as cleanup_err:CODE
LOW…_enterprise/proxy/common_utils/check_responses_cost.py178 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.py120 except Exception as e:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py132 except Exception as e:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1470 except Exception:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1475 except Exception as e:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1541 except Exception as e:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py531 except Exception as e:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1236 except Exception as e:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1274 except Exception:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1374 except Exception as e:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1501 except Exception as e:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1677 except Exception as e:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1742 except Exception as e:CODE
LOW…rprise/proxy/management_endpoints/project_endpoints.py597 except Exception as e:CODE
LOW…rprise/proxy/management_endpoints/project_endpoints.py833 except Exception as e:CODE
LOW…rprise/proxy/management_endpoints/project_endpoints.py941 except Exception as e:CODE
LOW…rprise/proxy/management_endpoints/project_endpoints.py1016 except Exception as e:CODE
LOW…rprise/proxy/management_endpoints/project_endpoints.py1072 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.py87 except Exception as e:CODE
5603 more matches not shown…
Unused Imports5607 hits · 4644 pts
SeverityFileLineSnippetContext
LOWci_cd/generate_model_prices_schema.py1CODE
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…se/litellm_enterprise/proxy/vector_stores/endpoints.py37CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py17CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py20CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py23CODE
LOWenterprise/litellm_enterprise/proxy/auth/__init__.py8CODE
LOW…itellm_enterprise/proxy/hooks/managed_vector_stores.py9CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py65CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py84CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py89CODE
LOW…litellm_enterprise/proxy/ui_crud_endpoints/__init__.py1CODE
LOW…rprise/proxy/management_endpoints/project_endpoints.py21CODE
LOW…rprise/proxy/management_endpoints/project_endpoints.py38CODE
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_end_users.py6CODE
LOWtests/_openai_record_replay_proxy.py34CODE
LOWtests/test_fallbacks.py293CODE
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/fake_openai_endpoint.py24CODE
LOWtests/test_keys.py8CODE
LOWtests/test_keys.py8CODE
LOWtests/test_presidio_latency.py4CODE
LOWtests/_ws_vcr.py20CODE
LOWtests/test_new_vector_store_endpoints.py7CODE
LOWtests/test_new_vector_store_endpoints.py13CODE
LOWtests/test_organizations.py6CODE
LOWtests/test_organizations.py7CODE
LOWtests/eval_swe_bench.py30CODE
LOWtests/_vcr_conftest_common.py6CODE
LOWtests/test_users.py8CODE
LOWtests/test_users.py10CODE
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
LOWtests/logging_callback_tests/base_test.py5CODE
LOWtests/logging_callback_tests/base_test.py5CODE
5547 more matches not shown…
Self-Referential Comments1095 hits · 3394 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.tsx1488# Create a client that connects to the serverCOMMENT
MEDIUM…/litellm-dashboard/src/components/public_model_hub.tsx1528# Create a client that connects to the serverCOMMENT
MEDIUM…tellm-dashboard/src/components/AIHub/ModelHubTable.tsx1080# 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.py351 # Create an additional key for user1COMMENT
MEDIUMtests/test_models.py533 # Create a teamCOMMENT
MEDIUMtests/logging_callback_tests/base_test.py36 # Create a mock response object with the structure you needCOMMENT
MEDIUM…ogging_callback_tests/test_standard_logging_payload.py474 # Create a mock Logging objectCOMMENT
MEDIUM…ogging_callback_tests/test_standard_logging_payload.py768 # Create a mock logging object with cost breakdownCOMMENT
MEDIUM…ogging_callback_tests/test_standard_logging_payload.py852 # Create a mock logging object without cost breakdownCOMMENT
MEDIUM…sts/logging_callback_tests/test_langfuse_unit_tests.py267 # Create a mock logging payload with tagsCOMMENT
MEDIUMtests/logging_callback_tests/test_spend_logs.py209 # Define the expected metadata keysCOMMENT
MEDIUMtests/logging_callback_tests/test_spend_logs.py352 # Create a standard logging payloadCOMMENT
MEDIUMtests/logging_callback_tests/test_spend_logs.py407 # Create a large string that exceeds the thresholdCOMMENT
MEDIUMtests/logging_callback_tests/test_spend_logs.py445 # Create a small string that's under the thresholdCOMMENT
MEDIUMtests/logging_callback_tests/test_langfuse_e2e_test.py151 # Create a mock Response objectCOMMENT
MEDIUM…ogging_callback_tests/test_opentelemetry_unit_tests.py125 # Create a mock spanCOMMENT
MEDIUM…ogging_callback_tests/test_opentelemetry_unit_tests.py186 # Create a mock spanCOMMENT
MEDIUMtests/logging_callback_tests/test_gcs_pub_sub.py188 # Create a mock for the async_httpx_client's post methodCOMMENT
MEDIUMtests/logging_callback_tests/test_gcs_pub_sub.py244 # Create a mock for the async_httpx_client's post methodCOMMENT
MEDIUM…s/logging_callback_tests/test_log_db_redis_services.py138 # Create a failing functionCOMMENT
MEDIUMtests/logging_callback_tests/test_alerting.py105# Create a mock environment for testingCOMMENT
MEDIUMtests/logging_callback_tests/test_alerting.py845 # Create a string buffer to capture log outputCOMMENT
MEDIUMtests/logging_callback_tests/test_datadog.py500 # Create the payloadCOMMENT
MEDIUMtests/logging_callback_tests/test_datadog.py536 # Create a standard payload with very long contentCOMMENT
MEDIUMtests/logging_callback_tests/test_datadog.py187 # Create a mock for the async_client's post methodCOMMENT
MEDIUMtests/logging_callback_tests/test_datadog.py403 # Create a mock for the async_client's post methodCOMMENT
MEDIUMtests/logging_callback_tests/test_datadog.py558 # Create the payloadCOMMENT
MEDIUM…ts/logging_callback_tests/test_generic_api_callback.py40 # Create a mock for the async_httpx_client's post methodCOMMENT
MEDIUM…ts/logging_callback_tests/test_generic_api_callback.py127 # Create a mock for the async_httpx_client's post methodCOMMENT
MEDIUM…ts/logging_callback_tests/test_generic_api_callback.py216 # Create a mock for the async_httpx_client's post methodCOMMENT
MEDIUM…ts/logging_callback_tests/test_generic_api_callback.py291 # Create a mock for the async_httpx_client's post methodCOMMENT
MEDIUM…ts/logging_callback_tests/test_generic_api_callback.py354 # Create a mock for the async_httpx_client's post methodCOMMENT
MEDIUM…ts/logging_callback_tests/test_generic_api_callback.py413 # Create a mock for the async_httpx_client's post methodCOMMENT
MEDIUMtests/litellm_utils_tests/test_aws_secret_manager.py173 # Create a primary secret with multiple key-value pairsCOMMENT
MEDIUMtests/litellm_utils_tests/test_utils.py678 # Create a test EmbeddingResponse with usage dataCOMMENT
MEDIUMtests/litellm_utils_tests/test_utils.py1629 # Create a mock response objectCOMMENT
MEDIUMtests/litellm_utils_tests/test_utils.py1708 # Create a mock response objectCOMMENT
MEDIUMtests/litellm_utils_tests/test_utils.py1815 # Create a mock CustomLogger classCOMMENT
MEDIUMtests/litellm_utils_tests/test_secret_manager.py28 # Define the path to the vertex_key.json fileCOMMENT
MEDIUMtests/litellm_utils_tests/test_secret_manager.py58 # Create a temporary fileCOMMENT
MEDIUMtests/litellm_utils_tests/test_secret_manager.py169 # Create a unique environment variable nameCOMMENT
MEDIUMtests/litellm_utils_tests/test_secret_manager.py183 # Create a temporary file inside a directory added to the allowlist.COMMENT
MEDIUMtests/litellm_utils_tests/test_secret_manager.py199 # Create a temporary fileCOMMENT
MEDIUMtests/litellm_utils_tests/test_secret_manager.py206 # Create a unique environment variable nameCOMMENT
MEDIUM…s/litellm_utils_tests/test_logging_callback_manager.py250 # Create a fresh ProxyLogging instanceCOMMENT
MEDIUMtests/litellm_utils_tests/test_hashicorp.py288 # Create a new instance with TLS cert configCOMMENT
MEDIUMtests/litellm_utils_tests/test_aiohttp_handler.py23 # Create a transport with the new helperCOMMENT
MEDIUMtests/litellm_utils_tests/test_aiohttp_handler.py91 # Create a simple httpx request to test withCOMMENT
MEDIUMtests/otel_tests/test_prometheus.py807 # Create a user with user_emailCOMMENT
MEDIUMtests/otel_tests/test_prometheus.py846 # 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
MEDIUMtests/otel_tests/test_team_member_permissions.py370 # Create a user keyCOMMENT
1035 more matches not shown…
Cross-File Repetition476 hits · 2380 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/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/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
HIGHtests/llm_translation/test_databricks.py0test that tool calls with no arguments is translated correctly. relevant issue: https://github.com/berriai/litellm/issueSTRING
HIGHtests/llm_translation/test_together_ai.py0test that tool calls with no arguments is translated correctly. relevant issue: https://github.com/berriai/litellm/issueSTRING
416 more matches not shown…
Modern AI Meta-Vocabulary486 hits · 1463 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.tsx543 // For some guardrails, the config values need to be in litellm_paramsCOMMENT
MEDIUM…guardrails/_components/custom_code/CustomCodeModal.tsx571 onClick={() => window.open("https://models.litellm.ai/guardrails", "_blank")}CODE
MEDIUM…guardrails/_components/custom_code/CustomCodeModal.tsx771 <Button size="sm" onClick={() => window.open("https://github.com/BerriAI/litellm-guardrails", "_blank")}>CODE
MEDIUM…/app/(dashboard)/agents/_components/add_agent_form.tsx156 // Tracing & guardrails stateCOMMENT
MEDIUM…ard/src/app/(dashboard)/policies/_components/index.tsx74 href="https://docs.litellm.ai/docs/proxy/guardrails/guardrail_policies"CODE
MEDIUM…ard/src/app/(dashboard)/policies/_components/index.tsx343 // Create selected guardrailsCOMMENT
MEDIUM…ard/src/app/(dashboard)/policies/_components/index.tsx356 // Refresh guardrails listCOMMENT
MEDIUM…ard/src/app/(dashboard)/policies/_components/index.tsx565 href="https://docs.litellm.ai/docs/proxy/guardrails/guardrail_policies#attachments"CODE
MEDIUM…c/app/(dashboard)/policies/_components/policy_info.tsx65 // Also fetch resolved guardrailsCOMMENT
MEDIUM…rd)/policies/_components/guardrail_selection_modal.tsx53 // Initialize selection: select only new guardrails by defaultCOMMENT
MEDIUM…ashboard)/policies/_components/ai_suggestion_modal.tsx293 // Keep existing guardrails until streaming completes to avoid temporary empty payloads.COMMENT
MEDIUM…ashboard)/guardrails-monitor/page.integration.test.tsx21// `/guardrails/usage/*` aggregates across tenants and is listed inCOMMENT
MEDIUM…app/(dashboard)/hooks/guardrails/useGuardrails.test.ts220 // Mock API returning empty guardrails arrayCOMMENT
MEDIUMui/litellm-dashboard/src/components/leftnav.test.tsx411 // than degrade into a leaf link to the non-route `?page=agentic`.COMMENT
MEDIUM…litellm-dashboard/src/components/ModelInfoEditForm.tsx564 href="https://docs.litellm.ai/docs/proxy/guardrails/quick_start"CODE
MEDIUMui/litellm-dashboard/src/components/Teams.tsx289 // Add this useEffect to fetch guardrailsCOMMENT
MEDIUMui/litellm-dashboard/src/components/Teams.tsx914 "https://docs.litellm.ai/docs/proxy/guardrails/quick_start",CODE
MEDIUMui/litellm-dashboard/src/components/Teams.tsx959 "https://docs.litellm.ai/docs/proxy/guardrails/guardrail_policies",CODE
MEDIUM…mponents/view_logs/GuardrailViewer/GuardrailViewer.tsx337 // Pre-call guardrails — use modeMatches so array modes (e.g. ["pre_call", "post_call"])COMMENT
MEDIUM…mponents/view_logs/GuardrailViewer/GuardrailViewer.tsx368 // During-call guardrails (rare)COMMENT
MEDIUM…mponents/view_logs/GuardrailViewer/GuardrailViewer.tsx380 // Post-call guardrailsCOMMENT
MEDIUM…oard/src/components/llm_calls/chat_completion.test.tsx102 undefined, // guardrailsCODE
MEDIUM…oard/src/components/llm_calls/chat_completion.test.tsx165 undefined, // guardrailsCODE
MEDIUM…oard/src/components/llm_calls/chat_completion.test.tsx212 undefined, // guardrailsCODE
MEDIUM…oard/src/components/llm_calls/chat_completion.test.tsx271 undefined, // guardrailsCODE
MEDIUM…oard/src/components/llm_calls/chat_completion.test.tsx343 undefined, // guardrailsCODE
MEDIUM…oard/src/components/llm_calls/chat_completion.test.tsx386 undefined, // guardrailsCODE
MEDIUM…oard/src/components/llm_calls/chat_completion.test.tsx511 undefined, // guardrailsCODE
MEDIUM…hboard/src/components/llm_calls/responses_api.test.tsx110 undefined, // guardrailsCODE
MEDIUM…hboard/src/components/llm_calls/responses_api.test.tsx151 undefined, // guardrailsCODE
MEDIUM…hboard/src/components/llm_calls/responses_api.test.tsx261 undefined, // guardrailsCODE
MEDIUM…hboard/src/components/llm_calls/responses_api.test.tsx326 undefined, // guardrailsCODE
MEDIUM…hboard/src/components/llm_calls/responses_api.test.tsx466 undefined, // guardrailsCODE
MEDIUM…hboard/src/components/llm_calls/responses_api.test.tsx510 undefined, // guardrailsCODE
MEDIUMui/litellm-dashboard/src/components/team/TeamInfo.tsx563 // Fetch resolved guardrails for all policiesCOMMENT
MEDIUMui/litellm-dashboard/src/components/team/TeamInfo.tsx1473 "https://docs.litellm.ai/docs/proxy/guardrails/quick_start",CODE
MEDIUMui/litellm-dashboard/src/components/team/TeamInfo.tsx1521 "https://docs.litellm.ai/docs/proxy/guardrails/guardrail_policies",CODE
MEDIUM…m-dashboard/src/components/templates/key_info_view.tsx117 // Fetch resolved guardrails for all policiesCOMMENT
MEDIUM…shboard/src/components/add_model/advanced_settings.tsx157 href="https://docs.litellm.ai/docs/proxy/guardrails/quick_start"CODE
MEDIUM…/add_model/ClassifierPromptEditor.integration.test.tsx66 // The editor is how an operator inspects the rubric before replacing it. Prefilling the agenticCOMMENT
MEDIUM…shboard/src/components/organisms/create_key_button.tsx1208 href="https://docs.litellm.ai/docs/proxy/guardrails/quick_start"CODE
MEDIUM…shboard/src/components/organisms/create_key_button.tsx1247 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
MEDIUMui/litellm-dashboard/src/lib/autorouter_presets.test.ts83 // The lite preset ships the LLM classifier with the bundled agentic rubric rather than an inlineCOMMENT
MEDIUMui/litellm-dashboard/src/lib/autorouter_presets.test.ts497 // Bugbot-found bug class from #35199's history: a classifier/embedding model left selectedCOMMENT
MEDIUMtests/otel_tests/test_guardrails.py174 # test no guardrails triggered for key without guardrailsCOMMENT
MEDIUMtests/otel_tests/test_guardrails.py186 # test guardrails triggered for key with guardrailsCOMMENT
MEDIUMtests/otel_tests/test_guardrails.py270 # Create team with guardrailsCOMMENT
MEDIUMtests/otel_tests/test_guardrails.py292 # Test no guardrails triggered for key without a teamCOMMENT
MEDIUMtests/vector_store_tests/rag/test_rag_s3_vectors.py60 # dimension is auto-detected from embedding model (text-embedding-3-small = 1536)COMMENT
MEDIUMtests/vector_store_tests/rag/test_rag_openai.py73 # Query with RAGCOMMENT
MEDIUMtests/vector_store_tests/rag/test_rag_openai.py120 # Query with RAG and rerankCOMMENT
MEDIUMtests/proxy_unit_tests/test_proxy_routes.py109 # LiteLLM native RAG routesCOMMENT
MEDIUMtests/proxy_unit_tests/test_key_generate_prisma.py3231 # team update with guardrailsCOMMENT
MEDIUMtests/mcp_tests/test_mcp_server.py2997 # - and inside `call_tool` for guardrails/hooksCOMMENT
MEDIUMtests/mcp_tests/test_mcp_guardrails.py691 proxy_logging = MockProxyLogging([]) # No guardrailsCODE
MEDIUMtests/llm_translation/test_bedrock_completion.py1316 "text": "<environment_details>\n# VSCode Visible Files\ncomputer-vision/hm-open3d/src/main.py\n\CODE
426 more matches not shown…
Deep Nesting2015 hits · 1438 pts
SeverityFileLineSnippetContext
LOWci_cd/run_migration.py198CODE
LOW…se/litellm_enterprise/proxy/vector_stores/endpoints.py156CODE
LOW…se/litellm_enterprise/proxy/vector_stores/endpoints.py275CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py612CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py825CODE
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.py597CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py798CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py818CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py857CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1170CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1646CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1767CODE
LOW…rprise/proxy/management_endpoints/project_endpoints.py126CODE
LOW…rprise/proxy/management_endpoints/project_endpoints.py611CODE
LOW…rprise/proxy/management_endpoints/project_endpoints.py956CODE
LOW…lm_enterprise/enterprise_callbacks/secret_detection.py467CODE
LOW…e/litellm_enterprise/enterprise_callbacks/llm_guard.py95CODE
LOW…m_enterprise/enterprise_callbacks/callback_controls.py16CODE
LOW…erprise/enterprise_callbacks/send_emails/base_email.py419CODE
LOW…terprise/enterprise_callbacks/send_emails/endpoints.py24CODE
LOWenterprise/enterprise_hooks/blocked_user_list.py57CODE
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.py189CODE
LOW…ging_callback_tests/test_logging_redaction_e2e_test.py233CODE
LOW…gging_callback_tests/test_unit_tests_init_callbacks.py87CODE
LOWtests/logging_callback_tests/test_langfuse_e2e_test.py28CODE
LOWtests/logging_callback_tests/test_gcs_pub_sub.py48CODE
LOW…ging_callback_tests/test_bedrock_knowledgebase_hook.py184CODE
LOWtests/logging_callback_tests/test_datadog.py168CODE
LOWtests/logging_callback_tests/test_otel_logging.py37CODE
LOWtests/litellm_utils_tests/test_utils.py1343CODE
LOWtests/litellm_utils_tests/test_proxy_budget_reset.py480CODE
LOWtests/litellm_utils_tests/test_proxy_budget_reset.py517CODE
LOWtests/otel_tests/test_prometheus.py81CODE
LOW…erprise_callbacks/test_prometheus_logging_callbacks.py2282CODE
LOW…ise/litellm_enterprise/integrations/test_prometheus.py83CODE
LOWtests/agent_tests/local_only_agent_tests/test_a2a.py267CODE
LOW…ent_tests/local_only_agent_tests/local_vertex_agent.py34CODE
LOW…sts/pass_through_tests/base_anthropic_messages_test.py72CODE
LOWtests/unified_google_tests/test_google_ai_studio.py25CODE
LOWtests/proxy_admin_ui_tests/test_key_management.py727CODE
LOW…llm_responses_api_testing/test_openai_responses_api.py279CODE
LOW…llm_responses_api_testing/test_openai_responses_api.py992CODE
LOW…ses_api_testing/test_google_ai_studio_responses_api.py187CODE
LOWtests/llm_responses_api_testing/base_responses_api.py145CODE
LOWtests/llm_responses_api_testing/base_responses_api.py270CODE
LOWtests/llm_responses_api_testing/base_responses_api.py783CODE
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
LOWtests/documentation_tests/test_requests_lib_usage.py67CODE
1955 more matches not shown…
Redundant / Tautological Comments810 hits · 1190 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.sh39# Check if nvm use was successfulCOMMENT
LOWui/litellm-dashboard/build_ui_custom_path.sh48# Check if the build was successfulCOMMENT
LOWui/litellm-dashboard/build_ui.sh3# Check if nvm is not installedCOMMENT
LOWui/litellm-dashboard/build_ui.sh29# Check if nvm use was successfulCOMMENT
LOWui/litellm-dashboard/build_ui.sh39# 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.py94 # Check if vector store already existsCOMMENT
LOW…se/litellm_enterprise/proxy/vector_stores/endpoints.py241 # Check if vector store existsCOMMENT
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.py1174 ## Check if unified_file_id is in the responseCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1460 # Check if the scheduler has the batch cost checking job registeredCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1465 # Check if the check_batch_cost_job exists in the schedulerCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1532 # Check if any referenced file ID matches the file we're trying to deleteCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py630 # Check if any files are stored in storage backends and need base64 conversionCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1286 ## Check if unified_file_id is in the responseCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1561 # Check if batch polling is enabledCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1566 # Check if file is referenced by any non-terminal batchesCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1616 # Check if file deletion should be blocked due to batch referencesCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1699 # Check if this is a base64 encoded unified file IDCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1795 # Set format to help Gemini determine mime typeCOMMENT
LOW…rprise/proxy/management_endpoints/project_endpoints.py518 # Check if user has permission to create projects for this teamCOMMENT
LOW…rprise/proxy/management_endpoints/project_endpoints.py539 # Check if project_id already existsCOMMENT
LOW…rprise/proxy/management_endpoints/project_endpoints.py887 # Check if user is admin (only admins can delete projects)COMMENT
LOW…rprise/proxy/management_endpoints/project_endpoints.py904 # Check if project existsCOMMENT
LOW…rprise/proxy/management_endpoints/project_endpoints.py915 # Check if there are any keys associated with this projectCOMMENT
LOW…rprise/proxy/management_endpoints/project_endpoints.py995 # 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.py134 # Check if API key should be included in emailCOMMENT
LOW…erprise/enterprise_callbacks/send_emails/base_email.py181 # 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/logging_callback_tests/test_gcs_pub_sub.py54 # Check if current path should be ignoredCOMMENT
LOWtests/logging_callback_tests/test_alerting.py876 # Check if the payload was loggedCOMMENT
LOW…ging_callback_tests/test_bedrock_knowledgebase_hook.py209 # Check if this chunk has search_results in provider_specific_fieldsCOMMENT
LOWtests/logging_callback_tests/test_datadog.py142 standard_payload["status"] = "failure" # Set status to failureCODE
LOWtests/litellm_utils_tests/test_utils.py1190 # Set force_ipv4 to TrueCOMMENT
LOWtests/litellm_utils_tests/test_secret_manager.py36 # Read the file contentCOMMENT
LOWtests/litellm_utils_tests/test_health_check.py106 # Check if response is successful (no error)COMMENT
LOWtests/litellm_utils_tests/test_health_check.py110 # Check if error is a transient Azure internal server errorCOMMENT
LOWtests/litellm_utils_tests/test_bedrock_token_counter.py94 # Check if the model doesn't support token countingCOMMENT
LOWtests/otel_tests/test_prometheus.py94 # Check if the request failed as expectedCOMMENT
LOWtests/otel_tests/test_prometheus.py103 # Check if the failure metric is present and correct - use pattern matching for robustnessCOMMENT
LOWtests/otel_tests/test_prometheus.py120 # Check if either pattern is in metrics and contains required fieldsCOMMENT
LOWtests/otel_tests/test_prometheus.py186 # Check if the request succeeded as expectedCOMMENT
LOWtests/otel_tests/test_prometheus.py203 # Check if the success metric is present and correct - use flexible matchingCOMMENT
LOWtests/otel_tests/test_prometheus.py310 # Check if successful fallback metric is incremented - use flexible matchingCOMMENT
LOWtests/otel_tests/test_prometheus.py330 # Check if failed fallback metric is incremented - use flexible matchingCOMMENT
LOW…tellm_enterprise/integrations/test_custom_guardrail.py207 ) # 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.py34 # Read the file contentCOMMENT
LOWtests/proxy_admin_ui_tests/test_usage_endpoints.py212 # Check if the response has the expected shape for both admin and internal userCOMMENT
LOWtests/proxy_admin_ui_tests/test_usage_endpoints.py237 # Check if the lists are sorted by total_spend in descending orderCOMMENT
LOWtests/proxy_admin_ui_tests/test_usage_endpoints.py252 # Check if admin has access to more or equal models compared to internal userCOMMENT
LOWtests/proxy_admin_ui_tests/test_usage_endpoints.py257 # Check if the response contains expected fieldsCOMMENT
LOWtests/proxy_admin_ui_tests/test_usage_endpoints.py305 # Check if admin has access to more or equal keys compared to internal userCOMMENT
750 more matches not shown…
Docstring Block Structure207 hits · 1035 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.py55 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.py2020 Default image cost calculator for image generation Args: model (str): Model name image_responsSTRING
HIGHlitellm/cost_calculator.py2094 Default video cost calculator for video generation Args: model (str): Model name duration_secoSTRING
HIGHlitellm/utils.py2353 Check if the given model supports system messages and return a boolean value. Parameters: model (str): TheSTRING
HIGHlitellm/utils.py2374 Check if the given model supports web search and return a boolean value. Parameters: model (str): The modeSTRING
HIGHlitellm/utils.py2395 Check if the given model supports URL context and return a boolean value. Parameters: model (str): The modSTRING
HIGHlitellm/utils.py2416 Check if the given model supports native streaming and return a boolean value. Parameters: model (str): ThSTRING
HIGHlitellm/utils.py2505 Check if the given model supports function calling and return a boolean value. Parameters: model (str): ThSTRING
HIGHlitellm/utils.py2545 Check if the given model supports function calling and return a boolean value. Parameters: model (str): ThSTRING
HIGHlitellm/utils.py2654 Check if the given model supports prompt caching and return a boolean value. Parameters: model (str): The STRING
HIGHlitellm/utils.py2683 Check if the given model supports computer use and return a boolean value. Parameters: model (str): The moSTRING
HIGHlitellm/utils.py5094 Get the maximum number of output tokens allowed for a given model. Parameters: model (str): The name of thSTRING
HIGHlitellm/utils.py5961 Get a dict for the maximum tokens (context window), input_cost_per_token, output_cost_per_token for a given model.STRING
HIGHlitellm/utils.py7823 Ensures all user messages are valid OpenAI chat completion messages. Args: messages: List of message dSTRING
HIGHlitellm/router.py12627 Returns deployments available for pass-through endpoints (based on load balancing strategy) Similar toSTRING
HIGHlitellm/main.py442 Asynchronously executes a litellm.completion() call for any of litellm supported llms (example gpt-4, gpt-3.5-turboSTRING
HIGHlitellm/main.py842 Generate a mock completion response for testing or debugging purposes. This is a helper function that simulateSTRING
HIGHlitellm/main.py6092 Embedding function that calls an API to generate embeddings for the given input. Parameters: - model: The STRING
HIGHlitellm/proxy/common_utils/performance_utils.py200Wrap a function directly with line_profiler. This is the recommended way to profile functions, especially closures STRING
HIGHlitellm/proxy/common_utils/path_utils.py14 Join path components and verify the result stays within base_dir. Resolves symlinks and '..' sequences, then cSTRING
HIGHlitellm/proxy/common_utils/path_utils.py42 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.py3039 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.py125 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.py156 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.py298 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.py342 During-call hook to scan the request in parallel with LLM processing. Args: data: Request STRING
HIGH…ellm/proxy/guardrails/guardrail_hooks/pillar/pillar.py376 Post-call hook to scan LLM responses before returning to user. Args: data: Original requesSTRING
HIGH…ellm/proxy/guardrails/guardrail_hooks/pillar/pillar.py424 Core method to run the Pillar guardrail scan. Args: data: Request data containing messagesSTRING
HIGH…ellm/proxy/guardrails/guardrail_hooks/pillar/pillar.py470 Handle API errors based on fallback_on_error configuration. Args: error: The exception thaSTRING
HIGH…/proxy/guardrails/guardrail_hooks/deepkeep/deepkeep.py279 Apply the DeepKeep AI Firewall guardrail to the given inputs. This is the main method called by the LiSTRING
HIGH…s/guardrail_hooks/crowdstrike_aidr/crowdstrike_aidr.py280 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.py431 Apply EnkryptAI guardrail to a batch of texts. Args: inputs: Dictionary containing texts aSTRING
HIGH…ils/guardrail_hooks/litellm_content_filter/patterns.py59 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.py360 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.py1367 Apply all content filtering checks to a single text. This method performs: 1. Category keywordSTRING
HIGH…ardrail_hooks/litellm_content_filter/content_filter.py1874 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.py104 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.py370 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.py177 Apply OpenAI moderation guardrail using the unified guardrail interface. This method is called by the STRING
HIGH…tellm/proxy/_experimental/mcp_server/rest_endpoints.py427 Resolve allowed MCP servers for a tool call with IP filtering. Args: request: The HTTP reqSTRING
HIGHlitellm/proxy/_experimental/mcp_server/server.py977 Call a specific tool with the provided arguments Args: name (str): Name of the tool to callSTRING
HIGH…oxy/_experimental/mcp_server/discoverable_endpoints.py185 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.py1783Join the bounded discovery task and return the resolved server. Concurrent callers share one task per server. ASTRING
HIGH…m/proxy/_experimental/mcp_server/mcp_server_manager.py4853 Filter arguments to only include allowed parameters for the given tool. Args: tool_name: BSTRING
HIGH…m/proxy/_experimental/mcp_server/mcp_server_manager.py5244 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.py362 Process and validate MCP request headers from the ASGI scope. This includes: 1. Extracting and STRING
HIGH…roxy/openai_files_endpoints/storage_backend_service.py43 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.py181 Encode a file/batch ID with model routing information. Format: <prefix><base64(litellm:<original_id>;model,<moSTRING
HIGHlitellm/proxy/openai_files_endpoints/common_utils.py348 Retrieve API credentials for a model from the LLM Router. Args: llm_router: LiteLLM Router instance STRING
HIGHlitellm/proxy/openai_files_endpoints/common_utils.py580 Orchestrate model-based credential routing for file operations. Args: file_id: File ID (may contain emSTRING
147 more matches not shown…
Cross-Language Confusion212 hits · 881 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…rprise/proxy/management_endpoints/project_endpoints.py217 A valid quota is a positive integer; null, zero, and negative are rejectedSTRING
HIGH…oxy_admin_ui_tests/test_team_delete_member_add_race.py168 seeded_roster = '[{"user_id": "%s", "user_email": null, "role": "user"}]' % user_idCODE
HIGH…oxy_admin_ui_tests/test_team_delete_member_add_race.py170 '[{"user_id": "%s", "user_email": null, "role": "user"}, 'CODE
HIGH…oxy_admin_ui_tests/test_team_delete_member_add_race.py171 '{"user_id": "%s", "user_email": null, "role": "user"}]' % (user_id, other_user)CODE
HIGH…gh_unit_tests/test_unit_test_anthropic_pass_through.py247 'data: {"type":"message_start","message":{"id":"msg_01G7T4YSBzHjmgTyizv1UfkB","type":"message","role":"assistantCODE
HIGH…gh_unit_tests/test_unit_test_anthropic_pass_through.py301 '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.py396 """A team admin cannot strip the team's cap (max_budget=null); removing theSTRING
HIGH…s/proxy_behavior/management/test_team_budget_limits.py418 """A proxy admin may remove a team's cap (max_budget=null)."""STRING
HIGHtests/llm_translation/test_openai.py915 "description": 'Executes a given bash command in a persistent shell session with optional timeout, eCODE
HIGHtests/llm_translation/test_prompt_factory.py339 "arguments": '{"completed_steps": [], "next_steps": [{"tool_name": "AccountingResearchTool", "deCODE
HIGHtests/llm_translation/test_prompt_factory.py348 "content": '{"completed_steps":[],"next_steps":[{"tool_name":"AccountingResearchTool","description":"ResearcCODE
HIGHtests/llm_translation/test_bedrock_completion.py1308 "content": "You are Claude Dev, a highly skilled software developer with extensive knowledge in many proCODE
HIGHtests/llm_translation/test_anthropic_completion.py653 "text": '<extra_info>\nThe following information has been included based on a keyword match for "gitCODE
HIGHtests/test_litellm/test_video_generation.py1414 """first_id / last_id may be absent or null; should not raise."""STRING
HIGHtests/test_litellm/test_assert_workflow_dir_hygiene.py114 directory = _populate(tmp_path, {"deploy.yaml": "on: {workflow_call: null}\njobs: {}\n"})CODE
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_check_licenses.py5legacy ``info.license`` field null, so the checker must read the new field (andSTRING
HIGHtests/test_litellm/types/test_types_utils.py274 Test that invalid (non-list, non-null) top_logprobs values are stillSTRING
HIGHtests/test_litellm/types/test_types_utils.py275 rejected by Pydantic validation. The validator only normalizes null,STRING
HIGHtests/test_litellm/types/llms/test_types_llms_openai.py278 status=null).STRING
HIGHtests/test_litellm/proxy/test_proxy_server.py9787 must stay a deliberate config.yaml act (max_ui_session_budget: null)."""STRING
HIGHtests/test_litellm/proxy/test_proxy_server.py3126 null) must be stored as-is and not gain a max_budget key.STRING
HIGH…s/test_litellm/proxy/test_common_request_processing.py1461 'data: {"error": {"code": null, "message": "code is null"}}',CODE
HIGH…t_litellm/proxy/guardrails/test_guardrail_endpoints.py2008 """List submissions only returns team guardrails (team_id not null)."""STRING
HIGH…xy/guardrails/guardrail_hooks/test_panw_prisma_airs.py2460 b'data: {"type":"content_block_delta","index":0,"delta":null}\n',CODE
HIGH…xy/guardrails/guardrail_hooks/test_panw_prisma_airs.py2443 """Non-dict JSON (null, arrays, ints) should be silently skipped."""STRING
HIGH…/guardrails/guardrail_hooks/test_bedrock_guardrails.py1440 # No BLOCKED actions found (all lists null) → should return FalseCOMMENT
HIGH…roxy/spend_tracking/test_spend_management_endpoints.py2868 "metadata": '{"applied_guardrails": [], "attempted_fallbacks": null, "original_model_group": null, "CODE
HIGH…roxy/spend_tracking/test_spend_management_endpoints.py2964 "metadata": '{"applied_guardrails": [], "attempted_fallbacks": null, "original_model_group": null, "CODE
HIGH…roxy/spend_tracking/test_spend_management_endpoints.py3058 "metadata": '{"applied_guardrails": [], "attempted_fallbacks": 0, "original_model_group": "my-anthroCODE
HIGH…roxy/spend_tracking/test_spend_management_endpoints.py1927 /spend/logs/ui does (#29674). Property access on a string is silently undefined,STRING
HIGH…sts/test_litellm/proxy/memory/test_memory_endpoints.py720 expectation of `PUT {"metadata": null}`.STRING
HIGH…ellm/proxy/_experimental/mcp_server/test_mcp_server.py7983 left unstamped (null)."""STRING
HIGH…/proxy/_experimental/mcp_server/test_mcp_sigv4_auth.py1101 # Credentials should be cleared. The clear reaches prisma as Json(None) (SQL null), whichCOMMENT
HIGH…/proxy/_experimental/mcp_server/test_rest_endpoints.py1098 {"tools": [], "error": null} body a caller cannot distinguish from a toolless server."""STRING
HIGH…xy/_experimental/mcp_server/test_mcp_partial_update.py805 # 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.py579 columns null) must move the settings to the columns and drop them from theSTRING
HIGHtests/test_litellm/proxy/auth/test_auth_checks.py5937 restriction field null, so a high-cardinality deployment misses the per-pod cache on virtuallySTRING
HIGH…roxy/ui_crud_endpoints/test_proxy_setting_endpoints.py935 # Send mixed SSO settings - some null, some validCOMMENT
HIGH…lm/proxy/management_endpoints/test_budget_endpoints.py381 """Clearing budget_duration (explicit null) must not recompute against a None duration."""STRING
HIGH…xy/management_endpoints/test_access_group_endpoints.py1312 # Verify the DB update was called with [] (not null) for list fieldsCOMMENT
HIGH…ellm/proxy/management_endpoints/test_team_endpoints.py5796 (max_budget=null), which is the strongest possible raise (finite -> unlimited).STRING
HIGH…ellm/proxy/management_endpoints/test_team_endpoints.py10394 When budget_duration is explicitly set to null, _set_budget_reset_atSTRING
HIGH…ellm/proxy/management_endpoints/test_team_endpoints.py10494 When team_member_budget is explicitly null, clear_team_member_budget_fieldsSTRING
HIGH…ellm/proxy/management_endpoints/test_team_endpoints.py10540 When team_member_rpm_limit and team_member_tpm_limit are explicitly null,STRING
HIGH…ellm/proxy/management_endpoints/test_team_endpoints.py10590 When all team_member fields are explicitly null, all correspondingSTRING
HIGH…/proxy/management_endpoints/test_ptu_model_settings.py324 """update_db_model drops a PTU field a patch sends as null, so the merged view has toSTRING
HIGH…/management_endpoints/test_key_management_endpoints.py2032 """budget_limits=[] / None must serialize to JSON null, never reach Prisma raw."""STRING
HIGH…/management_endpoints/test_key_management_endpoints.py13495 When budget_duration is explicitly set to null, prepare_key_update_dataSTRING
HIGH…tellm/proxy/proxy_server/test_routes_model_cost_map.py273 """No prisma client → returns the not-scheduled shape (4 keys, all-null)."""STRING
HIGH…_through_endpoints/test_streaming_handler_interrupt.py483 b'"choices":[{"index":0,"delta":{"content":"Hi"}}],"usage":null}\n\n'CODE
HIGH…_through_endpoints/test_streaming_handler_interrupt.py370 b'"choices":[{"index":0,"delta":{"content":"Hi"}}],"usage":null}\n\n'CODE
HIGH…handlers/test_anthropic_passthrough_logging_handler.py1125 'event: message_start\ndata: {"type":"message_start","message":{"id":"msg_1","type":"message","role":"assistCODE
HIGH…handlers/test_anthropic_passthrough_logging_handler.py1129 'event: message_delta\ndata: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null}CODE
HIGH…handlers/test_anthropic_passthrough_logging_handler.py1141 'event: message_start\ndata: {"type":"message_start","message":{"id":"msg_1","type":"message","role":"assistCODE
152 more matches not shown…
Fake / Example Data953 hits · 799 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.ts108 userEmail: "user@example.com",CODE
LOWui/litellm-dashboard/src/app/chat/layout.test.tsx18 userEmail: "user@example.com",CODE
LOW…nd-endpoints/components/ModelRetrySettingsTab.test.tsx104 expect(inputs[2]).toHaveAttribute("placeholder", "7"); // inherited from globalCODE
LOW…nd-endpoints/components/ModelRetrySettingsTab.test.tsx106 expect(inputs[0]).toHaveAttribute("placeholder", "1"); // inherited from defaultRetryCODE
LOW…pp/(dashboard)/tag-management/_components/tag_info.tsx191 fetchUserModels("dummy-user", "Admin", accessToken, setUserModels);CODE
LOW…ils/_components/TeamGuardrailsTab.integration.test.tsx38 userEmail: "user@example.com",CODE
LOW…ard)/guardrails/_components/TeamGuardrailsTab.test.tsx52 userEmail: "user@example.com",CODE
LOW…src/app/(dashboard)/api-keys/ApiKeysDashboard.test.tsx33 userEmail: "admin@example.com",CODE
LOW…components/components/EntityUsage/EntityUsage.test.tsx1087 expect(userCombobox()).toHaveAttribute("placeholder", "Search users by email…");CODE
LOW…hboard/src/app/(dashboard)/hooks/useAuthorized.test.ts132 user_email: "user@example.com",CODE
LOW…hboard/src/app/(dashboard)/hooks/useAuthorized.test.ts153 expect(result.current.userEmail).toBe("user@example.com");CODE
LOW…hboard/src/app/(dashboard)/hooks/useAuthorized.test.ts239 user_email: "user@example.com",CODE
LOW…hboard/src/app/(dashboard)/hooks/useAuthorized.test.ts260 expect(result.current.userEmail).toBe("user@example.com");CODE
LOW…hboard/src/app/(dashboard)/hooks/useAuthorized.test.ts298 user_email: "user@example.com",CODE
LOW…board)/vector-stores/_components/IndexesTable.test.tsx17 created_by: "admin@example.com",CODE
LOW…board)/vector-stores/_components/IndexesTable.test.tsx25 created_by: "admin@example.com",CODE
LOW…board)/vector-stores/_components/IndexesTable.test.tsx52 expect(screen.getByText("admin@example.com")).toBeInTheDocument();CODE
LOW…board)/vector-stores/_components/IndexesTable.test.tsx89 const link = screen.getByRole("link", { name: "admin@example.com" });CODE
LOW…_components/coordination_redis_settings/index.test.tsx187 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.tsx1266 'Authorization': 'Bearer dummy-token-for-extended-card'CODE
LOW…/litellm-dashboard/src/components/public_model_hub.tsx1315 'Authorization': 'Bearer dummy-token-for-extended-card'CODE
LOWui/litellm-dashboard/src/components/SSOModals.test.tsx244 user_email: "admin@example.com",CODE
LOWui/litellm-dashboard/src/components/SSOModals.test.tsx289 expect(emailInput.value).toBe("admin@example.com");CODE
LOWui/litellm-dashboard/src/components/SSOModals.test.tsx349 fireEvent.change(emailInput, { target: { value: "admin@example.com" } });CODE
LOWui/litellm-dashboard/src/components/SSOModals.test.tsx385 user_email: "admin@example.com",CODE
LOWui/litellm-dashboard/src/components/SSOModals.test.tsx449 target: { value: "admin@example.com" },CODE
LOW…src/components/organization/organization_view.test.tsx84 organization_alias: "Acme Corp",CODE
LOW…src/components/organization/organization_view.test.tsx88 created_by: "admin@example.com",CODE
LOW…src/components/organization/organization_view.test.tsx123 const [orgName] = await findAllByText("Acme Corp");CODE
LOW…src/components/organization/organization_view.test.tsx144 expect(screen.getByText("Acme Corp")).toBeInTheDocument();CODE
LOW…ttings/HashicorpVault/EditHashicorpVaultModal.test.tsx167 "placeholder",CODE
LOW…ttings/HashicorpVault/EditHashicorpVaultModal.test.tsx176 expect(screen.getByLabelText("Token")).toHaveAttribute("placeholder", "vault_token description");CODE
LOW…tings/Modals/EditSSOSettingsModal.integration.test.tsx17 user_email: "admin@example.com",CODE
LOW…tings/Modals/EditSSOSettingsModal.integration.test.tsx65 user_email: "admin@example.com",CODE
LOW…ttings/SSOSettings/Modals/BaseSSOSettingsForm.test.tsx306 user_email: "admin@example.com",CODE
LOW…ttings/SSOSettings/Modals/BaseSSOSettingsForm.test.tsx376 user_email: "admin@example.com",CODE
LOW…ard/src/components/claude_code_plugins/helpers.test.ts304 expect(isValidEmail("user@example.com")).toBe(true);CODE
LOW…src/components/agent_management/AgentSelector.test.tsx56 expect(screen.getByRole("combobox")).toHaveAttribute("placeholder", "Loading...");CODE
LOW…src/components/agent_management/AgentSelector.test.tsx61 expect(screen.getByRole("combobox")).toHaveAttribute("placeholder", "Select agents");CODE
LOW…src/components/agent_management/AgentSelector.test.tsx115 expect(screen.getByRole("combobox")).toHaveAttribute("placeholder", "Select agents");CODE
LOW…rc/components/DeletedKeysPage/DeletedKeysPage.test.tsx70 user_email: "user@example.com",CODE
LOW…tedKeysPage/DeletedKeysTable/DeletedKeysTable.test.tsx24 user_email: "user@example.com",CODE
LOW…tedKeysPage/DeletedKeysTable/DeletedKeysTable.test.tsx47 expect(screen.getByText("user@example.com")).toBeInTheDocument();CODE
LOW…c/components/VirtualKeysPage/VirtualKeysTable.test.tsx131 user_email: "user@example.com",CODE
893 more matches not shown…
Over-Commented Block579 hits · 479 pts
SeverityFileLineSnippetContext
LOWruff-tests.toml1# Lint config for the test tree, which ruff.toml excludes from `ruff check`.COMMENT
LOWruff-tests.toml21# that call is dead, so an `assert` sitting there is never checked. Keep theCOMMENT
LOWruff-tests.toml41# UnboundLocalError, and in an autouse fixture that takes every test in theCOMMENT
LOWruff-tests.toml61# first is always truthy and the second is an attribute nobody callsCOMMENT
LOWruff-tests.toml81# a TypeError from the raise itselfCOMMENT
LOWpyproject.toml341# sandbox and the test conftest imports from across the litellm package.COMMENT
LOWpyproject.toml361mutate_only_covered_lines = trueCOMMENT
LOWruff.toml1lint.ignore = ["F405", "E402", "F403"]COMMENT
LOWpackaging/homebrew/lite.rb1# Homebrew formula for the thin LiteLLM `lite` CLI (litellm[cli]).COMMENT
LOWterraform/provider/RELEASING.md41```bashCOMMENT
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# Shared env block fed to gateway, backend, and the migration task. MirrorsCOMMENT
LOWterraform/litellm/aws/ecs.tf241 # when its own PEM is supplied, so an endpoint set with a missing key wouldCOMMENT
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
LOW…dashboard)/agents/_components/agent_card_discovery.tsx81COMMENT
LOW…dashboard)/mcp-servers/_components/mcp_server_edit.tsx461 // Invalidate a token authorized in this edit session once any mint-relevant field diverges from theCOMMENT
LOWui/litellm-dashboard/src/utils/maskedSecretUtils.ts1// The proxy redacts secrets in API responses by masking them (e.g. "sk-1****2345"),COMMENT
LOW…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx121 return base64.b64encode(image_file.read()).decode('utf-8')COMMENT
LOW…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx141# "text": "${safePrompt}"COMMENT
LOW…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx181 return base64.b64encode(image_file.read()).decode('utf-8')COMMENT
LOW…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx201# "type": "input_image",COMMENT
LOW…m-dashboard/src/components/templates/key_edit_view.tsx241 if (neverExpire) {COMMENT
LOWui/litellm-dashboard/src/components/mcp_tools/types.tsx101// endpoints (authorization_url / token_url / registration_url). Grounded in RFC 8707 / RFC 8693 and the MCPCOMMENT
LOWui/litellm-dashboard/src/components/mcp_tools/types.tsx141// is ALWAYS admin-typed in every reachable state: the create form holds the DCR-minted client in aCOMMENT
LOWui/litellm-dashboard/src/components/mcp_tools/types.tsx221// from the UI-local OAUTH_FLOW.M2M ("m2m"); this is what the API actually returns.COMMENT
LOWui/litellm-dashboard/src/lib/autorouter_presets.ts241// `availability` is required, not optional: every model reference gets rewritten to theCOMMENT
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py641 f"Batch ID: {batch_id} is complete, tracking cost and usage"COMMENT
LOW…e/litellm_enterprise/enterprise_callbacks/llm_guard.py221# asyncio.run(COMMENT
LOWtests/test_callbacks_on_proxy.py21# other tests sharing this proxy (this suite runs `pytest -n 4` against a singleCOMMENT
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## 2: Post-API-CallCOMMENT
LOWtests/logging_callback_tests/test_alerting.py541 mock_send_alert.assert_awaited_once()COMMENT
LOW…ging_callback_tests/test_bedrock_knowledgebase_hook.py641# litellm.set_verbose = TrueCOMMENT
LOW…ging_callback_tests/test_bedrock_knowledgebase_hook.py661# print("standard_logging_vector_store_request_metadata:", json.dumps(standard_logging_vector_store_request_metadataCOMMENT
LOW…e/litellm_enterprise/proxy/hooks/test_managed_files.py221COMMENT
LOW…e/litellm_enterprise/proxy/hooks/test_managed_files.py241# assert any(f.filename == "test1.txt" for f in files)COMMENT
LOW…e/litellm_enterprise/proxy/hooks/test_managed_files.py261# assert retrieved_file.purpose == "assistants"COMMENT
LOW…e/litellm_enterprise/proxy/hooks/test_managed_files.py281# # Verify file is no longer retrievableCOMMENT
LOW…e/litellm_enterprise/proxy/hooks/test_managed_files.py301# proxy_managed_files.delete_file("nonexistent-file-id")COMMENT
LOW…s/local_only_agent_tests/test_a2a_completion_bridge.py281COMMENT
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.py41# """COMMENT
LOW…ough_unit_tests/test_anthropic_messages_tool_search.py61# """COMMENT
519 more matches not shown…
Hallucination Indicators42 hits · 465 pts
SeverityFileLineSnippetContext
CRITICALtests/audio_tests/test_whisper.py260 mock_azure_client.audio.transcriptions.with_raw_response.create.assert_called_once()CODE
CRITICALtests/proxy_unit_tests/test_check_batch_cost.py2344 instance.prisma_client.db.litellm_usertable.find_unique.assert_not_called()CODE
CRITICAL…xy/guardrails/guardrail_hooks/test_panw_prisma_airs.py2221 sent_payload = mock_client.client.post.call_args.kwargs.get(CODE
CRITICAL…xy/guardrails/guardrail_hooks/test_panw_prisma_airs.py2256 sent_payload = mock_client.client.post.call_args.kwargs.get(CODE
CRITICAL…sts/test_litellm/proxy/memory/test_memory_endpoints.py854 self.prisma.db.litellm_teamtable.teams.append(CODE
CRITICAL…sts/test_litellm/proxy/memory/test_memory_endpoints.py879 self.prisma.db.litellm_teamtable.teams.append(CODE
CRITICAL…sts/test_litellm/proxy/memory/test_memory_endpoints.py899 self.prisma.db.litellm_teamtable.teams.append(CODE
CRITICALtests/test_litellm/proxy/auth/test_auth_utils.py1874 authorization = route.calls.last.request.headers.get("authorization")CODE
CRITICAL…test_litellm/proxy/batches_endpoints/test_endpoints.py2682 metadata = retrieve_harness.router.aretrieve_batch.await_args.kwargs.get("litellm_metadata") or {}CODE
CRITICAL…test_litellm/proxy/batches_endpoints/test_endpoints.py2692 metadata = retrieve_harness.router.aretrieve_batch.await_args.kwargs.get("litellm_metadata") or {}CODE
CRITICAL…llm/proxy/openai_files_endpoint/test_files_endpoint.py751 print(f"Content: {gemini_route.calls.last.request.content.decode()}")CODE
CRITICAL…llm/proxy/openai_files_endpoint/test_files_endpoint.py752 print(f"Response: {gemini_route.calls.last.response.content.decode()}")CODE
CRITICAL…llm/proxy/openai_files_endpoint/test_files_endpoint.py754 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.py195 self._prisma.db.litellm_workflowrun.create.assert_awaited_once()CODE
CRITICAL…gement_endpoints/test_workflow_management_endpoints.py298 self._prisma.db.litellm_workflowrun.update.assert_awaited_once()CODE
CRITICAL…gement_endpoints/test_workflow_management_endpoints.py627 self._prisma.db.litellm_workflowrun.update.assert_not_awaited()CODE
CRITICAL…gement_endpoints/test_workflow_management_endpoints.py725 self._prisma.db.litellm_workflowrun.update.assert_not_awaited()CODE
CRITICALtests/test_litellm/proxy/client/test_models.py344 assert "not found" in exc_info.value.orig_exception.response.text.lower()CODE
CRITICALtests/test_litellm/proxy/client/test_models.py715 assert "not found" in exc_info.value.orig_exception.response.text.lower()CODE
CRITICAL…st_litellm/enterprise/proxy/test_managed_files_hook.py325 managed_files.prisma_client.db.litellm_managedfiletable.find_many.assert_awaited_once_with(CODE
CRITICALtests/test_litellm/repositories/test_repositories.py1676 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.py90 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICALtests/test_litellm/caching/test_azure_blob_cache.py167 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICALlitellm/proxy/public_endpoints/public_v1/model_hub.py233 "litellm.proxy.public_endpoints.public_v1.model_hub.public_model_hub_list(): Exception occured - %s", eCODE
CRITICALlitellm/proxy/hooks/azure_content_safety.py33 from azure.core.exceptions import HttpResponseErrorCODE
CRITICAL…proxy/management_endpoints/management_v1/spend_logs.py159 "litellm.proxy.management_endpoints.management_v1.spend_logs._list_spend_log_facet(): Exception occured - %sCODE
CRITICAL…lm/proxy/management_endpoints/management_v1/budgets.py194 "litellm.proxy.management_endpoints.management_v1.budgets.list_budgets(): Exception occured - %s", eCODE
CRITICALlitellm/caching/azure_blob_cache.py23 from azure.core.exceptions import ResourceExistsErrorCODE
CRITICALlitellm/caching/azure_blob_cache.py62 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICALlitellm/caching/azure_blob_cache.py82 from azure.core.exceptions import ResourceNotFoundErrorCODE
Structural Annotation Overuse264 hits · 457 pts
SeverityFileLineSnippetContext
LOW…/app/(dashboard)/agents/_components/add_agent_form.tsx139 // Step 3: key assignment stateCOMMENT
LOW…/app/(dashboard)/agents/_components/add_agent_form.tsx151 // Step 4: resultsCOMMENT
LOWtests/litellm_utils_tests/test_cyberark.py376 # Step 1: Create initial secret with old aliasCOMMENT
LOWtests/litellm_utils_tests/test_cyberark.py384 # Step 2: Rotate to new alias with new valueCOMMENT
LOWtests/litellm_utils_tests/test_cyberark.py396 # Step 3: Verify new alias has new valueCOMMENT
LOWtests/litellm_utils_tests/test_cyberark.py401 # Step 4: Verify old alias still exists (CyberArk doesn't delete via API)COMMENT
LOWtests/litellm_utils_tests/test_cyberark.py249 # Step 1: Write initial secret (simulates key creation)COMMENT
LOWtests/litellm_utils_tests/test_cyberark.py262 # Step 2: Rotate the secret (simulates key rotation)COMMENT
LOWtests/litellm_utils_tests/test_cyberark.py275 # 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.py77 # Step 1: Initial request with the toolCOMMENT
LOW…_responses_api_testing/test_anthropic_responses_api.py95 # Step 2: Send the results of the tool call back to the modelCOMMENT
LOW…llm_responses_api_testing/test_openai_responses_api.py1226 # 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.py1239 # Step 2: Send followup with approval for the MCP callCOMMENT
LOW…ses_api_testing/test_google_ai_studio_responses_api.py124 # Step 1: Initial request with toolsCOMMENT
LOW…ses_api_testing/test_google_ai_studio_responses_api.py224 # Step 1: Streaming request with toolsCOMMENT
LOWtests/documentation_tests/test_exception_types.py45 # Step 2: Extract the table contentCOMMENT
LOWtests/documentation_tests/test_exception_types.py48 # Step 3: Create a pattern to capture the Error Types from each rowCOMMENT
LOWtests/vector_store_tests/rag/base_rag_tests.py133 # Step 1: IngestSTRING
LOWtests/vector_store_tests/rag/base_rag_tests.py144 # Step 2: Query with retry (indexing may take time)STRING
LOWtests/llm_translation/test_bedrock_completion.py2832 "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` fCODE
LOWtests/llm_translation/test_bedrock_completion.py2837 "text": "I'll help you implement the `__len__` method for Pipeline in scikit-learn to fix the isCODE
LOWtests/llm_translation/test_anthropic_completion.py1159 "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` fCODE
LOWtests/llm_translation/test_anthropic_completion.py1164 "text": "I'll help you implement the `__len__` method for Pipeline in scikit-learn to fix the isCODE
LOWtests/llm_translation/test_gemini.py1169 # Step 2: check if the model wanted to call a functionCOMMENT
LOWtests/llm_translation/test_gemini.py1172 # Step 3: call the functionCOMMENT
LOWtests/llm_translation/test_gemini.py1179 # Step 4: send the info for each function call and function response to the modelCOMMENT
LOWtests/llm_translation/realtime/base_realtime_tests.py341 # Step 1: Send a user message after connection is establishedCOMMENT
LOWtests/llm_translation/realtime/base_realtime_tests.py364 # Step 2: Trigger the response after user message is acknowledgedCOMMENT
LOWtests/llm_translation/realtime/base_realtime_tests.py381 # Step 3: Wait for LLM responsesCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py35 # Step 1: litellm.embedding() extracts and passes shared_sessionCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py39 # Step 2: OpenAI handlers pass it forwardCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py45 # Step 3: _get_openai_client passes it to AsyncHTTPHandlerCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py49 # Step 4: AsyncHTTPHandler.create_client passes it to _create_async_transportCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py53 # Step 5: _create_async_transport passes it to _create_aiohttp_transportCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py57 # Step 6: _create_aiohttp_transport uses itCOMMENT
LOWtests/test_litellm/test_project_alias_tracking.py118 # Step 1: Auth → sanitized metadataCOMMENT
LOWtests/test_litellm/test_project_alias_tracking.py123 # Step 2: Sanitized metadata → standard logging metadataCOMMENT
LOWtests/test_litellm/test_cost_calculator.py265 # Step 1: Test a model where input_cost_per_image_token is not set.COMMENT
LOWtests/test_litellm/test_cost_calculator.py281 # Step 2: Set input_cost_per_image_token.COMMENT
LOWtests/test_litellm/proxy/test_proxy_server.py337 # Step 1: login — get codeCOMMENT
LOWtests/test_litellm/proxy/test_proxy_server.py345 # 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.py1910 # Step 1: Create vector store on Instance 1COMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1916 # Step 2: Instance 2 fetches and caches the vector storeCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1663 # Step 1: Create vector store on Instance 1COMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1684 # Step 2: Instance 2 should be able to find it via database fallbackCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1702 # Step 3: Test that Instance 2 can list vector stores from databaseCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1737 # Step 4: Delete vector store on Instance 1COMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1762 # 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.py1799 # Step 6: Test that using a deleted vector store fails gracefullyCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1934 # Step 3: Instance 1 updates the vector store in the databaseCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1966 # Step 4: Instance 2 calls list endpoint (which should sync with database)COMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1986 # Step 5: Verify Instance 2 now has the updated dataCOMMENT
LOW…xy/management_endpoints/scim/test_scim_v2_endpoints.py325 # Step 1: Start with no default params (fresh proxy state)COMMENT
204 more matches not shown…
Verbosity Indicators239 hits · 427 pts
SeverityFileLineSnippetContext
LOW…/app/(dashboard)/agents/_components/add_agent_form.tsx139 // Step 3: key assignment stateCOMMENT
LOW…/app/(dashboard)/agents/_components/add_agent_form.tsx151 // 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.py376 # Step 1: Create initial secret with old aliasCOMMENT
LOWtests/litellm_utils_tests/test_cyberark.py384 # Step 2: Rotate to new alias with new valueCOMMENT
LOWtests/litellm_utils_tests/test_cyberark.py396 # Step 3: Verify new alias has new valueCOMMENT
LOWtests/litellm_utils_tests/test_cyberark.py401 # Step 4: Verify old alias still exists (CyberArk doesn't delete via API)COMMENT
LOWtests/litellm_utils_tests/test_cyberark.py249 # Step 1: Write initial secret (simulates key creation)COMMENT
LOWtests/litellm_utils_tests/test_cyberark.py262 # Step 2: Rotate the secret (simulates key rotation)COMMENT
LOWtests/litellm_utils_tests/test_cyberark.py275 # 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.py77 # Step 1: Initial request with the toolCOMMENT
LOW…_responses_api_testing/test_anthropic_responses_api.py95 # Step 2: Send the results of the tool call back to the modelCOMMENT
LOW…llm_responses_api_testing/test_openai_responses_api.py1226 # 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.py1239 # Step 2: Send followup with approval for the MCP callCOMMENT
LOW…ses_api_testing/test_google_ai_studio_responses_api.py124 # Step 1: Initial request with toolsCOMMENT
LOW…ses_api_testing/test_google_ai_studio_responses_api.py224 # Step 1: Streaming request with toolsCOMMENT
LOWtests/documentation_tests/test_exception_types.py45 # Step 2: Extract the table contentCOMMENT
LOWtests/documentation_tests/test_exception_types.py48 # Step 3: Create a pattern to capture the Error Types from each rowCOMMENT
LOWtests/vector_store_tests/rag/base_rag_tests.py133 # Step 1: IngestSTRING
LOWtests/vector_store_tests/rag/base_rag_tests.py144 # Step 2: Query with retry (indexing may take time)STRING
LOWtests/llm_translation/test_bedrock_completion.py2832 "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` fCODE
LOWtests/llm_translation/test_bedrock_completion.py2837 "text": "I'll help you implement the `__len__` method for Pipeline in scikit-learn to fix the isCODE
LOWtests/llm_translation/test_anthropic_completion.py1159 "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` fCODE
LOWtests/llm_translation/test_anthropic_completion.py1164 "text": "I'll help you implement the `__len__` method for Pipeline in scikit-learn to fix the isCODE
LOWtests/llm_translation/test_gemini.py1169 # Step 2: check if the model wanted to call a functionCOMMENT
LOWtests/llm_translation/test_gemini.py1172 # Step 3: call the functionCOMMENT
LOWtests/llm_translation/test_gemini.py1179 # Step 4: send the info for each function call and function response to the modelCOMMENT
LOWtests/llm_translation/realtime/base_realtime_tests.py341 # Step 1: Send a user message after connection is establishedCOMMENT
LOWtests/llm_translation/realtime/base_realtime_tests.py364 # Step 2: Trigger the response after user message is acknowledgedCOMMENT
LOWtests/llm_translation/realtime/base_realtime_tests.py381 # Step 3: Wait for LLM responsesCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py35 # Step 1: litellm.embedding() extracts and passes shared_sessionCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py39 # Step 2: OpenAI handlers pass it forwardCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py45 # Step 3: _get_openai_client passes it to AsyncHTTPHandlerCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py49 # Step 4: AsyncHTTPHandler.create_client passes it to _create_async_transportCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py53 # Step 5: _create_async_transport passes it to _create_aiohttp_transportCOMMENT
LOWtests/test_litellm/test_aembedding_session_reuse_e2e.py57 # Step 6: _create_aiohttp_transport uses itCOMMENT
LOWtests/test_litellm/test_project_alias_tracking.py118 # Step 1: Auth → sanitized metadataCOMMENT
LOWtests/test_litellm/test_project_alias_tracking.py123 # Step 2: Sanitized metadata → standard logging metadataCOMMENT
LOWtests/test_litellm/test_cost_calculator.py265 # Step 1: Test a model where input_cost_per_image_token is not set.COMMENT
LOWtests/test_litellm/test_cost_calculator.py281 # Step 2: Set input_cost_per_image_token.COMMENT
LOWtests/test_litellm/proxy/test_proxy_server.py337 # Step 1: login — get codeCOMMENT
LOWtests/test_litellm/proxy/test_proxy_server.py345 # 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.py1910 # Step 1: Create vector store on Instance 1COMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1916 # Step 2: Instance 2 fetches and caches the vector storeCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1663 # Step 1: Create vector store on Instance 1COMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1684 # Step 2: Instance 2 should be able to find it via database fallbackCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1702 # Step 3: Test that Instance 2 can list vector stores from databaseCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1737 # Step 4: Delete vector store on Instance 1COMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1762 # 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.py1799 # Step 6: Test that using a deleted vector store fails gracefullyCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1934 # Step 3: Instance 1 updates the vector store in the databaseCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1966 # Step 4: Instance 2 calls list endpoint (which should sync with database)COMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1986 # Step 5: Verify Instance 2 now has the updated dataCOMMENT
179 more matches not shown…
Magic Placeholder Names95 hits · 371 pts
SeverityFileLineSnippetContext
HIGHterraform/provider/docs/index.md75export LITELLM_API_KEY="your-api-key"CODE
HIGH…guardrails/_components/custom_code/CustomCodeModal.tsx95 headers={"Authorization": "Bearer YOUR_API_KEY"},CODE
HIGH…d)/playground/components/chat_ui/SessionManagement.tsx121 -H "Authorization: Bearer your-api-key" \\CODE
HIGH…hboard)/api-reference/_components/APIReferenceView.tsx54 api_key="your_api_key",CODE
HIGH…(dashboard)/mcp-servers/_components/MCPToolsetsTab.tsx338 "headers": { "x-litellm-api-key": "Bearer <your-api-key>" }CODE
HIGH…/litellm-dashboard/src/components/public_model_hub.tsx1046 apiKey: "your_api_key",CODE
HIGH…/litellm-dashboard/src/components/public_model_hub.tsx1070 apiKey: "your_api_key",CODE
HIGH…tellm-dashboard/src/components/AIHub/ModelHubTable.tsx747 api_key="your_api_key",CODE
HIGHtests/llm_translation/test_minimax_tts.py222 os.environ["MINIMAX_API_KEY"] = "your-api-key-here"CODE
HIGHtests/llm_translation/test_minimax_tts.py244 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.py687 "api_key": <your-api-key>,STRING
HIGHlitellm/router.py696 "api_key": <your-api-key>,STRING
HIGHlitellm/router.py705 "api_key": <your-api-key>,STRING
HIGHlitellm/proxy/guardrails/guardrail_endpoints.py137 curl -X GET "http://localhost:4000/guardrails/list" -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/guardrails/guardrail_endpoints.py191 curl -X GET "http://localhost:4000/v2/guardrails/list" -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/guardrails/guardrail_endpoints.py338 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/guardrails/guardrail_endpoints.py446 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/guardrails/guardrail_endpoints.py554 -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/guardrails/guardrail_endpoints.py1123 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/guardrails/guardrail_endpoints.py1256 -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/guardrails/guardrail_endpoints.py1995 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGH…m/proxy/_experimental/mcp_server/mcp_server_manager.py1511 "url": "https://actions.zapier.com/mcp/<your-api-key>/sse"STRING
HIGH…m/proxy/_experimental/mcp_server/mcp_server_manager.py1517 "url": "https://actions.zapier.com/mcp/<your-api-key>/sse"STRING
HIGHlitellm/proxy/agent_endpoints/endpoints.py374 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/agent_endpoints/endpoints.py490 -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/agent_endpoints/endpoints.py572 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/agent_endpoints/endpoints.py674 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/agent_endpoints/endpoints.py774 -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/agent_endpoints/endpoints.py830 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/agent_endpoints/endpoints.py936 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/policy_engine/policy_resolve_endpoints.py238 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/policy_engine/policy_resolve_endpoints.py339 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py95 -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py97 -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py167 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py394 -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py434 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py488 -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py540 -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py610 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py670 -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py724 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py735 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py813 -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py851 -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/prompts/prompt_endpoints.py375 curl -X GET "http://localhost:4000/prompts/list" -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/prompts/prompt_endpoints.py471 -H "Authorization: Bearer <your_api_key>"STRING
35 more matches not shown…
Modern Structural Boilerplate342 hits · 334 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
LOWtests/test_litellm/test_pre_commit_lint.py142def _set_base_ref(repo: Path) -> None:STRING
LOW…drails/guardrail_hooks/_cisco_ai_defense_test_utils.py310__all__ = [CODE
LOW…test_litellm/proxy/batches_endpoints/test_endpoints.py231def 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.py21logger = logging.getLogger(__name__)CODE
LOW…m/ocr/test_ocr_azure_document_intelligence_api_base.py22 def update_from_kwargs(self, **kwargs: object) -> None:CODE
LOWtests/test_litellm/repositories/test_unit_of_work.py20 def update_many(self, where: Mapping[str, object], data: Mapping[str, object]) -> None:CODE
LOW…itellm/integrations/test_prometheus_caller_identity.py63def _set_caller_identity(monkeypatch: pytest.MonkeyPatch, mode: str) -> None:CODE
LOW…ellm/integrations/test_prometheus_rate_limit_labels.py352def _set_virtual_key_metrics(logger: PrometheusLogger, kwargs: dict) -> None:CODE
LOW…t_litellm/caching/test_redis_cluster_node_isolation.py32 def update_active_connections_for_reconnect(self) -> None: ...CODE
LOWtests/e2e/proxy_client.py364 def update_model(self, model_id: str, litellm_params: LiteLLMParamsBody) -> None:CODE
LOW…2e/quota_management/spend_tracking/spend_e2e_client.py49__all__ = [CODE
LOWtests/e2e/management/test_team_management_e2e.py121def _set_blocked(client: ManagementClient, team_id: str, *, blocked: bool) -> None:CODE
LOWtests/e2e/management/management_client.py147 def update_key_models(self, key: str, models: list[str]) -> None:CODE
LOWtests/e2e/management/management_client.py253 def update_team(self, body: TeamUpdateBody) -> None:CODE
LOWtests/e2e/management/management_client.py397 def update_user(self, body: UserUpdateBody) -> None:CODE
LOWtests/e2e/management/management_client.py468 def update_org(self, body: OrgUpdateBody) -> None:CODE
LOWtests/e2e/mcp/oauth_chat_client.py62 async def set_tokens(self, tokens: OAuthToken) -> None:CODE
LOWtests/e2e/mcp/oauth_chat_client.py68 async def set_client_info(self, client_info: OAuthClientInformationFull) -> None:CODE
LOWtests/e2e/access_control/access_control_client.py95 def set_team_models(self, team_id: str, team_alias: str, models: list[str]) -> None:CODE
LOWtests/e2e/llm_translation/endpoints_client.py21__all__ = [CODE
LOWlitellm/__init__.py1474def set_global_bitbucket_config(config: Dict[str, Any]) -> None:CODE
LOWlitellm/__init__.py1484def set_global_gitlab_config(config: Dict[str, Any]) -> None:CODE
LOWlitellm/_lazy_imports_registry.py1473__all__ = [CODE
LOWlitellm/utils.py2916def set_live_deployment_replay(replay: Callable[[], None]) -> None:CODE
LOWlitellm/router.py3308 def _set_deployment_num_retries_on_exception(self, exception: Exception, deployment: dict) -> None:CODE
LOWlitellm/router.py3327 def _set_failed_deployment_id_on_exception(self, exception: Exception, deployment: Mapping[str, Any]) -> None:CODE
LOWlitellm/router.py9024 def _update_deployment_indices_after_removal(self, model_id: str, removal_idx: int) -> None:CODE
LOWlitellm/router.py9092 def _update_team_model_index(self, model: dict, idx: int) -> None:CODE
LOWlitellm/vector_stores/__init__.py4__all__ = ["VectorStoreRegistry", "acreate", "asearch", "create", "search"]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/utils.py1937 def set_provider_response_headers(self, headers: httpx.Headers) -> None:CODE
LOWlitellm/types/search.py14__all__ = ["SearchProvider", "SearchProviders"]CODE
LOWlitellm/types/interactions/__init__.py75__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/llms/openai.py116 def set_response_cost(self, response_cost: float | None) -> None:CODE
LOWlitellm/types/google_genai/__init__.py8__all__ = [CODE
LOWlitellm/proxy/proxy_server.py3973def _set_redis_usage_cache(coordination_redis_cache: RedisCache | None) -> None:CODE
LOWlitellm/proxy/utils.py5711 async def _set_spend_logs_row_count_in_proxy_state(self) -> None:STRING
LOWlitellm/proxy/rag_endpoints/__init__.py5__all__ = ["router"]CODE
LOWlitellm/proxy/common_utils/performance_utils.py101 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.py1623 def update_in_memory_litellm_params(self, litellm_params: LitellmParams) -> None:CODE
LOW…lm/proxy/guardrails/guardrail_hooks/tool_permission.py140 def update_in_memory_litellm_params(self, litellm_params: LitellmParams | dict) -> None:CODE
LOW…s/guardrail_hooks/panw_prisma_airs/panw_prisma_airs.py1530 def _set_tool_call_arguments(tool_call: ToolCallLike, masked_text: str) -> None:CODE
LOW…s/guardrail_hooks/zscaler_ai_guard/zscaler_ai_guard.py105 def update_in_memory_litellm_params(self, litellm_params: "LitellmParams") -> None:CODE
LOW…uardrails/guardrail_hooks/cisco_ai_defense/__init__.py83__all__ = [CODE
LOW…s/guardrail_hooks/custom_code/custom_code_guardrail.py374 def update_custom_code(self, new_code: str) -> None:CODE
282 more matches not shown…
Cross-Language Confusion (JS/TS)46 hits · 281 pts
SeverityFileLineSnippetContext
HIGH…hboard)/api-reference/_components/APIReferenceView.tsx68print(response)`}CODE
HIGH…hboard)/api-reference/_components/APIReferenceView.tsx102print(response)`}CODE
HIGH…hboard)/api-reference/_components/APIReferenceView.tsx133print(response)`}CODE
HIGH…d/src/app/(dashboard)/budgets/_components/constants.ts42print(completion.choices[0].message)`;CODE
HIGH…/_components/prompt_editor_view/PromptCodeSnippets.tsx139print(response)`;CODE
HIGH…/_components/prompt_editor_view/PromptCodeSnippets.tsx157print(response)`;CODE
HIGH…/_components/prompt_editor_view/PromptCodeSnippets.tsx171print(response)`;CODE
HIGHui/litellm-dashboard/src/components/networking.tsx6562 // if 404 - return NoneCOMMENT
HIGH…/litellm-dashboard/src/components/public_model_hub.tsx1361print(response.model_dump(mode='json', exclude_none=True))`}CODE
HIGH…/litellm-dashboard/src/components/public_model_hub.tsx1385print(response.model_dump(mode='json', exclude_none=True))`;CODE
HIGH…/litellm-dashboard/src/components/public_model_hub.tsx1495 print(f"Available tools: {[tool.name for tool in tools]}")CODE
HIGH…/litellm-dashboard/src/components/public_model_hub.tsx1502 print(f"Response: {response}")CODE
HIGH…/litellm-dashboard/src/components/public_model_hub.tsx1535 print(f"Available tools: {[tool.name for tool in tools]}")CODE
HIGH…/litellm-dashboard/src/components/public_model_hub.tsx1542 print(f"Response: {response}")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx251 print(f"Image saved to {image_path}")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx256 print("Could not find image URL in response.")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx257 print("Full response:", json_response)CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx259 print(f"An error occurred: {e}")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx260 print("Full response:", json_response)CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx336 print(f"Image saved to {image_filename}")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx341 print("No image generated. Model response:")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx342 print("\\n".join(text_response))CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx344 print("No image data found in response.")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx345 print("Full response for debugging:")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx346 print(response)CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx420 print(f"Image saved to {image_filename}")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx425 print("No image generated. Model response:")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx426 print("\\n".join(text_response))CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx428 print("No image data found in response.")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx429 print("Full response for debugging:")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx430 print(response)CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx503 print(f"Image saved to {image_filename}")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx508 print("No image generated. Model response:")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx509 print("\\n".join(text_response))CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx511 print("No image data found in response.")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx512 print("Full response for debugging:")CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx513 print(response)CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx129print(response)CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx189print(response.output_text)CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx525print(response.data[0].embedding)CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx539print(response.text)CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx554print(f"Audio saved to {output_filename}")CODE
HIGH…c/components/routing_groups/RoutingGroupUsagePanel.tsx41print(response)`;CODE
HIGH…tellm-dashboard/src/components/AIHub/ModelHubTable.tsx761print(response.choices[0].message.content)`}CODE
HIGH…tellm-dashboard/src/components/AIHub/ModelHubTable.tsx1087 print(f"Available tools: {[tool.name for tool in tools]}")CODE
HIGH…tellm-dashboard/src/components/AIHub/ModelHubTable.tsx1094 print(f"Response: {response}")CODE
AI Structural Patterns320 hits · 244 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.py1138CODE
LOW…proxy/management_endpoints/key_management_endpoints.py42CODE
LOWtests/test_keys.py57CODE
LOWtests/test_users.py43CODE
LOWtests/otel_tests/test_e2e_model_access.py56CODE
LOWtests/otel_tests/test_e2e_budgeting.py82CODE
LOW…/llm_responses_api_testing/test_azure_responses_api.py131CODE
LOW…/llm_responses_api_testing/test_azure_responses_api.py233CODE
LOW…_through_unit_tests/test_websearch_interception_e2e.py943CODE
LOW…_unit_tests/test_unit_test_max_model_budget_limiter.py580CODE
LOWtests/proxy_unit_tests/test_proxy_utils.py1592CODE
LOWtests/search_tests/test_searxng_search.py207CODE
LOWtests/spend_tracking_tests/test_spend_accuracy_tests.py114CODE
LOWtests/proxy_behavior/management/conftest.py136CODE
LOW…proxy_behavior/spend/test_autorouter_session_rollup.py29CODE
LOWtests/test_litellm/test_video_generation.py989CODE
LOWtests/test_litellm/test_video_generation.py117CODE
LOWtests/test_litellm/test_video_generation.py815CODE
LOW…m/interactions/test_google_interactions_integration.py338CODE
LOW…drails/guardrail_hooks/_cisco_ai_defense_test_utils.py175CODE
LOW…experimental/mcp_server/test_discoverable_endpoints.py3463CODE
LOW…rimental/mcp_server/auth/test_user_api_key_auth_mcp.py5151CODE
LOW…rver/outbound_credentials/test_authz_code_refresher.py14CODE
LOW…test_litellm/proxy/batches_endpoints/test_endpoints.py1612CODE
LOW…_litellm/proxy/policy_engine/test_policy_versioning.py24CODE
LOW…ellm/proxy/policy_engine/test_policy_versioning_e2e.py14CODE
LOW…xy/management_endpoints/test_access_group_endpoints.py24CODE
LOW…oxy/management_endpoints/test_common_daily_activity.py1286CODE
LOW…/test_litellm/responses/test_text_format_conversion.py90CODE
LOWtests/test_litellm/ocr/test_rust_bridge.py185CODE
LOW…litellm/integrations/newrelic/test_newrelic_metrics.py32CODE
LOW…s/github_copilot/test_github_copilot_transformation.py546CODE
LOW…ts/test_litellm/llms/databricks/test_databricks_e2e.py694CODE
LOW…mental_pass_through/context_management/test_compact.py1197CODE
LOWtests/e2e/test_fixture_canonical.py19CODE
LOWtests/e2e/quota_management/budgets/budget_client.py205CODE
LOWtests/e2e/claude_code/cli_driver.py308CODE
LOWtests/batches_tests/test_bedrock_files_and_batches.py70CODE
LOWtests/local_testing/test_completion.py4246CODE
LOWtests/multi_instance_e2e_tests/test_update_team_e2e.py64CODE
LOW.github/scripts/triage_with_llm.py1200CODE
LOWlitellm/cost_calculator.py307CODE
LOWlitellm/cost_calculator.py1085CODE
LOWlitellm/cost_calculator.py1155CODE
LOWlitellm/cost_calculator.py1773CODE
LOWlitellm/utils.py2301CODE
LOWlitellm/utils.py3241CODE
LOWlitellm/utils.py4067CODE
LOWlitellm/exceptions.py426CODE
LOWlitellm/router.py567CODE
LOWlitellm/router.py7346CODE
LOWlitellm/main.py389CODE
LOWlitellm/main.py829CODE
LOWlitellm/main.py4955CODE
LOWlitellm/main.py6020CODE
LOWlitellm/main.py6046CODE
LOWlitellm/main.py6073CODE
LOWlitellm/main.py7204CODE
260 more matches not shown…
AI Slop Vocabulary59 hits · 135 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.tsx57 // "Tags Below" approach which is robust and functional.COMMENT
LOW…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx279 # For this example, we'll just return a placeholder IDCOMMENT
LOW…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx446 # 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.py2832 "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` fCODE
MEDIUMtests/llm_translation/test_bedrock_completion.py2832 "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` fCODE
MEDIUMtests/llm_translation/test_anthropic_completion.py1159 "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` fCODE
MEDIUMtests/llm_translation/test_anthropic_completion.py1159 "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` fCODE
MEDIUM…gement_endpoints/test_callback_management_endpoints.py120 # Add string representations to different callback types to test comprehensive categorizationCOMMENT
LOW…/management_endpoints/test_key_management_endpoints.py5608 # 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.py807# _process_success — comprehensive happy-pathCOMMENT
MEDIUM…re_utils/llm_cost_calc/test_tool_call_cost_tracking.py867# 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
MEDIUMtests/test_litellm/llms/bedrock/test_base_aws_llm.py1123 # The harness has to have produced real concurrency, or the assertion below proves nothingCOMMENT
MEDIUM…ts/test_litellm/llms/anthropic/batches/test_handler.py264 # Await directly - robust under asyncio_mode=auto's session-scoped loopCOMMENT
MEDIUMtests/test_litellm/batches/test_main.py40# Seam harness - one mock per provider handler instance + the Bedrock ARNCOMMENT
MEDIUMtests/e2e/e2e_config.py99# for empty values) means the harness behaves exactly as before this knobCOMMENT
MEDIUMtests/e2e/ui/run_e2e.sh35# Ports, overridable so two checkouts can run this harness at the same time --COMMENT
MEDIUMtests/e2e/claude_code/conftest.py467 # robust to malformed shards, and a stale row landing inCOMMENT
MEDIUMtests/e2e/claude_code/manifest.yaml10# `feature_id` MUST match the directory name on disk; the test harnessCOMMENT
MEDIUMtests/e2e/claude_code/cron_vm/run_daily.sh357# The `_*_unit_tests` ignore is defensive: those harness-only trees areCOMMENT
MEDIUMtests/e2e/claude_code/cron_vm/run_daily.sh232# * The tag's own tests/e2e/ ships the full EKS e2e harness, whoseCOMMENT
LOWtests/local_testing/test_dual_cache.py46 # 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.py1493 # Short-circuit: if body very clearly links a related issue, just pass.COMMENT
LOWlitellm/constants.py1005# supports all together ai models, just pass in the model id e.g. completion(model="together_computer/replit_code_3b",..COMMENT
LOWlitellm/_lazy_imports.py238 # Step 3: If we've already imported it, just return the cached versionCOMMENT
LOWlitellm/_lazy_imports.py271# Most of them just call _generic_lazy_import with their specific import map.COMMENT
LOWlitellm/_lazy_imports.py344 # If we've already imported it, just return the cached versionCOMMENT
LOWlitellm/utils.py7154 # do nothing, just return messagesCOMMENT
LOWlitellm/utils.py7215 except Exception as e: # [NON-Blocking, if error occurs just return final_messagesCODE
LOWlitellm/proxy/proxy_server.py5012 ## to pass a complete url, or set ssl=True, etc. just set it as `os.environ[REDIS_URL] = <your-redisCOMMENT
LOWlitellm/proxy/utils.py3625 # Check to see if all of the necessary views exist and if they do, simply returnCOMMENT
MEDIUMlitellm/proxy/common_utils/callback_utils.py715 # prefix check is robust under salt-key rotation; a decrypt-basedCOMMENT
MEDIUMlitellm/proxy/common_utils/key_rotation_manager.py167 # Create regenerate request with grace period for seamless cutoverCOMMENT
LOWlitellm/proxy/guardrails/guardrail_hooks/presidio.py678 # No need to build numbered tokens — just use Presidio'sCOMMENT
LOW…guardrail_hooks/unified_guardrail/unified_guardrail.py999 # If call type not supported, just pass through all chunksCOMMENT
LOWlitellm/proxy/openai_files_endpoints/common_utils.py858 # Extract target_storage (simplified - just use form parameter)COMMENT
MEDIUM…proxy/management_endpoints/key_management_endpoints.py4927 # non-admin can't elevate via a key_type preset that theCOMMENT
MEDIUMlitellm/proxy/prompts/prompt_endpoints.py1230 # Create PromptTemplate to leverage existing parameter extraction logicCOMMENT
MEDIUMlitellm/proxy/db/db_spend_update_writer.py1614 # robust to future changes in the key format.COMMENT
LOWlitellm/proxy/client/cli/interface.py20 # If terminal is too small, just add some newlines to push content upCOMMENT
LOWlitellm/litellm_core_utils/safe_json_dumps.py37 # Base-case: if it is a primitive, simply return it.COMMENT
LOWlitellm/litellm_core_utils/streaming_handler.py685 else: # function/tool calling chunk - when content is None. in this case we just return the original chCODE
LOWlitellm/router_utils/common_utils.py196 # rather than a list - nothing to filter, just pass throughCOMMENT
LOWlitellm/llms/github_copilot/chat/transformation.py64 # 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.py526 if "arn" in model: # we can't infer the model from the arn, so just add all paramsCODE
LOWlitellm/llms/anthropic/chat/handler.py1026 # 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
Dead Code22 hits · 44 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_litellm/test_router.py9290CODE
MEDIUMtests/test_litellm/test_router.py2227CODE
MEDIUMtests/test_litellm/test_router.py6888CODE
MEDIUM…st_litellm/proxy/agent_endpoints/test_a2a_endpoints.py1215CODE
MEDIUM…/hooks/test_async_post_call_streaming_iterator_hook.py169CODE
MEDIUM…/pass_through_endpoints/test_pass_through_endpoints.py1407CODE
MEDIUM…/pass_through_endpoints/test_pass_through_endpoints.py1469CODE
MEDIUM…lm/responses/test_responses_websocket_all_providers.py242CODE
MEDIUM…lm/responses/test_responses_websocket_all_providers.py364CODE
MEDIUM…lm/responses/test_responses_websocket_all_providers.py1107CODE
MEDIUM…on_transformation/test_litellm_completion_responses.py3222CODE
MEDIUM…tellm/a2a_protocol/test_a2a_exception_mapping_utils.py154CODE
MEDIUM…st_litellm/a2a_protocol/test_a2a_streaming_iterator.py87CODE
MEDIUM…t_litellm/litellm_core_utils/test_streaming_handler.py4237CODE
MEDIUM…t_litellm/litellm_core_utils/test_streaming_handler.py4290CODE
MEDIUM…t_litellm/litellm_core_utils/test_streaming_handler.py4335CODE
MEDIUMtests/test_litellm/llms/chat/test_converse_handler.py278CODE
MEDIUM…/test_litellm/llms/bedrock/chat/test_invoke_handler.py478CODE
MEDIUM…ental_pass_through/messages/test_streaming_iterator.py122CODE
MEDIUM…/responses_adapters/test_responses_adapters_handler.py71CODE
MEDIUM…m/llms/sagemaker/test_sagemaker_nova_transformation.py340CODE
MEDIUMlitellm/proxy/_experimental/post_call_rules.py4CODE
Slop Phrases14 hits · 36 pts
SeverityFileLineSnippetContext
MEDIUMtests/llm_translation/test_openai.py842 "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_basic_python_version.py36 # 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.py17077 Note: This is a mock endpoint primarily meant for demonstration purposes, and does not actually provide or change anSTRING
MEDIUMlitellm/proxy/utils.py1035 # This is a basic implementation - can be enhanced based on specific guardrail formatsCOMMENT
MEDIUM…guardrail_hooks/custom_code/response_rejection_code.py21 "i'm unable to help",CODE
MEDIUM…guardrail_hooks/custom_code/response_rejection_code.py50 "i'm unable to help",CODE
LOWlitellm/integrations/SlackAlerting/slack_alerting.py1764 # Also, don't forget to update the report_sent time after sending the report!COMMENT
LOWlitellm/integrations/SlackAlerting/slack_alerting.py1764 # Also, don't forget to update the report_sent time after sending the report!COMMENT
LOWlitellm/llms/anthropic/chat/transformation.py683 else: # use anthropic defaults and make sure to send the disable_parallel_tool_use flagCODE
Example Usage Blocks11 hits · 16 pts
SeverityFileLineSnippetContext
LOWtests/code_coverage_tests/recursive_detector.py128 # Example usageCOMMENT
LOWtests/e2e/ui/run_e2e.sh10# Usage:COMMENT
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.py200# Usage example:COMMENT
LOWlitellm/router_utils/pattern_match_deployments.py248# Example usage:COMMENT
LOWlitellm/llms/vertex_ai/vertex_embeddings/types.py57# Example usage:COMMENT
AI Response Leakage2 hits · 15 pts
SeverityFileLineSnippetContext
HIGHtests/llm_translation/test_bedrock_completion.py2832 "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` fCODE
HIGHtests/llm_translation/test_anthropic_completion.py1159 "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.py654# Auto-generated code to execute skillCOMMENT
Overly Generic Function Names3 hits · 2 pts
SeverityFileLineSnippetContext
LOWtests/litellm_utils_tests/test_utils.py2053 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.py205 # TODO: Add caching for HTTP requestsCOMMENT