MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 3 callersFunction_frame_payload
(message: Message)
tests/_ws_vcr.py:174
↓ 3 callersFunction_framed_kimis_with_custom_tokenizers
( monkeypatch: pytest.MonkeyPatch, tokenizers: Mapping[str, tuple[str, str]], burst: int = 1 )
tests/unit/proxy/test_proxy_token_counter.py:2339
↓ 3 callersFunction_free_by_cost_map_only
(name: str)
tests/unit/proxy/auth/test_unmapped_model_budget_enforcement.py:35
↓ 3 callersFunction_free_port
()
tests/unit/gateway/test_launch.py:49
↓ 3 callersMethod_fromReadableStream
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/2hk8n3azev--d.js:11
↓ 3 callersFunction_from_base64
(data: str, name: str | None, index: int, kind: AttachmentType, media_type: str | None)
litellm/proxy/guardrails/guardrail_hooks/akto/akto_attachments.py:315
↓ 3 callersFunction_from_uri
(raw_uri: str | None, name: str | None, index: int, kind: AttachmentType)
litellm/proxy/guardrails/guardrail_hooks/akto/akto_attachments.py:292
↓ 3 callersFunction_frozen_cache
The org entries carry a 5s TTL; a frozen clock keeps a slow first call from expiring them mid-test.
tests/integration/authorization/test_auth_object_prefetch.py:35
↓ 3 callersFunction_fstring_literal_offenders
(needle: str, literals: tuple[tuple[str, str], ...])
tests/unit/litellm_core_utils/test_aws_partition.py:208
↓ 3 callersFunction_full_metadata
(spender: Spender)
tests/integration/spend/test_daily_activity_key_metadata_query_timeout.py:906
↓ 3 callersFunction_full_stream
()
tests/unit/test_streaming_connection_cleanup.py:202
↓ 3 callersFunction_full_stream
()
tests/unit/llms/anthropic/messages/native/test_streaming_iterator.py:504
↓ 3 callersFunction_function_call_output
(body: Mapping[str, JsonValue])
tests/integration/messages_endpoint/test_tool_result_text_wire.py:188
↓ 3 callersFunction_function_call_response
(signature: str)
tests/unit/responses/litellm_completion_transformation/test_google_ai_studio_responses_wire.py:23
↓ 3 callersFunction_function_level_deferred
()
tests/integration/providers/test_chat_completions_tool_search_wire.py:85
↓ 3 callersFunction_function_params
(node: ast.FunctionDef | ast.AsyncFunctionDef | ast.Lambda)
scripts/check_type_discipline.py:620
↓ 3 callersFunction_funnel_kwargs_completion_forwards
completion() names its get_litellm_params arguments one by one, so a key the funnel knows is still dropped unless that call site forwards it from
tests/unit/litellm_core_utils/test_get_litellm_params.py:28
↓ 3 callersFunction_ga_session_update
(rate: int = 24_000, turn_detection: object = "server_vad")
tests/unit/llms/meta/realtime/test_meta_realtime_transformation.py:42
↓ 3 callersFunction_gated_burst
( base_url: str, key: str, call_ids: tuple[str, ...], release: threading.Event )
tests/integration/spend/test_vertex_image_regional_uplift.py:599
↓ 3 callersFunction_gateway_dcr_challenge
The RFC 9728 challenge pointing the client at the protected-resource metadata matching the scope it requested: the per-server document (same URL s
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:526
↓ 3 callersFunction_gateway_dcr_challenge_target
Resolve a single path target whose sign-in metadata advertises the gateway.
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:449
↓ 3 callersFunction_gateway_session_sign_in
( gateway: Gateway, scenario: Scenario, user_id: str, resource: str | None = None, *,
tests/integration/mcp/test_mcp_oauth_flows.py:800
↓ 3 callersFunction_gateway_token
(request: Request)
litellm/proxy/pass_through_endpoints/codex_passthrough_endpoints.py:335
↓ 3 callersFunction_gcp_marker_callback
()
tests/unit/test_redis.py:83
↓ 3 callersFunction_gemini_model
(proxy: ProxyClient, resources: ResourceManager)
tests/e2e/llm_translation/test_google_interactions_e2e.py:73
↓ 3 callersFunction_gemini_params
()
tests/e2e/llm_translation/test_responses_e2e.py:135
↓ 3 callersFunction_gemini_reply
(text: str)
tests/unit/llms/custom_httpx/test_async_client_cleanup.py:33
↓ 3 callersFunction_gemini_request_body
( custom_llm_provider: Literal["vertex_ai", "gemini"], optional_params: dict[str, object], litellm
tests/unit/llms/vertex_ai/gemini/test_vertex_and_google_ai_studio_gemini.py:4506
↓ 3 callersFunction_gemini_router
(model: str)
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_gemini_passthrough_logging_handler.py:608
↓ 3 callersFunction_gemini_sse
(*events: dict[str, object])
tests/unit/llms/vertex_ai/gemini/test_vertex_and_google_ai_studio_gemini.py:2414
↓ 3 callersFunction_gemini_usage_with_cached_audio
(cached_audio_tokens: int)
tests/unit/llms/vertex_ai/gemini/test_vertex_and_google_ai_studio_gemini.py:1557
↓ 3 callersFunction_gen
()
tests/unit/proxy/agent_endpoints/test_a2a_version_e2e.py:72
↓ 3 callersFunction_general_settings
()
litellm/proxy/anthropic_endpoints/gateway_endpoints.py:123
↓ 3 callersFunction_general_settings
()
litellm/proxy/management_endpoints/key_management_endpoints.py:3615
↓ 3 callersFunction_generate
(gateway: Gateway, model: str, key: str, body: Mapping[str, JsonValue])
tests/integration/providers/test_google_genai_vertex_routes_wire.py:183
↓ 3 callersFunction_generate_azure_ad_redis_token
One-shot helper that builds a credential and fetches a single Azure AD access token for Redis. Each call rebuilds the credential and performs
litellm/_redis.py:404
↓ 3 callersFunction_generate_cli_sso_user_code
()
litellm/proxy/management_endpoints/ui_sso.py:315
↓ 3 callersFunction_generate_key
(client: ManagementClient, resources: ResourceManager, body: KeyGenerateBody)
tests/e2e/management/test_team_management_e2e.py:168
↓ 3 callersFunction_generate_key_for_user
(scenario: Scenario, user_key: str, target_user: str)
tests/integration/management/test_scim_admin_group.py:289
↓ 3 callersFunction_generate_policy_mocks
(mock_prisma: MagicMock, generate_key_helper: AsyncMock, policy)
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:14287
↓ 3 callersMethod_generate_tool_execution_events
Generate tool execution events and execute tools
litellm/responses/mcp/mcp_streaming_iterator.py:844
↓ 3 callersFunction_generated_key
(scenario: Scenario, **fields: JsonValue)
tests/integration/spend/test_background_response_billed_once.py:1046
↓ 3 callersFunction_generated_sessions
`_COPIED_ROWS` rows a second apart in sessions of `rows_per_session` rows, a one-row session keyed by request_id.
tests/integration/spend/test_session_grouped_logs_pages.py:215
↓ 3 callersFunction_generation
(access key generation, session token generation) SigV4 baked into one request.
tests/unit/integrations/test_s3_v2.py:598
↓ 3 callersFunction_generation_config
(row: Mapping[str, object])
tests/unit/llms/vertex_ai/files/test_vertex_ai_files_transformation.py:2415
↓ 3 callersFunction_generic
(endpoint: str, host_op: str | None = None, *, sync: bool = False)
litellm/router_rust/invoke/endpoints.py:293
↓ 3 callersFunction_generic_tier
(identity: str)
tests/integration/configuration/test_codex_catalog_boot.py:52
↓ 3 callersFunction_generic_tier
(identity: str)
tests/integration/compatibility/test_codex_model_catalog.py:72
↓ 3 callersFunction_get
(url, **kw)
tests/unit/caching/test_gcs_cache.py:130
↓ 3 callersMethod_get_active_submitted_mcp_server_ids_for_user
( self, user_api_key_auth: UserAPIKeyAuth | None )
litellm/proxy/mcp_server/mcp_server_manager.py:3583
↓ 3 callersMethod_get_agent_id_and_alias_id
model = "agent/L1RT58GYRW/MFPSBCXYTW" agent_id = "L1RT58GYRW" agent_alias_id = "MFPSBCXYTW"
litellm/llms/bedrock/chat/invoke_agent/transformation.py:133
↓ 3 callersMethod_get_allowed_agents_for_team
Get allowed agents for a team. 1. First checks native team-level agent permissions (object_permission) 2. Also includes agen
litellm/proxy/agent_endpoints/auth/agent_permission_handler.py:588
↓ 3 callersFunction_get_and_validate_existing_key
Get existing key from database and validate it exists. Args: token: The key token to look up prisma_client: Prisma client in
litellm/proxy/management_endpoints/key_management_endpoints.py:3179
↓ 3 callersMethod_get_anthropic_text_prompt_from_messages
(self, messages: list[AllMessageValues], model: str)
litellm/llms/anthropic/completion/transformation.py:243
↓ 3 callersMethod_get_api_base
(self, api_base: str | None, use_ai_gateway: bool = False)
litellm/llms/databricks/common_utils.py:272
↓ 3 callersMethod_get_api_key
(self, api_key: str | None)
litellm/llms/fireworks_ai/common_utils.py:116
↓ 3 callersMethod_get_as
(self, role: LitellmUserRoles)
tests/unit/proxy/agent_endpoints/test_endpoints.py:431
↓ 3 callersMethod_get_async_http_client
( shared_session: Optional["ClientSession"] = None, )
litellm/llms/openai/common_utils.py:439
↓ 3 callersMethod_get_authorization_header
(self)
litellm/proxy/guardrails/guardrail_hooks/noma/noma_v2.py:149
↓ 3 callersFunction_get_batch_trace_session_id
A batch's create row and its poller-written cost row both derive their request id from the same batch id (the cost row appends BATCH_COST_REQUEST_
litellm/proxy/spend_tracking/spend_tracking_utils.py:1043
↓ 3 callersMethod_get_budget_config_for_tag
(self, tag: str)
litellm/router_strategy/budget_limiter.py:809
↓ 3 callersFunction_get_budget_reservation_from_metadata
(metadata: dict)
litellm/proxy/hooks/proxy_track_cost_callback.py:1184
↓ 3 callersFunction_get_byok_credential
Retrieve the stored BYOK credential for a user+server pair, served from the worker cache within its TTL.
litellm/proxy/mcp_server/operations.py:1897
↓ 3 callersMethod_get_cache_key
( self, prompt_id: str | None, prompt_label: str | None = None, prompt_version
litellm/integrations/generic_prompt_management/generic_prompt_manager.py:225
↓ 3 callersMethod_get_cache_key_filter_expression
(self, key: str)
litellm/caching/redis_semantic_cache.py:240
↓ 3 callersFunction_get_cache_keys
(deployment: dict, current_minute: str)
litellm/router_utils/pre_call_checks/io_token_rate_limit_check.py:180
↓ 3 callersMethod_get_cache_keys
Get the cache keys for TPM and RPM tracking.
litellm/router_utils/pre_call_checks/model_rate_limit_check.py:269
↓ 3 callersFunction_get_cached_custom_guardrail
Get cached CustomGuardrail class. Lazy imports on first call to avoid loading custom_guardrail at import time. Subsequent calls use cache
litellm/utils.py:177
↓ 3 callersFunction_get_cached_custom_logger
Get cached CustomLogger class. Lazy imports on first call to avoid loading custom_logger at import time. Subsequent calls use cached clas
litellm/utils.py:126
↓ 3 callersMethod_get_cached_value
(self, cache_key: str)
litellm/proxy/auth/handle_jwt.py:808
↓ 3 callersMethod_get_callback_name
Helper to get the name of a callback function Args: cb: The callback object/function/string to get the name of
litellm/litellm_core_utils/litellm_logging.py:5161
↓ 3 callersMethod_get_callback_string
(self, callback: CustomLogger | Callable[..., object] | str)
litellm/litellm_core_utils/logging_callback_manager.py:528
↓ 3 callersMethod_get_chat_completion_request_content_type
Transform Responses API content type to valid Chat Completion content type. Returns one of ValidChatCompletionMessageContentTypes:
litellm/responses/litellm_completion_transformation/transformation.py:2819
↓ 3 callersFunction_get_cloudzero_settings
Retrieve CloudZero settings from the database with decrypted API key. Returns: dict: CloudZero settings with decrypted API key, or e
litellm/proxy/spend_tracking/cloudzero_endpoints.py:95
↓ 3 callersMethod_get_cold_storage_object_key_from_spend_log
Extract the cold storage object key from spend log metadata. Args: spend_log: The spend log payload containing metadata
litellm/responses/litellm_completion_transformation/session_handler.py:532
↓ 3 callersMethod_get_completed_success_callbacks
( self, *, asynchronous: bool )
litellm/litellm_core_utils/litellm_logging.py:5045
↓ 3 callersFunction_get_config
()
tests/unit/llms/openai_like/test_empiriolabs_provider.py:24
↓ 3 callersFunction_get_container_provider_config
Get the container provider config for the given provider.
litellm/proxy/container_endpoints/handler_factory.py:48
↓ 3 callersMethod_get_credentials_for_request
Get PostHog credentials for this request. Checks for per-request credentials in standard_callback_dynamic_params, falls back
litellm/integrations/posthog.py:315
↓ 3 callersMethod_get_current_provider_spend
GET the current spend for a provider from cache used for GET /provider/budgets endpoint in spend_management_endpoints.py Ar
litellm/router_strategy/budget_limiter.py:853
↓ 3 callersMethod_get_custom_llm_provider
(url: str, logging_obj: LiteLLMLoggingObj)
litellm/proxy/pass_through_endpoints/llm_provider_handlers/vertex_passthrough_logging_handler.py:779
↓ 3 callersMethod_get_deployment_key
Get the deployment key for the given project-id, location
litellm/proxy/pass_through_endpoints/passthrough_endpoint_router.py:367
↓ 3 callersMethod_get_device_code
Get a device code for GitHub authentication. Returns: Dict[str, str]: Device code information. Raises:
litellm/llms/github_copilot/authenticator.py:224
↓ 3 callersMethod_get_dict_value
( source: Mapping[str, object], *keys: str, )
litellm/llms/vertex_ai/text_to_speech/transformation.py:367
↓ 3 callersMethod_get_document_format
Get the document format from the mime type - Primary method - uses `mimetypes.guess_all_extensions` - Fallback method - uses
litellm/litellm_core_utils/prompt_templates/factory.py:4153
↓ 3 callersFunction_get_email_alert_variables
(monkeypatch, config_data)
tests/unit/proxy/test_proxy_server_endpoints_and_startup.py:1453
↓ 3 callersFunction_get_email_logger_class
Determine which email logger class to use based on environment variables. Priority: SendGrid > Resend > SMTP > BaseEmailLogger (fallback)
litellm/proxy/utils.py:469
↓ 3 callersFunction_get_enforced_params
(general_settings: dict | None, user_api_key_dict: UserAPIKeyAuth)
litellm/proxy/litellm_pre_call_utils.py:3908
↓ 3 callersMethod_get_engine_pid
Get the PID of the current Prisma engine subprocess, or 0 if unavailable. Must never raise: it runs inside the reconnect path, where the clie
litellm/proxy/db/prisma_client.py:354
↓ 3 callersFunction_get_extrapolating_count_function
( count_exactly: TokenCounterFunction, max_exact_chars: int = TOKEN_COUNTER_MAX_EXACT_CHARS, )
litellm/litellm_core_utils/token_counter.py:1189
↓ 3 callersMethod_get_fallback
(client: ManagementClient, model: str, fallback_type: str)
tests/e2e/management/test_config_misc_endpoints_e2e.py:509
↓ 3 callersFunction_get_fallback_target_model_group
(fallback_entry: str | Mapping[str, object])
litellm/router_utils/fallback_event_handlers.py:700
↓ 3 callersFunction_get_field_type_from_annotation
Convert a Python type annotation to a UI-friendly type string
litellm/proxy/guardrails/guardrail_endpoints.py:1752
↓ 3 callersFunction_get_fuzzy_user_object
Checks if sso user is in db. Called when user id match is not found in db. - Check if sso_user_id is user_id in db - Check if sso_u
litellm/proxy/auth/auth_checks.py:2938
↓ 3 callersMethod_get_headers
Get the headers for API requests, including authorization if api_key is set. Returns: Dict[str, str]: Headers to use for
litellm/proxy/client/teams.py:30
↓ 3 callersMethod_get_jwks_url_for_issuer
(self, issuer_config: JWTIssuerConfig)
litellm/proxy/auth/handle_jwt.py:1166
↓ 3 callersFunction_get_jwt
(auth_url, api_id, api_key, timeout: float = _AUTH_TIMEOUT_SECONDS)
litellm/proxy/guardrails/guardrail_hooks/hiddenlayer/hiddenlayer.py:196
↓ 3 callersMethod_get_langfuse_authorization_header
Get the authorization header for Langfuse OpenTelemetry.
litellm/integrations/langfuse/langfuse_otel.py:479
↓ 3 callersMethod_get_langfuse_flush_interval
``LANGFUSE_FLUSH_INTERVAL`` in whole seconds above 0 (the export scheduler's delay), else ``flush_interval``.
litellm/integrations/langfuse/langfuse.py:1131
↓ 3 callersFunction_get_langfuse_proxy_credentials
( *, dynamic_host_supplied: bool, dynamic_langfuse_public_key: str | None, dynamic_langfuse_se
litellm/proxy/vertex_ai_endpoints/langfuse_endpoints.py:110
← previousnext →23,401–23,500 of 202,479, ranked by callers