MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 3 callersMethod_pod_ips
(cls, records: Sequence[_AddressInfo])
litellm/router_utils/kubernetes_pod_discovery.py:406
↓ 3 callersFunction_pointfive_config
()
tests/unit/proxy/test_pointfive_dashboard_config.py:13
↓ 3 callersFunction_policy_generate_prisma
()
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:14280
↓ 3 callersFunction_policy_list_request
()
tests/unit/proxy/management_endpoints/policy_endpoints/test_endpoints.py:314
↓ 3 callersFunction_policy_pipelines
(data: Mapping[str, object])
litellm/proxy/utils.py:712
↓ 3 callersFunction_poll
(client: ManagementClient, attempt: Callable[[], T | None], failure: str)
tests/e2e/management/test_key_management_e2e.py:77
↓ 3 callersMethod_poll
( self, fetch: Callable[[], list[SpendLogRow]], min_rows: int, predicate: Rows
tests/e2e/proxy_client.py:1207
↓ 3 callersMethod_poll_for_access_token
Poll for an access token after user authentication. Args: device_code: The device code to use for polling. Retu
litellm/llms/github_copilot/authenticator.py:274
↓ 3 callersMethod_poll_for_result_sync
Poll BFL API until result is ready (sync version).
litellm/llms/black_forest_labs/image_generation/handler.py:306
↓ 3 callersMethod_poll_target
(self, job: ManagedObjectRow)
enterprise/litellm_enterprise/proxy/common_utils/check_responses_cost.py:366
↓ 3 callersFunction_poll_until_terminal
(client: BatchClient, batch_id: str, key: str)
tests/e2e/batches/test_batches_e2e.py:1529
↓ 3 callersMethod_poll_until_terminal
( run_id: str, client: AsyncHTTPHandler | None = None, poll_interval_seconds: float =
litellm/proxy/pass_through_endpoints/llm_provider_handlers/tinyfish_passthrough_logging_handler.py:265
↓ 3 callersFunction_pool
(router: litellm.Router, metadata: dict[str, object])
tests/unit/router_strategy/test_router_tag_routing.py:3459
↓ 3 callersMethod_pop_billing_tracing_detail
Build the billing tracing detail from the stashed usage counters, priced with the configured tier/price. ``guardrail_cost_in_spend=False`` kee
litellm/proxy/guardrails/guardrail_hooks/azure/prompt_shield.py:308
↓ 3 callersFunction_populated_failures
(samples: tuple, rig: Rig, api_provider: str)
tests/integration/observability/test_cache_hit_guardrail_metrics.py:266
↓ 3 callersMethod_positive_int
(value: object)
litellm/llms/anthropic/messages/adapters/transformation.py:1651
↓ 3 callersFunction_post
(client: httpx.Client, key: str, marker: str)
tests/integration/providers/test_rust_anthropic_safeguards_beta_chaos.py:45
↓ 3 callersFunction_post
(client: httpx.Client, key: str, path: str, body: Mapping[str, JsonValue], beta: str)
tests/integration/providers/test_vertex_anthropic_inline_tools_beta_wire.py:178
↓ 3 callersMethod_post
( self, monkeypatch: pytest.MonkeyPatch, path: str, api_key: str, content_type: str, body: bytes )
tests/unit/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py:8617
↓ 3 callersMethod_post_batch
POST /v1/batches with given team_metadata and body, return captured kwargs.
tests/unit/proxy/test_batch_expiry.py:91
↓ 3 callersMethod_post_batch_raw
POST /v1/batches and return the raw response (no status assertion).
tests/unit/proxy/test_batch_expiry.py:250
↓ 3 callersMethod_post_blocked_responses
(self, original_response)
tests/unit/proxy/response_api_endpoints/test_endpoints.py:5454
↓ 3 callersFunction_post_call
( logging_obj: Logging | None, messages: Sequence[AllMessageValues], request_data: GraphChatReques
litellm/llms/microsoft_365_copilot/chat/handler.py:312
↓ 3 callersFunction_post_call_guardrail
()
tests/unit/proxy/guardrails/guardrail_hooks/dynamoai/test_dynamoai.py:135
↓ 3 callersFunction_post_call_pipelines
(data: Mapping[str, object])
litellm/proxy/utils.py:982
↓ 3 callersFunction_post_file_raw
POST /v1/files and return the raw response (no status assertion).
tests/unit/proxy/openai_files_endpoint/test_files_endpoint.py:2133
↓ 3 callersFunction_post_file_with_team_metadata
POST /v1/files with given team_metadata, return captured expires_after.
tests/unit/proxy/openai_files_endpoint/test_files_endpoint.py:2026
↓ 3 callersFunction_post_saml_response
(proxy: Gateway, saml_response: str, ticket: str | None)
tests/integration/authorization/test_sso_blank_identity.py:301
↓ 3 callersFunction_post_update
(gateway: Gateway, team_id: str, body: Mapping[str, JsonValue])
tests/integration/management/test_team_metadata_validation.py:53
↓ 3 callersMethod_post_wav
( self, monkeypatch: pytest.MonkeyPatch, path: str, api_key: str, body: bytes = AZURE_SPEECH_WAV_BYTES
tests/unit/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py:8640
↓ 3 callersFunction_posted
(wire: Wire)
tests/integration/providers/test_responses_bridge_verbosity_wire.py:146
↓ 3 callersFunction_posted
(wire: Wire, nonce: str)
tests/integration/routing/test_include_fallback_errors_wire.py:167
↓ 3 callersFunction_postgres_is_ready
(cluster: PostgresCluster)
tests/integration/observability/test_guardrail_stream_scope_chaos.py:840
↓ 3 callersFunction_postgres_out_of_connections
prisma's shape for Postgres SQLSTATE 53300: a base ``DataError`` whose only hint is the connector message.
tests/unit/proxy/utils/prisma_and_spend/test_spend_functions.py:933
↓ 3 callersFunction_posts
(wire: Wire, marker: str)
tests/integration/authorization/test_tool_search_replay_guardrails.py:148
↓ 3 callersFunction_posts
(wire: Wire, marker: str)
tests/integration/authorization/test_tool_search_replay_allowlist.py:54
↓ 3 callersFunction_posts
(seen: list[httpx.Request])
tests/unit/db_scripts/test_strip_vector_store_internal_metadata.py:60
↓ 3 callersFunction_pre_call_progress_config
(tmp_path: Path, identity: str, policy_url: str, *, store_prompts: bool)
tests/integration/observability/test_guardrail_effects.py:2892
↓ 3 callersFunction_pre_existing_user_ids
Return the user_ids that already had a user row before this request. Combines the caller-supplied ids that resolved to a user with the ids ``
litellm/proxy/management_endpoints/team_endpoints.py:3509
↓ 3 callersFunction_prefetch_oauth_creds_for_user
Fetch all OAuth2 credentials for the user in one DB query. Returns a dict keyed by server_id to avoid N+1 queries in asyncio.gather loops.
litellm/proxy/mcp_server/operations.py:970
↓ 3 callersFunction_prefix_covered
(code: str, prefixes: tuple[str, ...])
tests/unit/test_ruff_strict_gate.py:68
↓ 3 callersFunction_prepare_client_secret_session
( req: RealtimeClientSecretRequest, user_api_key_dict: UserAPIKeyAuth, llm_model_list: list | None
litellm/proxy/realtime_endpoints/endpoints.py:200
↓ 3 callersMethod_prepare_completion_params
Prepare common parameters for completion. Azure Foundry Agents API uses Bearer token authentication: - Authorization: Bearer <token>
litellm/llms/azure_ai/agents/handler.py:259
↓ 3 callersMethod_prepare_fake_stream_request
Handles preparing a request when `fake_stream` is True.
litellm/llms/custom_httpx/llm_http_handler.py:5953
↓ 3 callersFunction_prepare_only_bridge_exchange
Drive exchange_token_with_server for a bridge oauth_delegate authorization_code request with the identity resolver stubbed to a given tagged resul
tests/unit/proxy/mcp_server/test_discoverable_endpoints.py:7513
↓ 3 callersMethod_prepare_outage_value_for_cache
Helper method to prepare outage value for Redis caching. Converts set objects to lists for JSON serialization.
litellm/integrations/SlackAlerting/slack_alerting.py:177
↓ 3 callersMethod_prepare_request
( self, model: str, api_base: str | None, extra_headers: dict | None,
litellm/llms/bedrock/rerank/handler.py:147
↓ 3 callersMethod_prepare_request
Prepare the request body, headers, and endpoint URL for the Bedrock Image Generation API Args: model (str): The model to
litellm/llms/bedrock/image_generation/image_handler.py:207
↓ 3 callersFunction_prepare_systemone_call
( *, model: str, state: DecisionsJSON | None, questions: SystemOneQuestions | None, images
litellm/systemone/main.py:26
↓ 3 callersFunction_prepare_vertex_auth_headers
Prepare authentication headers for Vertex AI pass-through requests. Args: request: FastAPI request object vertex_credentials
litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py:3025
↓ 3 callersFunction_prepare_window_spend_counter_increment
( counter_key: str, entity_type: str, entity_id: str, window_duration: str | None, window_
litellm/proxy/proxy_server.py:4286
↓ 3 callersMethod_prepend_system_prompt
Prepend ``source["system"]`` onto ``payload["messages"]``. Builds a NEW messages list rather than mutating ``payload["messages"]`` in
litellm/integrations/rubrik.py:741
↓ 3 callersFunction_present_count
(payloads: tuple[dict[str, JsonValue], ...], answered: tuple[tuple[str, str | None], ...])
tests/integration/observability/test_azure_storage_chaos.py:33
↓ 3 callersFunction_present_fields
(fields: tuple[tuple[str, object], ...])
litellm/rag/ingestion/vertex_ai_ingestion.py:32
↓ 3 callersFunction_preserve_redacted_plugin_keys
Restore real plugin_key values the client never sees. /config/field/info redacts every plugin_key to ``"***"``, so an admin editing a plugin
litellm/proxy/proxy_server.py:20736
↓ 3 callersFunction_presidio_callbacks_in
(cb_list: Iterable[object])
tests/unit/proxy/guardrails/test_guardrail_registry.py:865
↓ 3 callersFunction_presidio_db_guardrail
(pii_entities_config: dict[str, str])
tests/unit/proxy/guardrails/test_guardrail_registry.py:848
↓ 3 callersFunction_presigned
(status_code: int = 200)
tests/unit/integrations/pointfive/test_upload_client.py:18
↓ 3 callersFunction_preview
(raw: bytes, content_type: str = "", secrets: tuple[str, ...] = ())
litellm/proxy/mcp_server/mcp_debug.py:521
↓ 3 callersFunction_price_of
(candidate: Gateway, name: str)
tests/integration/authorization/test_alias_chain_budget_waiver.py:231
↓ 3 callersMethod_priced
(self, assembled: _AssembledRound)
litellm/responses/mcp/chat_stream_round_billing.py:219
↓ 3 callersFunction_priced_model
(scenario: Scenario)
tests/integration/spend/test_team_member_total_spend_reconciliation.py:48
↓ 3 callersFunction_priced_router
(**pricing: float)
tests/unit/llms/anthropic/messages/native/test_anthropic_messages_router.py:455
↓ 3 callersFunction_priced_server
(scenario: Scenario, peer: McpPeer, alias: str)
tests/integration/mcp/test_mcp_accounting_guardrails.py:57
↓ 3 callersFunction_priced_spans
(langfuse: Recorder)
tests/integration/spend/test_background_response_billed_once.py:968
↓ 3 callersFunction_pricing_basis
The basis recorded on a request, defaulting to standard rates when absent. Rows written before this field shipped carry neither key, and there is
litellm/proxy/spend_tracking/savings.py:191
↓ 3 callersFunction_pricing_provider_deployment
(model_id: str, model_info: dict)
tests/unit/test_router_model_cost_isolation.py:4128
↓ 3 callersFunction_primary_and_backup_router
(**settings: object)
tests/unit/test_router/test_router.py:3600
↓ 3 callersFunction_primary_cooldown_decisions_on_repeated_503s
(router: Router)
tests/unit/router_utils/test_cooldown_handlers.py:661
↓ 3 callersMethod_print_llm_call_debugging_log
Internal debugging helper function Prints the RAW curl command sent from LiteLLM
litellm/litellm_core_utils/litellm_logging.py:1819
↓ 3 callersFunction_priority_auto_router_deployment
()
tests/unit/router_strategy/test_router_routing_groups.py:885
↓ 3 callersFunction_prisma_client_or_500
()
litellm/proxy/management_endpoints/model_access_group_management_endpoints.py:242
↓ 3 callersFunction_prisma_skill_to_litellm
Convert a Prisma skill record to LiteLLM_SkillsTable. Handles Base64 decoding of file_content field — model_dump() converts Base64 fields to
litellm/llms/litellm_proxy/skills/handler.py:38
↓ 3 callersFunction_prisma_with_key_row
(key_row: LiteLLM_VerificationToken)
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:5888
↓ 3 callersMethod_prisma_with_live_team
(cls, existing_row)
tests/unit/proxy/management_endpoints/test_model_management_endpoints.py:11195
↓ 3 callersFunction_prisma_with_no_creator_rows
()
tests/unit/proxy/common_utils/test_check_responses_cost.py:133
↓ 3 callersFunction_probe
(pinned: Pinned, database_url: str, digest: str)
tests/integration/spend/test_daily_activity_key_metadata_query_timeout.py:413
↓ 3 callersFunction_probe
(client: SpendClient, params: BaseModel)
tests/e2e/quota_management/spend_tracking/test_team_daily_activity_e2e.py:79
↓ 3 callersMethod_probe_target_wrapper
The Prisma wrapper a `SELECT 1` health probe actually reaches. `health_check()` issues `query_raw`, which `RoutingPrismaWrapper` sends
litellm/proxy/utils.py:8062
↓ 3 callersFunction_process
(json_response: dict[str, object])
tests/unit/llms/vertex_ai/image_generation/test_image_generation_handler.py:8
↓ 3 callersFunction_process_decisions
( request: Request, fastapi_response: Response, user_api_key_dict: UserAPIKeyAuth, body_adapte
litellm/proxy/decisions_endpoints/endpoints.py:137
↓ 3 callersMethod_process_document_item
Process and sanitize document/file items.
litellm/proxy/guardrails/guardrail_hooks/prompt_security/prompt_security.py:647
↓ 3 callersMethod_process_dynamoai_guardrails_response
Process the response from the DynamoAI Guardrails API Args: response: The response from the API with 'finalAction' and '
litellm/proxy/guardrails/guardrail_hooks/dynamoai/dynamoai.py:178
↓ 3 callersMethod_process_embedding_response
( self, embeddings: object, model_response: EmbeddingResponse, model: str,
litellm/llms/huggingface/embedding/handler.py:208
↓ 3 callersMethod_process_input_element
Process a single input element for multimodal embedding requests. Detects if the input is a GCS URI, base64 encoded image, or plain t
litellm/llms/vertex_ai/multimodal_embeddings/transformation.py:84
↓ 3 callersMethod_process_lasso_response
Process the Lasso API response and handle violations according to action types. This method implements the action-based blocking log
litellm/proxy/guardrails/guardrail_hooks/lasso/lasso.py:845
↓ 3 callersMethod_process_llm_response_check
Shared logic for processing LLM response checks
litellm/proxy/guardrails/guardrail_hooks/noma/noma.py:240
↓ 3 callersFunction_process_ollama_embedding_response
( response_json: OllamaEmbeddingResponse, prompts: list[str], model: str, model_response: Embe
litellm/llms/ollama/completion/handler.py:58
↓ 3 callersFunction_process_record
(record: logging.LogRecord, *, base64_limit: int, text_limit: int, redact: bool)
litellm/_logging.py:463
↓ 3 callersFunction_process_request
Common request processing logic.
litellm/proxy/container_endpoints/handler_factory.py:369
↓ 3 callersMethod_process_sse_stream
Process SSE stream and yield OpenAI-compatible streaming chunks.
litellm/llms/azure_ai/agents/handler.py:621
↓ 3 callersFunction_process_team_members
Process and add new team members. ``tx`` is the caller's open transaction, when it has one, so the member writes run on the connection it alr
litellm/proxy/management_endpoints/team_endpoints.py:3256
↓ 3 callersFunction_processor_for
Pick a Simple or Batch span processor for ``exporter``. When ``use_simple`` is unset, default to Simple for console and in-memory exporters (
litellm/integrations/otel/plumbing/providers.py:241
↓ 3 callersFunction_project_key
(scenario: Scenario, group: str, itpm_limit: int)
tests/integration/providers/test_chat_template_tool_count_wire.py:405
↓ 3 callersFunction_project_limited_embedding_call
( limit_field: str, backends: tuple[str, ...], kind: str = "image" )
tests/unit/proxy/hooks/test_tpm_concurrent.py:3837
↓ 3 callersFunction_project_max_budget_check
Check if the project is over its max budget. Raises: BudgetExceededError if the project is over its max budget. Triggers a b
litellm/proxy/auth/auth_checks.py:7393
↓ 3 callersFunction_project_scoped_token
()
tests/unit/proxy/test_budget_reservation.py:589
↓ 3 callersFunction_project_soft_budget_check
Triggers a budget alert if the project is over its soft budget. Mirrors _team_soft_budget_check() pattern.
litellm/proxy/auth/auth_checks.py:7451
↓ 3 callersMethod_promote_message_stop_usage
Promote cache usage fields onto message_delta from message_stop (and, when stop lacks them, from message_start). Ensures the final u
litellm/llms/bedrock/messages/invoke_transformations/anthropic_claude_transformation.py:1005
↓ 3 callersFunction_prompt
(marker: str)
tests/integration/providers/test_responses_bridge_tool_search_chaos.py:80
← previousnext →24,401–24,500 of 202,479, ranked by callers