MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 4 callersFunction_get_field
Read a field from either a dict/TypedDict or an attribute-based object.
litellm/responses/file_search/emulated_handler.py:186
↓ 4 callersMethod_get_finish_reason
Extract finish reason from first choice in the response. Returns "unknown" if choices are not present or finish_reason is not found.
litellm/integrations/newrelic/newrelic.py:399
↓ 4 callersFunction_get_forwarded_auth_from_scope
Return the upstream-bound ``Authorization`` header value, or None. Only returns the ``Authorization`` header when ``x-litellm-api-key`` is
litellm/proxy/mcp_server/server.py:2141
↓ 4 callersMethod_get_galileo_input_output_content
Mirror Langfuse _get_langfuse_input_output_content for Galileo ingest. Returns (input_text, output_text, messages_for_span).
litellm/integrations/galileo.py:536
↓ 4 callersMethod_get_gcs_uri_prefix_from_file
Gets the gcs uri prefix from the input file id Example: input_file_id: "gs://litellm-testing-bucket/vtx_batch.jsonl"
litellm/llms/vertex_ai/batches/transformation.py:357
↓ 4 callersFunction_get_health_readiness_details
Detailed health payload for authenticated diagnostics.
litellm/proxy/health_endpoints/_health_endpoints.py:2160
↓ 4 callersFunction_get_hidden_params_storage
(obj: object)
litellm/litellm_core_utils/hidden_params.py:96
↓ 4 callersMethod_get_ingest_request
(self)
litellm/integrations/galileo.py:361
↓ 4 callersMethod_get_key_object_permission
Get key object_permission - already loaded by get_key_object() in main auth flow. Note: object_permission is automatically populated
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:2905
↓ 4 callersMethod_get_langfuse_otel_host
Returns the Langfuse OTEL host based on environment variables. Returned in the following order of precedence: 1. LANGFUSE_OT
litellm/integrations/langfuse/langfuse_otel.py:390
↓ 4 callersFunction_get_litellm_skills_handler
Lazy initialization of LiteLLM skills handler to avoid import overhead.
litellm/skills/main.py:60
↓ 4 callersMethod_get_lock
(counter_key: str)
litellm/proxy/db/spend_counter_reseed.py:98
↓ 4 callersMethod_get_marker_session_affinity_ttl
TTL from the session-affinity marker the Router stamps at pre-routing time when an auto-router routed this request with session_affinity enabl
litellm/router_utils/pre_call_checks/deployment_affinity_check.py:333
↓ 4 callersMethod_get_masked_headers
Internal debugging helper function Masks the headers of the request sent from LiteLLM
litellm/litellm_core_utils/litellm_logging.py:1884
↓ 4 callersMethod_get_mcp_tools_from_manager
Get available tools from the MCP server manager. Args: user_api_key_auth: User authentication info for access control
litellm/responses/mcp/litellm_proxy_mcp_handler.py:286
↓ 4 callersFunction_get_min_token_count_for_deployments
Returns the lowest minimum cacheable prefix across a model group. This gate only decides whether the cache lookup is worth doing. It cannot
litellm/router_utils/pre_call_checks/prompt_caching_deployment_check.py:211
↓ 4 callersMethod_get_model_capability
Read boolean capability ``key`` from the model map, or None when no entry declares it.
litellm/llms/anthropic/common_utils.py:1051
↓ 4 callersMethod_get_model_cost_capability_exact
(self, model: str, capability: str)
litellm/llms/fireworks_ai/chat/transformation.py:604
↓ 4 callersMethod_get_model_info
(model: str)
litellm/llms/vertex_ai/text_to_speech/transformation.py:1021
↓ 4 callersMethod_get_model_names
Extract request and response model names, preferring StandardLoggingPayload for the request model. Returns: Tupl
litellm/integrations/newrelic/newrelic.py:349
↓ 4 callersFunction_get_model_names_for_budget_checks
( model: str | list[str] | None, )
litellm/proxy/auth/user_api_key_auth.py:393
↓ 4 callersFunction_get_models
(payload: object)
tests/unit/llms/xai/test_xai_common_utils.py:20
↓ 4 callersMethod_get_or_create_transport
Get existing transport or create a new one if needed.
litellm/llms/custom_httpx/aiohttp_handler.py:57
↓ 4 callersFunction_get_owner
(module_path: str, owner_name: str)
tests/unit/test_private_usage_aliases.py:5209
↓ 4 callersMethod_get_presidio_analyze_request_payload
Construct the payload for the Presidio analyze request API Ref: https://microsoft.github.io/presidio/api-docs/api-docs.html#tag/Anal
litellm/proxy/guardrails/guardrail_hooks/presidio.py:438
↓ 4 callersFunction_get_prisma_client
()
litellm/proxy/container_endpoints/ownership.py:133
↓ 4 callersMethod_get_prisma_client
()
litellm/llms/litellm_proxy/skills/handler.py:59
↓ 4 callersMethod_get_prometheus_logger
Find PrometheusLogger from litellm.callbacks, if registered.
enterprise/litellm_enterprise/proxy/hooks/managed_files.py:765
↓ 4 callersFunction_get_provider_for_cost_calc
( model: str | None, custom_llm_provider: str | None = None, )
litellm/cost_calculator.py:942
↓ 4 callersFunction_get_redis_kwargs
()
litellm/_redis.py:74
↓ 4 callersMethod_get_reload_options
Build uvicorn reload kwargs so --reload also reacts to .env and YAML edits.
litellm/proxy/proxy_cli.py:510
↓ 4 callersFunction_get_request_duration_ms
Compute request duration in milliseconds from start and end times.
litellm/proxy/spend_tracking/spend_tracking_utils.py:1094
↓ 4 callersMethod_get_request_headers
Get headers for CyberArk API requests including authentication. Returns: dict: Headers with authentication token
litellm/secret_managers/cyberark_secret_manager.py:116
↓ 4 callersFunction_get_resources_from_access_groups
Deduplicated ``resource_field`` values across the resolved access groups. With ``strict_errors`` a missing or unreadable group raises instead of b
litellm/proxy/auth/auth_checks.py:4762
↓ 4 callersMethod_get_sanitized_content
Get the sanitized content from a Model Armor response, if available. Looks for sanitized text in deidentifyResult, and falls back to
litellm/proxy/guardrails/guardrail_hooks/model_armor/model_armor.py:466
↓ 4 callersMethod_get_secret_name
(secret_name: str)
litellm/proxy/hooks/key_management_event_hooks.py:412
↓ 4 callersMethod_get_session_id_from_request_kwargs
(request_kwargs: Mapping[str, object])
litellm/router_utils/pre_call_checks/deployment_affinity_check.py:325
↓ 4 callersFunction_get_status_fields
Determine status fields based on request status and guardrail information. Args: status: Overall request status ("success" or "failu
litellm/litellm_core_utils/litellm_logging.py:7668
↓ 4 callersMethod_get_sync_http_client
()
litellm/llms/openai/common_utils.py:474
↓ 4 callersFunction_get_team_db_check
( team_id: str, prisma_client: PrismaClient, team_id_upsert: bool | None = None, *, use_writer: bool = Fal
litellm/proxy/auth/auth_checks.py:3587
↓ 4 callersFunction_get_team_member_user_ids_from_team
Get the IDs of the members from a team. Use one source of truth for the member IDs: team.members_with_roles
litellm/proxy/management_endpoints/scim/scim_v2.py:1318
↓ 4 callersMethod_get_tracker_actor_id
Normalize the actor string into a short, stable id for Tracker API payloads.
litellm/proxy/guardrails/guardrail_hooks/ovalix/ovalix.py:213
↓ 4 callersMethod_get_ttl
Get the TTL (time-to-live) value for cache entries. Args: **kwargs: Keyword arguments that may contain a custom TTL
litellm/caching/redis_semantic_cache.py:253
↓ 4 callersFunction_get_user_api_key_auth_from_kwargs
(kwargs: Mapping[str, object])
litellm/skills/main.py:39
↓ 4 callersMethod_get_user_api_key_auth_from_kwargs
(kwargs: Mapping[str, object] | None)
litellm/integrations/websearch_interception/handler.py:1758
↓ 4 callersFunction_get_user_in_team
(team_table: LiteLLM_TeamTableCachedObj, user_id: str | None)
litellm/proxy/management_endpoints/key_management_endpoints.py:598
↓ 4 callersFunction_get_user_info_for_proxy_admin
Admin UI Endpoint - Returns All Teams and Keys when Proxy Admin is querying - get all teams in LiteLLM_TeamTable - get all keys in LiteL
litellm/proxy/management_endpoints/internal_user_endpoints.py:1272
↓ 4 callersFunction_get_user_oauth_extra_headers
For OAuth2 servers, look up the user's stored access token and return it as extra_headers {"Authorization": "Bearer <token>"} so that
litellm/proxy/mcp_server/rest_endpoints.py:490
↓ 4 callersFunction_get_user_team_ids
Return the list of team_ids the caller belongs to (empty list if none).
litellm/proxy/guardrails/guardrail_endpoints.py:880
↓ 4 callersFunction_get_vantage_settings
Retrieve Vantage settings from the database with decrypted API key.
litellm/proxy/spend_tracking/vantage_endpoints.py:100
↓ 4 callersMethod_get_voice_language
Get the language for the voice element's xml:lang attribute Args: voice_name: The Azure voice name (e.g., "en-US-AriaNeu
litellm/llms/azure/text_to_speech/transformation.py:197
↓ 4 callersFunction_github_response
(status: int = 200, payload: object = SAMPLE_RELEASE)
tests/unit/proxy/ui_crud_endpoints/test_latest_release_endpoints.py:75
↓ 4 callersFunction_google_ai_studio
Rejects a generateContent call whose own contents or referenced cache carry a signature AI Studio did not mint, the way the live backend answered
tests/unit/llms/vertex_ai/gemini/test_rejected_thought_signature_retry.py:270
↓ 4 callersFunction_google_calls
(requests: Sequence[Request], stream: bool, continued: tuple[bool, ...])
tests/integration/providers/test_gemini_long_decode_wire.py:667
↓ 4 callersFunction_grant
(search_tools: list[str] | None, object_permission_id: str = "op")
tests/unit/proxy/auth/test_search_tool_deny_by_default.py:45
↓ 4 callersFunction_granted_user
(skills: list[str])
tests/unit/proxy/anthropic_endpoints/test_claude_code_marketplace.py:338
↓ 4 callersFunction_group
(scenario: Scenario, wire: Wire, skus: Sequence[_Sku])
tests/integration/routing/test_batch_mode_deployments_wire.py:193
↓ 4 callersFunction_group
( group_id: str, models: tuple[str, ...] = (), mcp_servers: tuple[str, ...] = (), agents: tupl
tests/unit/proxy/agent_endpoints/auth/test_agent_access_groups.py:22
↓ 4 callersMethod_group_batches_by_credentials
Groups queue objects by credentials using a proper key structure
litellm/integrations/langsmith.py:454
↓ 4 callersFunction_group_rows
(candidate: Gateway, name: str)
tests/integration/authorization/test_alias_chain_budget_waiver.py:219
↓ 4 callersFunction_group_stream_texts
Group the per-frame texts by key in first-seen order; ``groups`` keeps only the groups with any text.
litellm/llms/bedrock/passthrough/guardrail_translation/handler.py:684
↓ 4 callersFunction_groups
(db, key_aliases: list[str], scope: tuple = GRANT_ALL)
tests/integration/spend/test_cache_activity.py:106
↓ 4 callersFunction_groups_charged_by_the_callback
The groups the callback hands the spend counters for one request. The callback resolves ``proxy_logging_obj`` and the router by importing them of
tests/unit/proxy/hooks/test_proxy_track_cost_callback.py:3231
↓ 4 callersMethod_guardrail
(self)
tests/unit/llms/anthropic/chat/guardrail_translation/test_anthropic_guardrail_handler.py:2501
↓ 4 callersFunction_guardrail_on
( transport: httpx.MockTransport, num_retries: int | None, fail_on_error: bool = True )
tests/unit/proxy/guardrails/guardrail_hooks/test_generic_guardrail_api.py:2504
↓ 4 callersFunction_handle
(url_route: str, payload: object)
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_vertex_passthrough_logging_handler.py:26
↓ 4 callersMethod_handle
(self, request: Request)
litellm/harness/endpoint.py:619
↓ 4 callersFunction_handle_content_block_delta
(data: dict, content_blocks: dict[int, dict])
litellm/llms/anthropic/messages/native/agentic_streaming_iterator.py:132
↓ 4 callersFunction_handle_content_block_start
(data: dict, content_blocks: dict[int, dict])
litellm/llms/anthropic/messages/native/agentic_streaming_iterator.py:105
↓ 4 callersMethod_handle_empty_content_response
Handle Mistral-specific behavior where empty string content should be converted to None. Mistral API sometimes returns empty string
litellm/llms/mistral/chat/transformation.py:881
↓ 4 callersMethod_handle_event_stream_allm_passthrough_route
( self, body_bytes: bytes, proxy_logging_obj: "ProxyLogging", user_api_key_dic
litellm/proxy/common_request_processing.py:4344
↓ 4 callersMethod_handle_name_in_message
Mistral API only supports `name` in tool messages If role == tool, then we keep `name` if it's not an empty string Otherwise
litellm/llms/mistral/chat/transformation.py:788
↓ 4 callersMethod_handle_stream_fallback_error
Common error handling for both __next__ and __anext__. Maps the raw exception to an OpenAI-compatible type, then decides whe
litellm/litellm_core_utils/streaming_handler.py:2858
↓ 4 callersMethod_handle_verdict_background
Handle aggregatedScanResult from Noma API in background - logging only, never blocks aggregatedScanResult=True means unsafe, False means safe
litellm/proxy/guardrails/guardrail_hooks/noma/noma.py:538
↓ 4 callersMethod_handler
(self)
tests/unit/proxy/guardrails/guardrail_hooks/unified_guardrails/test_anthropic_streaming_block.py:280
↓ 4 callersMethod_hardest_tier_models
The candidate pool the savings baseline is derived from. With built-in tiers this is the pool of the most severe tier this router con
litellm/router_strategy/complexity_router/complexity_router.py:1684
↓ 4 callersMethod_has_audio_transcription_guardrails
Return True when a guardrail is configured for the audio/VAD transcript path. Only ``realtime_input_transcription`` hooks disable ``server_va
litellm/litellm_core_utils/realtime_streaming.py:1629
↓ 4 callersFunction_has_model_span
(spans: tuple[Span, ...])
tests/integration/observability/test_otel_excluded_services_matrix.py:361
↓ 4 callersMethod_has_text_content
Check if response has any text content to process. Override this method to customize text content detection.
litellm/llms/openai/responses/guardrail_translation/handler.py:1828
↓ 4 callersMethod_hash_user_key
Hash user identifiers before storing them in cache keys. This avoids putting raw API keys / user identifiers into Redis keys (and th
litellm/router_utils/pre_call_checks/deployment_affinity_check.py:156
↓ 4 callersFunction_hdr
(resp: SseResponse, name: str)
tests/e2e/e2e_http.py:221
↓ 4 callersFunction_head_name
(node: ast.expr)
scripts/check_type_discipline.py:302
↓ 4 callersFunction_headers
(pending: _Request)
tests/integration/messages_endpoint/chat_bridge/test_chat_bridge_disconnect_wire.py:165
↓ 4 callersFunction_headers
(response: object)
tests/unit/test_router/core/test_gaps_l5600.py:57
↓ 4 callersFunction_headers_config
Config whose completed event carries a real ResponsesAPIResponse, so the logging copy performs a genuine model_dump/model_validate round trip.
tests/unit/responses/test_streaming_iterator.py:974
↓ 4 callersFunction_held
(release: threading.Event, held: SimpleQueue[str], then: Continuation = _continues)
tests/integration/providers/test_gemini_long_decode_chaos.py:123
↓ 4 callersFunction_held_keys
()
tests/unit/test_router/test_io_token_rate_limits.py:1867
↓ 4 callersFunction_hidden_param_string
(hidden_params: Mapping[str, object], key: str)
litellm/proxy/batches_endpoints/endpoints.py:98
↓ 4 callersFunction_history
(marker: str, calls: Sequence[Mapping[str, JsonValue]], *results: JsonValue)
tests/integration/providers/test_chat_completions_tool_search_history_wire.py:59
↓ 4 callersFunction_http_window
(owned: OwnedProxy, offset: int, access_line: str)
tests/integration/authorization/test_websocket_rejection_logging.py:196
↓ 4 callersFunction_httpx
(gateway: Gateway, endpoint: Endpoint, model: str, stream: bool, text: str)
tests/integration/providers/test_gemini_tool_result_part_reference_wire.py:457
↓ 4 callersFunction_human_text
Message content as the text a human wrote, with complete reminder blocks removed. Harnesses inject reminders as ordinary text alongside the live
litellm/router_strategy/complexity_router/complexity_router.py:610
↓ 4 callersFunction_hydrate_litellm_credential_name
( litellm_params: LiteLLM_Params | None, )
litellm/proxy/auth/model_checks.py:286
↓ 4 callersMethod_id_jag_config
(self)
tests/unit/proxy/mcp_server/test_mcp_server_manager.py:1136
↓ 4 callersMethod_id_jag_warnings
(caplog)
tests/unit/proxy/management_endpoints/test_mcp_management_endpoints.py:4564
↓ 4 callersFunction_id_token
Build a signed id_token carrying the given claims.
tests/unit/proxy/management_endpoints/test_entraid_app_roles.py:8
↓ 4 callersFunction_identity
(marker: str)
tests/integration/providers/test_anthropic_tool_search_result_passthrough_wire.py:39
↓ 4 callersFunction_identity
(body: Mapping[str, JsonValue])
tests/integration/routing/test_vllm_passthrough_stream_usage_settings.py:62
↓ 4 callersFunction_identity_settings
(mode: object, metrics_config: object = None)
tests/unit/integrations/test_prometheus_caller_identity.py:406
↓ 4 callersFunction_idle_turn
( proxy: str, key: str, model: str, path: str, text: str, *, query_model: bool = F
tests/integration/providers/test_responses_websocket_session_limit.py:457
← previousnext →18,001–18,100 of 202,479, ranked by callers