AI Slop Code RIsk Monitor

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]

27.1 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for BerriAI/litellm, a Python project with 60,898 GitHub stars. SynthScan examined 3,718,738 lines of code across 11871 source files, recording 94491 pattern matches distributed across 29 syntactic categories. The legacy adjusted pattern signal is 27.1 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

27.1
Adjusted Signal
27.1
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
60.9K
Stars
Python
Language
3.7M
Lines of Code
11.9K
Files
94.5K
Pattern Hits
2026-10-12
Scan Date
0.17
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 59.8/100 · HIGH

Can maintainers explain intent, assumptions, and trade-offs? 76222 finding(s).

Hallucinated Dependency & Supply Chain Risk 11.2/100 · LOW

Are imports declared and package/API names verified? 7648 finding(s).

Agent Over-Engineering Ratio 67.0/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 81282 finding(s).

PR Review Velocity Impact 78.8/100 · CRITICAL

Which changes need focused human review? 94491 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 78HIGH 1982MEDIUM 5217LOW 87214

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 94491 distinct pattern matches across 29 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. 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 configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers70285 hits · 58075 pts
SeverityFileLineSnippetContext
LOWARCHITECTURE.md405def test_prompt_caching_transform():CODE
LOWui/litellm-dashboard/src/app/model_hub_table/page.tsx6function PublicModelHubTableContent() {CODE
LOWui/litellm-dashboard/src/app/(dashboard)/layout.tsx32function PluginModeProviderWithAuth({ children }: { children: React.ReactNode }) {CODE
LOW…p/(dashboard)/models-and-endpoints/detailNavigation.ts50export function useModelGroupFilterRouting(): ModelGroupFilterRouting {CODE
LOW…ashboard)/guardrails/_components/TeamGuardrailsTab.tsx141function submissionToTeamGuardrail(item: GuardrailSubmissionItem): TeamGuardrail {CODE
LOW…ashboard)/guardrails/_components/TeamGuardrailsTab.tsx213function buildEquivalentConfigYaml(g: TeamGuardrail): string {CODE
LOW…ard)/guardrails/_components/guardrail_info_helpers.tsx347export function skipSystemMessageToChoice(v: boolean | null | undefined): SkipSystemMessageChoice {CODE
LOW…ard)/guardrails/_components/guardrail_info_helpers.tsx354export function choiceToSkipSystemForCreate(choice: SkipSystemMessageChoice | undefined): boolean | undefined {CODE
LOW…ard)/guardrails/_components/guardrail_info_helpers.tsx370export function choiceToSkipToolForCreate(choice: SkipToolMessageChoice | undefined): boolean | undefined {CODE
LOW…/app/(dashboard)/playground/llm_calls/audio_speech.tsx7export async function makeOpenAIAudioSpeechRequest(CODE
LOW…c/app/(dashboard)/playground/llm_calls/image_edits.tsx6export async function makeOpenAIImageEditsRequest(CODE
LOW…dashboard)/playground/llm_calls/anthropic_messages.tsx18export async function makeAnthropicMessagesRequest(CODE
LOW…src/app/(dashboard)/playground/llm_calls/system_one.ts97export function makePlaygroundDecisionRequest(CODE
LOW…/(dashboard)/playground/llm_calls/image_generation.tsx6export async function makeOpenAIImageGenerationRequest(CODE
LOW…pp/(dashboard)/playground/llm_calls/embeddings_api.tsx9export async function makeOpenAIEmbeddingsRequest(CODE
LOW…shboard)/playground/llm_calls/audio_transcriptions.tsx6export async function makeOpenAIAudioTranscriptionRequest(CODE
LOW…ayground/components/systemOneUI/lib/validatePayload.ts82export function validateOpenAIDecisionsPayload(raw: string): PayloadValidation<OpenAIDecisionsRequest> {CODE
LOW…yground/components/chat_ui/ChatUI.integration.test.tsx45async function openComboboxByPlaceholder(placeholder: string) {CODE
LOW…dashboard)/projects/_components/useProjectsUrlState.ts71export function useClearProjectKeysTableState(): () => void {CODE
LOW…ts/EndpointUsage/components/EndpointUsageLineChart.tsx12function transformDailyDataToChart(dailyData: DailyData[]): Array<Record<string, string | number>> {CODE
LOW…/usage/_components/hooks/useAggregatedDailyActivity.ts25export function useAggregatedDailyActivity({ fetch, enabled, deps }: Options): Result {CODE
LOW…ptimization/_components/PromptCachingRequestsTable.tsx35export default function PromptCachingRequestsTable({ accessToken, dateValue }: PromptCachingRequestsTableProps) {CODE
LOW…tellm-dashboard/src/app/(dashboard)/hooks/useLogout.ts13export async function revokeSessionAndClearClientState(accessToken: string | null): Promise<void> {CODE
LOW…app/(dashboard)/hooks/useHideAutoRouterAnnouncement.ts33export function useHideAutoRouterAnnouncement() {CODE
LOW…/app/(dashboard)/users/_components/view_users.test.tsx41 DefaultUserSettingsForm: function DefaultUserSettingsFormMock() {CODE
LOW…-servers/_components/MCPServerUserCredentialsPanel.tsx123export function MCPServerUserCredentialsPanel({CODE
LOW…cp-servers/_components/PassthroughAuthorizeSection.tsx38export default function PassthroughAuthorizeSection({CODE
LOWui/litellm-dashboard/src/utils/activityTimestamp.ts31export function localTimeZoneAbbreviation(at: Date = new Date()): string {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.tsx495export function setGlobalLitellmHeaderName(headerName: string = "Authorization") {CODE
LOWui/litellm-dashboard/src/components/networking.tsx500export 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…InterceptionSettings/WebSearchInterceptionSettings.tsx128function WebSearchInterceptionForm({ accessToken, initial, schema }: WebSearchInterceptionFormProps) {CODE
LOW…InterceptionSettings/WebSearchInterceptionSettings.tsx263export default function WebSearchInterceptionSettings() {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…ettings/UISettings/TeamAdminEditableFieldsSettings.tsx52export default function TeamAdminEditableFieldsSettings() {CODE
LOW…ettings/UISettings/TeamAdminEditableFieldsSettings.tsx100function TeamAdminEditableFieldsForm({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…m-dashboard/src/components/llm_calls/responses_api.tsx63export 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.tsx26export 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…nents/shared/DataTable/usePersistedColumnVisibility.ts75export function usePersistedColumnVisibility(CODE
LOW…src/components/model_add/GithubCopilotConnectModal.tsx28export default function GithubCopilotConnectModal({CODE
LOW…ashboard/src/components/model_add/FederationFields.tsx112function AnthropicFederationFields({CODE
LOW…rd/src/components/model_add/credential_form_helpers.ts38export function resetCredentialFormOnProviderChange(CODE
LOW…ard/src/components/logs/detail/RoutingDecisionCard.tsx63function describeScoreAgainstBoundaries(CODE
LOW…ard/src/components/logs/detail/RoutingDecisionCard.tsx100function describeReasoningOverride(tierLabel: string | undefined, floor: number | undefined): string {CODE
LOW…/litellm-dashboard/src/components/logs/detail/utils.ts63export function normalizeGuardrailEntries(guardrailInfo: any): any[] {CODE
LOW…/litellm-dashboard/src/components/logs/detail/utils.ts74export function calculateTotalMaskedEntities(entries: any[]): number {CODE
70225 more matches not shown…
Decorative Section Separators3220 hits · 11897 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/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.ts45// ── Fetch function ───────────────────────────────────────────────────────────COMMENT
MEDIUM…oard/src/app/(dashboard)/hooks/projects/useProjects.ts69// ── 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.ts8// ── Types ────────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡…/app/(dashboard)/hooks/accessGroups/useAccessGroups.ts12// ── Query keys (shared across access-group hooks) ────────────────────────────COMMENT
MEDIUM⚡…/app/(dashboard)/hooks/accessGroups/useAccessGroups.ts16// ── Fetch function ───────────────────────────────────────────────────────────COMMENT
MEDIUM…/app/(dashboard)/hooks/accessGroups/useAccessGroups.ts40// ── 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
MEDIUM…oard)/mcp-servers/_components/OAuthFormFields.test.tsx7// ── tests ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…oard)/mcp-servers/_components/OAuthFormFields.test.tsx14 // ── visibility by flow type ─────────────────────────────────────────────────COMMENT
3160 more matches not shown…
Excessive Try-Catch Wrapping5601 hits · 5085 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.tsx1071 except Exception as e_extended:CODE
LOW…/litellm-dashboard/src/components/public_model_hub.tsx1120 except Exception as e_extended:CODE
MEDIUM⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx267 print(f"An error occurred: {e}")CODE
LOW⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx266except Exception as e:CODE
MEDIUM⚡ci_cd/baseline_db.py52 print(f"Error running prisma command: {e.stderr}")CODE
LOW⚡ci_cd/baseline_db.py54 except Exception as e:CODE
MEDIUM⚡ci_cd/baseline_db.py55 print(f"Error creating baseline migration: {str(e)}")CODE
MEDIUM⚡ci_cd/run_migration.py339 print(f"Error generating migration: {e.stderr}")CODE
LOW⚡ci_cd/run_migration.py341 except Exception as e:CODE
MEDIUM⚡ci_cd/run_migration.py342 print(f"Error creating migration: {str(e)}")CODE
LOWenterprise/litellm_enterprise/proxy/liteadmin.py148 except Exception: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.py141 except Exception as probe_err:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py171 except Exception as e:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py186 except Exception as e:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py199 except Exception as e:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py221 except Exception as e:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py233 except Exception as e:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py357 except Exception as db_err:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py386 except Exception as db_err:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py407 except Exception as db_err:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py494 except Exception as db_err:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py632 except Exception:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py672 except Exception:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py717 except Exception:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py801 except Exception:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py854 except Exception as _e:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py943 except Exception:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py970 except Exception as e:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py978 except Exception as cleanup_err:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py1010 except Exception as query_err:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py1042 except Exception as e:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py1065 except Exception as tracking_err:CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py1099 except Exception as db_err:CODE
LOW…_enterprise/proxy/common_utils/check_responses_cost.py156 except Exception as cleanup_err:CODE
LOW…_enterprise/proxy/common_utils/check_responses_cost.py200 except Exception as e:CODE
LOW…_enterprise/proxy/common_utils/check_responses_cost.py220 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.py153 except Exception as e:CODE
LOW⚡…rprise/litellm_enterprise/proxy/hooks/managed_files.py165 except Exception as e:CODE
LOW⚡…rprise/litellm_enterprise/proxy/hooks/managed_files.py2075 except Exception:CODE
LOW⚡…rprise/litellm_enterprise/proxy/hooks/managed_files.py2080 except Exception as e:CODE
LOW⚡…rprise/litellm_enterprise/proxy/hooks/managed_files.py2149 except Exception as e:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py212 except Exception as error:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py467 except Exception as e:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py750 except Exception as error:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py819 except Exception as error:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1083 except Exception as e:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1848 except Exception:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1946 except Exception as error:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1972 except Exception as e:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py2106 except Exception as e:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py2319 except Exception as e:CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py2385 except Exception as e:CODE
5541 more matches not shown…
Unused Imports5872 hits · 4882 pts
SeverityFileLineSnippetContext
LOWci_cd/cost_map_guard.py11CODE
LOWci_cd/generate_model_prices_schema.py1CODE
LOWenterprise/__init__.py1CODE
LOWenterprise/litellm_enterprise/proxy/liteadmin.py1CODE
LOW…terprise/litellm_enterprise/proxy/enterprise_routes.py7CODE
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.py5CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py28CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py30CODE
LOW…_enterprise/proxy/common_utils/check_responses_cost.py26CODE
LOWenterprise/litellm_enterprise/proxy/auth/__init__.py8CODE
LOW…itellm_enterprise/proxy/hooks/managed_vector_stores.py28CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py90CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py122CODE
LOW…litellm_enterprise/proxy/ui_crud_endpoints/__init__.py1CODE
LOW…rprise/proxy/management_endpoints/project_endpoints.py22CODE
LOW…rprise/proxy/management_endpoints/project_endpoints.py46CODE
LOW…lm_enterprise/enterprise_callbacks/secret_detection.py35CODE
LOW…litellm_enterprise/enterprise_callbacks/llama_guard.py18CODE
LOWenterprise/enterprise_hooks/aporia_ai.py18CODE
LOWenterprise/enterprise_hooks/aporia_ai.py22CODE
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.py8CODE
LOWtests/_openai_record_replay_proxy.py34CODE
LOWtests/_vcr_redis_persister.py1CODE
LOWtests/fake_openai_endpoint.py24CODE
LOWtests/_ws_vcr.py20CODE
LOWtests/test_rust_python_harness.py1CODE
LOWtests/eval_swe_bench.py30CODE
LOWtests/_vcr_conftest_common.py6CODE
LOWtests/test_proxy_server_non_root.py13CODE
LOWtests/_fake_openai_endpoint_server.py18CODE
LOWtests/capturing_transport.py1CODE
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
LOWtests/logging_callback_tests/base_test.py5CODE
LOWtests/logging_callback_tests/base_test.py6CODE
LOWtests/logging_callback_tests/base_test.py6CODE
LOWtests/logging_callback_tests/base_test.py6CODE
LOWtests/logging_callback_tests/base_test.py8CODE
LOWtests/logging_callback_tests/base_test.py9CODE
LOWtests/logging_callback_tests/base_test.py10CODE
LOWtests/logging_callback_tests/base_test.py10CODE
LOWtests/logging_callback_tests/base_test.py11CODE
LOWtests/logging_callback_tests/conftest.py24CODE
LOWtests/logging_callback_tests/test_gcs_pub_sub.py1CODE
LOWtests/logging_callback_tests/test_gcs_pub_sub.py8CODE
LOWtests/logging_callback_tests/test_gcs_pub_sub.py11CODE
LOWtests/logging_callback_tests/test_gcs_pub_sub.py12CODE
LOWtests/logging_callback_tests/test_gcs_pub_sub.py16CODE
LOWtests/logging_callback_tests/test_gcs_pub_sub.py18CODE
LOWtests/logging_callback_tests/test_gcs_pub_sub.py19CODE
5812 more matches not shown…
Empty Error Handlers791 hits · 3952 pts
SeverityFileLineSnippetContext
HIGH…ellm_enterprise/proxy/common_utils/check_batch_cost.py778except (IndexError, AttributeError):CODE
HIGH…ellm_enterprise/proxy/common_utils/check_batch_cost.py801except Exception:CODE
HIGH…rprise/litellm_enterprise/proxy/hooks/managed_files.py2075except Exception:CODE
HIGH…e/litellm_enterprise/enterprise_callbacks/llm_guard.py46except Exception:CODE
HIGH…litellm_enterprise/enterprise_callbacks/llama_guard.py59except Exception:CODE
HIGHenterprise/enterprise_hooks/google_text_moderation.py85except Exception:CODE
HIGHtests/test_keys.py81except Exception as e:CODE
HIGHtests/_vcr_conftest_common.py83except OSError:CODE
HIGHtests/_vcr_conftest_common.py904except (AttributeError, TypeError):CODE
HIGHtests/_vcr_conftest_common.py972except (AttributeError, TypeError):CODE
HIGHtests/_vcr_conftest_common.py369except (TypeError, ValueError):CODE
HIGHtests/_vcr_conftest_common.py942except (TypeError, AttributeError):CODE
HIGHtests/_vcr_conftest_common.py978except (AttributeError, TypeError):CODE
HIGHtests/_vcr_conftest_common.py101except OSError:CODE
HIGHtests/_vcr_conftest_common.py823except (KeyError, TypeError):CODE
HIGHtests/_vcr_conftest_common.py1705except Exception:CODE
HIGHtests/_vcr_conftest_common.py1714except Exception:CODE
HIGHtests/test_models.py142except Exception:CODE
HIGHtests/_process_helpers.py41except ChildProcessError:CODE
HIGHtests/logging_callback_tests/test_gcs_pub_sub.py79except json.JSONDecodeError:CODE
HIGHtests/logging_callback_tests/test_gcs_pub_sub.py84except json.JSONDecodeError:CODE
HIGHtests/logging_callback_tests/test_pagerduty_alerting.py31except litellm.RateLimitError:CODE
HIGHtests/logging_callback_tests/test_pagerduty_alerting.py52except litellm.RateLimitError:CODE
HIGHtests/logging_callback_tests/test_pagerduty_alerting.py65except litellm.RateLimitError:CODE
HIGHtests/unit/test_utils.py9449except Exception:CODE
HIGHtests/unit/test_utils.py9459except Exception as e:CODE
HIGHtests/unit/test_utils.py1917except Exception:CODE
HIGHtests/unit/test_utils.py9540except Exception:CODE
HIGHtests/unit/test_utils.py9555except Exception:CODE
HIGHtests/unit/test_xai_responses_auto_routing.py188except Exception:CODE
HIGHtests/unit/test_exception_mapping_request_attribute.py79except Exception:CODE
HIGHtests/unit/test_exception_mapping_request_attribute.py170except litellm.ContextWindowExceededError:CODE
HIGHtests/unit/test_exception_mapping_request_attribute.py173except Exception:CODE
HIGHtests/unit/test_exception_mapping_request_attribute.py199except Exception:CODE
HIGHtests/unit/test_exception_mapping_request_attribute.py226except APIConnectionError:CODE
HIGHtests/unit/test_exception_mapping_request_attribute.py229except Exception:CODE
HIGHtests/unit/test_exception_mapping_request_attribute.py255except Exception:CODE
HIGHtests/unit/test_exception_mapping_request_attribute.py144except Exception:CODE
HIGHtests/unit/test_rate_limit_error_unification.py1574except Exception:CODE
HIGHtests/unit/test_anthropic_beta_headers_filtering.py181except Exception:CODE
HIGHtests/unit/test_anthropic_beta_headers_filtering.py231except Exception:CODE
HIGHtests/unit/test_anthropic_beta_headers_filtering.py280except Exception:CODE
HIGHtests/unit/test_anthropic_beta_headers_filtering.py353except Exception:CODE
HIGHtests/unit/test_scheduler.py432except Exception:CODE
HIGHtests/unit/test_cost_calculation_log_level.py59except Exception:CODE
HIGHtests/unit/test_cost_calculation_log_level.py118except Exception:CODE
HIGHtests/unit/test_vcr_classification.py567except Exception:CODE
HIGHtests/unit/test_vcr_classification.py571except Exception:CODE
HIGHtests/unit/test_no_top_level_test_invocations.py144except Exception:CODE
HIGHtests/unit/test_main.py298except Exception as e:CODE
HIGHtests/unit/test_main.py5206except Exception as e:CODE
HIGHtests/unit/test_main.py5552except Exception:CODE
HIGHtests/unit/test_main.py5584except Exception:CODE
HIGHtests/unit/test_pydantic_namespaces.py122except Exception:CODE
HIGHtests/unit/test_chat_ui_responses_session.py45except Exception:CODE
HIGHtests/unit/test_chat_ui_responses_session.py81except Exception:CODE
HIGHtests/unit/test_chat_ui_responses_session.py96except Exception:CODE
HIGHtests/unit/test_chat_ui_responses_session.py127except Exception:CODE
HIGH…nteractions/test_gemini_interactions_transformation.py345except StopIteration:CODE
HIGH…nteractions/test_gemini_interactions_transformation.py389except StopIteration:CODE
731 more matches not shown…
Self-Referential Comments949 hits · 2945 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.tsx1284# Create a client that connects to the serverCOMMENT
MEDIUM⚡…/litellm-dashboard/src/components/public_model_hub.tsx1324# Create a client that connects to the serverCOMMENT
MEDIUM⚡…tellm-dashboard/src/components/AIHub/ModelHubTable.tsx1121# Create a client that connects to the serverCOMMENT
MEDIUM…terprise/enterprise_callbacks/send_emails/endpoints.py138 # Create a response with all events (enabled or disabled)COMMENT
MEDIUMtests/logging_callback_tests/base_test.py35 # Create a mock response object with the structure you needCOMMENT
MEDIUMtests/logging_callback_tests/test_gcs_pub_sub.py189 # Create a mock for the async_httpx_client's post methodCOMMENT
MEDIUMtests/logging_callback_tests/test_gcs_pub_sub.py245 # Create a mock for the async_httpx_client's post methodCOMMENT
MEDIUM⚡tests/litellm_utils_tests/test_secret_manager.py23 # Define the path to the vertex_key.json fileCOMMENT
MEDIUMtests/litellm_utils_tests/test_secret_manager.py53 # Create a temporary fileCOMMENT
MEDIUMtests/litellm_utils_tests/test_hashicorp.py288 # Create a new instance with TLS cert configCOMMENT
MEDIUMtests/unit/test_redis.py1105 # Create a mock connection poolCOMMENT
MEDIUMtests/unit/test_utils.py7819 # Create a test EmbeddingResponse with usage dataCOMMENT
MEDIUMtests/unit/test_utils.py8581 # Create a mock CustomLogger classCOMMENT
MEDIUM⚡tests/unit/test_video_generation.py1574 # Create an encoded video_idCOMMENT
MEDIUMtests/unit/test_video_generation.py1530 # Create an encoded video_id that includes provider and model_idCOMMENT
MEDIUMtests/unit/test_video_generation.py1590 # Create a coroutine that will be added to tasksCOMMENT
MEDIUMtests/unit/test_video_generation.py1643 # Create an encoded video_idCOMMENT
MEDIUMtests/unit/test_video_generation.py1659 # Create a coroutine that will be added to tasksCOMMENT
MEDIUMtests/unit/test_video_generation.py1712 # Create an encoded video_idCOMMENT
MEDIUMtests/unit/test_video_generation.py1728 # Create a coroutine that will be added to tasksCOMMENT
MEDIUMtests/unit/test_shared_session_integration.py58 # Create a mock sessionCOMMENT
MEDIUMtests/unit/test_router_google_genai.py18 # Create a router instanceCOMMENT
MEDIUMtests/unit/test_router_google_genai.py30 # Create a mock response in Google GenAI formatCOMMENT
MEDIUMtests/unit/test_router_google_genai.py60 # Create a router instanceCOMMENT
MEDIUMtests/unit/test_router_google_genai.py72 # Create a mock response in Google GenAI formatCOMMENT
MEDIUMtests/unit/test_responses_id_security.py165 # Create a mock user from team A without user_idCOMMENT
MEDIUMtests/unit/test_responses_id_security.py186 # Create a mock user from team A without user_idCOMMENT
MEDIUMtests/unit/test_responses_id_security.py206 # Create a mock user from team A without user_idCOMMENT
MEDIUMtests/unit/test_responses_id_security.py226 # Create a mock admin userCOMMENT
MEDIUMtests/unit/test_responses_id_security.py315 # Create a mock user from team ACOMMENT
MEDIUMtests/unit/test_responses_id_security.py348 # Create a mock user from team A without user_idCOMMENT
MEDIUMtests/unit/test_responses_id_security.py382 # Create a mock user from team ACOMMENT
MEDIUMtests/unit/test_responses_id_security.py412 # Create a mock user from team ACOMMENT
MEDIUMtests/unit/test_responses_id_security.py445 # Create a mock user from team ACOMMENT
MEDIUMtests/unit/test_cost_calculation_log_level.py21 # Create a custom handler to capture log recordsCOMMENT
MEDIUMtests/unit/test_cost_calculation_log_level.py38 # Create a mock completion responseCOMMENT
MEDIUMtests/unit/test_cost_calculation_log_level.py93 # Create a custom handler to capture log recordsCOMMENT
MEDIUMtests/unit/test_cost_calculation_log_level.py110 # Create a mock usage objectCOMMENT
MEDIUMtests/unit/test_lowest_latency_zero_tokens.py35 # Create a ModelResponse with zero completion tokens (as reported in issue)COMMENT
MEDIUMtests/unit/test_lowest_latency_zero_tokens.py103 # Create a ModelResponse with zero completion tokensCOMMENT
MEDIUMtests/unit/test_main.py3171 # Create a ModelResponse objectCOMMENT
MEDIUMtests/unit/test_main.py3229 # Create a ModelResponse objectCOMMENT
MEDIUMtests/unit/test_cost_calculator.py2108 # Create a new response without service_tier attribute so it falls back to usageCOMMENT
MEDIUMtests/unit/test_router_per_deployment_num_retries.py41 # Create a mock exception without num_retriesCOMMENT
MEDIUMtests/unit/test_router_per_deployment_num_retries.py75 # Create an exception that already has num_retriesCOMMENT
MEDIUM⚡tests/unit/proxy/test_model_id_header_propagation.py20 # Create a ProxyBaseLLMRequestProcessing instanceCOMMENT
MEDIUM⚡tests/unit/proxy/test_model_id_header_propagation.py23 # Create a mock logging object with model_info in litellm_paramsCOMMENT
MEDIUM⚡tests/unit/proxy/test_model_id_header_propagation.py76 # Create a processor with model_info in dataCOMMENT
MEDIUM⚡tests/unit/proxy/test_model_id_header_propagation.py81 # Create a mock logging object without model_infoCOMMENT
MEDIUM⚡tests/unit/proxy/test_model_id_header_propagation.py130 # Create a processor with model_info in both placesCOMMENT
MEDIUM⚡tests/unit/proxy/test_model_id_header_propagation.py135 # Create a mock logging object with model_infoCOMMENT
MEDIUMtests/unit/proxy/test_model_id_header_propagation.py41 # Create a mock logging object with model_info nested in metadataCOMMENT
MEDIUMtests/unit/proxy/test_model_id_header_propagation.py59 # Create a mock logging object with model_info in kwargsCOMMENT
MEDIUMtests/unit/proxy/test_model_id_header_propagation.py96 # Create a processor with model_info in dataCOMMENT
MEDIUMtests/unit/proxy/test_model_id_header_propagation.py115 # Create a mock logging object without model_info anywhereCOMMENT
MEDIUMtests/unit/proxy/test_proxy_config_unit_test.py253 # Create a temporary config file with json_logs: trueCOMMENT
889 more matches not shown…
Cross-File Repetition565 hits · 2825 pts
SeverityFileLineSnippetContext
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/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.py0per-function isolation fixture. resets litellm state to the true defaults captured at conftest import time, then restoreSTRING
HIGHtests/unit/integrations/test_humanloop.py0per-function isolation fixture. resets litellm state to the true defaults captured at conftest import time, then restoreSTRING
HIGHtests/unit/integrations/test_opentelemetry.py0per-function isolation fixture. resets litellm state to the true defaults captured at conftest import time, then restoreSTRING
HIGHtests/unit/integrations/test_posthog.py0per-function isolation fixture. resets litellm state to the true defaults captured at conftest import time, then restoreSTRING
HIGHtests/unit/integrations/test_custom_logger.py0per-function isolation fixture. resets litellm state to the true defaults captured at conftest import time, then restoreSTRING
HIGHtests/unit/integrations/test_s3_v2.py0per-function isolation fixture. resets litellm state to the true defaults captured at conftest import time, then restoreSTRING
HIGHtests/unit/integrations/test_langsmith.py0per-function isolation fixture. resets litellm state to the true defaults captured at conftest import time, then restoreSTRING
HIGH…/integrations/generic_api/test_generic_api_callback.py0per-function isolation fixture. resets litellm state to the true defaults captured at conftest import time, then restoreSTRING
HIGH…_core_utils/test_initialize_dynamic_callback_params.py0per-function isolation fixture. resets litellm state to the true defaults captured at conftest import time, then restoreSTRING
HIGHtests/unit/litellm_core_utils/test_redact_messages.py0per-function isolation fixture. resets litellm state to the true defaults captured at conftest import time, then restoreSTRING
HIGHtests/unit/litellm_core_utils/test_logging_utils.py0per-function isolation fixture. resets litellm state to the true defaults captured at conftest import time, then restoreSTRING
HIGHtests/unit/litellm_core_utils/test_litellm_logging.py0per-function isolation fixture. resets litellm state to the true defaults captured at conftest import time, then restoreSTRING
HIGH…unit/litellm_core_utils/test_custom_logger_registry.py0per-function isolation fixture. resets litellm state to the true defaults captured at conftest import time, then restoreSTRING
HIGHtests/logging_callback_tests/conftest.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGHtests/unit/test_utils.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGHtests/unit/test_scheduler.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGHtests/unit/test_no_top_level_test_invocations.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGHtests/unit/test_pydantic_namespaces.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGHtests/unit/types/test_guardrails.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGHtests/unit/types/test_files.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGH…sts/unit/proxy/common_utils/test_http_parsing_utils.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGH…/proxy/guardrails/guardrail_hooks/test_lakera_ai_v2.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGH…rdrail_hooks/zscaler_ai_guard/test_zscaler_ai_guard.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGH…nit/proxy/guardrails/guardrail_hooks/noma/test_noma.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGH…oxy/guardrails/guardrail_hooks/javelin/test_javelin.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGH…y/guardrails/guardrail_hooks/dynamoai/test_dynamoai.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGH…il_hooks/litellm_content_filter/test_content_filter.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGH…ts/unit/proxy/hooks/test_prompt_injection_detection.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGHtests/unit/proxy/hooks/test_dynamic_rate_limiter.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGH…it/proxy/management_endpoints/test_sso_helper_utils.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGHtests/unit/integrations/test_humanloop.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGHtests/unit/integrations/test_opentelemetry.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGHtests/unit/integrations/test_posthog.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGHtests/unit/integrations/test_helicone.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGHtests/unit/integrations/test_custom_logger.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGHtests/unit/integrations/test_s3_v2.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGHtests/unit/integrations/test_langsmith.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGHtests/unit/integrations/arize/test_arize_phoenix.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGHtests/unit/integrations/arize/test_arize.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGH…/integrations/generic_api/test_generic_api_callback.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGHtests/unit/integrations/opik/test_opik.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGH…unit/litellm_core_utils/test_get_llm_provider_logic.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGH…sts/unit/litellm_core_utils/test_get_model_cost_map.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGH…_core_utils/test_initialize_dynamic_callback_params.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGHtests/unit/litellm_core_utils/test_redact_messages.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGHtests/unit/litellm_core_utils/test_logging_utils.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
HIGHtests/unit/litellm_core_utils/test_litellm_logging.py0module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interferenceSTRING
505 more matches not shown…
Deep Nesting2140 hits · 1518 pts
SeverityFileLineSnippetContext
LOWci_cd/run_migration.py221CODE
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.py720CODE
LOW…ellm_enterprise/proxy/common_utils/check_batch_cost.py959CODE
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.py1186CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1389CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1409CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1448CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1765CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1917CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py2277CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py2410CODE
LOW…rprise/proxy/management_endpoints/project_endpoints.py184CODE
LOW…rprise/proxy/management_endpoints/project_endpoints.py666CODE
LOW…e/litellm_enterprise/enterprise_callbacks/llm_guard.py95CODE
LOW…m_enterprise/enterprise_callbacks/callback_controls.py15CODE
LOW…erprise/enterprise_callbacks/send_emails/base_email.py446CODE
LOW…terprise/enterprise_callbacks/send_emails/endpoints.py26CODE
LOWenterprise/enterprise_hooks/blocked_user_list.py62CODE
LOWtests/eval_swe_bench.py212CODE
LOWtests/eval_swe_bench.py249CODE
LOWtests/eval_swe_bench.py359CODE
LOWtests/_vcr_conftest_common.py265CODE
LOWtests/logging_callback_tests/test_langfuse_e2e_test.py64CODE
LOWtests/logging_callback_tests/test_gcs_pub_sub.py49CODE
LOWtests/unit/test_utils.py761CODE
LOWtests/unit/test_utils.py1322CODE
LOWtests/unit/test_utils.py8273CODE
LOWtests/unit/test_router_retry_backoff_headers.py15CODE
LOWtests/unit/test_video_generation.py1769CODE
LOWtests/unit/test_video_generation.py1813CODE
LOWtests/unit/test_video_generation.py1856CODE
LOWtests/unit/test_video_generation.py513CODE
LOWtests/unit/test_add_deployment_no_master_key.py117CODE
LOWtests/unit/test_redact_string_in_error_paths.py146CODE
LOWtests/unit/test_anthropic_beta_headers_filtering.py149CODE
LOWtests/unit/test_anthropic_beta_headers_filtering.py197CODE
LOWtests/unit/test_anthropic_beta_headers_filtering.py247CODE
LOWtests/unit/test_anthropic_beta_headers_filtering.py314CODE
LOWtests/unit/test_responses_id_security.py311CODE
LOWtests/unit/test_responses_id_security.py344CODE
LOWtests/unit/test_responses_id_security.py408CODE
LOWtests/unit/test_responses_id_security.py441CODE
LOWtests/unit/test_responses_id_security.py499CODE
LOWtests/unit/test_utils_get_model_info.py227CODE
LOWtests/unit/test_main.py249CODE
LOWtests/unit/test_main.py4962CODE
LOWtests/unit/test_main.py5471CODE
LOWtests/unit/test_main.py5634CODE
LOWtests/unit/test_main.py5701CODE
LOWtests/unit/interactions/test_openapi_compliance.py107CODE
LOWtests/unit/proxy/test_proxy_reject_logging.py135CODE
LOWtests/unit/proxy/test_chat_completion_metadata.py46CODE
LOWtests/unit/proxy/test_litellm_pre_call_utils.py2870CODE
LOW…/unit/proxy/test_proxy_server_endpoints_and_startup.py4454CODE
LOW…/unit/proxy/test_proxy_server_endpoints_and_startup.py6476CODE
LOW…/unit/proxy/test_proxy_server_endpoints_and_startup.py6871CODE
2080 more matches not shown…
Modern AI Meta-Vocabulary504 hits · 1438 pts
SeverityFileLineSnippetContext
MEDIUMAGENTS.md42Never use `pytest` commands or the like as "Screenshots / Proof of Fix". We prefer curl'ing a live proxy instance runninCODE
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.tsx588 // For some guardrails, the config values need to be in litellm_paramsCOMMENT
MEDIUM…guardrails/_components/custom_code/CustomCodeModal.tsx520 onClick={() => window.open("https://models.litellm.ai/guardrails", "_blank")}CODE
MEDIUM…guardrails/_components/custom_code/CustomCodeModal.tsx725 <Button size="sm" onClick={() => window.open("https://github.com/BerriAI/litellm-guardrails", "_blank")}>CODE
MEDIUM…oard)/playground/llm_calls/anthropic_messages.test.tsx22 undefined, // guardrailsCODE
MEDIUM⚡…/app/(dashboard)/agents/_components/add_agent_form.tsx160 // 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.tsx37// `/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.tsx498 // than degrade into a leaf link to the non-route `?page=agentic`.COMMENT
MEDIUM…litellm-dashboard/src/components/ModelInfoEditForm.tsx578 href="https://docs.litellm.ai/docs/proxy/guardrails/quick_start"CODE
MEDIUMui/litellm-dashboard/src/components/Teams.tsx298 // Add this useEffect to fetch guardrailsCOMMENT
MEDIUMui/litellm-dashboard/src/components/Teams.tsx979 "https://docs.litellm.ai/docs/proxy/guardrails/quick_start",CODE
MEDIUMui/litellm-dashboard/src/components/Teams.tsx1041 "https://docs.litellm.ai/docs/proxy/guardrails/guardrail_policies",CODE
MEDIUM…oard/src/components/llm_calls/chat_completion.test.tsx105 undefined, // guardrailsCODE
MEDIUM…oard/src/components/llm_calls/chat_completion.test.tsx168 undefined, // guardrailsCODE
MEDIUM…oard/src/components/llm_calls/chat_completion.test.tsx215 undefined, // guardrailsCODE
MEDIUM…oard/src/components/llm_calls/chat_completion.test.tsx274 undefined, // guardrailsCODE
MEDIUM…oard/src/components/llm_calls/chat_completion.test.tsx346 undefined, // guardrailsCODE
MEDIUM…oard/src/components/llm_calls/chat_completion.test.tsx389 undefined, // guardrailsCODE
MEDIUM…oard/src/components/llm_calls/chat_completion.test.tsx526 undefined, // guardrailsCODE
MEDIUM…hboard/src/components/llm_calls/responses_api.test.tsx113 undefined, // guardrailsCODE
MEDIUM…hboard/src/components/llm_calls/responses_api.test.tsx154 undefined, // guardrailsCODE
MEDIUM…hboard/src/components/llm_calls/responses_api.test.tsx322 undefined, // guardrailsCODE
MEDIUM…hboard/src/components/llm_calls/responses_api.test.tsx387 undefined, // guardrailsCODE
MEDIUM…hboard/src/components/llm_calls/responses_api.test.tsx527 undefined, // guardrailsCODE
MEDIUM…hboard/src/components/llm_calls/responses_api.test.tsx571 undefined, // guardrailsCODE
MEDIUM…gs/detail/sections/GuardrailViewer/GuardrailViewer.tsx399 // Pre-call guardrails — use modeMatches so array modes (e.g. ["pre_call", "post_call"])COMMENT
MEDIUM…gs/detail/sections/GuardrailViewer/GuardrailViewer.tsx429 // During-call guardrails (rare)COMMENT
MEDIUM…gs/detail/sections/GuardrailViewer/GuardrailViewer.tsx439 // Post-call guardrailsCOMMENT
MEDIUMui/litellm-dashboard/src/components/team/TeamInfo.tsx782 // Fetch resolved guardrails for all policiesCOMMENT
MEDIUMui/litellm-dashboard/src/components/team/TeamInfo.tsx1951 "https://docs.litellm.ai/docs/proxy/guardrails/quick_start",CODE
MEDIUMui/litellm-dashboard/src/components/team/TeamInfo.tsx2016 "https://docs.litellm.ai/docs/proxy/guardrails/guardrail_policies",CODE
MEDIUM…m-dashboard/src/components/templates/key_info_view.tsx150 // 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.tsx1263 href="https://docs.litellm.ai/docs/proxy/guardrails/quick_start"CODE
MEDIUM…shboard/src/components/organisms/create_key_button.tsx1303 href="https://docs.litellm.ai/docs/proxy/guardrails/quick_start"CODE
MEDIUM…shboard/src/components/organisms/create_key_button.tsx1339 href="https://docs.litellm.ai/docs/proxy/guardrails/guardrail_policies"CODE
MEDIUMui/litellm-dashboard/src/lib/autorouter_presets.test.ts135 // The lite preset ships the LLM classifier with the bundled agentic rubric rather than an inlineCOMMENT
MEDIUMui/litellm-dashboard/src/lib/autorouter_presets.test.ts827 // Bugbot-found bug class from #35199's history: a classifier/embedding model left selectedCOMMENT
MEDIUM⚡tests/unit/test_rate_limit_error_unification.py156 # Some guardrails wrap their error payload as {"error": {"message": "..."}}.COMMENT
MEDIUMtests/unit/test_azure_ai_grok_4_3_model_metadata.py10AZURE_AI_GROK_4_3_SOURCE = "https://techcommunity.microsoft.com/blog/azure-ai-foundry-blog/introducing-grok-4-3-on-microCODE
MEDIUMtests/unit/types/test_guardrails.py2## Unit Tests for guardrails configCOMMENT
MEDIUM⚡tests/unit/proxy/test_model_level_guardrails.py153# Regression test: pre_call hook must run exactly once with model-level guardrailsCOMMENT
MEDIUM⚡tests/unit/proxy/test_model_level_guardrails.py304# Integration test: post_call_success_hook with model-level guardrailsCOMMENT
MEDIUM⚡tests/unit/proxy/test_model_level_guardrails.py441# Integration test: async_post_call_streaming_iterator_hook with model-level guardrailsCOMMENT
MEDIUM⚡tests/unit/proxy/test_model_level_guardrails.py569# must run BEFORE pre_call_hook so DB/UI-configured guardrails fire onCOMMENT
MEDIUMtests/unit/proxy/test_model_level_guardrails.py205 # Path B: the router spreads the deployment's model-level guardrails intoCOMMENT
MEDIUMtests/unit/proxy/test_model_level_guardrails.py335 # Mock router that returns a deployment with guardrails configuredCOMMENT
MEDIUMtests/unit/proxy/test_model_level_guardrails.py589 # and union guardrails across all deployments in the group.COMMENT
444 more matches not shown…
Cross-Language Confusion285 hits · 1292 pts
SeverityFileLineSnippetContext
HIGHci_cd/run_migration.py74 print(f" git fetch origin && git rebase origin/{base_branch}", file=out)CODE
HIGHci_cd/run_migration.py200 " 1. git fetch origin && git status # confirm branch is up to date", file=outCODE
HIGH…rprise/proxy/management_endpoints/project_endpoints.py275 A valid quota is a positive integer; null, zero, and negative are rejectedSTRING
HIGHtests/unit/test_video_generation.py1356 """first_id / last_id may be absent or null; should not raise."""STRING
HIGH⚡tests/unit/test_assert_workflow_dir_hygiene.py114 directory = _populate(tmp_path, {"deploy.yaml": "on: {workflow_call: null}\njobs: {}\n"})CODE
HIGH⚡tests/unit/test_anthropic_beta_headers_filtering.py409 must be forwarded instead of stripped (it was previously mapped to null,STRING
HIGH⚡tests/unit/test_anthropic_beta_headers_filtering.py421 mapped to null) silently re-enables Anthropic's server-side buffering ofSTRING
HIGHtests/unit/test_check_licenses.py5legacy ``info.license`` field null, so the checker must read the new field (andSTRING
HIGH⚡tests/unit/types/test_types_utils.py378 Test that invalid (non-list, non-null) top_logprobs values are stillSTRING
HIGH⚡tests/unit/types/test_types_utils.py379 rejected by Pydantic validation. The validator only normalizes null,STRING
HIGHtests/unit/types/llms/test_types_llms_openai.py319 status=null).STRING
HIGHtests/unit/proxy/test_tracing_endpoints.py852 (b'{"sql": null}', "string_type", ("body", "sql")),CODE
HIGHtests/unit/proxy/test_litellm_pre_call_utils.py9918 """A caller-supplied litellm_credential_name (empty, null, or another credential)STRING
HIGH⚡…/unit/proxy/test_proxy_server_endpoints_and_startup.py11887 must stay a deliberate config.yaml act (max_ui_session_budget: null)."""STRING
HIGH…/unit/proxy/test_proxy_server_endpoints_and_startup.py3962 null) must be stored as-is and not gain a max_budget key.STRING
HIGH⚡tests/unit/proxy/test_common_request_processing.py2097 'data: {"error": {"code": null, "message": "code is null"}}',CODE
HIGHtests/unit/proxy/credential_endpoints/test_endpoints.py1083 """Same key-presence rule on the create path: ``{"anthropic_issuer_url": null}`` persistsSTRING
HIGHtests/unit/proxy/guardrails/test_guardrail_endpoints.py2572 """List submissions only returns team guardrails (team_id not null)."""STRING
HIGH…xy/guardrails/guardrail_hooks/test_panw_prisma_airs.py2442 b'data: {"type":"content_block_delta","index":0,"delta":null}\n',CODE
HIGH…xy/guardrails/guardrail_hooks/test_panw_prisma_airs.py2425 """Non-dict JSON (null, arrays, ints) should be silently skipped."""STRING
HIGH…/guardrails/guardrail_hooks/test_bedrock_guardrails.py1455 # No BLOCKED actions found (all lists null) → should return FalseCOMMENT
HIGH…t/proxy/guardrails/guardrail_hooks/test_model_armor.py4381 (b'event: message_delta\ndata: {"type":"message_delta","error":null}\n\n',),CODE
HIGH…roxy/spend_tracking/test_spend_management_endpoints.py3728 "metadata": '{"actor_agent_id": null, "target_agent_id": null, "billing_agent_id": null, "agent_execCODE
HIGH…roxy/spend_tracking/test_spend_management_endpoints.py2083 /spend/logs/ui does (#29674). Property access on a string is silently undefined,STRING
HIGHtests/unit/proxy/memory/test_memory_endpoints.py810 expectation of `PUT {"metadata": null}`.STRING
HIGH…/proxy/_experimental/mcp_server/test_mcp_sigv4_auth.py1110 # Credentials should be cleared. The clear reaches prisma as Json(None) (SQL null), whichCOMMENT
HIGH…/proxy/_experimental/mcp_server/test_rest_endpoints.py1829 {"tools": [], "error": null} body a caller cannot distinguish from a toolless server."""STRING
HIGH…xy/_experimental/mcp_server/test_mcp_partial_update.py820 # 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.py29 """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.py594 columns null) must move the settings to the columns and drop them from theSTRING
HIGH…xy/_experimental/mcp_server/test_mcp_partial_update.py1063 alias: null, so the fallback name must go through the conflict check too."""STRING
HIGH…l/mcp_server/test_mcp_server_tool_calls_and_headers.py10039 left unstamped (null)."""STRING
HIGH⚡…roxy/auth/test_auth_checks_object_access_and_lookup.py7771 restriction field null, so a high-cardinality deployment misses the per-pod cache on virtuallySTRING
HIGHtests/unit/proxy/roi_calculator/test_github.py25 "merged_at": null,CODE
HIGH…sts/unit/proxy/hooks/test_autorouter_baseline_cache.py58 "stop_reason":{'"end_turn"' if completed else "null"},"stop_sequence":null,CODE
HIGH…roxy/ui_crud_endpoints/test_proxy_setting_endpoints.py1036 # Send mixed SSO settings - some null, some validCOMMENT
HIGH⚡…xy/management_endpoints/test_access_group_endpoints.py1426 # Verify the DB update was called with [] (not null) for list fieldsCOMMENT
HIGH…unit/proxy/management_endpoints/test_team_endpoints.py6778 (max_budget=null), which is the strongest possible raise (finite -> unlimited).STRING
HIGH…unit/proxy/management_endpoints/test_team_endpoints.py11855 When budget_duration is explicitly set to null, _set_budget_reset_atSTRING
HIGH…unit/proxy/management_endpoints/test_team_endpoints.py11955 When team_member_budget is explicitly null, clear_team_member_budget_fieldsSTRING
HIGH…unit/proxy/management_endpoints/test_team_endpoints.py12001 When team_member_rpm_limit and team_member_tpm_limit are explicitly null,STRING
HIGH…unit/proxy/management_endpoints/test_team_endpoints.py12051 When all team_member fields are explicitly null, all correspondingSTRING
HIGH⚡…/proxy/management_endpoints/test_ptu_model_settings.py328 """update_db_model drops a PTU field a patch sends as null, so the merged view has toSTRING
HIGH…/management_endpoints/test_roi_calculator_endpoints.py378 "/roi-calculator/identity-map", content='{"github_login":"casey","email":null}', headers=_JSON_HEADERSCODE
HIGH…/management_endpoints/test_key_management_endpoints.py2451 """budget_limits=[] / None must serialize to JSON null, never reach Prisma raw."""STRING
HIGH…/management_endpoints/test_key_management_endpoints.py16308 When budget_duration is explicitly set to null, prepare_key_update_dataSTRING
HIGHtests/unit/proxy/db/test_gateway_request_tracking.py559 asyncio.run(buffer.push(accumulator.drain()))CODE
HIGHtests/unit/proxy/db/test_exception_handler.py852 '{"is_panic":false,"message":"Error in connector: Error querying the database: FATAL: sorry, too many clientCODE
HIGHtests/unit/proxy/db/test_request_error_tracking.py343 await buffer.push({_key(429): 2})CODE
HIGH⚡…/unit/proxy/proxy_server/test_routes_model_cost_map.py328 """No prisma client → returns the not-scheduled shape (all-null) plus the cost map provenance."""STRING
HIGHtests/unit/proxy/client/cli/test_auth_commands.py2053 ('{"detail": "Too many CLI login attempts.", "retry": {"after": [30, null]}}', ": Too many CLI login attempts.")CODE
HIGH⚡…_through_endpoints/test_streaming_handler_interrupt.py500 b'"choices":[{"index":0,"delta":{"content":"Hi"}}],"usage":null}\n\n'CODE
HIGH…_through_endpoints/test_streaming_handler_interrupt.py387 b'"choices":[{"index":0,"delta":{"content":"Hi"}}],"usage":null}\n\n'CODE
HIGH⚡…handlers/test_anthropic_passthrough_logging_handler.py1198 'event: message_start\ndata: {"type":"message_start","message":{"id":"msg_1","type":"message","role":"assistCODE
HIGH⚡…handlers/test_anthropic_passthrough_logging_handler.py1202 'event: message_delta\ndata: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null}CODE
HIGH⚡…handlers/test_anthropic_passthrough_logging_handler.py1214 'event: message_start\ndata: {"type":"message_start","message":{"id":"msg_1","type":"message","role":"assistCODE
HIGH⚡…handlers/test_anthropic_passthrough_logging_handler.py1224 'event: message_start\ndata: {"type":"message_start","message":{"id":"msg_1","type":"message","role":"assistCODE
HIGH⚡…handlers/test_anthropic_passthrough_logging_handler.py1231 'event: message_delta\ndata: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null}CODE
HIGH⚡…handlers/test_anthropic_passthrough_logging_handler.py1241 'event: message_start\ndata: {"type":"message_start","message":{"id":"msg_1","type":"message","role":"assistCODE
HIGH⚡…handlers/test_anthropic_passthrough_logging_handler.py1245 'event: message_delta\ndata: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null}CODE
225 more matches not shown…
Fake / Example Data1269 hits · 1063 pts
SeverityFileLineSnippetContext
LOW⚡proxy_server_config.yaml66 api_key: fake-keyCODE
LOW⚡proxy_server_config.yaml71 api_key: my-fake-keyCODE
LOW⚡proxy_server_config.yaml78 api_key: my-fake-keyCODE
LOW⚡proxy_server_config.yaml85 api_key: my-fake-keyCODE
LOW⚡proxy_server_config.yaml91 api_key: my-fake-keyCODE
LOWproxy_server_config.yaml155 api_key: my-fake-keyCODE
LOWproxy_server_config.yaml161 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.tsx256 user_email: "user@example.com",CODE
LOW…lm-dashboard/tests/CreateKeyPage.expiredToken.test.tsx287 user_email: "user@example.com",CODE
LOWui/litellm-dashboard/tests/setupTests.ts109 userEmail: "user@example.com",CODE
LOWui/litellm-dashboard/src/app/chat/layout.test.tsx19 userEmail: "user@example.com",CODE
LOW…hboard)/models-and-endpoints/page.integration.test.tsx33 userEmail: "admin@example.com",CODE
LOW…nd-endpoints/components/ModelRetrySettingsTab.test.tsx124 expect(inputs[2]).toHaveAttribute("placeholder", "7"); // inherited from globalCODE
LOW…nd-endpoints/components/ModelRetrySettingsTab.test.tsx126 expect(inputs[0]).toHaveAttribute("placeholder", "1"); // inherited from defaultRetryCODE
LOW…pp/(dashboard)/tag-management/_components/tag_info.tsx203 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…omponents/systemOneUI/SystemOneUI.integration.test.tsx502 "placeholder",CODE
LOW…src/app/(dashboard)/api-keys/ApiKeysDashboard.test.tsx18 userEmail: "admin@example.com",CODE
LOW…components/components/EntityUsage/EntityUsage.test.tsx1370 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.tsx1062 'Authorization': 'Bearer dummy-token-for-extended-card'CODE
LOW…/litellm-dashboard/src/components/public_model_hub.tsx1111 'Authorization': 'Bearer dummy-token-for-extended-card'CODE
LOW…ellm-dashboard/src/components/model_info_view.test.tsx1601 .filter((element) => element.getAttribute("placeholder") === "Select or search for existing credentials")CODE
LOW…ellm-dashboard/src/components/model_info_view.test.tsx1928 .find((element) => element.getAttribute("placeholder") === "Select or search for existing credentials");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.tsx122 const [orgName] = await screen.findAllByText("Acme Corp");CODE
LOW…src/components/organization/organization_view.test.tsx142 expect(screen.getByText("Acme Corp")).toBeInTheDocument();CODE
LOW…ttings/HashicorpVault/EditHashicorpVaultModal.test.tsx191 "placeholder",CODE
LOW…ttings/HashicorpVault/EditHashicorpVaultModal.test.tsx200 expect(screen.getByLabelText("Token")).toHaveAttribute("placeholder", "vault_token description");CODE
LOW…ings/AdminSettings/CyberArk/EditCyberArkModal.test.tsx153 "placeholder",CODE
LOW…ings/AdminSettings/CyberArk/EditCyberArkModal.test.tsx162 expect(screen.getByLabelText("API Key")).toHaveAttribute("placeholder", "cyberark_api_key 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.tsx339 user_email: "admin@example.com",CODE
LOW…ttings/SSOSettings/Modals/BaseSSOSettingsForm.test.tsx409 user_email: "admin@example.com",CODE
LOW…ard/src/components/claude_code_plugins/helpers.test.ts203 expect(isValidEmail("user@example.com")).toBe(true);CODE
LOW…src/components/agent_management/AgentSelector.test.tsx56 expect(screen.getByRole("combobox")).toHaveAttribute("placeholder", "Loading...");CODE
1209 more matches not shown…
Redundant / Tautological Comments714 hits · 1026 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.py1772 ## Check if unified_file_id is in the responseCOMMENT
LOW⚡…rprise/litellm_enterprise/proxy/hooks/managed_files.py2065 # Check if the scheduler has the batch cost checking job registeredCOMMENT
LOW⚡…rprise/litellm_enterprise/proxy/hooks/managed_files.py2070 # Check if the check_batch_cost_job exists in the schedulerCOMMENT
LOW⚡…rprise/litellm_enterprise/proxy/hooks/managed_files.py2140 # Check if any referenced file ID matches the file we're trying to deleteCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1219 # Check if any files are stored in storage backends and need base64 conversionCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1860 ## Check if unified_file_id is in the responseCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py2169 # Check if batch polling is enabledCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py2174 # Check if file is referenced by any non-terminal batchesCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py2224 # Check if file deletion should be blocked due to batch referencesCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py2346 # Check if this is a base64 encoded unified file IDCOMMENT
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py2438 # Set format to help Gemini determine mime typeCOMMENT
LOW…rprise/proxy/management_endpoints/project_endpoints.py574 # Check if user has permission to create projects for this teamCOMMENT
LOW…rprise/proxy/management_endpoints/project_endpoints.py596 # Check if project_id already existsCOMMENT
LOW…rprise/proxy/management_endpoints/project_endpoints.py972 # Check if user is admin (only admins can delete projects)COMMENT
LOW…rprise/proxy/management_endpoints/project_endpoints.py990 # Check if project existsCOMMENT
LOW…rprise/proxy/management_endpoints/project_endpoints.py1001 # Check if there are any keys associated with this projectCOMMENT
LOW…m_enterprise/enterprise_callbacks/callback_controls.py91 # Check if admin has disabled this featureCOMMENT
LOW…erprise/enterprise_callbacks/send_emails/base_email.py146 # Check if API key should be included in emailCOMMENT
LOW…erprise/enterprise_callbacks/send_emails/base_email.py193 # 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.py55 # Check if current path should be ignoredCOMMENT
LOW⚡tests/litellm_utils_tests/test_secret_manager.py31 # Read the file contentCOMMENT
LOWtests/unit/test_utils.py1347 # Check if both max_tokens and max_output_tokens existCOMMENT
LOWtests/unit/test_utils.py8138 # Set force_ipv4 to TrueCOMMENT
LOWtests/unit/test_add_deployment_no_master_key.py27 # Set master_key to NoneCOMMENT
LOW⚡tests/unit/test_add_deployment_no_master_key.py73 # Set master_key to NoneCOMMENT
LOW⚡tests/unit/test_add_deployment_no_master_key.py123 # Set master_key to NoneCOMMENT
LOWtests/unit/test_router_redis_init.py36 # Check if the underlying cache client is configured with the correct DBCOMMENT
LOWtests/unit/test_acompletion_session_reuse_e2e.py146 # Check if shared_session is being passed (and not commented out)COMMENT
LOW⚡tests/unit/proxy/test_proxy_utils.py2158 # Check if all expected models are in the returned listCOMMENT
LOWtests/unit/proxy/test_proxy_utils.py2231 # Check if model was updated correctlyCOMMENT
LOWtests/unit/proxy/test_chat_completion_metadata.py33 # Check if ProxyBaseLLMRequestProcessing was initialized with data containing metadataCOMMENT
LOWtests/unit/proxy/test_chat_completion_metadata.py78 # Check if ProxyBaseLLMRequestProcessing was initialized with the correct metadataCOMMENT
LOWtests/unit/proxy/test_litellm_pre_call_utils.py3151 # Check if standard_logging_object was setCOMMENT
LOW…/unit/proxy/test_proxy_server_endpoints_and_startup.py4282 # Set store_model_in_db to TrueCOMMENT
LOW…/unit/proxy/test_proxy_server_endpoints_and_startup.py4330 # Set store_model_in_db to FalseCOMMENT
LOW…/unit/proxy/test_proxy_server_endpoints_and_startup.py6925 # Set LITELLM_NON_ROOT to trueCOMMENT
LOW…/unit/proxy/test_proxy_server_endpoints_and_startup.py6967 # Set LITELLM_NON_ROOT to trueCOMMENT
LOW⚡tests/unit/proxy/test_proxy_server.py427 # Check if the request was successfulCOMMENT
LOW…roxy/spend_tracking/test_spend_management_endpoints.py3776 # Check if current path should be ignoredCOMMENT
LOW…y/_experimental/mcp_server/test_jwt_mcp_enforcement.py150 # Check if MCP route is allowed for TEAM roleCOMMENT
LOW…/_experimental/mcp_server/test_mcp_chat_completions.py371 # Check if this is the follow-up callCOMMENT
LOW…/_experimental/mcp_server/test_mcp_chat_completions.py660 # Check if this is the follow-up call (has tool results in messages)COMMENT
LOW…/_experimental/mcp_server/test_mcp_chat_completions.py756 # Check if we've seen tool_calls yetCOMMENT
LOW…/_experimental/mcp_server/test_mcp_chat_completions.py1015 # Check if this is the follow-up call (has tool results in messages)COMMENT
LOWtests/unit/proxy/auth/test_proxy_routes.py76 # Check if base path exists (e.g., /containers or /v1/containers)COMMENT
LOW…/management_endpoints/test_mcp_management_endpoints.py90 alias=name, # Set alias to match the name for consistency with testsCODE
LOW⚡…proxy/management_endpoints/test_key_generate_prisma.py1257 # Check if data gets updatedCOMMENT
654 more matches not shown…
Docstring Block Structure195 hits · 975 pts
SeverityFileLineSnippetContext
HIGH…se/litellm_enterprise/proxy/audit_logging_endpoints.py199 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
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.py2430 Default image cost calculator for image generation Args: model (str): Model name image_responsSTRING
HIGHlitellm/cost_calculator.py2520 Default video cost calculator for video generation Args: model (str): Model name duration_secoSTRING
HIGHlitellm/utils.py2625 Check if the given model supports system messages and return a boolean value. Parameters: model (str): TheSTRING
HIGHlitellm/utils.py2646 Check if the given model supports web search and return a boolean value. Parameters: model (str): The modeSTRING
HIGHlitellm/utils.py2667 Check if the given model supports URL context and return a boolean value. Parameters: model (str): The modSTRING
HIGHlitellm/utils.py2688 Check if the given model supports native streaming and return a boolean value. Parameters: model (str): ThSTRING
HIGHlitellm/utils.py2777 Check if the given model supports function calling and return a boolean value. Parameters: model (str): ThSTRING
HIGHlitellm/utils.py2817 Check if the given model supports function calling and return a boolean value. Parameters: model (str): ThSTRING
HIGHlitellm/utils.py2983 Check if the given model supports prompt caching and return a boolean value. Parameters: model (str): The STRING
HIGHlitellm/utils.py3020 Check if the given model supports computer use and return a boolean value. Parameters: model (str): The moSTRING
HIGHlitellm/utils.py5505 Get the maximum number of output tokens allowed for a given model. Parameters: model (str): The name of thSTRING
HIGHlitellm/utils.py6480 Get a dict for the maximum tokens (context window), input_cost_per_token, output_cost_per_token for a given model.STRING
HIGHlitellm/utils.py8399 Ensures all user messages are valid OpenAI chat completion messages. Args: messages: List of message dSTRING
HIGHlitellm/router.py14886 Returns deployments available for pass-through endpoints (based on load balancing strategy) Similar toSTRING
HIGHlitellm/main.py478 Asynchronously executes a litellm.completion() call for any of litellm supported llms (example gpt-4, gpt-3.5-turboSTRING
HIGHlitellm/main.py916 Generate a mock completion response for testing or debugging purposes. This is a helper function that simulateSTRING
HIGHlitellm/main.py6296 Embedding function that calls an API to generate embeddings for the given input. Parameters: - model: The STRING
HIGH…proxy/guardrails/guardrail_hooks/bedrock_guardrails.py3158 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.py181 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.py155 Apply Zscaler AI Guard guardrail to batch of texts. Args: inputs: Dictionary containing teSTRING
HIGH…s/guardrail_hooks/custom_code/custom_code_guardrail.py245 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.py377 Process the result from the custom code function. Args: result: The return value from applSTRING
HIGH…roxy/guardrails/guardrail_hooks/qualifire/qualifire.py431 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.py331 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.py375 During-call hook to scan the request in parallel with LLM processing. Args: data: Request STRING
HIGH…ellm/proxy/guardrails/guardrail_hooks/pillar/pillar.py409 Post-call hook to scan LLM responses before returning to user. Args: data: Original requesSTRING
HIGH…ellm/proxy/guardrails/guardrail_hooks/pillar/pillar.py457 Core method to run the Pillar guardrail scan. Args: data: Request data containing messagesSTRING
HIGH…ellm/proxy/guardrails/guardrail_hooks/pillar/pillar.py503 Handle API errors based on fallback_on_error configuration. Args: error: The exception thaSTRING
HIGH…/proxy/guardrails/guardrail_hooks/deepkeep/deepkeep.py332 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.py331 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.py432 Apply EnkryptAI guardrail to a batch of texts. Args: inputs: Dictionary containing texts aSTRING
HIGH…ils/guardrail_hooks/litellm_content_filter/patterns.py62 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.py385 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.py1373 Apply all content filtering checks to a single text. This method performs: 1. Category keywordSTRING
HIGH…ardrail_hooks/litellm_content_filter/content_filter.py1882 Apply content filtering guardrail to a batch of texts. This method checks for sensitive patterns and bSTRING
HIGH…/proxy/guardrails/guardrail_hooks/grayswan/grayswan.py223 Apply Gray Swan guardrail to extracted text content. This method is called by the unified guardrail sySTRING
HIGH…/proxy/guardrails/guardrail_hooks/grayswan/grayswan.py496 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.py404 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.py179 Apply OpenAI moderation guardrail using the unified guardrail interface. This method is called by the STRING
HIGH…tellm/proxy/_experimental/mcp_server/rest_endpoints.py657 Resolve allowed MCP servers for a tool call with IP filtering. Args: request: The HTTP reqSTRING
HIGH…oxy/_experimental/mcp_server/discoverable_endpoints.py273 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.py2259Join 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.py5774 Filter arguments to only include allowed parameters for the given tool. Args: tool_name: BSTRING
HIGH…m/proxy/_experimental/mcp_server/mcp_server_manager.py6197 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.py463 Process and validate MCP request headers from the ASGI scope. This includes: 1. Extracting and STRING
HIGH…roxy/openai_files_endpoints/storage_backend_service.py46 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.py228 Encode a file/batch ID with model routing information. Format: <prefix><base64(litellm:<original_id>;model,<moSTRING
HIGHlitellm/proxy/openai_files_endpoints/common_utils.py395 Retrieve API credentials for a model from the LLM Router. Does not check whether the caller may use ``model_idSTRING
HIGHlitellm/proxy/openai_files_endpoints/common_utils.py694 Orchestrate model-based credential routing for file operations. The model name comes from the caller (embeddedSTRING
HIGHlitellm/proxy/auth/route_checks.py609 Check if route matches the allowed_route pattern. Supports both exact match and prefix match. STRING
HIGHlitellm/proxy/auth/login_utils.py122 Get UI username and password from environment variables or master key. Args: master_key: Master key foSTRING
HIGHlitellm/proxy/auth/login_utils.py221 Authenticate a user and generate an API key for UI access. This function handles two login scenarios: 1. ASTRING
HIGHlitellm/proxy/auth/auth_checks.py3712 Look up a team by its team_alias (name) in the database. Args: team_alias: The team name/alias to lookSTRING
HIGHlitellm/proxy/auth/auth_checks.py3823 Look up an organization by its organization_alias in the database. Args: org_alias: The organization nSTRING
135 more matches not shown…
Hallucination Indicators78 hits · 935 pts
SeverityFileLineSnippetContext
CRITICALtests/unit/proxy/common_utils/test_check_batch_cost.py2443 instance.prisma_client.db.litellm_usertable.find_unique.assert_not_called()CODE
CRITICAL…xy/guardrails/guardrail_hooks/test_panw_prisma_airs.py2211 sent_payload = mock_client.client.post.call_args.kwargs.get("json") or mock_client.client.post.call_args[CODE
CRITICAL…xy/guardrails/guardrail_hooks/test_panw_prisma_airs.py2246 sent_payload = mock_client.client.post.call_args.kwargs.get("json") or mock_client.client.post.call_args[CODE
CRITICALtests/unit/proxy/memory/test_memory_endpoints.py944 self.prisma.db.litellm_teamtable.teams.append(CODE
CRITICALtests/unit/proxy/memory/test_memory_endpoints.py969 self.prisma.db.litellm_teamtable.teams.append(CODE
CRITICALtests/unit/proxy/memory/test_memory_endpoints.py989 self.prisma.db.litellm_teamtable.teams.append(CODE
CRITICAL…perimental/mcp_server/test_openapi_to_mcp_generator.py211 assert destination.calls.last.request.headers.get("authorization") == (resolved or {}).get("Authorization")CODE
CRITICAL⚡…experimental/mcp_server/test_discoverable_endpoints.py12399 proxy_server.prisma_client.db.litellm_teamtable.find_unique.assert_not_called()CODE
CRITICAL⚡…experimental/mcp_server/test_discoverable_endpoints.py12400 proxy_server.prisma_client.db.litellm_teamtable.upsert.assert_not_called()CODE
CRITICAL⚡…experimental/mcp_server/test_discoverable_endpoints.py12401 proxy_server.prisma_client.db.litellm_usertable.update.assert_not_called()CODE
CRITICAL⚡…experimental/mcp_server/test_discoverable_endpoints.py12527 proxy_server.prisma_client.db.litellm_teamtable.create.assert_not_called()CODE
CRITICAL⚡…experimental/mcp_server/test_discoverable_endpoints.py12528 proxy_server.prisma_client.db.litellm_usertable.create.assert_not_called()CODE
CRITICAL⚡…experimental/mcp_server/test_discoverable_endpoints.py12529 proxy_server.prisma_client.db.litellm_usertable.update.assert_not_called()CODE
CRITICAL⚡…experimental/mcp_server/test_discoverable_endpoints.py12755 proxy_server.prisma_client.db.litellm_mcpusercredentials.upsert.assert_not_called()CODE
CRITICAL⚡…experimental/mcp_server/test_discoverable_endpoints.py12756 proxy_server.prisma_client.db.litellm_usertable.create.assert_not_called()CODE
CRITICAL⚡…experimental/mcp_server/test_discoverable_endpoints.py12757 proxy_server.prisma_client.db.litellm_teamtable.create.assert_not_called()CODE
CRITICAL⚡…experimental/mcp_server/test_discoverable_endpoints.py12825 proxy_server.prisma_client.db.litellm_mcpusercredentials.upsert.assert_not_called()CODE
CRITICAL⚡…experimental/mcp_server/test_discoverable_endpoints.py12826 proxy_server.prisma_client.db.litellm_usertable.create.assert_not_called()CODE
CRITICAL⚡…experimental/mcp_server/test_discoverable_endpoints.py12827 proxy_server.prisma_client.db.litellm_teamtable.create.assert_not_called()CODE
CRITICALtests/unit/proxy/auth/test_auth_utils.py2731 authorization = route.calls.last.request.headers.get("authorization")CODE
CRITICAL⚡tests/unit/proxy/batches_endpoints/test_endpoints.py3126 metadata = retrieve_harness.router.aretrieve_batch.await_args.kwargs.get("litellm_metadata") or {}CODE
CRITICAL⚡tests/unit/proxy/batches_endpoints/test_endpoints.py3136 metadata = retrieve_harness.router.aretrieve_batch.await_args.kwargs.get("litellm_metadata") or {}CODE
CRITICAL⚡…nit/proxy/openai_files_endpoint/test_files_endpoint.py991 print(f"Content: {gemini_route.calls.last.request.content.decode()}")CODE
CRITICAL⚡…nit/proxy/openai_files_endpoint/test_files_endpoint.py992 print(f"Response: {gemini_route.calls.last.response.content.decode()}")CODE
CRITICAL⚡…nit/proxy/openai_files_endpoint/test_files_endpoint.py994 assert "test-file-id" in gemini_route.calls.last.request.content.decode()CODE
CRITICAL…xy/anthropic_endpoints/test_claude_code_marketplace.py631 stored_plugin: Final = await litellm.proxy.proxy_server.prisma_client.db.litellm_claudecodeplugintable.find_unique(CODE
CRITICAL⚡tests/unit/proxy/hooks/test_sensitive_data_routing.py635 handler_with_redis.internal_usage_cache.dual_cache.redis_cache.async_set_cache.assert_called_once()CODE
CRITICAL…sts/unit/proxy/hooks/test_autorouter_baseline_cache.py1005 wire: Final = route.calls.last.request.content.decode()CODE
CRITICAL…sts/unit/proxy/hooks/test_autorouter_baseline_cache.py1039 wire: Final = route.calls.last.request.content.decode()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
CRITICAL⚡…xy/management_endpoints/test_organization_endpoints.py1246 proxy_server.prisma_client.db.litellm_organizationtable.find_unique.assert_not_awaited()CODE
CRITICAL⚡…xy/management_endpoints/test_organization_endpoints.py1247 proxy_server.prisma_client.db.litellm_organizationtable.update.assert_not_awaited()CODE
CRITICALtests/unit/proxy/client/test_models.py345 assert "not found" in exc_info.value.orig_exception.response.text.lower()CODE
CRITICALtests/unit/proxy/client/test_models.py716 assert "not found" in exc_info.value.orig_exception.response.text.lower()CODE
CRITICAL…e/proxy/test_batch_update_db_managed_output_file_id.py439 instance.prisma_client.db.litellm_teamtable.find_unique.assert_not_awaited()CODE
CRITICALtests/unit/enterprise/proxy/test_managed_files_hook.py413 managed_files.prisma_client.db.litellm_managedfiletable.find_many.assert_awaited_once_with(CODE
CRITICAL…it/secret_managers/test_get_azure_ad_token_provider.py9from azure.core.exceptions import ClientAuthenticationErrorCODE
CRITICAL…s/unit/secret_managers/test_cyberark_secret_manager.py90 route.calls.last.request.url.raw_path.decode() == secret["path"]CODE
CRITICAL…s/unit/secret_managers/test_cyberark_secret_manager.py110 assert policy_route.calls.last.request.content.decode() == secret["policy_body"]CODE
CRITICAL⚡tests/unit/repositories/test_repositories.py987 repo._prisma_client.db.litellm_usertable.find_many.assert_awaited_once()CODE
CRITICALtests/unit/repositories/test_repositories.py1007 repo._prisma_client.db.litellm_usertable.find_many.assert_not_awaited()CODE
CRITICALtests/unit/repositories/test_repositories.py1684 archived = list(repo._prisma_client.db.litellm_deletedverificationtoken._records.values())[0]CODE
CRITICAL⚡tests/unit/integrations/test_langfuse.py1346 return logger.tracing.provider.resource.attributes.get(LangfuseOtelSpanAttributes.ENVIRONMENT)CODE
CRITICAL⚡tests/unit/integrations/test_langfuse.py1366 return logger.tracing.provider.resource.attributes.get(LangfuseOtelSpanAttributes.RELEASE)CODE
CRITICAL⚡…unit/integrations/test_prometheus_rate_limit_labels.py430 logger.litellm_remaining_api_key_requests_for_model.labels.return_value.set.assert_called_once_with(CODE
CRITICAL⚡…unit/integrations/test_prometheus_rate_limit_labels.py433 logger.litellm_remaining_api_key_tokens_for_model.labels.return_value.set.assert_called_once_with(CODE
CRITICAL…unit/integrations/test_prometheus_rate_limit_labels.py386 logger.litellm_remaining_api_key_requests_for_model.labels.return_value.set.assert_called_once_with(CODE
CRITICAL…unit/integrations/test_prometheus_rate_limit_labels.py389 logger.litellm_remaining_api_key_tokens_for_model.labels.return_value.set.assert_called_once_with(CODE
CRITICAL…unit/integrations/test_prometheus_rate_limit_labels.py411 logger.litellm_remaining_api_key_requests_for_model.labels.return_value.set.assert_called_once_with(CODE
CRITICAL…unit/integrations/test_prometheus_rate_limit_labels.py414 logger.litellm_remaining_api_key_tokens_for_model.labels.return_value.set.assert_called_once_with(CODE
CRITICAL…unit/integrations/test_prometheus_rate_limit_labels.py449 logger.litellm_remaining_api_key_requests_for_model.labels.return_value.set.assert_called_once_with(CODE
CRITICAL…unit/integrations/test_prometheus_rate_limit_labels.py452 logger.litellm_remaining_api_key_tokens_for_model.labels.return_value.set.assert_called_once_with(CODE
CRITICAL…unit/integrations/test_prometheus_rate_limit_labels.py471 logger.litellm_remaining_api_key_requests_for_model.labels.return_value.set.assert_called_once_with(CODE
CRITICAL…unit/integrations/test_prometheus_rate_limit_labels.py474 logger.litellm_remaining_api_key_tokens_for_model.labels.return_value.set.assert_called_once_with(CODE
CRITICALtests/unit/llms/base_llm/test_base_managed_resource.py108 resource.prisma_client.db.litellm_test_resource_table.find_many.assert_not_awaited()CODE
CRITICALtests/unit/llms/azure/test_audio_transcriptions.py94 mock_azure_client.audio.transcriptions.with_raw_response.create.assert_called_once()CODE
CRITICAL⚡…tion/test_edenai_audio_transcription_transformation.py39 return respx_mock.calls.last.request.content.decode(errors="replace")CODE
18 more matches not shown…
Over-Commented Block506 hits · 424 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.toml401# default install; it is pulled in via `uv run --with mutmut==<version>` in CI.COMMENT
LOWpyproject.toml421# The score now reads as "mutation score over covered code" — pair with aCOMMENT
LOWruff-strict.toml21# in ruff, only file-level. These two files each have a handful of parameters thatCOMMENT
LOWpackaging/homebrew/lite.rb1# Homebrew formula for the thin LiteLLM `lite` CLI (litellm[cli]).COMMENT
LOWterraform/provider/RELEASING.md41```bashCOMMENT
LOW…rm/provider/tools/endpointaudit/coverage_allowlist.txt1# Management endpoints deliberately not covered by a Terraform resource or data source.COMMENT
LOWterraform/litellm/gcp/locals.tf1# Gateway path prefixes — mirrored verbatim from gateway/routes/allowlist.pyCOMMENT
LOWterraform/litellm/gcp/cloudsql.tf1# Cloud SQL for PostgreSQL — one primary + one read replica.COMMENT
LOWterraform/litellm/gcp/bootstrap.tf1# Auto-runs the prisma schema migration as part of `terraform apply`. MirrorsCOMMENT
LOWterraform/litellm/gcp/examples/default/main.tf1# One-command deploy of the LiteLLM GCP stack.COMMENT
LOWterraform/litellm/aws/ecs.tf41# Shared env block fed to gateway, backend, and the migration task. MirrorsCOMMENT
LOWterraform/litellm/aws/ecs.tf341 # Metering needs a client certificate AND its key. Each secret is created onlyCOMMENT
LOWterraform/litellm/aws/autoscaling.tf1# Application Auto Scaling for the three ECS services. Mirrors the HPA valuesCOMMENT
LOWterraform/litellm/aws/locals.tf1# Gateway path prefixes — mirrored verbatim from gateway/routes/allowlist.pyCOMMENT
LOWterraform/litellm/aws/s3.tf1# General-purpose S3 bucket for the proxy. LiteLLM uses S3 for:COMMENT
LOWterraform/litellm/aws/migrations.tf1# Task definition for the dedicated litellm-migrations image. Mirrors theCOMMENT
LOWterraform/litellm/aws/rds.tf1# Aurora Postgres cluster with one writer + one reader instance, IAMCOMMENT
LOWterraform/litellm/aws/bootstrap.tf1# Auto-runs the two manual steps that used to follow `terraform apply`:COMMENT
LOWterraform/litellm/aws/examples/default/main.tf1# One-command deploy of the LiteLLM AWS stack.COMMENT
LOWterraform/litellm/aws/examples/default/providers.tf1# The provider is configured HERE, in the root, not in the module. That isCOMMENT
LOWterraform/litellm/aws/examples/default/providers.tf21 # "cost-center" = "platform"COMMENT
LOWui/litellm-dashboard/src/next-types.d.ts1/// <reference types="next" />COMMENT
LOW…dashboard)/agents/_components/agent_card_discovery.tsx81COMMENT
LOW…dashboard)/mcp-servers/_components/CreateMCPServer.tsx581 const isAdmin = isAdminRole(userRole);COMMENT
LOW…dashboard)/mcp-servers/_components/mcp_server_edit.tsx481 return () => {COMMENT
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.tsx141# response_with_file = client.chat.completions.create(COMMENT
LOW…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx201# response_with_file = client.responses.create(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
LOWdocker/docker-compose.quickstart.yml1# LiteLLM quickstart stack: the gateway plus a Postgres database that storesCOMMENT
LOW…e/litellm_enterprise/enterprise_callbacks/llm_guard.py221COMMENT
LOWtests/_vcr_conftest_common.py41)COMMENT
LOWtests/_vcr_conftest_common.py381# Volatile-token body normalization (compare-time only).COMMENT
LOWtests/_vcr_conftest_common.py541def _is_telemetry_export_request(request) -> bool:COMMENT
LOW…ging_callback_tests/test_bedrock_knowledgebase_hook.py161 assert (COMMENT
LOW…ging_callback_tests/test_bedrock_knowledgebase_hook.py181# model="gpt-5.5",COMMENT
LOW…ging_callback_tests/test_bedrock_knowledgebase_hook.py201# # 1 vector store request was made, expect 1 vector store request metadata objectCOMMENT
LOWtests/unit/test_router_retry_policy_update.py361COMMENT
LOWtests/unit/proxy/test_custom_callback_input.py21COMMENT
LOWtests/unit/proxy/test_model_level_guardrails.py661 # The pre_call_hook must have received data with the model-levelCOMMENT
LOWtests/unit/proxy/test_proxy_utils.py2101# from litellm.types.utils import ProviderSpecificHeaderCOMMENT
LOWtests/unit/proxy/test_proxy_server.py2441 models = resp["data"]COMMENT
LOWtests/unit/proxy/test_proxy_server.py2461# await litellm.proxy.proxy_server.prisma_client.connect()COMMENT
LOWtests/unit/proxy/test_proxy_server.py2481# )COMMENT
LOWtests/unit/proxy/test_proxy_server.py2501# token=generated_key,COMMENT
LOWtests/unit/proxy/test_health_check_max_tokens.py381 model_info = {"mode": "embedding", "health_check_reasoning_effort": "low"}COMMENT
LOW…/guardrails/guardrail_hooks/test_bedrock_guardrails.py1281# assessment but has no matches.COMMENT
LOW…/guardrails/guardrail_hooks/test_bedrock_guardrails.py2781 request_data={"messages": request_messages},COMMENT
LOW…/guardrails/guardrail_hooks/test_bedrock_guardrails.py3441 assert usage_chunks, "streaming block should carry the upstream call's usage on at least one chunk"COMMENT
LOWtests/unit/proxy/auth/test_route_checks.py2201 request=request,COMMENT
LOWtests/unit/proxy/batches_endpoints/test_endpoints.py1281 assert raised.value.headers["x-litellm-call-id"] == call_idCOMMENT
LOWtests/unit/proxy/batches_endpoints/test_endpoints.py1301# The DB seams (get_batch_from_database, update_batch_in_database, #COMMENT
LOWtests/unit/proxy/batches_endpoints/test_endpoints.py1881# =========================================================================== #COMMENT
446 more matches not shown…
Modern Structural Boilerplate416 hits · 406 pts
SeverityFileLineSnippetContext
LOW…terprise/litellm_enterprise/proxy/enterprise_routes.py13__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/unit/test_pre_commit_lint.py164def _set_base_ref(repo: Path, branch: str = "release_branch") -> None:STRING
LOWtests/unit/test_router_silent_experiment.py37async def _settle_shared_logging_worker() -> None:CODE
LOW…drails/guardrail_hooks/_cisco_ai_defense_test_utils.py310__all__ = [CODE
LOWtests/unit/proxy/batches_endpoints/test_endpoints.py255def set_body(harness: Harness, body: Dict[str, Any]) -> None:CODE
LOW…it/proxy/anthropic_endpoints/test_gateway_endpoints.py87 def set_cache(self, key: str, value: object, **kwargs: object) -> None:CODE
LOW…it/proxy/management_endpoints/test_policy_endpoints.py28 def set_return(self, return_inputs: GenericGuardrailAPIInputs) -> None:CODE
LOW…unit/proxy/management_endpoints/test_team_endpoints.py13828async def _settle_audit_log_tasks() -> None:CODE
LOWtests/unit/proxy/db/test_model_access_group_spend.py37 def update_many(self, where: dict, data: dict) -> None:CODE
LOWtests/unit/secret_managers/test_secret_managers_main.py22logger = logging.getLogger(__name__)CODE
LOWtests/unit/repositories/test_unit_of_work.py22 def update_many(self, where: Mapping[str, object], data: Mapping[str, object]) -> None:CODE
LOW⚡…s/unit/integrations/test_prometheus_caller_identity.py63def _set_caller_identity(monkeypatch: pytest.MonkeyPatch, mode: str) -> None:CODE
LOW…unit/integrations/test_prometheus_rate_limit_labels.py355def _set_virtual_key_metrics(logger: PrometheusLogger, kwargs: dict) -> None:CODE
LOWtests/unit/integrations/zerobus/test_zerobus_logger.py57async def _settle(logger: ZerobusLogger) -> None:CODE
LOWtests/unit/integrations/pointfive/test_logger.py490async def _settle(logger) -> None:CODE
LOW…ass_through/messages/test_anthropic_messages_router.py180def _set_fake_aws_env(monkeypatch: pytest.MonkeyPatch) -> None:CODE
LOWtests/unit/caching/test_redis_cluster_node_isolation.py38 def update_active_connections_for_reconnect(self) -> None: ...CODE
LOW…on/providers/test_responses_websocket_session_limit.py837def _settled_on_every_worker(written_at: float) -> None:CODE
LOW…oviders/test_bedrock_converse_lookaround_regex_wire.py808def _settled_schema(gateway: Gateway, wire: Wire, model: str, expected: Mapping[str, JsonValue]) -> None:CODE
LOW…viders/test_anthropic_count_tokens_system_lift_wire.py200def _settled_on_every_worker(gateway: Gateway, body: Mapping[str, JsonValue]) -> None:CODE
LOW…ion/providers/test_bedrock_kimi_k3_cache_point_wire.py1139def _settled(gateway: Gateway, name: str, wire: Wire) -> None:CODE
LOW…tion/observability/test_s3_v2_partition_granularity.py186def _update_environment(candidate: Gateway, values: Mapping[str, JsonValue]) -> None:CODE
LOWtests/integration/_support/client.py278def _set_team_admin_permissions(gateway: Gateway, fields: Sequence[str]) -> None:CODE
LOWtests/integration/_support/upstream.py713def set_interaction_state(control_url: str, interaction_id: str, state: InteractionState) -> None:CODE
LOWtests/integration/sdk/test_http2_wire.py172def _set_http2(monkeypatch: pytest.MonkeyPatch, enabled: bool) -> None:CODE
LOW…uting/test_fallback_hop_foreign_encrypted_reasoning.py675def set_pre_call_checks(gateway: Gateway, checks: Sequence[str]) -> None:CODE
LOW…ation/authorization/test_passthrough_route_denylist.py173 def set_denied(routes: list[JsonValue]) -> None:CODE
LOW…ration/authorization/test_alias_chain_budget_waiver.py172def _settle_both(rig: ChainRig, model: str, key: str, status: int, extra: Mapping[str, JsonValue] = NO_EXTRA) -> None:CODE
LOWtests/rust-python-harness/__init__.py4__all__ = ["load_catalog", "main"]CODE
LOWtests/rust-python-harness/shared/reporting/models.py133 def set_initial_status(self) -> None:CODE
LOWtests/rust-python-harness/shared/reporting/ui.py238 def _update_result(self, key: str, label: str, status: RunStatus, completed: int, total: int) -> None:CODE
LOW…/rust-python-harness/shared/reporting/orchestration.py11__all__ = ["StrategyRunner", "run_strategies"]CODE
LOWtests/rust-python-harness/shared/parity/test_parity.py19 def set_hidden_param(self, key: str, value: object) -> None:CODE
LOWtests/rust-python-harness/shared/parity/test_stream.py38 def set_hidden_param(self, key: str, value: object) -> None:CODE
LOWtests/rust-python-harness/cli/__init__.py13__all__ = ["load_catalog", "main"]CODE
LOWtests/e2e/proxy_client.py754 def update_model(self, model_id: str, litellm_params: LiteLLMParamsBody) -> None:CODE
LOWtests/e2e/proxy_client.py950 def update_team(self, body: TeamUpdateBody) -> None:CODE
LOW…2e/quota_management/spend_tracking/spend_e2e_client.py67__all__ = [CODE
LOWtests/e2e/management/test_team_management_e2e.py195def _set_blocked(client: ManagementClient, team_id: str, *, blocked: bool) -> None:CODE
LOWtests/e2e/management/test_team_management_e2e.py398def _set_team_admin_editable_fields(client: ManagementClient, fields: list[str]) -> None:CODE
LOWtests/e2e/management/management_client.py171 def update_key_models(self, key: str, models: list[str]) -> None:CODE
LOWtests/e2e/management/management_client.py335 def update_team(self, body: TeamUpdateBody) -> None:CODE
LOWtests/e2e/management/management_client.py526 def update_user(self, body: UserUpdateBody) -> None:CODE
LOWtests/e2e/management/management_client.py604 def update_org(self, body: OrgUpdateBody) -> None:CODE
LOW⚡tests/e2e/mcp/oauth_chat_client.py73 async def set_tokens(self, tokens: OAuthToken) -> None:CODE
LOW⚡tests/e2e/mcp/oauth_chat_client.py79 async def set_client_info(self, client_info: OAuthClientInformationFull) -> None:CODE
LOWtests/e2e/secret_manager/secret_store_cyberark.py92 def _update_root_policy(self, method: Literal["POST", "PATCH"], policy: str, action: str) -> None:CODE
LOWtests/e2e/access_control/access_control_client.py101 def set_team_models(self, team_id: str, team_alias: str, models: list[str]) -> None:CODE
LOW⚡litellm/__init__.py1560def set_global_bitbucket_config(config: Mapping[str, object]) -> None:CODE
LOW⚡litellm/__init__.py1570def set_global_gitlab_config(config: Mapping[str, object]) -> None:CODE
LOWlitellm/_lazy_imports_registry.py1591__all__ = [CODE
LOWlitellm/utils.py3297def set_live_deployment_replay(replay: Callable[[], None]) -> None:CODE
LOW⚡litellm/router.py2553 def set_optional_pre_call_checks(self, optional_pre_call_checks: OptionalPreCallChecks | None) -> None:CODE
LOWlitellm/router.py1439 def update_redis_cache(self, cache: RedisCache) -> None:CODE
LOWlitellm/router.py4019 def _set_deployment_num_retries_on_exception(self, exception: Exception, deployment: dict) -> None:CODE
LOWlitellm/router.py4038 def _set_failed_deployment_id_on_exception(self, exception: Exception, deployment: Mapping[str, Any]) -> None:CODE
LOWlitellm/router.py10209 def _update_deployment_indices_after_removal(self, model_id: str, removal_idx: int) -> None:CODE
356 more matches not shown…
Structural Annotation Overuse221 hits · 386 pts
SeverityFileLineSnippetContext
LOW…/app/(dashboard)/agents/_components/add_agent_form.tsx143 // Step 3: key assignment stateCOMMENT
LOW⚡…/app/(dashboard)/agents/_components/add_agent_form.tsx155 // Step 4: resultsCOMMENT
LOW⚡tests/unit/test_aembedding_session_reuse_e2e.py35 # Step 1: litellm.embedding() extracts and passes shared_sessionCOMMENT
LOW⚡tests/unit/test_aembedding_session_reuse_e2e.py39 # Step 2: OpenAI handlers pass it forwardCOMMENT
LOW⚡tests/unit/test_aembedding_session_reuse_e2e.py45 # Step 3: _get_openai_client passes it to AsyncHTTPHandlerCOMMENT
LOW⚡tests/unit/test_aembedding_session_reuse_e2e.py49 # Step 4: AsyncHTTPHandler.create_client passes it to create_async_transportCOMMENT
LOW⚡tests/unit/test_aembedding_session_reuse_e2e.py53 # Step 5: create_async_transport passes it to create_aiohttp_transportCOMMENT
LOW⚡tests/unit/test_aembedding_session_reuse_e2e.py57 # Step 6: create_aiohttp_transport uses itCOMMENT
LOW⚡tests/unit/test_project_alias_tracking.py118 # Step 1: Auth → sanitized metadataCOMMENT
LOW⚡tests/unit/test_project_alias_tracking.py123 # Step 2: Sanitized metadata → standard logging metadataCOMMENT
LOW⚡…/unit/proxy/test_proxy_server_endpoints_and_startup.py423 # Step 1: login — get codeCOMMENT
LOW⚡…/unit/proxy/test_proxy_server_endpoints_and_startup.py431 # 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.py2050 # Step 1: Create vector store on Instance 1COMMENT
LOW⚡…/vector_store_endpoints/test_vector_store_endpoints.py2056 # Step 2: Instance 2 fetches and caches the vector storeCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1803 # Step 1: Create vector store on Instance 1COMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1824 # Step 2: Instance 2 should be able to find it via database fallbackCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1842 # Step 3: Test that Instance 2 can list vector stores from databaseCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1877 # Step 4: Delete vector store on Instance 1COMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1902 # 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.py1939 # Step 6: Test that using a deleted vector store fails gracefullyCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py2074 # Step 3: Instance 1 updates the vector store in the databaseCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py2106 # Step 4: Instance 2 calls list endpoint (which should sync with database)COMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py2126 # Step 5: Verify Instance 2 now has the updated dataCOMMENT
LOW⚡…xy/management_endpoints/scim/test_scim_v2_endpoints.py414 # Step 1: Start with no default params (fresh proxy state)COMMENT
LOW⚡…xy/management_endpoints/scim/test_scim_v2_endpoints.py417 # Step 2: Simulate the UI saving "Internal User (Create/Delete/View)" as default roleCOMMENT
LOW…xy/management_endpoints/scim/test_scim_v2_endpoints.py452 # Step 3: Create a user via SCIMCOMMENT
LOW…xy/management_endpoints/scim/test_scim_v2_endpoints.py483 # Step 4: Verify the user got INTERNAL_USER, not INTERNAL_USER_VIEW_ONLYCOMMENT
LOW⚡…/unit/integrations/azure_storage/test_azure_storage.py102 # Step 1: Create fileCOMMENT
LOW⚡…/unit/integrations/azure_storage/test_azure_storage.py110 # Step 2: Append dataCOMMENT
LOW⚡…/unit/integrations/azure_storage/test_azure_storage.py119 # Step 3: Flush dataCOMMENT
LOW…ms/runwayml/videos/test_runway_video_transformation.py314 # Step 1: Create videoCOMMENT
LOW…ms/runwayml/videos/test_runway_video_transformation.py333 # Step 2: Parse creation responseCOMMENT
LOW…ms/runwayml/videos/test_runway_video_transformation.py352 # Step 3: Check completion statusCOMMENT
LOWtests/unit/llms/gemini/test_gemini_tts.py312 # Step 1: Map OpenAI audio param to speechConfigCOMMENT
LOWtests/unit/llms/gemini/test_gemini_tts.py328 # Step 2: Transform to request body (this is where the bug was)COMMENT
LOW…llms/gemini/videos/test_gemini_video_transformation.py662 # Step 1: Create request with parametersCOMMENT
LOW…llms/gemini/videos/test_gemini_video_transformation.py682 # Step 2: Parse create responseCOMMENT
LOW…llms/gemini/videos/test_gemini_video_transformation.py699 # Step 3: Check status (completed)COMMENT
LOW⚡tests/unit/llms/vertex_ai/test_vertex.py525 # Step 1: send the conversation and available functions to the modelCOMMENT
LOW…ex_ai/gemini/test_thought_signature_in_tool_call_id.py195 # Step 1: Gemini returns function call with thought signatureCOMMENT
LOW…ex_ai/gemini/test_thought_signature_in_tool_call_id.py206 # Step 2: LiteLLM transforms to OpenAI formatCOMMENT
LOW…ex_ai/gemini/test_thought_signature_in_tool_call_id.py219 # Step 3: OpenAI client sends back assistant messageCOMMENT
LOW…ex_ai/gemini/test_thought_signature_in_tool_call_id.py236 # Step 4: LiteLLM converts back to Gemini format, extracting signatureCOMMENT
LOW⚡…vertex_ai/files/test_vertex_ai_files_transformation.py1089 # Step 1: Transform OpenAI input to Vertex AI format (mixed case exercises raw label)COMMENT
LOW⚡…vertex_ai/files/test_vertex_ai_files_transformation.py1131 # Step 3: Transform Vertex AI output back to OpenAI formatCOMMENT
LOW⚡…vertex_ai/files/test_vertex_ai_files_transformation.py1136 # Step 4: Verify custom_id was preserved (original casing, not sanitized label)COMMENT
LOW…vertex_ai/files/test_vertex_ai_files_transformation.py1110 # Step 2: Simulate Vertex AI batch output (with the label echoed back)COMMENT
LOW…/vertex_ai/rerank/test_vertex_ai_rerank_integration.py40 # Step 1: Test request transformationCOMMENT
LOW…/vertex_ai/rerank/test_vertex_ai_rerank_integration.py72 # Step 2: Test response transformationCOMMENT
LOW…ropic/chat/test_code_interpreter_results_extraction.py224 # Step 1: Parse chunks through ModelResponseIterator (Anthropic handler)COMMENT
LOW…ropic/chat/test_code_interpreter_results_extraction.py235 # Step 2: Assemble via stream_chunk_builder (simulates end-of-stream)COMMENT
LOW…ropic/chat/test_code_interpreter_results_extraction.py249 # Step 3: Extract via _extract_tool_result_output_items (Responses API layer)COMMENT
LOW⚡…/unit/llms/mistral/test_mistral_chat_transformation.py410 # Step 1: Map parametersCOMMENT
LOW…/unit/llms/mistral/test_mistral_chat_transformation.py422 # Step 2: Transform requestCOMMENT
LOW⚡tests/unit/caching/test_caching_handler.py542 # Step 1: Cache the embedding responseCOMMENT
LOW⚡tests/unit/caching/test_caching_handler.py547 # Step 2: Retrieve from cacheCOMMENT
LOW⚡tests/unit/caching/test_caching_handler.py557 # Step 3: Verify the model field is preservedCOMMENT
161 more matches not shown…
Magic Placeholder Names97 hits · 374 pts
SeverityFileLineSnippetContext
HIGHterraform/provider/docs/index.md76export LITELLM_API_KEY="your-api-key"CODE
HIGH…rdrails/_components/custom_code/custom_code_catalog.ts61 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.tsx842 apiKey: "your_api_key",CODE
HIGH…/litellm-dashboard/src/components/public_model_hub.tsx866 apiKey: "your_api_key",CODE
HIGH…lm-dashboard/src/components/AIHub/modelUsageExample.ts6 api_key="your_api_key",CODE
HIGH…lm-dashboard/src/components/AIHub/modelUsageExample.ts26 headers={${JSON.stringify(keyHeaderName)}: "Bearer your_api_key"},CODE
HIGH…shboard/src/components/AIHub/modelUsageExample.test.ts17 'headers={"Authorization": "Bearer your_api_key"}',CODE
HIGH…shboard/src/components/AIHub/modelUsageExample.test.ts20 'headers={"X-Litellm-Key": "Bearer your_api_key"}',CODE
HIGH…-dashboard/src/components/AIHub/ModelHubTable.test.tsx261 expect(dialog).toHaveTextContent('headers={"X-Litellm-Key": "Bearer your_api_key"}');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
HIGH⚡scripts/health_check/health_check_client_README.md21export LITELLM_API_KEY="your-api-key"CODE
HIGH⚡scripts/health_check/health_check_client_README.md28export LITELLM_API_KEY="your-api-key"CODE
HIGH⚡scripts/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
HIGH⚡scripts/health_check/health_check_client_README.md75$env:LITELLM_API_KEY="your-api-key"CODE
HIGH⚡scripts/health_check/health_check_client_README.md82export LITELLM_API_KEY="your-api-key"CODE
HIGH⚡scripts/health_check/health_check_client_README.md89$env:LITELLM_API_KEY="your-api-key"CODE
HIGH⚡scripts/health_check/health_check_client_README.md97$env:LITELLM_API_KEY="your-api-key"CODE
HIGH⚡scripts/health_check/health_check_client_README.md105export LITELLM_API_KEY="your-api-key"CODE
HIGH⚡litellm/router.py1029 "api_key": <your-api-key>,STRING
HIGH⚡litellm/router.py1038 "api_key": <your-api-key>,STRING
HIGH⚡litellm/router.py1047 "api_key": <your-api-key>,STRING
HIGH⚡litellm/proxy/guardrails/guardrail_endpoints.py174 curl -X GET "http://localhost:4000/guardrails/list" -H "Authorization: Bearer <your_api_key>"STRING
HIGH⚡litellm/proxy/guardrails/guardrail_endpoints.py228 curl -X GET "http://localhost:4000/v2/guardrails/list" -H "Authorization: Bearer <your_api_key>"STRING
HIGH⚡litellm/proxy/guardrails/guardrail_endpoints.py387 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGH⚡litellm/proxy/guardrails/guardrail_endpoints.py503 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGH⚡litellm/proxy/guardrails/guardrail_endpoints.py630 -H "Authorization: Bearer <your_api_key>"STRING
HIGH⚡litellm/proxy/guardrails/guardrail_endpoints.py1208 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGH⚡litellm/proxy/guardrails/guardrail_endpoints.py1400 -H "Authorization: Bearer <your_api_key>"STRING
HIGH⚡litellm/proxy/guardrails/guardrail_endpoints.py2155 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGH…m/proxy/_experimental/mcp_server/mcp_server_manager.py1937 "url": "https://actions.zapier.com/mcp/<your-api-key>/sse"STRING
HIGH…m/proxy/_experimental/mcp_server/mcp_server_manager.py1943 "url": "https://actions.zapier.com/mcp/<your-api-key>/sse"STRING
HIGHlitellm/proxy/agent_endpoints/endpoints.py601 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/agent_endpoints/endpoints.py722 -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/agent_endpoints/endpoints.py804 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/agent_endpoints/endpoints.py911 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/agent_endpoints/endpoints.py1016 -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/agent_endpoints/endpoints.py1081 -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/agent_endpoints/endpoints.py1142 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/agent_endpoints/endpoints.py1245 -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.py341 -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.py99 -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py169 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py396 -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py436 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py490 -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py542 -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py612 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py672 -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py726 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py737 -H "Authorization: Bearer <your_api_key>" \\STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py815 -H "Authorization: Bearer <your_api_key>"STRING
HIGHlitellm/proxy/policy_engine/policy_endpoints.py853 -H "Authorization: Bearer <your_api_key>"STRING
37 more matches not shown…
Verbosity Indicators196 hits · 353 pts
SeverityFileLineSnippetContext
LOW…/app/(dashboard)/agents/_components/add_agent_form.tsx143 // Step 3: key assignment stateCOMMENT
LOW⚡…/app/(dashboard)/agents/_components/add_agent_form.tsx155 // Step 4: resultsCOMMENT
LOW…itellm_enterprise/proxy/hooks/managed_vector_stores.py91 # For TypedDict responses, we need to check if _hidden_params was addedCOMMENT
LOW⚡tests/unit/test_aembedding_session_reuse_e2e.py35 # Step 1: litellm.embedding() extracts and passes shared_sessionCOMMENT
LOW⚡tests/unit/test_aembedding_session_reuse_e2e.py39 # Step 2: OpenAI handlers pass it forwardCOMMENT
LOW⚡tests/unit/test_aembedding_session_reuse_e2e.py45 # Step 3: _get_openai_client passes it to AsyncHTTPHandlerCOMMENT
LOW⚡tests/unit/test_aembedding_session_reuse_e2e.py49 # Step 4: AsyncHTTPHandler.create_client passes it to create_async_transportCOMMENT
LOW⚡tests/unit/test_aembedding_session_reuse_e2e.py53 # Step 5: create_async_transport passes it to create_aiohttp_transportCOMMENT
LOW⚡tests/unit/test_aembedding_session_reuse_e2e.py57 # Step 6: create_aiohttp_transport uses itCOMMENT
LOW⚡tests/unit/test_project_alias_tracking.py118 # Step 1: Auth → sanitized metadataCOMMENT
LOW⚡tests/unit/test_project_alias_tracking.py123 # Step 2: Sanitized metadata → standard logging metadataCOMMENT
LOW⚡…/unit/proxy/test_proxy_server_endpoints_and_startup.py423 # Step 1: login — get codeCOMMENT
LOW⚡…/unit/proxy/test_proxy_server_endpoints_and_startup.py431 # 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.py2050 # Step 1: Create vector store on Instance 1COMMENT
LOW⚡…/vector_store_endpoints/test_vector_store_endpoints.py2056 # Step 2: Instance 2 fetches and caches the vector storeCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1803 # Step 1: Create vector store on Instance 1COMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1824 # Step 2: Instance 2 should be able to find it via database fallbackCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1842 # Step 3: Test that Instance 2 can list vector stores from databaseCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1877 # Step 4: Delete vector store on Instance 1COMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py1902 # 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.py1939 # Step 6: Test that using a deleted vector store fails gracefullyCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py2074 # Step 3: Instance 1 updates the vector store in the databaseCOMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py2106 # Step 4: Instance 2 calls list endpoint (which should sync with database)COMMENT
LOW…/vector_store_endpoints/test_vector_store_endpoints.py2126 # Step 5: Verify Instance 2 now has the updated dataCOMMENT
LOW⚡…xy/management_endpoints/scim/test_scim_v2_endpoints.py414 # Step 1: Start with no default params (fresh proxy state)COMMENT
LOW⚡…xy/management_endpoints/scim/test_scim_v2_endpoints.py417 # Step 2: Simulate the UI saving "Internal User (Create/Delete/View)" as default roleCOMMENT
LOW…xy/management_endpoints/scim/test_scim_v2_endpoints.py452 # Step 3: Create a user via SCIMCOMMENT
LOW…xy/management_endpoints/scim/test_scim_v2_endpoints.py483 # Step 4: Verify the user got INTERNAL_USER, not INTERNAL_USER_VIEW_ONLYCOMMENT
LOW⚡…/unit/integrations/azure_storage/test_azure_storage.py102 # Step 1: Create fileCOMMENT
LOW⚡…/unit/integrations/azure_storage/test_azure_storage.py110 # Step 2: Append dataCOMMENT
LOW⚡…/unit/integrations/azure_storage/test_azure_storage.py119 # Step 3: Flush dataCOMMENT
LOW…ms/runwayml/videos/test_runway_video_transformation.py314 # Step 1: Create videoCOMMENT
LOW…ms/runwayml/videos/test_runway_video_transformation.py333 # Step 2: Parse creation responseCOMMENT
LOW…ms/runwayml/videos/test_runway_video_transformation.py352 # Step 3: Check completion statusCOMMENT
LOWtests/unit/llms/gemini/test_gemini_tts.py312 # Step 1: Map OpenAI audio param to speechConfigCOMMENT
LOWtests/unit/llms/gemini/test_gemini_tts.py328 # Step 2: Transform to request body (this is where the bug was)COMMENT
LOW…llms/gemini/videos/test_gemini_video_transformation.py662 # Step 1: Create request with parametersCOMMENT
LOW…llms/gemini/videos/test_gemini_video_transformation.py682 # Step 2: Parse create responseCOMMENT
LOW…llms/gemini/videos/test_gemini_video_transformation.py699 # Step 3: Check status (completed)COMMENT
LOW⚡tests/unit/llms/vertex_ai/test_vertex.py525 # Step 1: send the conversation and available functions to the modelCOMMENT
LOW…ex_ai/gemini/test_thought_signature_in_tool_call_id.py195 # Step 1: Gemini returns function call with thought signatureCOMMENT
LOW…ex_ai/gemini/test_thought_signature_in_tool_call_id.py206 # Step 2: LiteLLM transforms to OpenAI formatCOMMENT
LOW…ex_ai/gemini/test_thought_signature_in_tool_call_id.py219 # Step 3: OpenAI client sends back assistant messageCOMMENT
LOW…ex_ai/gemini/test_thought_signature_in_tool_call_id.py236 # Step 4: LiteLLM converts back to Gemini format, extracting signatureCOMMENT
LOW⚡…vertex_ai/files/test_vertex_ai_files_transformation.py1089 # Step 1: Transform OpenAI input to Vertex AI format (mixed case exercises raw label)COMMENT
LOW⚡…vertex_ai/files/test_vertex_ai_files_transformation.py1131 # Step 3: Transform Vertex AI output back to OpenAI formatCOMMENT
LOW⚡…vertex_ai/files/test_vertex_ai_files_transformation.py1136 # Step 4: Verify custom_id was preserved (original casing, not sanitized label)COMMENT
LOW…vertex_ai/files/test_vertex_ai_files_transformation.py1110 # Step 2: Simulate Vertex AI batch output (with the label echoed back)COMMENT
LOW…/vertex_ai/rerank/test_vertex_ai_rerank_integration.py40 # Step 1: Test request transformationCOMMENT
LOW…/vertex_ai/rerank/test_vertex_ai_rerank_integration.py72 # Step 2: Test response transformationCOMMENT
LOW…ropic/chat/test_code_interpreter_results_extraction.py224 # Step 1: Parse chunks through ModelResponseIterator (Anthropic handler)COMMENT
LOW…ropic/chat/test_code_interpreter_results_extraction.py235 # Step 2: Assemble via stream_chunk_builder (simulates end-of-stream)COMMENT
LOW…ropic/chat/test_code_interpreter_results_extraction.py249 # Step 3: Extract via _extract_tool_result_output_items (Responses API layer)COMMENT
LOW⚡…/unit/llms/mistral/test_mistral_chat_transformation.py410 # Step 1: Map parametersCOMMENT
LOW…/unit/llms/mistral/test_mistral_chat_transformation.py422 # Step 2: Transform requestCOMMENT
LOW⚡tests/unit/caching/test_caching_handler.py542 # Step 1: Cache the embedding responseCOMMENT
LOW⚡tests/unit/caching/test_caching_handler.py547 # Step 2: Retrieve from cacheCOMMENT
136 more matches not shown…
Cross-Language Confusion (JS/TS)47 hits · 286 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.tsx144print(response)`;CODE
HIGH…/_components/prompt_editor_view/PromptCodeSnippets.tsx162print(response)`;CODE
HIGH…/_components/prompt_editor_view/PromptCodeSnippets.tsx176print(response)`;CODE
HIGHui/litellm-dashboard/src/components/networking.tsx6466 // if 404 - return NoneCOMMENT
HIGH…/litellm-dashboard/src/components/public_model_hub.tsx1157print(response.model_dump(mode='json', exclude_none=True))`}CODE
HIGH…/litellm-dashboard/src/components/public_model_hub.tsx1181print(response.model_dump(mode='json', exclude_none=True))`;CODE
HIGH⚡…/litellm-dashboard/src/components/public_model_hub.tsx1291 print(f"Available tools: {[tool.name for tool in tools]}")CODE
HIGH⚡…/litellm-dashboard/src/components/public_model_hub.tsx1298 print(f"Response: {response}")CODE
HIGH⚡…/litellm-dashboard/src/components/public_model_hub.tsx1331 print(f"Available tools: {[tool.name for tool in tools]}")CODE
HIGH⚡…/litellm-dashboard/src/components/public_model_hub.tsx1338 print(f"Response: {response}")CODE
HIGH⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx259 print(f"Image saved to {image_path}")CODE
HIGH⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx264 print("Could not find image URL in response.")CODE
HIGH⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx265 print("Full response:", json_response)CODE
HIGH⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx267 print(f"An error occurred: {e}")CODE
HIGH⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx268 print("Full response:", json_response)CODE
HIGH⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx344 print(f"Image saved to {image_filename}")CODE
HIGH⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx349 print("No image generated. Model response:")CODE
HIGH⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx350 print("\\n".join(text_response))CODE
HIGH⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx352 print("No image data found in response.")CODE
HIGH⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx353 print("Full response for debugging:")CODE
HIGH⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx354 print(response)CODE
HIGH⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx428 print(f"Image saved to {image_filename}")CODE
HIGH⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx433 print("No image generated. Model response:")CODE
HIGH⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx434 print("\\n".join(text_response))CODE
HIGH⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx436 print("No image data found in response.")CODE
HIGH⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx437 print("Full response for debugging:")CODE
HIGH⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx438 print(response)CODE
HIGH⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx511 print(f"Image saved to {image_filename}")CODE
HIGH⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx516 print("No image generated. Model response:")CODE
HIGH⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx517 print("\\n".join(text_response))CODE
HIGH⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx519 print("No image data found in response.")CODE
HIGH⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx520 print("Full response for debugging:")CODE
HIGH⚡…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx521 print(response)CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx137print(response)CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx197print(response.output_text)CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx533print(response.data[0].embedding)CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx547print(response.text)CODE
HIGH…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx562print(f"Audio saved to {output_filename}")CODE
HIGH…c/components/routing_groups/RoutingGroupUsagePanel.tsx43print(response)`;CODE
HIGH⚡…tellm-dashboard/src/components/AIHub/ModelHubTable.tsx1128 print(f"Available tools: {[tool.name for tool in tools]}")CODE
HIGH⚡…tellm-dashboard/src/components/AIHub/ModelHubTable.tsx1135 print(f"Response: {response}")CODE
HIGH…lm-dashboard/src/components/AIHub/modelUsageExample.ts20print(response.choices[0].message.content)`;CODE
HIGH…lm-dashboard/src/components/AIHub/modelUsageExample.ts39print(response.json()["answers"])`;CODE
AI Structural Patterns376 hits · 278 pts
SeverityFileLineSnippetContext
LOW…se/litellm_enterprise/proxy/audit_logging_endpoints.py69CODE
LOW…rprise/litellm_enterprise/proxy/hooks/managed_files.py1733CODE
LOW…proxy/management_endpoints/key_management_endpoints.py42CODE
LOWtests/test_keys.py11CODE
LOWtests/unit/test_video_generation.py930CODE
LOWtests/unit/test_video_generation.py118CODE
LOWtests/unit/test_video_generation.py756CODE
LOWtests/unit/proxy/test_proxy_utils.py1651CODE
LOW…drails/guardrail_hooks/_cisco_ai_defense_test_utils.py175CODE
LOW…/unit/proxy/guardrails/guardrail_hooks/test_conduct.py48CODE
LOW…unit/proxy/_experimental/mcp_server/test_mcp_server.py969CODE
LOW…experimental/mcp_server/test_discoverable_endpoints.py3609CODE
LOW…rimental/mcp_server/auth/test_user_api_key_auth_mcp.py6097CODE
LOW…rver/outbound_credentials/test_authz_code_refresher.py14CODE
LOW…sts/unit/proxy/auth/test_model_access_group_budgets.py119CODE
LOWtests/unit/proxy/batches_endpoints/test_endpoints.py2007CODE
LOW…oxy/batches_endpoints/test_litellm_executed_batches.py371CODE
LOW…it/proxy/management_helpers/test_bulk_user_deletion.py162CODE
LOW…sts/unit/proxy/policy_engine/test_policy_versioning.py24CODE
LOW…unit/proxy/policy_engine/test_policy_versioning_e2e.py14CODE
LOW…proxy/hooks/test_unit_test_max_model_budget_limiter.py601CODE
LOW…xy/management_endpoints/test_access_group_endpoints.py25CODE
LOW…oxy/management_endpoints/test_common_daily_activity.py1667CODE
LOW…oxy/management_endpoints/test_auto_router_endpoints.py1553CODE
LOWtests/unit/responses/test_text_format_conversion.py91CODE
LOWtests/unit/repositories/test_daily_activity_sql.py25CODE
LOWtests/unit/integrations/test_shadow_eval_logger.py258CODE
LOW…ts/unit/integrations/newrelic/test_newrelic_metrics.py34CODE
LOWtests/unit/harness/handlers/test_tool_loop_handler.py71CODE
LOWtests/unit/llms/base_llm/auth/test_token_exchange.py176CODE
LOW…s/github_copilot/test_github_copilot_transformation.py486CODE
LOW…/unit/llms/azure/response/test_azure_transformation.py782CODE
LOW…/unit/llms/azure/response/test_azure_transformation.py884CODE
LOW…s/searxng/search/test_searxng_search_transformation.py206CODE
LOWtests/unit/llms/bedrock/batches/test_handler.py676CODE
LOW…hropic/pass_through/context_management/test_compact.py1191CODE
LOW…ts/integration/observability/_openinference_support.py746CODE
LOWtests/integration/observability/test_grayswan_wire.py61CODE
LOW…ts/integration/observability/test_guardrail_effects.py2240CODE
LOW…tion/observability/test_cache_hit_guardrail_metrics.py185CODE
LOW…_through_unit_tests/test_websearch_interception_e2e.py882CODE
LOWtests/proxy_behavior/management/conftest.py136CODE
LOW…proxy_behavior/spend/test_autorouter_session_rollup.py39CODE
LOW…n/interactions/test_google_interactions_integration.py248CODE
LOWtests/e2e/quota_management/budgets/budget_client.py228CODE
LOWtests/e2e/claude_code/cli_driver.py402CODE
LOWtests/batches_tests/test_bedrock_files_and_batches.py70CODE
LOWtests/e2e_harness/test_fixture_canonical.py19CODE
LOWtests/multi_instance_e2e_tests/test_update_team_e2e.py65CODE
LOWlitellm/cost_calculator.py385CODE
LOWlitellm/cost_calculator.py1234CODE
LOWlitellm/cost_calculator.py1345CODE
LOWlitellm/cost_calculator.py1991CODE
LOWlitellm/utils.py2573CODE
LOWlitellm/utils.py3655CODE
LOWlitellm/utils.py4481CODE
LOWlitellm/exceptions.py459CODE
LOWlitellm/router.py912CODE
LOWlitellm/router.py8228CODE
LOWlitellm/main.py425CODE
316 more matches not shown…
AI Slop Vocabulary87 hits · 205 pts
SeverityFileLineSnippetContext
LOWterraform/litellm/gcp/network.tf43# 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.tsx287 # For this example, we'll just return a placeholder IDCOMMENT
LOW…ellm-dashboard/src/components/chat_ui/CodeSnippets.tsx454 # For this example, we'll just return a placeholder IDCOMMENT
MEDIUM…gement_endpoints/test_callback_management_endpoints.py114 # Add string representations to different callback types to test comprehensive categorizationCOMMENT
LOW…/management_endpoints/test_key_management_endpoints.py6191 # Patch attach_object_permission_to_dict to just return the dict unchangedCOMMENT
MEDIUM⚡tests/unit/proxy/proxy_server/conftest.py22# — but it lets the harness work in editable-source layouts too.COMMENT
MEDIUMtests/unit/proxy/proxy_server/_pin_check.py114 # Skip the harness's own smoke tests — they don't count towardCOMMENT
MEDIUM⚡tests/unit/integrations/newrelic/test_newrelic.py807# _process_success — comprehensive happy-pathCOMMENT
MEDIUM…re_utils/llm_cost_calc/test_tool_call_cost_tracking.py520# The unit tests in test_azure_assistant_cost_tracking.py provide comprehensive coverageCOMMENT
MEDIUMtests/unit/llms/volcengine/test_volcengine.py46 """Test comprehensive thinking parameter handling scenarios"""STRING
MEDIUMtests/unit/llms/bedrock/test_base_aws_llm.py1097 # The harness has to have produced real concurrency, or the assertion below proves nothingCOMMENT
MEDIUMtests/unit/llms/anthropic/batches/test_handler.py241 # Await directly - robust under asyncio_mode=auto's session-scoped loopCOMMENT
MEDIUMtests/unit/batches/test_main.py50# Seam harness - one mock per provider handler instance + the Bedrock ARNCOMMENT
MEDIUMtests/code_coverage_tests/recursive_detector.py67 "strict_json_schema", # harness: max depth set (DEFAULT_MAX_RECURSE_DEPTH); fails closed by raising ValueError at tCODE
MEDIUMtests/code_coverage_tests/recursive_detector.py68 "toml_value", # harness/codex: max depth set (DEFAULT_MAX_RECURSE_DEPTH); fails closed by raising OptionsMismatch aCODE
MEDIUM…de_coverage_tests/check_provider_folders_documented.py31 # Agent-harness configs for litellm.agent(), not LLM providers; documented under docs/harnessCOMMENT
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
MEDIUM⚡tests/llm_translation/test_bedrock_completion.py887 "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` fCODE
MEDIUM⚡tests/llm_translation/test_bedrock_completion.py887 "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` fCODE
MEDIUMtests/e2e/e2e_config.py169# for empty values) means the harness behaves exactly as before this knobCOMMENT
MEDIUMtests/e2e/ui/run_e2e.sh36# Ports, overridable so two checkouts can run this harness at the same time --COMMENT
MEDIUMtests/e2e/claude_code/conftest.py466 # 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.sh243# top-level conftest.py pulls in the full EKS harness (e2e_db,COMMENT
MEDIUMtests/e2e_harness/pytest.ini2# Tests of the tests/e2e harness itself. They import harness modules by bare nameCOMMENT
MEDIUMlitellm-rust/crates/gateway-mcp/tests/gateway/native.rs11async fn sdk_client_discovers_and_calls_prefixed_tools(#[future] harness: Harness) {CODE
MEDIUMlitellm-rust/crates/gateway-mcp/tests/gateway/native.rs58 #[future] harness: Harness,COMMENT
MEDIUMlitellm-rust/crates/gateway-mcp/tests/gateway/native.rs76async fn preserves_tool_failures_as_tool_results(#[future] harness: Harness) {CODE
MEDIUMlitellm-rust/crates/gateway-mcp/tests/gateway/native.rs98async fn routes_prompts_and_resources_without_rewriting_uris(#[future] harness: Harness) {CODE
MEDIUMlitellm-rust/crates/gateway-mcp/tests/gateway/native.rs168async fn retains_healthy_catalogs_and_reports_failed_servers(#[future] harness: Harness) {CODE
MEDIUMlitellm-rust/crates/gateway-mcp/tests/gateway/native.rs238 #[future] harness: Harness,COMMENT
MEDIUMlitellm-rust/crates/gateway-mcp/tests/gateway/native.rs267async fn initialize_checks_the_injected_operation_policy(#[future] harness: Harness) {CODE
MEDIUMlitellm-rust/crates/gateway-mcp/tests/gateway/native.rs290 #[future] harness: Harness,COMMENT
MEDIUMlitellm-rust/crates/gateway-mcp/tests/gateway/http.rs25 #[future] harness: Harness,COMMENT
MEDIUMlitellm-rust/crates/gateway-mcp/tests/gateway/http.rs59async fn rest_lists_bare_names_and_calls_selected_server(#[future] harness: Harness) {CODE
MEDIUMlitellm-rust/crates/gateway-mcp/tests/gateway/http.rs103 #[future] harness: Harness,COMMENT
MEDIUMlitellm-rust/crates/gateway-mcp/tests/gateway/http.rs153 #[future] harness: Harness,COMMENT
MEDIUMlitellm-rust/crates/gateway-mcp/tests/gateway/http.rs233 #[future] harness: Harness,COMMENT
MEDIUMlitellm-rust/crates/gateway-mcp/tests/gateway/http.rs325 #[future] harness: Harness,COMMENT
MEDIUMlitellm-rust/crates/gateway-mcp/tests/gateway/http.rs358async fn rest_requires_server_and_tool(#[future] harness: Harness, #[case] body: Value) {CODE
MEDIUMlitellm-rust/crates/gateway-mcp/tests/gateway/http.rs375async fn legacy_sse_initializes_calls_tools_and_rejects_other_owners(#[future] harness: Harness) {CODE
MEDIUMscripts/benchmark_proxy_vs_provider.py559 # 7. Combined options for comprehensive testingCOMMENT
MEDIUM⚡scripts/eval_compression.py952# Main harnessCOMMENT
MEDIUM.github/scripts/run_merge_smoke.py4# ruff: noqa: T201 # CLI harness: stdout/stderr lines are the reported resultCOMMENT
LOWlitellm/constants.py1232# supports all together ai models, just pass in the model id e.g. completion(model="together_computer/replit_code_3b",..COMMENT
MEDIUMlitellm/constants.py2277# litellm.harness defaultsCOMMENT
LOW⚡litellm/_lazy_imports.py272 # Step 3: If we've already imported it, just return the cached versionCOMMENT
LOW⚡litellm/_lazy_imports.py305# Most of them just call _generic_lazy_import with their specific import map.COMMENT
LOW⚡litellm/_lazy_imports.py378 # If we've already imported it, just return the cached versionCOMMENT
LOWlitellm/utils.py7719 # do nothing, just return messagesCOMMENT
LOWlitellm/utils.py7780 except Exception as e: # [NON-Blocking, if error occurs just return final_messagesCODE
LOWlitellm/proxy/proxy_server.py6549 ## to pass a complete url, or set ssl=True, etc. just set it as `os.environ[REDIS_URL] = <your-redisCOMMENT
LOWlitellm/proxy/utils.py4913 # Check to see if all of the necessary views exist and if they do, simply returnCOMMENT
MEDIUMlitellm/proxy/common_utils/callback_utils.py772 # prefix check is robust under salt-key rotation; a decrypt-basedCOMMENT
MEDIUM⚡litellm/proxy/common_utils/key_rotation_manager.py168 # Create regenerate request with grace period for seamless cutoverCOMMENT
MEDIUM⚡…m/proxy/common_utils/codex_bundled_models_0.159.3.json76 "instructions_template": "You are Codex, an agent based on GPT-6. You and the user share one workspace, and yourCODE
27 more matches not shown…
Dead Code28 hits · 55 pts
SeverityFileLineSnippetContext
MEDIUMtests/unit/proxy/test_common_request_processing.py2493CODE
MEDIUM…unit/proxy/guardrails/guardrail_hooks/test_presidio.py3041CODE
MEDIUMtests/unit/proxy/agent_endpoints/test_a2a_endpoints.py1483CODE
MEDIUM…/hooks/test_async_post_call_streaming_iterator_hook.py170CODE
MEDIUM…/pass_through_endpoints/test_pass_through_endpoints.py2154CODE
MEDIUM…/pass_through_endpoints/test_pass_through_endpoints.py2214CODE
MEDIUM…/pass_through_endpoints/test_pass_through_endpoints.py2279CODE
MEDIUM…/pass_through_endpoints/test_pass_through_endpoints.py2433CODE
MEDIUM…it/responses/test_responses_websocket_all_providers.py316CODE
MEDIUM…it/responses/test_responses_websocket_all_providers.py252CODE
MEDIUM…it/responses/test_responses_websocket_all_providers.py459CODE
MEDIUM…it/responses/test_responses_websocket_all_providers.py1255CODE
MEDIUM…on_transformation/test_litellm_completion_responses.py3898CODE
MEDIUMtests/unit/harness/test_runtime.py311CODE
MEDIUM…/unit/a2a_protocol/test_a2a_exception_mapping_utils.py152CODE
MEDIUMtests/unit/a2a_protocol/test_a2a_streaming_iterator.py68CODE
MEDIUMtests/unit/litellm_core_utils/test_streaming_handler.py4417CODE
MEDIUMtests/unit/litellm_core_utils/test_streaming_handler.py4471CODE
MEDIUMtests/unit/litellm_core_utils/test_streaming_handler.py4517CODE
MEDIUMtests/unit/llms/chat/test_converse_handler.py284CODE
MEDIUMtests/unit/llms/chat/test_converse_handler.py359CODE
MEDIUMtests/unit/llms/bedrock/chat/test_invoke_handler.py643CODE
MEDIUM…oke_transformations/test_base_invoke_transformation.py284CODE
MEDIUM…ropic/pass_through/messages/test_streaming_iterator.py145CODE
MEDIUM…/responses_adapters/test_responses_adapters_handler.py145CODE
MEDIUM…t/llms/sagemaker/test_sagemaker_nova_transformation.py341CODE
MEDIUMlitellm/proxy/_experimental/post_call_rules.py4CODE
MEDIUM…proxy/pass_through_endpoints/pass_through_endpoints.py954CODE
Slop Phrases24 hits · 48 pts
SeverityFileLineSnippetContext
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/llm_translation/test_openai.py538 "text": '\nYou are an interactive CLI tool that helps users with software engineering tasks. UseCODE
MEDIUMcookbook/litellm_router/load_test_proxy.py113# Number of concurrent calls (you can adjust this)COMMENT
MEDIUM⚡cookbook/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.py19533 Note: This is a mock endpoint primarily meant for demonstration purposes, and does not actually provide or change anSTRING
MEDIUMlitellm/proxy/utils.py1712 # This is a basic implementation - can be enhanced based on specific guardrail formatsCOMMENT
MEDIUM⚡…m/proxy/common_utils/codex_bundled_models_0.159.3.json76 "instructions_template": "You are Codex, an agent based on GPT-6. You and the user share one workspace, and yourCODE
LOW⚡…m/proxy/common_utils/codex_bundled_models_0.159.3.json76 "instructions_template": "You are Codex, an agent based on GPT-6. You and the user share one workspace, and yourCODE
MEDIUM⚡…m/proxy/common_utils/codex_bundled_models_0.159.3.json251 "instructions_template": "You are Codex, an agent based on GPT-6. You and the user share one workspace, and yourCODE
LOW⚡…m/proxy/common_utils/codex_bundled_models_0.159.3.json251 "instructions_template": "You are Codex, an agent based on GPT-6. You and the user share one workspace, and yourCODE
LOW⚡…m/proxy/common_utils/codex_bundled_models_0.159.3.json426 "instructions_template": "You are Codex, an agent based on GPT-6. You and the user share one workspace, and yourCODE
LOW⚡…m/proxy/common_utils/codex_bundled_models_0.159.3.json594 "instructions_template": "You are Codex, an agent based on GPT-6. You and the user share one workspace, and yourCODE
LOW…m/proxy/common_utils/codex_bundled_models_0.159.3.json771 "instructions_template": "You are Codex, an agent based on GPT-5. You and the user share one workspace, and yourCODE
LOW…m/proxy/common_utils/codex_bundled_models_0.159.3.json913 "instructions_template": "You are Codex, an agent based on GPT-5. You and the user share one workspace, and yourCODE
LOW…m/proxy/common_utils/codex_bundled_models_0.159.3.json1051 "instructions_template": "You are Codex, an agent based on GPT-5. You and the user share one workspace, and yourCODE
LOW…m/proxy/common_utils/codex_bundled_models_0.159.3.json1417 "instructions_template": "You are Codex, a coding agent based on GPT-5. You and the user share one workspace, anCODE
LOW…m/proxy/common_utils/codex_bundled_models_0.159.3.json1543 "instructions_template": "You are Codex, an agent based on GPT-5. You and the user share one workspace, and yourCODE
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
LOW⚡litellm/integrations/SlackAlerting/slack_alerting.py1798 # Also, don't forget to update the report_sent time after sending the report!COMMENT
LOW⚡litellm/integrations/SlackAlerting/slack_alerting.py1798 # Also, don't forget to update the report_sent time after sending the report!COMMENT
LOWlitellm/llms/anthropic/chat/transformation.py754 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.py146 # 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.py300# # Example usageCOMMENT
LOWlitellm/litellm_core_utils/sensitive_data_masker.py293# Usage example:COMMENT
LOWlitellm/router_utils/cooldown_cache.py234# Usage example:COMMENT
LOWlitellm/router_utils/pattern_match_deployments.py243# Example usage:COMMENT
LOWlitellm/llms/vertex_ai/vertex_embeddings/types.py57# Example usage:COMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH⚡tests/llm_translation/test_bedrock_completion.py887 "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.py691# Auto-generated code to execute skillCOMMENT
Overly Generic Function Names11 hits · 7 pts
SeverityFileLineSnippetContext
LOWtests/capturing_transport.py17 def handle_request(self, request: httpx.Request) -> httpx.Response:CODE
LOW⚡tests/unit/test_compression.py173 "content": "# utils.py\n" + "def helper():\n pass\n" * 2000,STRING
LOWtests/unit/test_utils.py8684 async def test_function(**kwargs):CODE
LOW…l/mcp_server/test_mcp_server_tool_calls_and_headers.py2006 async def handle_request(request_scope: Scope, receive: Receive, outgoing: Send) -> None:CODE
LOW…l/mcp_server/test_mcp_server_tool_calls_and_headers.py2193 async def handle_request(_: Scope, downstream_receive: Receive, __: Send) -> None:CODE
LOW…l/mcp_server/test_mcp_server_tool_calls_and_headers.py2238 async def handle_request(_: Scope, downstream_receive: Receive, __: Send) -> None:CODE
LOW…l/mcp_server/test_mcp_server_tool_calls_and_headers.py2493 async def handle_request(_: Scope, downstream_receive: Receive, outgoing: Send) -> None:CODE
LOW…l/mcp_server/test_mcp_server_tool_calls_and_headers.py11620 async def handle_request(_: Scope, downstream_receive: Receive, __: Send) -> None:CODE
LOW…ts/unit/llms/base_llm/chat/test_attribution_headers.py55 def handle_request(self, request: httpx.Request) -> httpx.Response:CODE
LOWtests/unit/llms/watsonx/test_watsonx.py340 def handle_request(request: httpx.Request) -> httpx.Response:CODE
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.py212 # TODO: Add caching for HTTP requestsCOMMENT