Python SDK, Proxy Server (AI Gateway) to call 100+ LLM APIs in OpenAI (or native) format, with cost tracking, guardrails, loadbalancing and logging. [Bedrock, Azure, OpenAI, VertexAI, Cohere, Anthropic, Sagemaker, HuggingFace, VLLM, NVIDIA NIM]
43841 matches across 22 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | ARCHITECTURE.md | 388 | def test_prompt_caching_transform(): |
| LOW | ui/litellm-dashboard/src/app/model_hub_table/page.tsx | 6 | function PublicModelHubTableContent() { |
| LOW | …rc/app/(dashboard)/hooks/useHideAgentPlatformBanner.ts | 34 | export function useHideAgentPlatformBanner() { |
| LOW | ui/litellm-dashboard/src/utils/mcpHeaderUtils.ts | 7 | export function sanitizeMcpAliasForHeader(alias: string): string { |
| LOW | ui/litellm-dashboard/src/components/networking.tsx | 410 | export function setGlobalLitellmHeaderName(headerName: string = "Authorization") { |
| LOW | ui/litellm-dashboard/src/components/networking.tsx | 416 | export function getGlobalLitellmHeaderName(): string { |
| LOW | …ings/HashicorpVault/HashicorpVaultEmptyPlaceholder.tsx | 9 | export default function HashicorpVaultEmptyPlaceholder({ onAdd }: HashicorpVaultEmptyPlaceholderProps) { |
| LOW | …minSettings/SSOSettings/SSOSettingsLoadingSkeleton.tsx | 7 | export default function SSOSettingsLoadingSkeleton() { |
| LOW | …inSettings/SSOSettings/SSOSettingsEmptyPlaceholder.tsx | 9 | export default function SSOSettingsEmptyPlaceholder({ onAdd }: SSOSettingsEmptyPlaceholderProps) { |
| LOW | …CPSemanticFilterSettings/MCPSemanticFilterSettings.tsx | 32 | export default function MCPSemanticFilterSettings({ accessToken }: MCPSemanticFilterSettingsProps) { |
| LOW | …PSemanticFilterSettings/MCPSemanticFilterTestPanel.tsx | 19 | export default function MCPSemanticFilterTestPanel({ |
| LOW | …onents/Settings/RouterSettings/Fallbacks/Fallbacks.tsx | 79 | async function testFallbackModelResponse(selectedModel: string, accessToken: string) { |
| LOW | …shboard/src/components/view_logs/ToolsSection/utils.ts | 48 | function extractToolCallsFromResponse(log: LogEntry): ToolCall[] { |
| LOW | …ard/src/components/view_logs/LogDetailsDrawer/utils.ts | 49 | export function normalizeGuardrailEntries(guardrailInfo: any): any[] { |
| LOW | …ard/src/components/view_logs/LogDetailsDrawer/utils.ts | 60 | export function calculateTotalMaskedEntities(entries: any[]): number { |
| LOW | …onents/view_logs/LogDetailsDrawer/LogDetailContent.tsx | 274 | function getUncachedInputTextTokens(metadata: Record<string, any>): number | undefined { |
| LOW | …hboard/src/components/guardrails/TeamGuardrailsTab.tsx | 70 | function submissionToTeamGuardrail(item: GuardrailSubmissionItem): TeamGuardrail { |
| LOW | …hboard/src/components/guardrails/TeamGuardrailsTab.tsx | 147 | function buildEquivalentConfigYaml(g: TeamGuardrail): string { |
| LOW | …d/src/components/guardrails/guardrail_info_helpers.tsx | 170 | export function skipSystemMessageToChoice(v: boolean | null | undefined): SkipSystemMessageChoice { |
| LOW | …d/src/components/guardrails/guardrail_info_helpers.tsx | 177 | export function choiceToSkipSystemForCreate(choice: SkipSystemMessageChoice | undefined): boolean | undefined { |
| LOW | …d/src/components/guardrails/guardrail_info_helpers.tsx | 193 | export function choiceToSkipToolForCreate(choice: SkipToolMessageChoice | undefined): boolean | undefined { |
| LOW | …d/src/components/playground/llm_calls/audio_speech.tsx | 6 | export async function makeOpenAIAudioSpeechRequest( |
| LOW | …/src/components/playground/llm_calls/responses_api.tsx | 17 | export async function makeOpenAIResponsesRequest( |
| LOW | …rd/src/components/playground/llm_calls/image_edits.tsx | 5 | export async function makeOpenAIImageEditsRequest( |
| LOW | …components/playground/llm_calls/anthropic_messages.tsx | 7 | export async function makeAnthropicMessagesRequest( |
| LOW | …c/components/playground/llm_calls/image_generation.tsx | 5 | export async function makeOpenAIImageGenerationRequest( |
| LOW | …src/components/playground/llm_calls/embeddings_api.tsx | 4 | export async function makeOpenAIEmbeddingsRequest( |
| LOW | …nents/playground/llm_calls/code_interpreter_handler.ts | 27 | export function handleCodeInterpreterCall( |
| LOW | …nents/playground/llm_calls/code_interpreter_handler.ts | 45 | export function handleCodeInterpreterOutput( |
| LOW | …rc/components/playground/llm_calls/chat_completion.tsx | 8 | export async function makeOpenAIChatCompletionRequest( |
| LOW | …mponents/playground/llm_calls/audio_transcriptions.tsx | 5 | export async function makeOpenAIAudioTranscriptionRequest( |
| LOW | …CloudZeroCostTracking/CloudZeroIntegrationSettings.tsx | 18 | export function CloudZeroIntegrationSettings({ settings, onSettingsUpdated }: CloudZeroIntegrationSettingsProps) { |
| LOW | …ts/CloudZeroCostTracking/CloudZeroEmptyPlaceholder.tsx | 9 | export default function CloudZeroEmptyPlaceholder({ startCreation }: CloudZeroEmptyPlaceholderProps) { |
| LOW | …ts/EndpointUsage/components/EndpointUsageLineChart.tsx | 11 | function transformDailyDataToChart(dailyData: DailyData[]): Array<Record<string, string | number>> { |
| LOW | …omponents/UsagePage/hooks/usePaginatedDailyActivity.ts | 92 | export function usePaginatedDailyActivity({ |
| LOW | ui/litellm-dashboard/src/data/compliancePrompts.ts | 568 | export function getComplianceDatasetPrompts(): CompliancePrompt[] { |
| LOW | ci_cd/run_migration.py | 17 | def _find_destructive_statements(sql: str) -> list: |
| LOW | ci_cd/run_migration.py | 58 | def _print_stale_branch_refusal(base_branch: str, behind: int) -> None: |
| LOW | ci_cd/run_migration.py | 149 | def _print_destructive_refusal(destructive_lines: list) -> None: |
| LOW | enterprise/litellm_enterprise/proxy/proxy_server.py | 10 | async def load_custom_auth_settings( |
| LOW | enterprise/litellm_enterprise/proxy/proxy_server.py | 26 | def get_custom_docs_description() -> Optional[str]: |
| LOW | …se/litellm_enterprise/proxy/audit_logging_endpoints.py | 25 | def _build_json_field_or_condition(json_key: str, value: str) -> Dict[str, Any]: |
| LOW | …ellm_enterprise/proxy/common_utils/check_batch_cost.py | 59 | async def _cleanup_stale_managed_objects(self) -> None: |
| LOW | …_enterprise/proxy/common_utils/check_responses_cost.py | 66 | async def _cleanup_stale_managed_objects(self) -> None: |
| LOW | …terprise/litellm_enterprise/proxy/auth/route_checks.py | 8 | def is_llm_api_route_disabled() -> bool: |
| LOW | …terprise/litellm_enterprise/proxy/auth/route_checks.py | 27 | def is_management_routes_disabled() -> bool: |
| LOW | …se/litellm_enterprise/proxy/auth/custom_sso_handler.py | 29 | async def handle_custom_ui_sso_sign_in( |
| LOW | …itellm_enterprise/proxy/hooks/managed_vector_stores.py | 236 | async def check_vector_store_access( |
| LOW | …itellm_enterprise/proxy/hooks/managed_vector_stores.py | 402 | async def async_post_call_success_hook( |
| LOW | …itellm_enterprise/proxy/hooks/managed_vector_stores.py | 73 | def get_unified_resource_id_format( |
| LOW | …itellm_enterprise/proxy/hooks/managed_vector_stores.py | 103 | async def create_resource_for_model( |
| LOW | …itellm_enterprise/proxy/hooks/managed_vector_stores.py | 261 | async def check_managed_vector_store_access( |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1057 | def get_model_id_from_unified_file_id(self, file_id: str) -> str: |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1060 | def get_output_file_id_from_unified_file_id(self, file_id: str) -> str: |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1063 | async def async_post_call_success_hook( |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1287 | def _is_batch_polling_enabled(self) -> bool: |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1318 | async def _get_batches_referencing_file(self, file_id: str) -> List[Dict[str, Any]]: |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1397 | async def _check_file_deletion_allowed(self, file_id: str) -> None: |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 237 | async def can_user_call_unified_file_id( |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 255 | async def can_user_call_unified_object_id( |
| 25303 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | ui/litellm-dashboard/e2e_tests/run_e2e.sh | 4 | # ================================================================ |
| MEDIUM | ui/litellm-dashboard/e2e_tests/run_e2e.sh | 20 | # ================================================================ |
| MEDIUM | …/src/app/(dashboard)/hooks/guardrails/useGuardrails.ts | 6 | // ── Types ──────────────────────────────────────────────────────────────────── |
| MEDIUM | …/src/app/(dashboard)/hooks/guardrails/useGuardrails.ts | 30 | // ── Hook ───────────────────────────────────────────────────────────────────── |
| MEDIUM | …p/(dashboard)/hooks/guardrails/useRegisterGuardrail.ts | 11 | // ── Types ──────────────────────────────────────────────────────────────────── |
| MEDIUM | …p/(dashboard)/hooks/guardrails/useRegisterGuardrail.ts | 27 | // ── Fetch function ─────────────────────────────────────────────────────────── |
| MEDIUM | …p/(dashboard)/hooks/guardrails/useRegisterGuardrail.ts | 55 | // ── Hook ───────────────────────────────────────────────────────────────────── |
| MEDIUM | …rc/app/(dashboard)/hooks/projects/useProjectDetails.ts | 12 | // ── Fetch function ─────────────────────────────────────────────────────────── |
| MEDIUM | …rc/app/(dashboard)/hooks/projects/useProjectDetails.ts | 39 | // ── Hook ───────────────────────────────────────────────────────────────────── |
| MEDIUM | …src/app/(dashboard)/hooks/projects/useDeleteProject.ts | 11 | // ── Fetch function ─────────────────────────────────────────────────────────── |
| MEDIUM | …src/app/(dashboard)/hooks/projects/useDeleteProject.ts | 37 | // ── Hook ───────────────────────────────────────────────────────────────────── |
| MEDIUM | …src/app/(dashboard)/hooks/projects/useUpdateProject.ts | 11 | // ── Types ──────────────────────────────────────────────────────────────────── |
| MEDIUM | …src/app/(dashboard)/hooks/projects/useUpdateProject.ts | 26 | // ── Fetch function ─────────────────────────────────────────────────────────── |
| MEDIUM | …src/app/(dashboard)/hooks/projects/useUpdateProject.ts | 55 | // ── Hook ───────────────────────────────────────────────────────────────────── |
| MEDIUM | …oard/src/app/(dashboard)/hooks/projects/useProjects.ts | 12 | // ── Types ──────────────────────────────────────────────────────────────────── |
| MEDIUM | …oard/src/app/(dashboard)/hooks/projects/useProjects.ts | 46 | // ── Query keys (shared across project hooks) ───────────────────────────────── |
| MEDIUM | …oard/src/app/(dashboard)/hooks/projects/useProjects.ts | 50 | // ── Fetch function ─────────────────────────────────────────────────────────── |
| MEDIUM | …oard/src/app/(dashboard)/hooks/projects/useProjects.ts | 76 | // ── Hook ───────────────────────────────────────────────────────────────────── |
| MEDIUM | …src/app/(dashboard)/hooks/projects/useCreateProject.ts | 11 | // ── Types ──────────────────────────────────────────────────────────────────── |
| MEDIUM | …src/app/(dashboard)/hooks/projects/useCreateProject.ts | 26 | // ── Fetch function ─────────────────────────────────────────────────────────── |
| MEDIUM | …src/app/(dashboard)/hooks/projects/useCreateProject.ts | 54 | // ── Hook ───────────────────────────────────────────────────────────────────── |
| MEDIUM | …ard/src/app/(dashboard)/hooks/keys/useResetKeySpend.ts | 11 | // ── Types ───────────────────────────────────────────────────────────────────── |
| MEDIUM | …ard/src/app/(dashboard)/hooks/keys/useResetKeySpend.ts | 21 | // ── Fetch function ──────────────────────────────────────────────────────────── |
| MEDIUM | …ard/src/app/(dashboard)/hooks/keys/useResetKeySpend.ts | 49 | // ── Hook ────────────────────────────────────────────────────────────────────── |
| MEDIUM | …(dashboard)/hooks/accessGroups/useCreateAccessGroup.ts | 11 | // ── Types ──────────────────────────────────────────────────────────────────── |
| MEDIUM | …(dashboard)/hooks/accessGroups/useCreateAccessGroup.ts | 23 | // ── Fetch function ─────────────────────────────────────────────────────────── |
| MEDIUM | …(dashboard)/hooks/accessGroups/useCreateAccessGroup.ts | 51 | // ── Hook ───────────────────────────────────────────────────────────────────── |
| MEDIUM | …dashboard)/hooks/accessGroups/useAccessGroupDetails.ts | 12 | // ── Fetch function ─────────────────────────────────────────────────────────── |
| MEDIUM | …dashboard)/hooks/accessGroups/useAccessGroupDetails.ts | 39 | // ── Hook ───────────────────────────────────────────────────────────────────── |
| MEDIUM | …/app/(dashboard)/hooks/accessGroups/useAccessGroups.ts | 12 | // ── Types ──────────────────────────────────────────────────────────────────── |
| MEDIUM | …/app/(dashboard)/hooks/accessGroups/useAccessGroups.ts | 29 | // ── Query keys (shared across access-group hooks) ──────────────────────────── |
| MEDIUM | …/app/(dashboard)/hooks/accessGroups/useAccessGroups.ts | 33 | // ── Fetch function ─────────────────────────────────────────────────────────── |
| MEDIUM | …/app/(dashboard)/hooks/accessGroups/useAccessGroups.ts | 59 | // ── Hook ───────────────────────────────────────────────────────────────────── |
| MEDIUM | …(dashboard)/hooks/accessGroups/useDeleteAccessGroup.ts | 11 | // ── Fetch function ─────────────────────────────────────────────────────────── |
| MEDIUM | …(dashboard)/hooks/accessGroups/useDeleteAccessGroup.ts | 38 | // ── Hook ───────────────────────────────────────────────────────────────────── |
| MEDIUM | …p/(dashboard)/hooks/accessGroups/useEditAccessGroup.ts | 11 | // ── Types ──────────────────────────────────────────────────────────────────── |
| MEDIUM | …p/(dashboard)/hooks/accessGroups/useEditAccessGroup.ts | 28 | // ── Fetch function ─────────────────────────────────────────────────────────── |
| MEDIUM | …p/(dashboard)/hooks/accessGroups/useEditAccessGroup.ts | 57 | // ── Hook ───────────────────────────────────────────────────────────────────── |
| MEDIUM | ui/litellm-dashboard/src/components/networking.tsx | 5230 | // ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | ui/litellm-dashboard/src/components/networking.tsx | 5232 | // ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | ui/litellm-dashboard/src/components/networking.tsx | 10002 | // ── MCP OAuth user-credential helpers ──────────────────────────────────────── |
| MEDIUM | …tellm-dashboard/src/components/workflow_runs/index.tsx | 50 | // ── design tokens ───────────────────────────────────────────────────────────── |
| MEDIUM | …tellm-dashboard/src/components/workflow_runs/index.tsx | 71 | // ── helpers ─────────────────────────────────────────────────────────────────── |
| MEDIUM | …tellm-dashboard/src/components/workflow_runs/index.tsx | 101 | // ── status dot ──────────────────────────────────────────────────────────────── |
| MEDIUM | …tellm-dashboard/src/components/workflow_runs/index.tsx | 116 | // ── truncated text value ────────────────────────────────────────────────────── |
| MEDIUM | …tellm-dashboard/src/components/workflow_runs/index.tsx | 146 | // ── metadata card ───────────────────────────────────────────────────────────── |
| MEDIUM | …tellm-dashboard/src/components/workflow_runs/index.tsx | 278 | // ── gantt timeline ──────────────────────────────────────────────────────────── |
| MEDIUM | …tellm-dashboard/src/components/workflow_runs/index.tsx | 414 | // ── message row ─────────────────────────────────────────────────────────────── |
| MEDIUM | …tellm-dashboard/src/components/workflow_runs/index.tsx | 459 | // ── main component ──────────────────────────────────────────────────────────── |
| MEDIUM | …mponents/view_logs/GuardrailViewer/GuardrailViewer.tsx | 10 | // ── Interfaces ────────────────────────────────────────────────────────────── |
| MEDIUM | …mponents/view_logs/GuardrailViewer/GuardrailViewer.tsx | 72 | // ── Helpers ───────────────────────────────────────────────────────────────── |
| MEDIUM | …mponents/view_logs/GuardrailViewer/GuardrailViewer.tsx | 172 | // ── Icons (inline SVGs) ───────────────────────────────────────────────────── |
| MEDIUM | …mponents/view_logs/GuardrailViewer/GuardrailViewer.tsx | 245 | // ── Sub-components ────────────────────────────────────────────────────────── |
| MEDIUM | …mponents/view_logs/GuardrailViewer/GuardrailViewer.tsx | 320 | // ── Timeline entry types ──────────────────────────────────────────────────── |
| MEDIUM | …mponents/view_logs/GuardrailViewer/GuardrailViewer.tsx | 467 | // ── Evaluation Card ───────────────────────────────────────────────────────── |
| MEDIUM | …mponents/view_logs/GuardrailViewer/GuardrailViewer.tsx | 641 | // ── Main Component ────────────────────────────────────────────────────────── |
| MEDIUM | …litellm-dashboard/src/components/chat/MCPAppsPanel.tsx | 11 | // ── OAuth2 connect button ───────────────────────────────────────────────────── |
| MEDIUM | …litellm-dashboard/src/components/chat/MCPAppsPanel.tsx | 66 | // ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | …-dashboard/src/components/policies/add_policy_form.tsx | 26 | // ───────────────────────────────────────────────────────────────────────────── |
| MEDIUM | …-dashboard/src/components/policies/add_policy_form.tsx | 28 | // ───────────────────────────────────────────────────────────────────────────── |
| 2457 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | …tellm-dashboard/scripts/generate_compliance_prompts.py | 85 | print(f"Error: CSV file not found: {csv_path}", file=sys.stderr) |
| MEDIUM | …tellm-dashboard/scripts/generate_compliance_prompts.py | 95 | print("Error: CSV file is empty.", file=sys.stderr) |
| LOW | …/litellm-dashboard/src/components/public_model_hub.tsx | 1730 | except Exception as e_extended: |
| LOW | …/litellm-dashboard/src/components/public_model_hub.tsx | 1779 | except Exception as e_extended: |
| MEDIUM | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 262 | print(f"An error occurred: {e}") |
| LOW | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 261 | except Exception as e: |
| MEDIUM | ci_cd/baseline_db.py | 52 | print(f"Error running prisma command: {e.stderr}") |
| LOW | ci_cd/baseline_db.py | 54 | except Exception as e: |
| MEDIUM | ci_cd/baseline_db.py | 55 | print(f"Error creating baseline migration: {str(e)}") |
| MEDIUM | ci_cd/run_migration.py | 314 | print(f"Error generating migration: {e.stderr}") |
| LOW | ci_cd/run_migration.py | 316 | except Exception as e: |
| MEDIUM | ci_cd/run_migration.py | 317 | print(f"Error creating migration: {str(e)}") |
| LOW | …se/litellm_enterprise/proxy/vector_stores/endpoints.py | 118 | except Exception as e: |
| LOW | …se/litellm_enterprise/proxy/vector_stores/endpoints.py | 188 | except Exception as e: |
| LOW | …se/litellm_enterprise/proxy/vector_stores/endpoints.py | 238 | except Exception as e: |
| LOW | …se/litellm_enterprise/proxy/vector_stores/endpoints.py | 303 | except Exception as e: |
| LOW | …se/litellm_enterprise/proxy/vector_stores/endpoints.py | 345 | except Exception as e: |
| LOW | …ellm_enterprise/proxy/common_utils/check_batch_cost.py | 55 | except Exception as e: |
| LOW | …ellm_enterprise/proxy/common_utils/check_batch_cost.py | 124 | except Exception as e: |
| LOW | …ellm_enterprise/proxy/common_utils/check_batch_cost.py | 132 | except Exception as cleanup_err: |
| LOW | …ellm_enterprise/proxy/common_utils/check_batch_cost.py | 163 | except Exception as query_err: |
| LOW | …ellm_enterprise/proxy/common_utils/check_batch_cost.py | 214 | except Exception as e: |
| LOW | …ellm_enterprise/proxy/common_utils/check_batch_cost.py | 284 | except Exception: |
| LOW | …ellm_enterprise/proxy/common_utils/check_batch_cost.py | 333 | except Exception as _e: |
| LOW | …ellm_enterprise/proxy/common_utils/check_batch_cost.py | 411 | except Exception as db_err: |
| LOW | …_enterprise/proxy/common_utils/check_responses_cost.py | 95 | except Exception as cleanup_err: |
| LOW | …_enterprise/proxy/common_utils/check_responses_cost.py | 146 | except Exception as e: |
| LOW | …ise/litellm_enterprise/proxy/auth/user_api_key_auth.py | 29 | except Exception as e: |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1307 | except Exception: |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1312 | except Exception as e: |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1389 | except Exception as e: |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 336 | except Exception as e: |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1139 | except Exception as e: |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1174 | except Exception: |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1273 | except Exception as e: |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1342 | except Exception as e: |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1531 | except Exception as e: |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1602 | except Exception as e: |
| LOW | …rprise/proxy/management_endpoints/project_endpoints.py | 470 | except Exception as e: |
| LOW | …rprise/proxy/management_endpoints/project_endpoints.py | 708 | except Exception as e: |
| LOW | …rprise/proxy/management_endpoints/project_endpoints.py | 816 | except Exception as e: |
| LOW | …rprise/proxy/management_endpoints/project_endpoints.py | 897 | except Exception as e: |
| LOW | …rprise/proxy/management_endpoints/project_endpoints.py | 957 | except Exception as e: |
| LOW | …enterprise/enterprise_callbacks/example_logging_api.py | 20 | except Exception: |
| LOW | …e/litellm_enterprise/enterprise_callbacks/llm_guard.py | 46 | except Exception: |
| LOW | …e/litellm_enterprise/enterprise_callbacks/llm_guard.py | 88 | except Exception as e: |
| LOW | …e/litellm_enterprise/enterprise_callbacks/llm_guard.py | 149 | except Exception: |
| MEDIUM | …e/litellm_enterprise/enterprise_callbacks/llm_guard.py | 41 | def print_verbose(self, print_statement): |
| LOW | …m_enterprise/enterprise_callbacks/callback_controls.py | 57 | except Exception as e: |
| LOW | …litellm_enterprise/enterprise_callbacks/llama_guard.py | 45 | except Exception as e: |
| LOW | …litellm_enterprise/enterprise_callbacks/llama_guard.py | 59 | except Exception: |
| MEDIUM | …litellm_enterprise/enterprise_callbacks/llama_guard.py | 54 | def print_verbose(self, print_statement): |
| LOW | …erprise/enterprise_callbacks/send_emails/base_email.py | 514 | except Exception as e: |
| LOW | …erprise/enterprise_callbacks/send_emails/base_email.py | 582 | except Exception as e: |
| LOW | …erprise/enterprise_callbacks/send_emails/base_email.py | 664 | except Exception as e: |
| LOW | …erprise/enterprise_callbacks/send_emails/base_email.py | 905 | except Exception as e: |
| LOW | …terprise/enterprise_callbacks/send_emails/endpoints.py | 53 | except Exception as e: |
| LOW | …terprise/enterprise_callbacks/send_emails/endpoints.py | 102 | except Exception as e: |
| LOW | …terprise/enterprise_callbacks/send_emails/endpoints.py | 137 | except Exception as e: |
| LOW | …terprise/enterprise_callbacks/send_emails/endpoints.py | 171 | except Exception as e: |
| 5178 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | enterprise/__init__.py | 1 | |
| LOW | …terprise/litellm_enterprise/proxy/enterprise_routes.py | 7 | |
| LOW | …se/litellm_enterprise/proxy/audit_logging_endpoints.py | 10 | |
| LOW | …se/litellm_enterprise/proxy/vector_stores/endpoints.py | 11 | |
| LOW | enterprise/litellm_enterprise/proxy/auth/__init__.py | 8 | |
| LOW | …itellm_enterprise/proxy/hooks/managed_vector_stores.py | 9 | |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 4 | |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 37 | |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 56 | |
| LOW | …litellm_enterprise/proxy/ui_crud_endpoints/__init__.py | 1 | |
| LOW | …rprise/proxy/management_endpoints/project_endpoints.py | 20 | |
| LOW | …e/litellm_enterprise/enterprise_callbacks/llm_guard.py | 10 | |
| LOW | …litellm_enterprise/enterprise_callbacks/llama_guard.py | 18 | |
| LOW | enterprise/enterprise_hooks/aporia_ai.py | 18 | |
| LOW | enterprise/enterprise_hooks/aporia_ai.py | 22 | |
| LOW | tests/test_openai_endpoints.py | 6 | |
| LOW | tests/test_openai_endpoints.py | 7 | |
| LOW | tests/_flush_vcr_cache.py | 1 | |
| LOW | tests/_flush_vcr_cache.py | 3 | |
| LOW | tests/test_team_logging.py | 4 | |
| LOW | tests/test_team_logging.py | 5 | |
| LOW | tests/test_team_logging.py | 6 | |
| LOW | tests/test_team_logging.py | 7 | |
| LOW | tests/test_team_logging.py | 8 | |
| LOW | tests/test_team_logging.py | 10 | |
| LOW | tests/test_end_users.py | 6 | |
| LOW | tests/test_fallbacks.py | 294 | |
| LOW | tests/test_gpt5_azure_temperature_support.py | 5 | |
| LOW | tests/_vcr_redis_persister.py | 1 | |
| LOW | tests/test_resource_cleanup.py | 7 | |
| LOW | tests/test_callbacks_on_proxy.py | 11 | |
| LOW | tests/test_callbacks_on_proxy.py | 13 | |
| LOW | tests/test_team.py | 7 | |
| LOW | tests/test_team.py | 10 | |
| LOW | tests/test_passthrough_endpoints.py | 3 | |
| LOW | tests/test_passthrough_endpoints.py | 4 | |
| LOW | tests/test_passthrough_endpoints.py | 4 | |
| LOW | tests/test_passthrough_endpoints.py | 5 | |
| LOW | tests/test_passthrough_endpoints.py | 5 | |
| LOW | tests/test_passthrough_endpoints.py | 5 | |
| LOW | tests/test_presidio_latency.py | 4 | |
| LOW | tests/test_new_vector_store_endpoints.py | 9 | |
| LOW | tests/test_new_vector_store_endpoints.py | 16 | |
| LOW | tests/test_organizations.py | 6 | |
| LOW | tests/test_organizations.py | 7 | |
| LOW | tests/eval_swe_bench.py | 30 | |
| LOW | tests/test_entrypoint.py | 11 | |
| LOW | tests/test_config.py | 8 | |
| LOW | tests/_vcr_conftest_common.py | 6 | |
| LOW | tests/test_users.py | 8 | |
| LOW | tests/test_users.py | 11 | |
| LOW | tests/test_models.py | 8 | |
| LOW | tests/test_proxy_server_non_root.py | 13 | |
| LOW | tests/logging_callback_tests/base_test.py | 1 | |
| LOW | tests/logging_callback_tests/base_test.py | 2 | |
| LOW | tests/logging_callback_tests/base_test.py | 3 | |
| LOW | tests/logging_callback_tests/base_test.py | 6 | |
| LOW | tests/logging_callback_tests/base_test.py | 6 | |
| LOW | tests/logging_callback_tests/base_test.py | 6 | |
| LOW | tests/logging_callback_tests/base_test.py | 7 | |
| 4932 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | terraform/litellm/gcp/.terraform.lock.hcl | 1 | # This file is maintained automatically by "terraform init". |
| MEDIUM | terraform/litellm/aws/.terraform.lock.hcl | 1 | # This file is maintained automatically by "terraform init". |
| MEDIUM | …/litellm-dashboard/src/components/public_model_hub.tsx | 1952 | # Create a client that connects to the server |
| MEDIUM | …/litellm-dashboard/src/components/public_model_hub.tsx | 1992 | # Create a client that connects to the server |
| MEDIUM | …tellm-dashboard/src/components/AIHub/ModelHubTable.tsx | 1055 | # Create a client that connects to the server |
| MEDIUM | …terprise/enterprise_callbacks/send_emails/endpoints.py | 130 | # Create a response with all events (enabled or disabled) |
| MEDIUM | tests/test_users.py | 353 | # Create an additional key for user1 |
| MEDIUM | tests/test_models.py | 533 | # Create a team |
| MEDIUM | tests/logging_callback_tests/base_test.py | 41 | # Create a mock response object with the structure you need |
| MEDIUM | …ogging_callback_tests/test_standard_logging_payload.py | 411 | # Create a mock Logging object |
| MEDIUM | …ogging_callback_tests/test_standard_logging_payload.py | 604 | # Create a mock logging object with cost breakdown |
| MEDIUM | …ogging_callback_tests/test_standard_logging_payload.py | 688 | # Create a mock logging object without cost breakdown |
| MEDIUM | …ging_callback_tests/test_logging_redaction_e2e_test.py | 255 | # Create a simple mock object with output items that have reasoning summaries |
| MEDIUM | …sts/logging_callback_tests/test_langfuse_unit_tests.py | 275 | # Create a mock logging payload with tags |
| MEDIUM | tests/logging_callback_tests/test_spend_logs.py | 216 | # Define the expected metadata keys |
| MEDIUM | tests/logging_callback_tests/test_spend_logs.py | 359 | # Create a standard logging payload |
| MEDIUM | tests/logging_callback_tests/test_spend_logs.py | 414 | # Create a large string that exceeds the threshold |
| MEDIUM | tests/logging_callback_tests/test_spend_logs.py | 452 | # Create a small string that's under the threshold |
| MEDIUM | tests/logging_callback_tests/test_langfuse_e2e_test.py | 153 | # Create a mock Response object |
| MEDIUM | …ogging_callback_tests/test_opentelemetry_unit_tests.py | 130 | # Create a mock span |
| MEDIUM | …ogging_callback_tests/test_opentelemetry_unit_tests.py | 191 | # Create a mock span |
| MEDIUM | tests/logging_callback_tests/test_gcs_pub_sub.py | 189 | # Create a mock for the async_httpx_client's post method |
| MEDIUM | tests/logging_callback_tests/test_gcs_pub_sub.py | 245 | # Create a mock for the async_httpx_client's post method |
| MEDIUM | …s/logging_callback_tests/test_log_db_redis_services.py | 111 | # Create a failing function |
| MEDIUM | tests/logging_callback_tests/test_alerting.py | 109 | # Create a mock environment for testing |
| MEDIUM | tests/logging_callback_tests/test_alerting.py | 853 | # Create a string buffer to capture log output |
| MEDIUM | tests/logging_callback_tests/test_datadog.py | 538 | # Create a standard payload with very long content |
| MEDIUM | tests/logging_callback_tests/test_datadog.py | 189 | # Create a mock for the async_client's post method |
| MEDIUM | tests/logging_callback_tests/test_datadog.py | 405 | # Create a mock for the async_client's post method |
| MEDIUM | tests/logging_callback_tests/test_datadog.py | 502 | # Create the payload |
| MEDIUM | tests/logging_callback_tests/test_datadog.py | 560 | # Create the payload |
| MEDIUM | …ts/logging_callback_tests/test_generic_api_callback.py | 43 | # Create a mock for the async_httpx_client's post method |
| MEDIUM | …ts/logging_callback_tests/test_generic_api_callback.py | 130 | # Create a mock for the async_httpx_client's post method |
| MEDIUM | …ts/logging_callback_tests/test_generic_api_callback.py | 219 | # Create a mock for the async_httpx_client's post method |
| MEDIUM | …ts/logging_callback_tests/test_generic_api_callback.py | 294 | # Create a mock for the async_httpx_client's post method |
| MEDIUM | …ts/logging_callback_tests/test_generic_api_callback.py | 357 | # Create a mock for the async_httpx_client's post method |
| MEDIUM | …ts/logging_callback_tests/test_generic_api_callback.py | 416 | # Create a mock for the async_httpx_client's post method |
| MEDIUM | tests/litellm_utils_tests/test_aws_secret_manager.py | 171 | # Create a primary secret with multiple key-value pairs |
| MEDIUM | tests/litellm_utils_tests/test_utils.py | 693 | # Create a test EmbeddingResponse with usage data |
| MEDIUM | tests/litellm_utils_tests/test_utils.py | 1644 | # Create a mock response object |
| MEDIUM | tests/litellm_utils_tests/test_utils.py | 1723 | # Create a mock response object |
| MEDIUM | tests/litellm_utils_tests/test_utils.py | 1830 | # Create a mock CustomLogger class |
| MEDIUM | tests/litellm_utils_tests/test_secret_manager.py | 32 | # Define the path to the vertex_key.json file |
| MEDIUM | tests/litellm_utils_tests/test_secret_manager.py | 62 | # Create a temporary file |
| MEDIUM | tests/litellm_utils_tests/test_secret_manager.py | 173 | # Create a unique environment variable name |
| MEDIUM | tests/litellm_utils_tests/test_secret_manager.py | 187 | # Create a temporary file inside a directory added to the allowlist. |
| MEDIUM | tests/litellm_utils_tests/test_secret_manager.py | 203 | # Create a temporary file |
| MEDIUM | tests/litellm_utils_tests/test_secret_manager.py | 210 | # Create a unique environment variable name |
| MEDIUM | …s/litellm_utils_tests/test_logging_callback_manager.py | 231 | # Create a fresh ProxyLogging instance |
| MEDIUM | tests/litellm_utils_tests/test_hashicorp.py | 293 | # Create a new instance with TLS cert config |
| MEDIUM | tests/litellm_utils_tests/test_aiohttp_handler.py | 28 | # Create a transport with the new helper |
| MEDIUM | tests/litellm_utils_tests/test_aiohttp_handler.py | 96 | # Create a simple httpx request to test with |
| MEDIUM | tests/otel_tests/test_prometheus.py | 812 | # Create a user with user_email |
| MEDIUM | tests/otel_tests/test_prometheus.py | 851 | # Create a user with user_email |
| MEDIUM | tests/otel_tests/test_team_member_permissions.py | 230 | # Create a team |
| MEDIUM | tests/otel_tests/test_team_member_permissions.py | 249 | # Create a user key |
| MEDIUM | tests/otel_tests/test_team_member_permissions.py | 252 | # Create a user key |
| MEDIUM | tests/otel_tests/test_team_member_permissions.py | 349 | # Create a team with specific member permissions |
| MEDIUM | tests/otel_tests/test_team_member_permissions.py | 370 | # Create a user key |
| MEDIUM | tests/otel_tests/test_team_member_permissions.py | 420 | # Create a team with specific member permissions |
| 1077 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/test_openai_endpoints.py | 0 | - create key make chat completion call - create user make chat completion call |
| HIGH | tests/test_openai_endpoints.py | 0 | - create key make chat completion call - create user make chat completion call |
| HIGH | tests/otel_tests/test_otel.py | 0 | - create key make chat completion call - create user make chat completion call |
| HIGH | tests/test_end_users.py | 0 | make 20 parallel calls to /user/new. assert all worked. |
| HIGH | tests/test_team.py | 0 | make 20 parallel calls to /user/new. assert all worked. |
| HIGH | tests/test_users.py | 0 | make 20 parallel calls to /user/new. assert all worked. |
| HIGH | tests/test_fallbacks.py | 0 | make chat completion call with prompt > context window. expect it to work with fallback |
| HIGH | tests/test_fallbacks.py | 0 | make chat completion call with prompt > context window. expect it to work with fallback |
| HIGH | tests/test_fallbacks.py | 0 | make chat completion call with prompt > context window. expect it to work with fallback |
| HIGH | tests/test_fallbacks.py | 0 | make chat completion call with prompt > context window. expect it to work with fallback |
| HIGH | tests/test_fallbacks.py | 0 | make chat completion call with prompt > context window. expect it to work with fallback |
| HIGH | tests/test_team.py | 0 | make sure only models user has access to are returned |
| HIGH | tests/test_keys.py | 0 | make sure only models user has access to are returned |
| HIGH | tests/test_keys.py | 0 | make sure only models user has access to are returned |
| HIGH | tests/test_keys.py | 0 | make sure only models user has access to are returned |
| HIGH | tests/test_keys.py | 0 | make sure only models user has access to are returned |
| HIGH | tests/test_keys.py | 0 | make sure only models user has access to are returned |
| HIGH | tests/test_users.py | 0 | make sure only models user has access to are returned |
| HIGH | tests/test_models.py | 0 | make sure only models user has access to are returned |
| HIGH | tests/test_models.py | 0 | make sure only models user has access to are returned |
| HIGH | tests/large_text.py | 0 | alexander the great this article is about the ancient king of macedonia. for other uses, see alexander the great (disamb |
| HIGH | tests/proxy_unit_tests/large_text.py | 0 | alexander the great this article is about the ancient king of macedonia. for other uses, see alexander the great (disamb |
| HIGH | tests/old_proxy_tests/tests/large_text.py | 0 | alexander the great this article is about the ancient king of macedonia. for other uses, see alexander the great (disamb |
| HIGH | tests/local_testing/large_text.py | 0 | alexander the great this article is about the ancient king of macedonia. for other uses, see alexander the great (disamb |
| HIGH | tests/logging_callback_tests/base_test.py | 0 | abstract base test class that enforces a common test across all test classes. |
| HIGH | …sts/pass_through_tests/base_anthropic_messages_test.py | 0 | abstract base test class that enforces a common test across all test classes. |
| HIGH | tests/llm_responses_api_testing/base_responses_api.py | 0 | abstract base test class that enforces a common test across all test classes. |
| HIGH | tests/vector_store_tests/base_vector_store_test.py | 0 | abstract base test class that enforces a common test across all test classes. |
| HIGH | tests/llm_translation/base_rerank_unit_tests.py | 0 | abstract base test class that enforces a common test across all test classes. |
| HIGH | tests/llm_translation/base_embedding_unit_tests.py | 0 | abstract base test class that enforces a common test across all test classes. |
| HIGH | tests/llm_translation/base_llm_unit_tests.py | 0 | abstract base test class that enforces a common test across all test classes. |
| HIGH | tests/image_gen_tests/base_image_generation_test.py | 0 | abstract base test class that enforces a common test across all test classes. |
| HIGH | tests/logging_callback_tests/conftest.py | 0 | module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interference |
| HIGH | tests/guardrails_tests/conftest.py | 0 | module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interference |
| HIGH | tests/local_testing/conftest.py | 0 | module-scoped setup. reloads litellm only in single-process mode (skipped under xdist to avoid cross-worker interference |
| HIGH | tests/logging_callback_tests/test_langfuse_e2e_test.py | 0 | test langfuse logging for chat completion with malformed llm response |
| HIGH | tests/logging_callback_tests/test_langfuse_e2e_test.py | 0 | test langfuse logging for chat completion with malformed llm response |
| HIGH | tests/logging_callback_tests/test_langfuse_e2e_test.py | 0 | test langfuse logging for chat completion with malformed llm response |
| HIGH | …/logging_callback_tests/test_custom_callback_router.py | 0 | the set of expected inputs to a custom handler for a |
| HIGH | tests/proxy_unit_tests/test_custom_callback_input.py | 0 | the set of expected inputs to a custom handler for a |
| HIGH | tests/local_testing/test_custom_callback_input.py | 0 | the set of expected inputs to a custom handler for a |
| HIGH | tests/litellm_utils_tests/test_utils.py | 0 | test that when a callback exists in both success_callback and _async_success_callback, it's not added again |
| HIGH | tests/litellm_utils_tests/test_utils.py | 0 | test that when a callback exists in both success_callback and _async_success_callback, it's not added again |
| HIGH | tests/litellm_utils_tests/test_utils.py | 0 | test that when a callback exists in both success_callback and _async_success_callback, it's not added again |
| HIGH | tests/litellm_utils_tests/test_utils.py | 0 | test that get_valid_models returns the correct models for a given provider |
| HIGH | tests/litellm_utils_tests/test_utils.py | 0 | test that get_valid_models returns the correct models for a given provider |
| HIGH | tests/litellm_utils_tests/test_utils.py | 0 | test that get_valid_models returns the correct models for a given provider |
| HIGH | tests/litellm_utils_tests/conftest.py | 0 | this fixture reloads litellm before every function. to speed up testing by removing callbacks being chained. |
| HIGH | tests/enterprise/conftest.py | 0 | this fixture reloads litellm before every function. to speed up testing by removing callbacks being chained. |
| HIGH | tests/unified_google_tests/conftest.py | 0 | this fixture reloads litellm before every function. to speed up testing by removing callbacks being chained. |
| HIGH | tests/proxy_admin_ui_tests/conftest.py | 0 | this fixture reloads litellm before every function. to speed up testing by removing callbacks being chained. |
| HIGH | tests/llm_responses_api_testing/conftest.py | 0 | this fixture reloads litellm before every function. to speed up testing by removing callbacks being chained. |
| HIGH | tests/vector_store_tests/conftest.py | 0 | this fixture reloads litellm before every function. to speed up testing by removing callbacks being chained. |
| HIGH | tests/router_unit_tests/conftest.py | 0 | this fixture reloads litellm before every function. to speed up testing by removing callbacks being chained. |
| HIGH | tests/proxy_unit_tests/conftest copy.py | 0 | this fixture reloads litellm before every function. to speed up testing by removing callbacks being chained. |
| HIGH | tests/mcp_tests/conftest.py | 0 | this fixture reloads litellm before every function. to speed up testing by removing callbacks being chained. |
| HIGH | tests/otel_tests/test_guardrails.py | 0 | - tests a request where no content mod is triggered - assert that the guardrails applied are returned in the response he |
| HIGH | tests/otel_tests/test_guardrails.py | 0 | - tests a request where no content mod is triggered - assert that the guardrails applied are returned in the response he |
| HIGH | tests/otel_tests/test_guardrails.py | 0 | - tests a request where no content mod is triggered - assert that the guardrails applied are returned in the response he |
| HIGH | tests/otel_tests/test_e2e_budgeting.py | 0 | test budget enforcement for chat completions: 1. create key with $0.01 budget 2. make chat completion calls until budget |
| 359 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | ci_cd/run_migration.py | 198 | |
| LOW | …se/litellm_enterprise/proxy/vector_stores/endpoints.py | 129 | |
| LOW | …se/litellm_enterprise/proxy/vector_stores/endpoints.py | 248 | |
| LOW | …ellm_enterprise/proxy/common_utils/check_batch_cost.py | 100 | |
| LOW | …ise/litellm_enterprise/proxy/auth/user_api_key_auth.py | 9 | |
| LOW | …itellm_enterprise/proxy/hooks/managed_vector_stores.py | 301 | |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 415 | |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 649 | |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 669 | |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 713 | |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1063 | |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1629 | |
| LOW | …rprise/proxy/management_endpoints/project_endpoints.py | 90 | |
| LOW | …rprise/proxy/management_endpoints/project_endpoints.py | 486 | |
| LOW | …rprise/proxy/management_endpoints/project_endpoints.py | 831 | |
| LOW | …lm_enterprise/enterprise_callbacks/secret_detection.py | 467 | |
| LOW | …e/litellm_enterprise/enterprise_callbacks/llm_guard.py | 96 | |
| LOW | …m_enterprise/enterprise_callbacks/callback_controls.py | 16 | |
| LOW | …erprise/enterprise_callbacks/send_emails/base_email.py | 414 | |
| LOW | …terprise/enterprise_callbacks/send_emails/endpoints.py | 24 | |
| LOW | enterprise/enterprise_hooks/blocked_user_list.py | 56 | |
| LOW | tests/test_team.py | 41 | |
| LOW | tests/test_team.py | 728 | |
| LOW | tests/eval_swe_bench.py | 212 | |
| LOW | tests/eval_swe_bench.py | 249 | |
| LOW | tests/eval_swe_bench.py | 359 | |
| LOW | tests/_vcr_conftest_common.py | 261 | |
| LOW | …ging_callback_tests/test_logging_redaction_e2e_test.py | 125 | |
| LOW | …ging_callback_tests/test_logging_redaction_e2e_test.py | 169 | |
| LOW | …gging_callback_tests/test_unit_tests_init_callbacks.py | 91 | |
| LOW | tests/logging_callback_tests/test_langfuse_e2e_test.py | 30 | |
| LOW | tests/logging_callback_tests/test_gcs_pub_sub.py | 49 | |
| LOW | …ging_callback_tests/test_bedrock_knowledgebase_hook.py | 185 | |
| LOW | tests/logging_callback_tests/test_datadog.py | 170 | |
| LOW | tests/logging_callback_tests/test_otel_logging.py | 42 | |
| LOW | tests/litellm_utils_tests/test_utils.py | 1361 | |
| LOW | tests/litellm_utils_tests/test_proxy_budget_reset.py | 353 | |
| LOW | tests/litellm_utils_tests/test_proxy_budget_reset.py | 390 | |
| LOW | tests/otel_tests/test_prometheus.py | 86 | |
| LOW | …erprise_callbacks/test_prometheus_logging_callbacks.py | 2261 | |
| LOW | …ise/litellm_enterprise/integrations/test_prometheus.py | 88 | |
| LOW | tests/agent_tests/local_only_agent_tests/test_a2a.py | 272 | |
| LOW | …ent_tests/local_only_agent_tests/local_vertex_agent.py | 34 | |
| LOW | …sts/pass_through_tests/base_anthropic_messages_test.py | 72 | |
| LOW | …ss_through_tests/test_openai_assistants_passthrough.py | 61 | |
| LOW | tests/unified_google_tests/test_google_ai_studio.py | 25 | |
| LOW | tests/proxy_admin_ui_tests/test_key_management.py | 738 | |
| LOW | …llm_responses_api_testing/test_openai_responses_api.py | 282 | |
| LOW | …llm_responses_api_testing/test_openai_responses_api.py | 995 | |
| LOW | …ses_api_testing/test_google_ai_studio_responses_api.py | 190 | |
| LOW | tests/llm_responses_api_testing/base_responses_api.py | 150 | |
| LOW | tests/llm_responses_api_testing/base_responses_api.py | 275 | |
| LOW | tests/llm_responses_api_testing/base_responses_api.py | 782 | |
| LOW | tests/llm_responses_api_testing/test_responses_hooks.py | 739 | |
| LOW | tests/documentation_tests/test_circular_imports.py | 7 | |
| LOW | tests/documentation_tests/test_circular_imports.py | 20 | |
| LOW | tests/documentation_tests/test_circular_imports.py | 71 | |
| LOW | tests/documentation_tests/test_requests_lib_usage.py | 11 | |
| LOW | tests/documentation_tests/test_requests_lib_usage.py | 67 | |
| LOW | tests/documentation_tests/test_readme_providers.py | 73 | |
| 1813 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | ui/litellm-dashboard/build_ui_custom_path.sh | 3 | # Check if UI_BASE_PATH argument is provided |
| LOW | ui/litellm-dashboard/build_ui_custom_path.sh | 13 | # Check if nvm is not installed |
| LOW | ui/litellm-dashboard/build_ui_custom_path.sh | 38 | # Check if nvm use was successful |
| LOW | ui/litellm-dashboard/build_ui_custom_path.sh | 47 | # Check if the build was successful |
| LOW | ui/litellm-dashboard/build_ui.sh | 3 | # Check if nvm is not installed |
| LOW | ui/litellm-dashboard/build_ui.sh | 28 | # Check if nvm use was successful |
| LOW | ui/litellm-dashboard/build_ui.sh | 41 | # Check if the build was successful |
| LOW | docker/build_admin_ui.sh | 20 | # Check if we are on macOS |
| LOW | …se/litellm_enterprise/proxy/vector_stores/endpoints.py | 67 | # Check if vector store already exists |
| LOW | …se/litellm_enterprise/proxy/vector_stores/endpoints.py | 214 | # Check if vector store exists |
| LOW | …_enterprise/proxy/common_utils/check_responses_cost.py | 152 | # Check if response is in a terminal state |
| LOW | …terprise/litellm_enterprise/proxy/auth/route_checks.py | 16 | ## Check if DISABLE_LLM_API_ENDPOINTS is set |
| LOW | …itellm_enterprise/proxy/hooks/managed_vector_stores.py | 335 | # Check if it's a managed vector store ID |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1067 | ## Check if unified_file_id is in the response |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1297 | # Check if the scheduler has the batch cost checking job registered |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1302 | # Check if the check_batch_cost_job exists in the scheduler |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1380 | # Check if any referenced file ID matches the file we're trying to delete |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 451 | # Check if any files are stored in storage backends and need base64 conversion |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1186 | ## Check if unified_file_id is in the response |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1411 | # Check if batch polling is enabled |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1416 | # Check if file is referenced by any non-terminal batches |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1472 | # Check if file deletion should be blocked due to batch references |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1553 | # Check if this is a base64 encoded unified file ID |
| LOW | …rprise/litellm_enterprise/proxy/hooks/managed_files.py | 1657 | # Set format to help Gemini determine mime type |
| LOW | …rprise/proxy/management_endpoints/project_endpoints.py | 388 | # Check if user has permission to create projects for this team |
| LOW | …rprise/proxy/management_endpoints/project_endpoints.py | 409 | # Check if project_id already exists |
| LOW | …rprise/proxy/management_endpoints/project_endpoints.py | 763 | # Check if user is admin (only admins can delete projects) |
| LOW | …rprise/proxy/management_endpoints/project_endpoints.py | 780 | # Check if project exists |
| LOW | …rprise/proxy/management_endpoints/project_endpoints.py | 793 | # Check if there are any keys associated with this project |
| LOW | …rprise/proxy/management_endpoints/project_endpoints.py | 870 | # Check if user has access to this project (admin or team member) |
| LOW | …m_enterprise/enterprise_callbacks/callback_controls.py | 91 | # Check if admin has disabled this feature |
| LOW | …erprise/enterprise_callbacks/send_emails/base_email.py | 133 | # Check if API key should be included in email |
| LOW | …erprise/enterprise_callbacks/send_emails/base_email.py | 180 | # Check if API key should be included in email |
| LOW | …erprise/enterprise_callbacks/send_emails/base_email.py | 476 | # Check if we've already sent this alert |
| LOW | …erprise/enterprise_callbacks/send_emails/base_email.py | 544 | # Check if we've already sent this alert |
| LOW | …se/litellm_enterprise/integrations/custom_guardrail.py | 44 | # Check if any request tag matches a Mode tag key |
| LOW | …/litellm-helm/templates/tests/test-servicemonitor.yaml | 20 | # Check if ServiceMonitor exists |
| LOW | tests/test_entrypoint.py | 46 | # Print the output for debugging purposes |
| LOW | …sts/logging_callback_tests/test_langfuse_unit_tests.py | 130 | # Check if the logger is cached |
| LOW | tests/logging_callback_tests/test_gcs_pub_sub.py | 55 | # Check if current path should be ignored |
| LOW | tests/logging_callback_tests/test_alerting.py | 884 | # Check if the payload was logged |
| LOW | …ging_callback_tests/test_bedrock_knowledgebase_hook.py | 210 | # Check if this chunk has search_results in provider_specific_fields |
| LOW | tests/logging_callback_tests/test_datadog.py | 144 | standard_payload["status"] = "failure" # Set status to failure |
| LOW | tests/litellm_utils_tests/test_utils.py | 1208 | # Set force_ipv4 to True |
| LOW | tests/litellm_utils_tests/test_secret_manager.py | 40 | # Read the file content |
| LOW | tests/litellm_utils_tests/test_health_check.py | 110 | # Check if response is successful (no error) |
| LOW | tests/litellm_utils_tests/test_health_check.py | 114 | # Check if error is a transient Azure internal server error |
| LOW | tests/litellm_utils_tests/test_bedrock_token_counter.py | 98 | # Check if the model doesn't support token counting |
| LOW | tests/otel_tests/test_prometheus.py | 99 | # Check if the request failed as expected |
| LOW | tests/otel_tests/test_prometheus.py | 108 | # Check if the failure metric is present and correct - use pattern matching for robustness |
| LOW | tests/otel_tests/test_prometheus.py | 125 | # Check if either pattern is in metrics and contains required fields |
| LOW | tests/otel_tests/test_prometheus.py | 191 | # Check if the request succeeded as expected |
| LOW | tests/otel_tests/test_prometheus.py | 208 | # Check if the success metric is present and correct - use flexible matching |
| LOW | tests/otel_tests/test_prometheus.py | 315 | # Check if successful fallback metric is incremented - use flexible matching |
| LOW | tests/otel_tests/test_prometheus.py | 335 | # Check if failed fallback metric is incremented - use flexible matching |
| LOW | …tellm_enterprise/integrations/test_custom_guardrail.py | 212 | ) # Set premium_user to True |
| LOW | tests/pass_through_tests/test_vertex_ai.py | 29 | # Read the file content |
| LOW | tests/pass_through_tests/test_anthropic_passthrough.py | 75 | # Check if spend data exists and has entries |
| LOW | tests/pass_through_tests/test_anthropic_passthrough.py | 241 | # Check if spend data exists and has entries |
| LOW | …/openai_endpoints_tests/test_openai_files_endpoints.py | 99 | assert content # Check if content is not empty |
| 796 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | …se/litellm_enterprise/proxy/audit_logging_endpoints.py | 181 | Get detailed information about a specific audit log entry by its ID. Args: id (str): The unique identi |
| HIGH | …se/litellm_enterprise/proxy/auth/custom_sso_handler.py | 32 | Allow a user to execute their custom code to parse incoming request headers and return a OpenID object |
| HIGH | …itellm_enterprise/proxy/hooks/managed_vector_stores.py | 264 | Check if user has access to a managed vector store in request data. Args: data: Re |
| HIGH | tests/local_testing/test_alangfuse.py | 57 | Searches the given log file for logs containing the "/api/public" string. Parameters: - log_file_path (str |
| HIGH | …mock_guardrail_server/mock_bedrock_guardrail_server.py | 164 | Verify the Bearer token from the Authorization header. Args: authorization: The Authorization header v |
| HIGH | …mpt_management_server/mock_prompt_management_server.py | 207 | Get a prompt by ID with optional filtering. This endpoint implements the LiteLLM Generic Prompt Management API |
| HIGH | litellm/cost_calculator.py | 2082 | Default image cost calculator for image generation Args: model (str): Model name image_respons |
| HIGH | litellm/cost_calculator.py | 2182 | Default video cost calculator for video generation Args: model (str): Model name duration_seco |
| HIGH | litellm/utils.py | 2389 | Check if the given model supports system messages and return a boolean value. Parameters: model (str): The |
| HIGH | litellm/utils.py | 2410 | Check if the given model supports web search and return a boolean value. Parameters: model (str): The mode |
| HIGH | litellm/utils.py | 2431 | Check if the given model supports URL context and return a boolean value. Parameters: model (str): The mod |
| HIGH | litellm/utils.py | 2452 | Check if the given model supports native streaming and return a boolean value. Parameters: model (str): Th |
| HIGH | litellm/utils.py | 2545 | Check if the given model supports function calling and return a boolean value. Parameters: model (str): Th |
| HIGH | litellm/utils.py | 2591 | Check if the given model supports function calling and return a boolean value. Parameters: model (str): Th |
| HIGH | litellm/utils.py | 2714 | Check if the given model supports prompt caching and return a boolean value. Parameters: model (str): The |
| HIGH | litellm/utils.py | 2737 | Check if the given model supports computer use and return a boolean value. Parameters: model (str): The mo |
| HIGH | litellm/utils.py | 5309 | Get the maximum number of output tokens allowed for a given model. Parameters: model (str): The name of th |
| HIGH | litellm/utils.py | 6073 | Get a dict for the maximum tokens (context window), input_cost_per_token, output_cost_per_token for a given model. |
| HIGH | litellm/utils.py | 8055 | Ensures all user messages are valid OpenAI chat completion messages. Args: messages: List of message d |
| HIGH | litellm/router.py | 11387 | Returns deployments available for pass-through endpoints (based on load balancing strategy) Similar to |
| HIGH | litellm/main.py | 446 | Asynchronously executes a litellm.completion() call for any of litellm supported llms (example gpt-4, gpt-3.5-turbo |
| HIGH | litellm/main.py | 800 | Generate a mock completion response for testing or debugging purposes. This is a helper function that simulate |
| HIGH | litellm/main.py | 4790 | Embedding function that calls an API to generate embeddings for the given input. Parameters: - model: The |
| HIGH | litellm/proxy/utils.py | 3161 | Execute a query with automatic fallback for PostgreSQL cached plan errors. This handles the "cached pl |
| HIGH | litellm/proxy/common_utils/performance_utils.py | 207 | Wrap a function directly with line_profiler. This is the recommended way to profile functions, especially closures |
| HIGH | litellm/proxy/common_utils/path_utils.py | 13 | Join path components and verify the result stays within base_dir. Resolves symlinks and '..' sequences, then c |
| HIGH | litellm/proxy/common_utils/path_utils.py | 41 | Extract a safe filename from a user-supplied path. Strips all directory components (both Unix and Windows sepa |
| HIGH | …proxy/guardrails/guardrail_hooks/bedrock_guardrails.py | 1522 | Apply Bedrock guardrail to a batch of texts for testing purposes. This method allows users to test Bed |
| HIGH | …ils/guardrail_hooks/prompt_security/prompt_security.py | 81 | Apply Prompt Security guardrail to the given inputs. This method is called by LiteLLM's guardrail fram |
| HIGH | …s/guardrail_hooks/zscaler_ai_guard/zscaler_ai_guard.py | 128 | Apply Zscaler AI Guard guardrail to batch of texts. Args: inputs: Dictionary containing te |
| HIGH | …s/guardrail_hooks/custom_code/custom_code_guardrail.py | 199 | Apply the custom code guardrail to the inputs. This method calls the user-defined apply_guardrail func |
| HIGH | …s/guardrail_hooks/custom_code/custom_code_guardrail.py | 296 | Process the result from the custom code function. Args: result: The return value from appl |
| HIGH | …roxy/guardrails/guardrail_hooks/qualifire/qualifire.py | 403 | Apply Qualifire guardrail to the given inputs. This method is called by the unified guardrail system f |
| HIGH | …ellm/proxy/guardrails/guardrail_hooks/pillar/pillar.py | 336 | Pre-call hook to scan the request for security threats before sending to LLM. Args: user_a |
| HIGH | …ellm/proxy/guardrails/guardrail_hooks/pillar/pillar.py | 384 | During-call hook to scan the request in parallel with LLM processing. Args: data: Request |
| HIGH | …ellm/proxy/guardrails/guardrail_hooks/pillar/pillar.py | 422 | Post-call hook to scan LLM responses before returning to user. Args: data: Original reques |
| HIGH | …ellm/proxy/guardrails/guardrail_hooks/pillar/pillar.py | 480 | Core method to run the Pillar guardrail scan. Args: data: Request data containing messages |
| HIGH | …ellm/proxy/guardrails/guardrail_hooks/pillar/pillar.py | 530 | Handle API errors based on fallback_on_error configuration. Args: error: The exception tha |
| HIGH | …s/guardrail_hooks/crowdstrike_aidr/crowdstrike_aidr.py | 155 | Makes the API call to the CrowdStrike AIDR AI Guard endpoint. The function itself will raise an error i |
| HIGH | …roxy/guardrails/guardrail_hooks/enkryptai/enkryptai.py | 497 | Apply EnkryptAI guardrail to a batch of texts. Args: inputs: Dictionary containing texts a |
| HIGH | …ils/guardrail_hooks/litellm_content_filter/patterns.py | 65 | Get a compiled regex pattern by name. Args: pattern_name: Name of the prebuilt pattern Returns: |
| HIGH | …ardrail_hooks/litellm_content_filter/content_filter.py | 1350 | Apply all content filtering checks to a single text. This method performs: 1. Category keyword |
| HIGH | …ardrail_hooks/litellm_content_filter/content_filter.py | 1783 | Apply content filtering guardrail to a batch of texts. This method checks for sensitive patterns and b |
| HIGH | …/proxy/guardrails/guardrail_hooks/grayswan/grayswan.py | 169 | Apply Gray Swan guardrail to extracted text content. This method is called by the unified guardrail sy |
| HIGH | …/proxy/guardrails/guardrail_hooks/grayswan/grayswan.py | 430 | Process GraySwan API response and handle violations. Args: response_json: Response from Gr |
| HIGH | …ellm/proxy/guardrails/guardrail_hooks/pangea/pangea.py | 116 | Makes the API call to the Pangea AI Guard endpoint. The function itself will raise an error in the case |
| HIGH | …l_hooks/generic_guardrail_api/generic_guardrail_api.py | 378 | Apply the Generic Guardrail API to the given inputs. This is the main method that gets called by the f |
| HIGH | …proxy/guardrails/guardrail_hooks/openai/moderations.py | 189 | Apply OpenAI moderation guardrail using the unified guardrail interface. This method is called by the |
| HIGH | …tellm/proxy/_experimental/mcp_server/rest_endpoints.py | 267 | Resolve allowed MCP servers for a tool call with IP filtering. Args: request: The HTTP req |
| HIGH | litellm/proxy/_experimental/mcp_server/server.py | 520 | Call a specific tool with the provided arguments Args: name (str): Name of the tool to cal |
| HIGH | …oxy/_experimental/mcp_server/discoverable_endpoints.py | 67 | Decode an encrypted state to retrieve all OAuth session data. Args: encrypted_state: The encrypted str |
| HIGH | …m/proxy/_experimental/mcp_server/mcp_server_manager.py | 2446 | Filter arguments to only include allowed parameters for the given tool. Args: tool_name: N |
| HIGH | …m/proxy/_experimental/mcp_server/mcp_server_manager.py | 2765 | Call a regular MCP tool using the MCP client. Args: mcp_server: The MCP server configurati |
| HIGH | …_experimental/mcp_server/auth/user_api_key_auth_mcp.py | 50 | Process and validate MCP request headers from the ASGI scope. This includes: 1. Extracting and |
| HIGH | …roxy/openai_files_endpoints/storage_backend_service.py | 42 | Upload a file to a storage backend and create a file object. Args: file_data: File data di |
| HIGH | litellm/proxy/openai_files_endpoints/common_utils.py | 90 | Encode a file/batch ID with model routing information. Format: <prefix><base64(litellm:<original_id>;model,<mo |
| HIGH | litellm/proxy/openai_files_endpoints/common_utils.py | 263 | Retrieve API credentials for a model from the LLM Router. Args: llm_router: LiteLLM Router instance |
| HIGH | litellm/proxy/openai_files_endpoints/common_utils.py | 332 | Orchestrate model-based credential routing for file operations. Args: file_id: File ID (may contain em |
| HIGH | litellm/proxy/auth/route_checks.py | 556 | Check if route matches the allowed_route pattern. Supports both exact match and prefix match. |
| HIGH | litellm/proxy/auth/login_utils.py | 55 | Get UI username and password from environment variables or master key. Args: master_key: Master key fo |
| 144 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | ci_cd/run_migration.py | 77 | print(f" git fetch origin && git rebase origin/{base_branch}", file=out) |
| HIGH | ci_cd/run_migration.py | 177 | " 1. git fetch origin && git status # confirm branch is up to date", file=out |
| HIGH | …gh_unit_tests/test_unit_test_anthropic_pass_through.py | 252 | 'data: {"type":"message_start","message":{"id":"msg_01G7T4YSBzHjmgTyizv1UfkB","type":"message","role":"assistant |
| HIGH | …gh_unit_tests/test_unit_test_anthropic_pass_through.py | 306 | 'data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"output_tokens": |
| HIGH | tests/proxy_unit_tests/messages_with_counts.py | 732 | null, |
| HIGH | tests/llm_translation/test_openai.py | 926 | "description": 'Executes a given bash command in a persistent shell session with optional timeout, e |
| HIGH | tests/llm_translation/test_prompt_factory.py | 340 | "arguments": '{"completed_steps": [], "next_steps": [{"tool_name": "AccountingResearchTool", "de |
| HIGH | tests/llm_translation/test_prompt_factory.py | 349 | "content": '{"completed_steps":[],"next_steps":[{"tool_name":"AccountingResearchTool","description":"Researc |
| HIGH | tests/llm_translation/test_bedrock_completion.py | 1330 | "content": "You are Claude Dev, a highly skilled software developer with extensive knowledge in many pro |
| HIGH | tests/llm_translation/test_anthropic_completion.py | 659 | "text": '<extra_info>\nThe following information has been included based on a keyword match for "git |
| HIGH | tests/test_litellm/test_video_generation.py | 1308 | """first_id / last_id may be absent or null; should not raise.""" |
| HIGH | tests/test_litellm/test_check_licenses.py | 5 | legacy ``info.license`` field null, so the checker must read the new field (and |
| HIGH | tests/test_litellm/types/test_types_utils.py | 211 | Test that invalid (non-list, non-null) top_logprobs values are still |
| HIGH | tests/test_litellm/types/test_types_utils.py | 212 | rejected by Pydantic validation. The validator only normalizes null, |
| HIGH | tests/test_litellm/types/llms/test_types_llms_openai.py | 280 | status=null). |
| HIGH | …s/test_litellm/proxy/test_common_request_processing.py | 993 | 'data: {"error": {"code": null, "message": "code is null"}}', |
| HIGH | …t_litellm/proxy/guardrails/test_guardrail_endpoints.py | 1671 | """List submissions only returns team guardrails (team_id not null).""" |
| HIGH | …xy/guardrails/guardrail_hooks/test_panw_prisma_airs.py | 2427 | b'data: {"type":"content_block_delta","index":0,"delta":null}\n', |
| HIGH | …xy/guardrails/guardrail_hooks/test_panw_prisma_airs.py | 2410 | """Non-dict JSON (null, arrays, ints) should be silently skipped.""" |
| HIGH | …/guardrails/guardrail_hooks/test_bedrock_guardrails.py | 1468 | # No BLOCKED actions found (all lists null) → should return False |
| HIGH | …roxy/spend_tracking/test_spend_management_endpoints.py | 1755 | "metadata": '{"applied_guardrails": [], "batch_models": null, "mcp_tool_call_metadata": null, "vecto |
| HIGH | …roxy/spend_tracking/test_spend_management_endpoints.py | 1851 | "metadata": '{"applied_guardrails": [], "batch_models": null, "mcp_tool_call_metadata": null, "vecto |
| HIGH | …roxy/spend_tracking/test_spend_management_endpoints.py | 1945 | "metadata": '{"applied_guardrails": [], "batch_models": null, "mcp_tool_call_metadata": null, "vecto |
| HIGH | …sts/test_litellm/proxy/memory/test_memory_endpoints.py | 659 | expectation of `PUT {"metadata": null}`. |
| HIGH | …roxy/ui_crud_endpoints/test_proxy_setting_endpoints.py | 660 | # Send mixed SSO settings - some null, some valid |
| HIGH | …xy/management_endpoints/test_access_group_endpoints.py | 1315 | # Verify the DB update was called with [] (not null) for list fields |
| HIGH | …tellm/proxy/proxy_server/test_routes_model_cost_map.py | 227 | """No prisma client → returns the not-scheduled shape (4 keys, all-null).""" |
| HIGH | tests/test_litellm/passthrough/test_passthrough_main.py | 656 | so the client saw HTTP 200 + unparseable SSE body → silent task_complete(null). |
| HIGH | …rations/open_telemetry/test_passthrough_parent_span.py | 134 | 'data: {"type":"message_start","message":{"id":"msg_1","type":"message","role":"assistant","model":"claude-sonnet-4- |
| HIGH | …rations/open_telemetry/test_passthrough_parent_span.py | 142 | 'data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null},"usage":{"output_tokens":2}}' |
| HIGH | …est_litellm/litellm_core_utils/messages_with_counts.py | 740 | null, |
| HIGH | tests/test_litellm/llms/sap/chat/test_sap_chat_calls.py | 43 | b'data: {"request_id": "a07127d3-cb74-9427-a4dc-ef9bf424fb43", "intermediate_results": {"templating": [{"content": " |
| HIGH | …ertex_ai/gemini/test_gemini_image_url_missing_field.py | 34 | """When image_url key is present but explicitly null, a BadRequestError is raised.""" |
| HIGH | …ertex_gemma_models/test_vertex_gemma_transformation.py | 61 | "logprobs": null, |
| HIGH | …ertex_gemma_models/test_vertex_gemma_transformation.py | 64 | "reasoning_content": null, |
| HIGH | …ertex_gemma_models/test_vertex_gemma_transformation.py | 75 | "prompt_logprobs": null, |
| HIGH | …ertex_gemma_models/test_vertex_gemma_transformation.py | 79 | "prompt_tokens_details": null, |
| HIGH | tests/batches_tests/test_batches_logging_unit_tests.py | 35 | {"id": "batch_req_6769ca596b38819093d7ae9f522de924", "custom_id": "request-1", "response": {"status_code": 200, "request |
| HIGH | tests/batches_tests/test_batches_logging_unit_tests.py | 36 | {"id": "batch_req_6769ca597e588190920666612634e2b4", "custom_id": "request-2", "response": {"status_code": 200, "request |
| HIGH | tests/local_testing/test_streaming.py | 2410 | # "content": null, |
| HIGH | tests/local_testing/test_streaming.py | 2423 | # "logprobs": null, |
| HIGH | tests/local_testing/test_streaming.py | 2478 | # "logprobs": null, |
| HIGH | tests/local_testing/test_azure_perf.py | 104 | # Test azure streaming call - measure on time to first (non-null) token. |
| HIGH | litellm/utils.py | 6078 | - custom_llm_provider (str | null): the provider used for the model. If provided, used to check if the litellm model |
| HIGH | litellm/types/llms/openai.py | 1328 | (e.g., the OpenAI C# SDK crashes on status=null). |
| HIGH | litellm/types/llms/anthropic.py | 551 | "stop_reason": null, |
| HIGH | litellm/types/llms/anthropic.py | 552 | "stop_sequence": null, |
| HIGH | litellm/proxy/proxy_server.py | 12585 | "max_input_tokens": null, |
| HIGH | litellm/proxy/proxy_server.py | 12586 | "max_output_tokens": null, |
| HIGH | litellm/proxy/proxy_server.py | 12589 | "mode": null, |
| HIGH | litellm/proxy/proxy_server.py | 12590 | "tpm": null, |
| HIGH | litellm/proxy/proxy_server.py | 12591 | "rpm": null, |
| HIGH | litellm/proxy/proxy_server.py | 12653 | "max_input_tokens": null, |
| HIGH | litellm/proxy/proxy_server.py | 12654 | "max_output_tokens": null, |
| HIGH | litellm/proxy/proxy_server.py | 12657 | "mode": null, |
| HIGH | litellm/proxy/proxy_server.py | 12658 | "tpm": null, |
| HIGH | litellm/proxy/proxy_server.py | 12659 | "rpm": null, |
| HIGH | litellm/proxy/proxy_server.py | 1749 | "if (d && LAZY_TAGS.has(d.textContent.trim())) op.style.display = 'none';" |
| HIGH | litellm/proxy/proxy_server.py | 1772 | "const thing=args[0];const shown=args[1];let tag=null;" |
| HIGH | litellm/proxy/proxy_server.py | 12618 | "tpm": null, |
| 87 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | …src/app/(dashboard)/api-reference/APIReferenceView.tsx | 52 | api_key="your_api_key", |
| HIGH | …/litellm-dashboard/src/components/public_model_hub.tsx | 1506 | apiKey: "your_api_key", |
| HIGH | …/litellm-dashboard/src/components/public_model_hub.tsx | 1528 | apiKey: "your_api_key", |
| HIGH | …/components/guardrails/custom_code/CustomCodeModal.tsx | 81 | headers={"Authorization": "Bearer YOUR_API_KEY"}, |
| HIGH | …rc/components/playground/chat_ui/SessionManagement.tsx | 92 | -H "Authorization: Bearer your-api-key" \\ |
| HIGH | …tellm-dashboard/src/components/AIHub/ModelHubTable.tsx | 708 | api_key="your_api_key", |
| HIGH | …-dashboard/src/components/mcp_tools/MCPToolsetsTab.tsx | 387 | "headers": { "x-litellm-api-key": "Bearer <your-api-key>" } |
| HIGH | tests/llm_translation/test_minimax_tts.py | 227 | os.environ["MINIMAX_API_KEY"] = "your-api-key-here" |
| HIGH | tests/llm_translation/test_minimax_tts.py | 249 | os.environ["MINIMAX_API_KEY"] = "your-api-key-here" |
| HIGH | cookbook/codellama-server/README.MD | 124 | os.environ['OPENAI_API_KEY]` = "YOUR_API_KEY" |
| HIGH | cookbook/litellm_proxy_server/readme.md | 145 | os.environ['OPENAI_API_KEY]` = "YOUR_API_KEY" |
| HIGH | docs/my-website/docs/providers/crusoe.md | 174 | api_key="your-api-key", |
| HIGH | scripts/health_check/health_check_client_README.md | 21 | export LITELLM_API_KEY="your-api-key" |
| HIGH | scripts/health_check/health_check_client_README.md | 28 | export LITELLM_API_KEY="your-api-key" |
| HIGH | scripts/health_check/health_check_client_README.md | 36 | export LITELLM_API_KEY="your-api-key" |
| HIGH | scripts/health_check/health_check_client_README.md | 54 | -e LITELLM_API_KEY="your-api-key" \ |
| HIGH | scripts/health_check/health_check_client_README.md | 63 | -e LITELLM_API_KEY="your-api-key" \ |
| HIGH | scripts/health_check/health_check_client_README.md | 75 | $env:LITELLM_API_KEY="your-api-key" |
| HIGH | scripts/health_check/health_check_client_README.md | 82 | export LITELLM_API_KEY="your-api-key" |
| HIGH | scripts/health_check/health_check_client_README.md | 89 | $env:LITELLM_API_KEY="your-api-key" |
| HIGH | scripts/health_check/health_check_client_README.md | 97 | $env:LITELLM_API_KEY="your-api-key" |
| HIGH | scripts/health_check/health_check_client_README.md | 105 | export LITELLM_API_KEY="your-api-key" |
| HIGH | scripts/health_check/run_parallel_health_checks.sh | 8 | # export LITELLM_API_KEY="your-api-key" |
| HIGH | litellm/router.py | 382 | "api_key": <your-api-key>, |
| HIGH | litellm/router.py | 391 | "api_key": <your-api-key>, |
| HIGH | litellm/router.py | 400 | "api_key": <your-api-key>, |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 3174 | "description": "Create a new agent\n\nExample Request:\n```bash\ncurl -X POST \"http://localhost:4000/v1/agent |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 3221 | "description": "Make multiple agents publicly discoverable\n\nExample Request:\n```bash\ncurl -X POST \"http:/ |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 3268 | "description": "Delete an agent\n\nExample Request:\n```bash\ncurl -X DELETE \"http://localhost:4000/agents/12 |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 3312 | "description": "Get a specific agent by ID\n\nExample Request:\n```bash\ncurl -X GET \"http://localhost:4000/a |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 3358 | "description": "Update an existing agent\n\nExample Request:\n```bash\ncurl -X PUT \"http://localhost:4000/age |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 3414 | "description": "Update an existing agent\n\nExample Request:\n```bash\ncurl -X PUT \"http://localhost:4000/age |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 3472 | "description": "Make an agent publicly discoverable\n\nExample Request:\n```bash\ncurl -X POST \"http://localh |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 11489 | "description": "Create a new guardrail\n\n\ud83d\udc49 [Guardrail docs](https://docs.litellm.ai/docs/proxy/gua |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 11581 | "description": "List the guardrails that are available on the proxy server\n\n\ud83d\udc49 [Guardrail docs](ht |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 11882 | "description": "Test custom code guardrail logic without creating a guardrail.\n\nThis endpoint allows admins |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 12396 | "description": "Delete a guardrail\n\n\ud83d\udc49 [Guardrail docs](https://docs.litellm.ai/docs/proxy/guardra |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 12440 | "description": "Get detailed information about a specific guardrail by ID\n\n\ud83d\udc49 [Guardrail docs](htt |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 12484 | "description": "Partially update an existing guardrail\n\n\ud83d\udc49 [Guardrail docs](https://docs.litellm.a |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 12538 | "description": "Update an existing guardrail\n\n\ud83d\udc49 [Guardrail docs](https://docs.litellm.ai/docs/pro |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 12594 | "description": "Get detailed information about a specific guardrail by ID\n\n\ud83d\udc49 [Guardrail docs](htt |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 12715 | "description": "List the guardrails that are available in the database using GuardrailRegistry\n\n\ud83d\udc49 |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 21270 | "description": "Create a new policy.\n\nExample Request:\n```bash\ncurl -X POST \"http://localhost:4000/polici |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 21317 | "description": "Create a new policy attachment.\n\nExample Request:\n```bash\ncurl -X POST \"http://localhost: |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 21364 | "description": "Estimate how many keys and teams would be affected by a policy attachment.\n\nUse this before |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 21411 | "description": "List all policy attachments from the database.\n\nExample Request:\n```bash\ncurl -X GET \"htt |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 21438 | "description": "Delete a policy attachment.\n\nExample Request:\n```bash\ncurl -X DELETE \"http://localhost:40 |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 21482 | "description": "Get a policy attachment by ID.\n\nExample Request:\n```bash\ncurl -X GET \"http://localhost:40 |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 21587 | "description": "List all policies from the database. Optionally filter by version_status.\n\nQuery params:\n- |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 21792 | "description": "Resolve which policies and guardrails apply for a given context.\n\nUse this endpoint to debug |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 21853 | "description": "Test a guardrail pipeline with sample messages.\n\nExecutes the pipeline steps against the pro |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 21973 | "description": "Delete a policy.\n\nExample Request:\n```bash\ncurl -X DELETE \"http://localhost:4000/policies |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 22017 | "description": "Get a policy by ID.\n\nExample Request:\n```bash\ncurl -X GET \"http://localhost:4000/policies |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 22063 | "description": "Update an existing policy.\n\nExample Request:\n```bash\ncurl -X PUT \"http://localhost:4000/p |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 22121 | "description": "Get the resolved guardrails for a policy (including inherited guardrails).\n\nThis endpoint re |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 22523 | "description": "Estimate how many keys and teams would be affected by a policy attachment.\n\nUse this before |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 22570 | "description": "Resolve which policies and guardrails apply for a given context.\n\nUse this endpoint to debug |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 23079 | "description": "Create a new prompt\n\n\ud83d\udc49 [Prompt docs](https://docs.litellm.ai/docs/proxy/prompt_ma |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 23124 | "description": "List the prompts that are available on the proxy server\n\n\ud83d\udc49 [Prompt docs](https:// |
| HIGH | litellm/proxy/_lazy_openapi_snapshot.json | 23179 | "description": "Test a prompt by rendering it with variables and executing an LLM call.\n\nThis endpoint allow |
| 82 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …lm-dashboard/e2e_tests/tests/modelHub/modelHub.spec.ts | 24 | // Step 1: pick the seeded models via "Select All" |
| LOW | ui/litellm-dashboard/src/components/WebRTCTester.jsx | 290 | // Step 1: ephemeral token |
| LOW | ui/litellm-dashboard/src/components/WebRTCTester.jsx | 315 | // Step 2: PeerConnection |
| LOW | ui/litellm-dashboard/src/components/WebRTCTester.jsx | 368 | // Step 3: SDP offer |
| LOW | ui/litellm-dashboard/src/components/WebRTCTester.jsx | 376 | // Step 4: SDP exchange |
| LOW | ui/litellm-dashboard/src/components/WebRTCTester.jsx | 390 | // Step 5: remote description |
| LOW | …llm-dashboard/src/components/agents/add_agent_form.tsx | 62 | // Step 3: key assignment state |
| LOW | …llm-dashboard/src/components/agents/add_agent_form.tsx | 74 | // Step 4: results |
| LOW | …itellm-dashboard/src/components/survey/SurveyModal.tsx | 171 | // Step 1: Using at company? |
| LOW | …itellm-dashboard/src/components/survey/SurveyModal.tsx | 205 | // Step 2: Company name (only if using at company) |
| LOW | …itellm-dashboard/src/components/survey/SurveyModal.tsx | 222 | // Step 3: When did you start? |
| LOW | …itellm-dashboard/src/components/survey/SurveyModal.tsx | 251 | // Step 4: Why did you pick LiteLLM? |
| LOW | …itellm-dashboard/src/components/survey/SurveyModal.tsx | 303 | // Step 5: Email (optional) |
| LOW | …m-dashboard/src/components/survey/SurveyModal.test.tsx | 179 | // Step 5: email is optional |
| LOW | …itellm_enterprise/proxy/hooks/managed_vector_stores.py | 89 | # For TypedDict responses, we need to check if _hidden_params was added |
| LOW | tests/litellm_utils_tests/test_cyberark.py | 174 | # Step 1: Write initial secret (simulates key creation) |
| LOW | tests/litellm_utils_tests/test_cyberark.py | 187 | # Step 2: Rotate the secret (simulates key rotation) |
| LOW | tests/litellm_utils_tests/test_cyberark.py | 200 | # Step 3: Verify the secret now returns the NEW value |
| LOW | tests/litellm_utils_tests/test_cyberark.py | 301 | # Step 1: Create initial secret with old alias |
| LOW | tests/litellm_utils_tests/test_cyberark.py | 309 | # Step 2: Rotate to new alias with new value |
| LOW | tests/litellm_utils_tests/test_cyberark.py | 321 | # Step 3: Verify new alias has new value |
| LOW | tests/litellm_utils_tests/test_cyberark.py | 326 | # Step 4: Verify old alias still exists (CyberArk doesn't delete via API) |
| LOW | …ent_tests/local_only_agent_tests/local_vertex_agent.py | 37 | # Step 1: Authenticate with Google Cloud |
| LOW | …ent_tests/local_only_agent_tests/local_vertex_agent.py | 46 | # Step 2: Build the endpoint URL |
| LOW | …ent_tests/local_only_agent_tests/local_vertex_agent.py | 57 | # Step 3: Create authenticated httpx client |
| LOW | …ent_tests/local_only_agent_tests/local_vertex_agent.py | 67 | # Step 4: Build the query request (non-streaming) |
| LOW | …_responses_api_testing/test_anthropic_responses_api.py | 81 | # Step 1: Initial request with the tool |
| LOW | …_responses_api_testing/test_anthropic_responses_api.py | 99 | # Step 2: Send the results of the tool call back to the model |
| LOW | …llm_responses_api_testing/test_openai_responses_api.py | 1229 | # Step 1: OpenAI will use MCP LIST, and return a list of MCP calls for our approval |
| LOW | …llm_responses_api_testing/test_openai_responses_api.py | 1242 | # Step 2: Send followup with approval for the MCP call |
| LOW | …ses_api_testing/test_google_ai_studio_responses_api.py | 127 | # Step 1: Initial request with tools |
| LOW | …ses_api_testing/test_google_ai_studio_responses_api.py | 227 | # Step 1: Streaming request with tools |
| LOW | tests/documentation_tests/test_exception_types.py | 48 | # Step 2: Extract the table content |
| LOW | tests/documentation_tests/test_exception_types.py | 51 | # Step 3: Create a pattern to capture the Error Types from each row |
| LOW | tests/vector_store_tests/rag/base_rag_tests.py | 136 | # Step 1: Ingest |
| LOW | tests/vector_store_tests/rag/base_rag_tests.py | 147 | # Step 2: Query with retry (indexing may take time) |
| LOW | tests/old_proxy_tests/tests/test_q.py | 43 | # Step 2: Queue a request to the proxy, using your generated_key |
| LOW | tests/old_proxy_tests/tests/test_q.py | 67 | # Step 3: Poll the request |
| LOW | tests/old_proxy_tests/tests/load_test_q.py | 55 | # Step 2: Queue 50 requests to the proxy, using your generated_key |
| LOW | tests/llm_translation/test_bedrock_completion.py | 2838 | "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` f |
| LOW | tests/llm_translation/test_bedrock_completion.py | 2843 | "text": "I'll help you implement the `__len__` method for Pipeline in scikit-learn to fix the is |
| LOW | tests/llm_translation/test_anthropic_completion.py | 1169 | "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` f |
| LOW | tests/llm_translation/test_anthropic_completion.py | 1174 | "text": "I'll help you implement the `__len__` method for Pipeline in scikit-learn to fix the is |
| LOW | tests/llm_translation/test_gemini.py | 972 | # Step 2: check if the model wanted to call a function |
| LOW | tests/llm_translation/test_gemini.py | 975 | # Step 3: call the function |
| LOW | tests/llm_translation/test_gemini.py | 982 | # Step 4: send the info for each function call and function response to the model |
| LOW | tests/llm_translation/realtime/base_realtime_tests.py | 343 | # Step 1: Send a user message after connection is established |
| LOW | tests/llm_translation/realtime/base_realtime_tests.py | 366 | # Step 2: Trigger the response after user message is acknowledged |
| LOW | tests/llm_translation/realtime/base_realtime_tests.py | 383 | # Step 3: Wait for LLM responses |
| LOW | tests/test_litellm/test_aembedding_session_reuse_e2e.py | 38 | # Step 1: litellm.embedding() extracts and passes shared_session |
| LOW | tests/test_litellm/test_aembedding_session_reuse_e2e.py | 42 | # Step 2: OpenAI handlers pass it forward |
| LOW | tests/test_litellm/test_aembedding_session_reuse_e2e.py | 48 | # Step 3: _get_openai_client passes it to AsyncHTTPHandler |
| LOW | tests/test_litellm/test_aembedding_session_reuse_e2e.py | 52 | # Step 4: AsyncHTTPHandler.create_client passes it to _create_async_transport |
| LOW | tests/test_litellm/test_aembedding_session_reuse_e2e.py | 56 | # Step 5: _create_async_transport passes it to _create_aiohttp_transport |
| LOW | tests/test_litellm/test_aembedding_session_reuse_e2e.py | 60 | # Step 6: _create_aiohttp_transport uses it |
| LOW | tests/test_litellm/test_project_alias_tracking.py | 121 | # Step 1: Auth → sanitized metadata |
| LOW | tests/test_litellm/test_project_alias_tracking.py | 126 | # Step 2: Sanitized metadata → standard logging metadata |
| LOW | tests/test_litellm/test_cost_calculator.py | 209 | # Step 1: Test a model where input_cost_per_image_token is not set. |
| LOW | tests/test_litellm/test_cost_calculator.py | 225 | # Step 2: Set input_cost_per_image_token. |
| LOW | tests/test_litellm/proxy/test_proxy_server.py | 322 | # Step 1: login — get code |
| 196 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | pyproject.toml | 301 | also_copy = [ |
| LOW | terraform/litellm/gcp/load_balancer.tf | 1 | # External global HTTP(S) load balancer fronting all three Cloud Run |
| LOW | terraform/litellm/gcp/cloudsql.tf | 1 | # Cloud SQL for PostgreSQL — one primary + one read replica. |
| LOW | terraform/litellm/gcp/bootstrap.tf | 1 | # Auto-runs the prisma schema migration as part of `terraform apply`. Mirrors |
| LOW | terraform/litellm/aws/autoscaling.tf | 1 | # Application Auto Scaling for the three ECS services. Mirrors the HPA values |
| LOW | terraform/litellm/aws/s3.tf | 1 | # General-purpose S3 bucket for the proxy. LiteLLM uses S3 for: |
| LOW | terraform/litellm/aws/migrations.tf | 1 | # Task definition for the dedicated litellm-migrations image. Mirrors the |
| LOW | terraform/litellm/aws/iam.tf | 101 | # ---------- UI task role ---------- |
| LOW | terraform/litellm/aws/rds.tf | 1 | # Aurora Postgres cluster with one writer + one reader instance, IAM |
| LOW | terraform/litellm/aws/bootstrap.tf | 1 | # Auto-runs the two manual steps that used to follow `terraform apply`: |
| LOW | ui/litellm-dashboard/e2e_tests/run_e2e.sh | 1 | #!/usr/bin/env bash |
| LOW | …lm-dashboard/e2e_tests/tests/modelHub/modelHub.spec.ts | 41 | // The tab strip lives in the main view; check each tab is present and clickable. |
| LOW | …d/e2e_tests/tests/login/serverRootPathRedirect.spec.ts | 1 | import { expect, test } from "@playwright/test"; |
| LOW | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 141 | # "content": [ |
| LOW | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 201 | # "content": [ |
| LOW | …shboard/src/components/agents/agent_card_discovery.tsx | 101 | const lastSyncedSelectionRef = useRef<string | null>(null); |
| LOW | …ellm_enterprise/proxy/common_utils/check_batch_cost.py | 221 | |
| LOW | deploy/charts/litellm-helm/Chart.yaml | 1 | apiVersion: v2 |
| LOW | deploy/charts/litellm-helm/values.yaml | 41 | # Example: |
| LOW | deploy/charts/litellm-helm/values.yaml | 61 | securityContext: |
| LOW | deploy/charts/litellm-helm/values.yaml | 201 | annotations: {} |
| LOW | deploy/charts/litellm-helm/values.yaml | 261 | readReplicaUrlKey: "" |
| LOW | deploy/charts/litellm-helm/values.yaml | 361 | # USE_DDTRACE: "true" |
| LOW | deploy/charts/litellm-helm/values.yaml | 401 | # - targetLabel: __meta_kubernetes_pod_node_name |
| LOW | tests/test_callbacks_on_proxy.py | 21 | # sampling window. A one-time bump that then plateaus is benign pollution from |
| LOW | tests/_vcr_conftest_common.py | 381 | method = getattr(request, "method", "?") |
| LOW | tests/_vcr_conftest_common.py | 401 | # |
| LOW | tests/_vcr_conftest_common.py | 561 | # Thread-local "we are inside Cassette._load" flag. vcrpy's ``Cassette._load`` |
| LOW | …/logging_callback_tests/test_custom_callback_router.py | 21 | # Test Scenarios (test across completion, streaming, embedding) |
| LOW | tests/logging_callback_tests/test_alerting.py | 561 | # ) as mock_send_alert: |
| LOW | …ging_callback_tests/test_bedrock_knowledgebase_hook.py | 641 | # test_custom_logger = MockCustomLogger() |
| LOW | …ging_callback_tests/test_bedrock_knowledgebase_hook.py | 661 | |
| LOW | …e/litellm_enterprise/proxy/hooks/test_managed_files.py | 201 | |
| LOW | …e/litellm_enterprise/proxy/hooks/test_managed_files.py | 221 | # assert all(f.id.startswith(SpecialEnums.LITELM_MANAGED_FILE_ID_PREFIX.value) for f in files) |
| LOW | …e/litellm_enterprise/proxy/hooks/test_managed_files.py | 241 | # assert retrieved_file.filename == "test.txt" |
| LOW | …e/litellm_enterprise/proxy/hooks/test_managed_files.py | 261 | |
| LOW | …e/litellm_enterprise/proxy/hooks/test_managed_files.py | 281 | # with pytest.raises(Exception): |
| LOW | …ise/litellm_enterprise/integrations/test_prometheus.py | 1061 | # ============================================================================== |
| LOW | …s/local_only_agent_tests/test_a2a_completion_bridge.py | 281 | # if hasattr(delta, "content") and delta.content: |
| LOW | tests/pass_through_tests/test_gemini.js | 1 | // const { GoogleGenerativeAI } = require("@google/generative-ai"); |
| LOW | tests/pass_through_tests/test_gemini.js | 21 | // } |
| LOW | tests/proxy_admin_ui_tests/ui_unit_tests/jest.setup.js | 1 | // Add any global setup here |
| LOW | tests/vector_store_tests/test_milvus_vector_store.py | 441 | request_data = self._extract_request_body(mock_post) |
| LOW | tests/vector_store_tests/test_milvus_vector_store.py | 461 | # "default_output_fields": [ |
| LOW | …ough_unit_tests/test_anthropic_messages_tool_search.py | 41 | |
| LOW | …ough_unit_tests/test_anthropic_messages_tool_search.py | 61 | # Vertex AI Anthropic partner models. |
| LOW | …hrough_unit_tests/test_bedrock_tool_use_beta_header.py | 41 | print(f"✅ Test passed! Response: {response}") |
| LOW | …hrough_unit_tests/test_bedrock_tool_use_beta_header.py | 61 | # }, |
| LOW | …ough_unit_tests/test_anthropic_messages_passthrough.py | 581 | |
| LOW | …ough_unit_tests/test_anthropic_messages_passthrough.py | 601 | # handler = BaseLLMHTTPHandler() |
| LOW | …ough_unit_tests/test_anthropic_messages_passthrough.py | 621 | |
| LOW | …ough_unit_tests/test_anthropic_messages_passthrough.py | 641 | # anthropic_messages_provider_config=mock_provider_config, |
| LOW | tests/router_unit_tests/test_router_helper_utils.py | 1201 | |
| LOW | tests/proxy_unit_tests/test_proxy_gunicorn.py | 1 | # #### What this tests #### |
| LOW | tests/proxy_unit_tests/test_proxy_gunicorn.py | 21 | # filepath = os.path.dirname(os.path.abspath(__file__)) |
| LOW | tests/proxy_unit_tests/test_proxy_gunicorn.py | 41 | # os.environ["AZURE_API_BASE"] = azure_info['api_base'] |
| LOW | tests/proxy_unit_tests/test_proxy_server_spend.py | 1 | # import openai, json, time, asyncio |
| LOW | tests/proxy_unit_tests/test_proxy_server_spend.py | 21 | # }, |
| LOW | tests/proxy_unit_tests/test_proxy_server_spend.py | 41 | # }, |
| LOW | tests/proxy_unit_tests/test_proxy_server_spend.py | 61 | |
| 344 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | …src/app/(dashboard)/api-reference/APIReferenceView.tsx | 66 | print(response)`} |
| HIGH | …src/app/(dashboard)/api-reference/APIReferenceView.tsx | 100 | print(response)`} |
| HIGH | …src/app/(dashboard)/api-reference/APIReferenceView.tsx | 131 | print(response)`} |
| HIGH | ui/litellm-dashboard/src/components/networking.tsx | 8615 | // if 404 - return None |
| HIGH | …/litellm-dashboard/src/components/public_model_hub.tsx | 1816 | print(response.model_dump(mode='json', exclude_none=True))`} |
| HIGH | …/litellm-dashboard/src/components/public_model_hub.tsx | 1840 | print(response.model_dump(mode='json', exclude_none=True))`; |
| HIGH | …/litellm-dashboard/src/components/public_model_hub.tsx | 1959 | print(f"Available tools: {[tool.name for tool in tools]}") |
| HIGH | …/litellm-dashboard/src/components/public_model_hub.tsx | 1966 | print(f"Response: {response}") |
| HIGH | …/litellm-dashboard/src/components/public_model_hub.tsx | 1999 | print(f"Available tools: {[tool.name for tool in tools]}") |
| HIGH | …/litellm-dashboard/src/components/public_model_hub.tsx | 2006 | print(f"Response: {response}") |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 254 | print(f"Image saved to {image_path}") |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 259 | print("Could not find image URL in response.") |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 260 | print("Full response:", json_response) |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 262 | print(f"An error occurred: {e}") |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 263 | print("Full response:", json_response) |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 339 | print(f"Image saved to {image_filename}") |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 344 | print("No image generated. Model response:") |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 345 | print("\\n".join(text_response)) |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 347 | print("No image data found in response.") |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 348 | print("Full response for debugging:") |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 349 | print(response) |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 423 | print(f"Image saved to {image_filename}") |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 428 | print("No image generated. Model response:") |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 429 | print("\\n".join(text_response)) |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 431 | print("No image data found in response.") |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 432 | print("Full response for debugging:") |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 433 | print(response) |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 506 | print(f"Image saved to {image_filename}") |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 511 | print("No image generated. Model response:") |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 512 | print("\\n".join(text_response)) |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 514 | print("No image data found in response.") |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 515 | print("Full response for debugging:") |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 516 | print(response) |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 132 | print(response) |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 192 | print(response.output_text) |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 528 | print(response.data[0].embedding) |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 542 | print(response.text) |
| HIGH | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 557 | print(f"Audio saved to {output_filename}") |
| HIGH | …/litellm-dashboard/src/components/budgets/constants.ts | 42 | print(completion.choices[0].message)`; |
| HIGH | …ents/prompts/prompt_editor_view/PromptCodeSnippets.tsx | 116 | print(response)`; |
| HIGH | …ents/prompts/prompt_editor_view/PromptCodeSnippets.tsx | 130 | print(response)`; |
| HIGH | …ents/prompts/prompt_editor_view/PromptCodeSnippets.tsx | 144 | print(response)`; |
| HIGH | …d/src/components/routing_groups/RoutingGroupsTable.tsx | 64 | print(response)`; |
| HIGH | …tellm-dashboard/src/components/AIHub/ModelHubTable.tsx | 722 | print(response.choices[0].message.content)`} |
| HIGH | …tellm-dashboard/src/components/AIHub/ModelHubTable.tsx | 1062 | print(f"Available tools: {[tool.name for tool in tools]}") |
| HIGH | …tellm-dashboard/src/components/AIHub/ModelHubTable.tsx | 1069 | print(f"Response: {response}") |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | tests/audio_tests/test_whisper.py | 285 | mock_azure_client.audio.transcriptions.with_raw_response.create.assert_called_once() |
| CRITICAL | …xy/guardrails/guardrail_hooks/test_panw_prisma_airs.py | 2188 | sent_payload = mock_client.client.post.call_args.kwargs.get( |
| CRITICAL | …xy/guardrails/guardrail_hooks/test_panw_prisma_airs.py | 2223 | sent_payload = mock_client.client.post.call_args.kwargs.get( |
| CRITICAL | …sts/test_litellm/proxy/memory/test_memory_endpoints.py | 793 | self.prisma.db.litellm_teamtable.teams.append( |
| CRITICAL | …sts/test_litellm/proxy/memory/test_memory_endpoints.py | 818 | self.prisma.db.litellm_teamtable.teams.append( |
| CRITICAL | …sts/test_litellm/proxy/memory/test_memory_endpoints.py | 838 | self.prisma.db.litellm_teamtable.teams.append( |
| CRITICAL | …llm/proxy/openai_files_endpoint/test_files_endpoint.py | 639 | print(f"Content: {gemini_route.calls.last.request.content.decode()}") |
| CRITICAL | …llm/proxy/openai_files_endpoint/test_files_endpoint.py | 640 | print(f"Response: {gemini_route.calls.last.response.content.decode()}") |
| CRITICAL | …llm/proxy/openai_files_endpoint/test_files_endpoint.py | 642 | assert "test-file-id" in gemini_route.calls.last.request.content.decode() |
| CRITICAL | …gement_endpoints/test_workflow_management_endpoints.py | 167 | self._prisma.db.litellm_workflowrun.create.assert_awaited_once() |
| CRITICAL | …gement_endpoints/test_workflow_management_endpoints.py | 270 | self._prisma.db.litellm_workflowrun.update.assert_awaited_once() |
| CRITICAL | …gement_endpoints/test_workflow_management_endpoints.py | 599 | self._prisma.db.litellm_workflowrun.update.assert_not_awaited() |
| CRITICAL | tests/test_litellm/proxy/client/test_models.py | 349 | assert "not found" in exc_info.value.orig_exception.response.text.lower() |
| CRITICAL | tests/test_litellm/proxy/client/test_models.py | 720 | assert "not found" in exc_info.value.orig_exception.response.text.lower() |
| CRITICAL | …st_litellm/llms/base_llm/test_base_managed_resource.py | 108 | resource.prisma_client.db.litellm_test_resource_table.find_many.assert_not_awaited() |
| CRITICAL | tests/test_litellm/caching/test_azure_blob_cache.py | 95 | from azure.core.exceptions import ResourceNotFoundError |
| CRITICAL | tests/test_litellm/caching/test_azure_blob_cache.py | 172 | from azure.core.exceptions import ResourceNotFoundError |
| CRITICAL | litellm/proxy/hooks/azure_content_safety.py | 31 | from azure.core.exceptions import HttpResponseError |
| CRITICAL | litellm/caching/azure_blob_cache.py | 23 | from azure.core.exceptions import ResourceExistsError |
| CRITICAL | litellm/caching/azure_blob_cache.py | 63 | from azure.core.exceptions import ResourceNotFoundError |
| CRITICAL | litellm/caching/azure_blob_cache.py | 80 | from azure.core.exceptions import ResourceNotFoundError |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …lm-dashboard/tests/CreateKeyPage.expiredToken.test.tsx | 249 | user_email: "user@example.com", |
| LOW | …lm-dashboard/tests/CreateKeyPage.expiredToken.test.tsx | 280 | user_email: "user@example.com", |
| LOW | ui/litellm-dashboard/tests/setupTests.ts | 144 | userEmail: "user@example.com", |
| LOW | …hboard/src/app/(dashboard)/hooks/useAuthorized.test.ts | 109 | user_email: "user@example.com", |
| LOW | …hboard/src/app/(dashboard)/hooks/useAuthorized.test.ts | 130 | expect(result.current.userEmail).toBe("user@example.com"); |
| LOW | …hboard/src/app/(dashboard)/hooks/useAuthorized.test.ts | 176 | user_email: "user@example.com", |
| LOW | …hboard/src/app/(dashboard)/hooks/useAuthorized.test.ts | 197 | expect(result.current.userEmail).toBe("user@example.com"); |
| LOW | …hboard/src/app/(dashboard)/hooks/useAuthorized.test.ts | 235 | user_email: "user@example.com", |
| LOW | …shboard/src/app/onboarding/OnboardingFormBody.test.tsx | 41 | render(<OnboardingFormBody {...defaultProps} userEmail="user@example.com" />); |
| LOW | …shboard/src/app/onboarding/OnboardingFormBody.test.tsx | 43 | expect(screen.getByLabelText("Email Address")).toHaveValue("user@example.com"); |
| LOW | ui/litellm-dashboard/src/utils/jwtUtils.test.ts | 67 | user_email: "user@example.com", |
| LOW | …-dashboard/src/components/bulk_create_users_button.tsx | 86 | ["user@example.com", "internal_user", "team-id-1,team-id-2", "100", "30d", "gpt-3.5-turbo,gpt-4"], |
| LOW | ui/litellm-dashboard/src/components/SSOModals.test.tsx | 250 | user_email: "admin@example.com", |
| LOW | ui/litellm-dashboard/src/components/SSOModals.test.tsx | 295 | expect(emailInput.value).toBe("admin@example.com"); |
| LOW | ui/litellm-dashboard/src/components/SSOModals.test.tsx | 355 | fireEvent.change(emailInput, { target: { value: "admin@example.com" } }); |
| LOW | ui/litellm-dashboard/src/components/SSOModals.test.tsx | 391 | user_email: "admin@example.com", |
| LOW | …src/components/organization/organization_view.test.tsx | 79 | organization_alias: "Acme Corp", |
| LOW | …src/components/organization/organization_view.test.tsx | 83 | created_by: "admin@example.com", |
| LOW | …src/components/organization/organization_view.test.tsx | 119 | expect(findAllByText("Acme Corp")).toBeTruthy(); |
| LOW | …src/components/organization/organization_view.test.tsx | 140 | expect(screen.getByText("Acme Corp")).toBeInTheDocument(); |
| LOW | …ard/src/components/claude_code_plugins/helpers.test.ts | 273 | expect(isValidEmail("user@example.com")).toBe(true); |
| LOW | …rc/components/DeletedKeysPage/DeletedKeysPage.test.tsx | 66 | user_email: "user@example.com", |
| LOW | …tedKeysPage/DeletedKeysTable/DeletedKeysTable.test.tsx | 60 | user_email: "user@example.com", |
| LOW | …c/components/VirtualKeysPage/VirtualKeysTable.test.tsx | 20 | user_email: "user@example.com", |
| LOW | …c/components/VirtualKeysPage/VirtualKeysTable.test.tsx | 136 | user_email: "user@example.com", |
| LOW | …c/components/VirtualKeysPage/VirtualKeysTable.test.tsx | 138 | user_email: "user@example.com", |
| LOW | …c/components/VirtualKeysPage/VirtualKeysTable.test.tsx | 204 | "User Email": "user@example.com", |
| LOW | …c/components/VirtualKeysPage/VirtualKeysTable.test.tsx | 274 | expect(screen.getByText("user@example.com")).toBeInTheDocument(); |
| LOW | …-dashboard/src/components/team/EditMembership.test.tsx | 48 | const emailInput = screen.getByPlaceholderText("user@example.com"); |
| LOW | …tellm-dashboard/src/components/team/EditMembership.tsx | 179 | <TextInput placeholder="user@example.com" /> |
| LOW | …hboard/src/components/templates/KeyInfoHeader.test.tsx | 12 | createdBy: "admin@example.com", |
| LOW | …s/UsagePage/components/EntityUsage/TopKeyView.test.tsx | 41 | userEmail: "user@example.com", |
| LOW | tests/logging_callback_tests/test_alerting.py | 925 | user_id="test@test.com", |
| LOW | tests/logging_callback_tests/test_alerting.py | 926 | user_email="test@test.com", |
| LOW | tests/logging_callback_tests/test_alerting.py | 965 | user_id="test@test.com", |
| LOW | tests/logging_callback_tests/test_alerting.py | 966 | user_email="test@test.com", |
| LOW | tests/logging_callback_tests/test_alerting.py | 1000 | user_id="test@test.com", |
| LOW | tests/logging_callback_tests/test_alerting.py | 1001 | user_email="test@test.com", |
| LOW | …rise/proxy/guardrails/test_apply_guardrail_endpoint.py | 158 | assert "John Doe" not in response.response_text |
| LOW | tests/proxy_unit_tests/test_jwt_key_mapping.py | 46 | jwt_claims = {"email": "user@example.com", "sub": "123"} |
| LOW | tests/proxy_unit_tests/test_jwt_key_mapping.py | 226 | mock_mapping.jwt_claim_value = "user@example.com" |
| LOW | tests/proxy_unit_tests/test_jwt_key_mapping.py | 164 | auth_jwt_mock = AsyncMock(return_value={"email": "user@example.com", "sub": "123"}) |
| LOW | tests/proxy_unit_tests/test_jwt_key_mapping.py | 165 | oidc_userinfo_mock = AsyncMock(return_value={"email": "user@example.com"}) |
| LOW | tests/proxy_unit_tests/test_jwt_key_mapping.py | 177 | assert jwt_claims["email"] == "user@example.com" |
| LOW | tests/proxy_unit_tests/test_jwt_key_mapping.py | 198 | auth_jwt_mock = AsyncMock(return_value={"email": "user@example.com"}) |
| LOW | tests/proxy_unit_tests/test_jwt_key_mapping.py | 200 | return_value={"email": "user@example.com", "sub": "123"} |
| LOW | tests/proxy_unit_tests/test_jwt_key_mapping.py | 276 | claim_value="user@example.com", |
| LOW | tests/proxy_unit_tests/test_jwt_key_mapping.py | 311 | jwt_claim_value="user@example.com", |
| LOW | tests/proxy_unit_tests/test_jwt_key_mapping.py | 363 | jwt_claim_value="user@example.com", |
| LOW | tests/proxy_unit_tests/test_jwt_key_mapping.py | 443 | jwt_claim_value="user@example.com", |
| LOW | tests/proxy_unit_tests/test_user_api_key_auth.py | 822 | user_email="test@test.com", |
| LOW | tests/proxy_unit_tests/test_user_api_key_auth.py | 832 | user_email="test@test.com", |
| LOW | tests/proxy_unit_tests/test_user_api_key_auth.py | 854 | user_email="test@test.com", |
| LOW | tests/proxy_unit_tests/test_user_api_key_auth.py | 864 | user_email="test@test.com", |
| LOW | tests/guardrails_tests/test_presidio_pii.py | 300 | "pii_tokens": {"<PERSON>": "Jane Doe", "<PHONE_NUMBER>": "034453334"} |
| LOW | tests/guardrails_tests/test_bedrock_guardrails.py | 650 | "match": "user@example.com", |
| LOW | …s/test_litellm/proxy/guardrails/test_mcp_jwt_signer.py | 30 | user_email: str = "user@example.com", |
| LOW | …s/test_litellm/proxy/guardrails/test_mcp_jwt_signer.py | 203 | assert claims["email"] == "user@example.com" |
| LOW | …litellm/proxy/guardrails/guardrail_hooks/test_lasso.py | 1146 | "arguments": '"user@example.com"', |
| LOW | …litellm/proxy/guardrails/guardrail_hooks/test_lasso.py | 1153 | assert expanded[0]["content"]["input"] == {"arguments": '"user@example.com"'} |
| 80 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | terraform/litellm/gcp/network.tf | 35 | # min/max instances are required by the API now (you can't just set |
| MEDIUM | terraform/litellm/aws/iam.tf | 29 | # the first 7 components — robust to any combination of empty/non-empty |
| LOW | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 282 | # For this example, we'll just return a placeholder ID |
| LOW | …ard/src/components/playground/chat_ui/CodeSnippets.tsx | 449 | # For this example, we'll just return a placeholder ID |
| MEDIUM | …dashboard/src/components/prompts/variable_textarea.tsx | 63 | // "Tags Below" approach which is robust and functional. |
| MEDIUM | …proxy_behavior/management/test_f7_coverage_closeout.py | 289 | # cleanup contract uniform with the sibling test and is robust to |
| MEDIUM | …ts/proxy_behavior/management/test_key_budget_limits.py | 381 | # that the harness does not yet ship; pinning it would force a wider |
| MEDIUM | …s/proxy_behavior/management/test_team_member_update.py | 12 | # org may update members; else 403. (The harness forces premium_user, so the |
| MEDIUM | tests/llm_translation/test_bedrock_completion.py | 2838 | "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` f |
| MEDIUM | tests/llm_translation/test_bedrock_completion.py | 2838 | "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` f |
| MEDIUM | tests/llm_translation/test_anthropic_completion.py | 1169 | "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` f |
| MEDIUM | tests/llm_translation/test_anthropic_completion.py | 1169 | "thinking": "Alright, let's get started with resolving this issue about implementing `__len__` f |
| MEDIUM | …gement_endpoints/test_callback_management_endpoints.py | 122 | # Add string representations to different callback types to test comprehensive categorization |
| LOW | …/management_endpoints/test_key_management_endpoints.py | 4785 | # Patch attach_object_permission_to_dict to just return the dict unchanged |
| MEDIUM | tests/test_litellm/proxy/proxy_server/conftest.py | 22 | # — but it lets the harness work in editable-source layouts too. |
| MEDIUM | tests/test_litellm/proxy/proxy_server/_pin_check.py | 114 | # Skip the harness's own smoke tests — they don't count toward |
| MEDIUM | …re_utils/llm_cost_calc/test_tool_call_cost_tracking.py | 313 | # The unit tests in test_azure_assistant_cost_tracking.py provide comprehensive coverage |
| MEDIUM | tests/test_litellm/llms/volcengine/test_volcengine.py | 46 | """Test comprehensive thinking parameter handling scenarios""" |
| LOW | …st_litellm/llms/custom_httpx/test_aiohttp_transport.py | 130 | # It should handle the error gracefully and just return what was received |
| LOW | tests/local_testing/test_dual_cache.py | 51 | # this should only read in memory since we just set test_key |
| MEDIUM | scripts/benchmark_proxy_vs_provider.py | 559 | # 7. Combined options for comprehensive testing |
| MEDIUM | scripts/eval_compression.py | 952 | # Main harness |
| LOW | litellm/constants.py | 982 | # supports all together ai models, just pass in the model id e.g. completion(model="together_computer/replit_code_3b",.. |
| LOW | litellm/_lazy_imports.py | 239 | # Step 3: If we've already imported it, just return the cached version |
| LOW | litellm/_lazy_imports.py | 272 | # Most of them just call _generic_lazy_import with their specific import map. |
| LOW | litellm/_lazy_imports.py | 347 | # If we've already imported it, just return the cached version |
| LOW | litellm/utils.py | 7347 | # do nothing, just return messages |
| LOW | litellm/utils.py | 7414 | except Exception as e: # [NON-Blocking, if error occurs just return final_messages |
| LOW | litellm/proxy/proxy_server.py | 3998 | ## to pass a complete url, or set ssl=True, etc. just set it as `os.environ[REDIS_URL] = <your-redis |
| LOW | litellm/proxy/utils.py | 3013 | # Check to see if all of the necessary views exist and if they do, simply return |
| MEDIUM | litellm/proxy/common_utils/callback_utils.py | 702 | # prefix check is robust under salt-key rotation; a decrypt-based |
| MEDIUM | litellm/proxy/common_utils/key_rotation_manager.py | 181 | # Create regenerate request with grace period for seamless cutover |
| LOW | litellm/proxy/guardrails/guardrail_hooks/presidio.py | 473 | # No need to build numbered tokens — just use Presidio's |
| LOW | …guardrail_hooks/unified_guardrail/unified_guardrail.py | 387 | # If call type not supported, just pass through all chunks |
| LOW | litellm/proxy/openai_files_endpoints/common_utils.py | 614 | # Extract target_storage (simplified - just use form parameter) |
| LOW | litellm/proxy/openai_files_endpoints/common_utils.py | 617 | # Extract target_model_names (simplified - just use form parameter) |
| MEDIUM | …proxy/management_endpoints/key_management_endpoints.py | 4407 | # non-admin can't elevate via a key_type preset that the |
| MEDIUM | litellm/proxy/prompts/prompt_endpoints.py | 1247 | # Create PromptTemplate to leverage existing parameter extraction logic |
| MEDIUM | litellm/proxy/db/db_spend_update_writer.py | 1628 | # robust to future changes in the key format. |
| LOW | litellm/proxy/client/cli/interface.py | 23 | # If terminal is too small, just add some newlines to push content up |
| LOW | litellm/litellm_core_utils/safe_json_dumps.py | 19 | # Base-case: if it is a primitive, simply return it. |
| LOW | litellm/litellm_core_utils/streaming_handler.py | 550 | else: # function/tool calling chunk - when content is None. in this case we just return the original ch |
| LOW | litellm/router_utils/common_utils.py | 116 | # rather than a list - nothing to filter, just pass through |
| LOW | litellm/llms/github_copilot/chat/transformation.py | 60 | # No conversion needed - just return messages as-is |
| LOW | litellm/llms/deepinfra/rerank/transformation.py | 239 | # If parsing fails, just use the original error_message |
| LOW | litellm/llms/searxng/search/transformation.py | 160 | # For simplicity, we'll just use page 1 and let SearXNG return its default number of results |
| LOW | litellm/llms/bedrock/chat/converse_transformation.py | 528 | ): # we can't infer the model from the arn, so just add all params |
| LOW | litellm/llms/anthropic/chat/handler.py | 976 | # These are automatically handled by Anthropic API, we just pass them through |
| LOW | litellm/llms/openai/responses/transformation.py | 207 | # For other dict items, just pass through |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/old_proxy_tests/tests/load_test_embedding.py | 68 | # Number of concurrent calls (you can adjust this) |
| MEDIUM | …sts/old_proxy_tests/tests/load_test_embedding_proxy.py | 68 | # Number of concurrent calls (you can adjust this) |
| MEDIUM | tests/llm_translation/test_openai.py | 853 | "text": '\nYou are an interactive CLI tool that helps users with software engineering tasks. Use |
| MEDIUM | …rdrail_hooks/test_response_rejection_guardrail_code.py | 38 | inputs={"texts": ["Here is how you can do that: step 1, step 2."]}, |
| MEDIUM | …rdrail_hooks/test_response_rejection_guardrail_code.py | 42 | assert result["texts"] == ["Here is how you can do that: step 1, step 2."] |
| MEDIUM | tests/local_testing/test_azure_content_safety.py | 227 | mock_response="I'm unable to help with you with hate speech", |
| MEDIUM | tests/local_testing/test_azure_content_safety.py | 305 | mock_response="I'm unable to help with you with hate speech", |
| MEDIUM | tests/local_testing/test_basic_python_version.py | 40 | # Assertion to satisfy the test, you can add other checks as needed |
| MEDIUM | cookbook/litellm_router/load_test_proxy.py | 113 | # Number of concurrent calls (you can adjust this) |
| MEDIUM | cookbook/litellm_router/load_test_queuing.py | 135 | # Number of concurrent calls (you can adjust this) |
| MEDIUM | cookbook/litellm_router/load_test_router.py | 108 | # Number of concurrent calls (you can adjust this) |
| MEDIUM | litellm/proxy/proxy_server.py | 14880 | Note: This is a mock endpoint primarily meant for demonstration purposes, and does not actually provide or change an |
| MEDIUM | litellm/proxy/utils.py | 795 | # This is a basic implementation - can be enhanced based on specific guardrail formats |
| MEDIUM | …guardrail_hooks/custom_code/response_rejection_code.py | 19 | "i'm unable to help", |
| MEDIUM | …guardrail_hooks/custom_code/response_rejection_code.py | 48 | "i'm unable to help", |
| LOW | litellm/integrations/SlackAlerting/slack_alerting.py | 1726 | # Also, don't forget to update the report_sent time after sending the report! |
| LOW | litellm/integrations/SlackAlerting/slack_alerting.py | 1726 | # Also, don't forget to update the report_sent time after sending the report! |
| LOW | litellm/llms/anthropic/chat/transformation.py | 645 | else: # use anthropic defaults and make sure to send the disable_parallel_tool_use flag |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | ui/litellm-dashboard/e2e_tests/run_e2e.sh | 10 | # Usage: |
| LOW | tests/code_coverage_tests/recursive_detector.py | 116 | # Example usage |
| LOW | scripts/test_guardrails_register_endpoints.sh | 6 | # Usage: |
| LOW | scripts/create_team_key_and_submit_guardrail.sh | 6 | # Usage: |
| LOW | scripts/test_agent_mcp_endpoints.sh | 6 | # Usage: |
| LOW | scripts/health_check/run_parallel_health_checks.sh | 6 | # Usage: |
| LOW | litellm/proxy/common_utils/load_config_utils.py | 176 | # # Example usage |
| LOW | litellm/litellm_core_utils/sensitive_data_masker.py | 180 | # Usage example: |
| LOW | litellm/router_utils/cooldown_cache.py | 190 | # Usage example: |
| LOW | litellm/router_utils/pattern_match_deployments.py | 260 | # Example usage: |
| LOW | litellm/llms/vertex_ai/vertex_embeddings/types.py | 62 | # Example usage: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/test_litellm/test_router.py | 1551 | |
| MEDIUM | …/hooks/test_async_post_call_streaming_iterator_hook.py | 174 | |
| MEDIUM | …m/llms/sagemaker/test_sagemaker_nova_transformation.py | 340 | |
| MEDIUM | litellm/proxy/_experimental/post_call_rules.py | 4 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | litellm/proxy/hooks/litellm_skills/main.py | 665 | # Auto-generated code to execute skill |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/litellm_utils_tests/test_utils.py | 2068 | async def test_function(**kwargs): |
| LOW | tests/test_litellm/test_compression.py | 174 | "content": "# utils.py\n" + "def helper():\n pass\n" * 2000, |
| LOW | litellm/llms/custom_httpx/mock_transport.py | 85 | def handle_request(self, request: httpx.Request) -> httpx.Response: |