MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 3 callersMethod_get_list_of_route_enum_as_str
Returns a list of the route enum as a list of strings
litellm/proxy/management_helpers/team_member_permission_checks.py:48
↓ 3 callersMethod_get_litellm_resource_for_project
Build an OTEL Resource with project routing attrs that win over env detector. Phoenix uses ``openinference.project.name``; Arize AX
litellm/integrations/arize/arize_phoenix.py:124
↓ 3 callersMethod_get_login_headers
(self)
litellm/secret_managers/hashicorp_secret_manager.py:287
↓ 3 callersMethod_get_mapping_value
(item: object, key: str)
litellm/proxy/guardrails/guardrail_hooks/tool_permission.py:951
↓ 3 callersFunction_get_max_base64_length_stdout_log
()
litellm/_logging.py:343
↓ 3 callersFunction_get_max_position_embeddings
(model_name)
litellm/utils.py:6696
↓ 3 callersMethod_get_metric_reader
Get the appropriate metric reader based on the configuration. Histograms keep the SDK's default cumulative temporality: Prometheus-b
litellm/integrations/opentelemetry.py:3306
↓ 3 callersMethod_get_model_id_from_response
Extract model_id from hidden_params with fallback to litellm_metadata.
litellm/proxy/common_request_processing.py:3023
↓ 3 callersFunction_get_month_end_date
(today: date)
litellm/proxy/utils.py:9494
↓ 3 callersMethod_get_object_date_from_datetime
(self, datetime_obj: datetime)
litellm/integrations/gcs_bucket/gcs_bucket.py:377
↓ 3 callersMethod_get_object_name
Get the object name to use for the current payload
litellm/integrations/gcs_bucket/gcs_bucket.py:304
↓ 3 callersMethod_get_oidc_discovery
Fetch and cache the OIDC discovery document with a 24-hour TTL. Only caches when the doc contains a 'jwks_uri' so that a transient or
litellm/proxy/guardrails/guardrail_hooks/mcp_jwt_signer/mcp_jwt_signer.py:423
↓ 3 callersFunction_get_openai_compatible_provider_info
Returns: Tuple[str, str, Optional[str], Optional[str]]: model: str custom_llm_provider: str dynamic_a
litellm/litellm_core_utils/get_llm_provider_logic.py:622
↓ 3 callersMethod_get_openai_compatible_provider_info
( self, api_base: str | None, api_key: str | None )
litellm/llms/litellm_proxy/chat/transformation.py:54
↓ 3 callersMethod_get_openai_compatible_provider_info
( self, api_base: str | None, api_key: str | None )
litellm/llms/lemonade/chat/transformation.py:225
↓ 3 callersMethod_get_or_create_container
( self, cache_key: str | None, identity: str | None = None, )
litellm/integrations/code_interpreter_interception/handler.py:792
↓ 3 callersMethod_get_or_create_provider
Generic helper to get or create an OpenTelemetry provider (Tracer, Meter, or Logger). Args: provider: The provider insta
litellm/integrations/opentelemetry.py:566
↓ 3 callersMethod_get_or_generate_conversation_id
Get or generate a conversation_id for this request. This method ensures session consistency by using litellm_call_id as a cache key.
litellm/proxy/guardrails/guardrail_hooks/lasso/lasso.py:325
↓ 3 callersMethod_get_or_set_budget_start_time
Checks if the key = `provider_budget_start_time:{provider}` exists in cache. If it does, return the value. If it does not, s
litellm/router_strategy/budget_limiter.py:427
↓ 3 callersMethod_get_org_object_permission
Get org object_permission via the established ``get_org_object`` / ``get_object_permission`` helpers so MCP requests share the same
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:3882
↓ 3 callersMethod_get_per_item_prompt_tokens
Extract the per-item prompt_tokens from a response for caching. Single-item responses store the full usage.prompt_tokens. Multi-item
litellm/caching/caching.py:916
↓ 3 callersFunction_get_prisma_client_or_none
Non-throwing counterpart to ``get_prisma_client_or_throw`` for paths that degrade gracefully: a proxy configured without a database keeps the
litellm/proxy/management_endpoints/mcp_management_endpoints.py:617
↓ 3 callersFunction_get_process_rss_mb
Get process RSS memory in MB. On Linux, ru_maxrss is in KB. On macOS, ru_maxrss is in bytes.
litellm/proxy/proxy_server.py:4700
↓ 3 callersMethod_get_prompt_from_id_api
(self, humanloop_prompt_id: str, humanloop_api_key: str)
litellm/integrations/humanloop.py:67
↓ 3 callersMethod_get_provider_resolved_capability
Resolve boolean capability ``key`` for ``model`` under the caller's provider. Returns the flag when the provider-aware lookup resolves ``mode
litellm/llms/anthropic/common_utils.py:1085
↓ 3 callersFunction_get_realtime_http_extra_headers
( provider_config: BaseRealtimeHTTPConfig | None, litellm_params: GenericLiteLLMParams, resolved_a
litellm/realtime_api/main.py:291
↓ 3 callersMethod_get_request_curl_command
(self, api_base: str, headers: dict | None, additional_args: dict, data: dict)
litellm/litellm_core_utils/litellm_logging.py:1866
↓ 3 callersFunction_get_request_models
( request_body: dict, route: str, llm_router: Router | None, )
litellm/proxy/spend_tracking/budget_reservation.py:1608
↓ 3 callersFunction_get_request_tags_for_cost_tracking
( sl_object: StandardLoggingPayload | None, metadata: dict, )
litellm/proxy/hooks/proxy_track_cost_callback.py:1188
↓ 3 callersFunction_get_response_model
Extract the model name from a completion response object. Used as a fallback for cost calculation when the input model name doesn't exis
litellm/cost_calculator.py:1200
↓ 3 callersFunction_get_route
(path: str, method: str)
tests/unit/proxy/mcp_server/test_rest_endpoints.py:78
↓ 3 callersMethod_get_sampling_rate_to_use_for_request
(self, kwargs: _DynamicParamsKwargs)
litellm/integrations/langsmith.py:482
↓ 3 callersFunction_get_search_with_client
( client: HTTPHandler | AsyncHTTPHandler, provider_config: BaseSearchConfig | None = None )
tests/unit/llms/custom_httpx/test_llm_http_handler.py:88
↓ 3 callersMethod_get_spend_for_model_budget
Spend charged to this budget in the current window, legacy counter included. A counter that was never written is zero spend, not unknown spen
litellm/proxy/hooks/model_max_budget_limiter.py:1104
↓ 3 callersFunction_get_sso_user_alias
Display name the IdP sent for the user, falling back to the joined first/last name.
litellm/proxy/management_endpoints/ui_sso.py:2095
↓ 3 callersFunction_get_str_or_none
Cast config value to Optional[str].
litellm/rag/ingestion/bedrock_ingestion.py:33
↓ 3 callersMethod_get_str_value
( source: Mapping[str, object], *keys: str, )
litellm/llms/vertex_ai/text_to_speech/transformation.py:356
↓ 3 callersFunction_get_team_member_budget_counter
( valid_token: UserAPIKeyAuth, team_object: LiteLLM_TeamTable | None, user_object: LiteLLM_UserTab
litellm/proxy/spend_tracking/budget_reservation.py:739
↓ 3 callersFunction_get_temp_budget_increase
(valid_token: UserAPIKeyAuth)
litellm/proxy/auth/user_api_key_auth.py:4795
↓ 3 callersMethod_get_token_state
Return the token state using google-auth's TokenState enum. Falls back to expired/valid checks if token_state is unavailable
litellm/llms/vertex_ai/vertex_llm_base.py:525
↓ 3 callersMethod_get_trace_data
Extract trace data from a trace event.
litellm/llms/bedrock/chat/invoke_agent/transformation.py:352
↓ 3 callersMethod_get_tracer_with_dynamic_config
Create (or reuse) a tracer whose exporter target comes from a per-request config.
litellm/integrations/opentelemetry.py:1252
↓ 3 callersMethod_get_trackers_corrected_message
Extract corrected/blocking message content from Tracker checkpoint response.
litellm/proxy/guardrails/guardrail_hooks/ovalix/ovalix.py:488
↓ 3 callersMethod_get_triton_llm_type
(self, api_base: str)
litellm/llms/triton/completion/transformation.py:167
↓ 3 callersMethod_get_user_anthropic_beta_headers
(self, anthropic_beta_header: str | None)
litellm/llms/anthropic/common_utils.py:1364
↓ 3 callersMethod_get_user_from_metadata
( self, passthrough_logging_payload: PassthroughStandardLoggingPayload, )
litellm/proxy/pass_through_endpoints/llm_provider_handlers/base_passthrough_logging_handler.py:87
↓ 3 callersFunction_get_user_mcp_management_mode
()
litellm/proxy/management_endpoints/mcp_management_endpoints.py:1210
↓ 3 callersFunction_get_users
(query: str = WINDOW)
tests/unit/proxy/management_endpoints/management_v1/test_spend_logs.py:87
↓ 3 callersFunction_get_uvicorn_json_log_config
Generate a uvicorn log_config dictionary that applies JSON formatting to all loggers. This ensures that uvicorn's access logs, error logs, a
litellm/_logging.py:1125
↓ 3 callersFunction_gigachat_chat_completion_body
()
tests/unit/llms/gigachat/passthrough/test_gigachat_passthrough_transformation.py:18
↓ 3 callersFunction_git_commit
(repo: Path, message: str)
tests/unit/test_cost_map_guard.py:376
↓ 3 callersFunction_glm_completion
(router: Router)
tests/unit/test_router_model_cost_isolation.py:4141
↓ 3 callersFunction_global_config
(directory: Path, api_base: str)
tests/integration/providers/test_responses_bridge_prompt_cache_breakpoint_wire_chaos.py:59
↓ 3 callersFunction_global_registries
(monkeypatch)
tests/unit/proxy/policy_engine/test_policy_matcher.py:213
↓ 3 callersFunction_globs_share_a_name
Whether one name matches every glob. Globs that each hold a `*` share a name exactly when their literal heads are prefixes of one another and
litellm/proxy/hooks/model_max_budget_limiter.py:380
↓ 3 callersFunction_gone_routes
(submission_status: str = "queued")
tests/integration/spend/test_background_response_poll_retirement.py:94
↓ 3 callersFunction_google_calls
(requests: tuple[Request, ...])
tests/integration/sdk/test_gemini_long_decode_sync_sdk.py:157
↓ 3 callersFunction_google_genai_streaming_hidden_params
Pre-stream metadata for proxy response headers (mirrors CustomStreamWrapper._hidden_params).
litellm/llms/custom_httpx/llm_http_handler.py:465
↓ 3 callersFunction_gpt_4_group_with_a_sibling
()
tests/unit/router_utils/test_cooldown_handlers.py:654
↓ 3 callersFunction_gpt_4o_mini_router
(litellm_params: Mapping[str, object])
tests/unit/proxy/auth/test_auth_checks_object_access_and_lookup.py:1988
↓ 3 callersMethod_gpt_series_version
(model: str)
litellm/llms/openai/chat/gpt_reasoning_transformation.py:153
↓ 3 callersFunction_grant
()
tests/unit/proxy/mcp_server/outbound_credentials/test_bridge_credentials.py:49
↓ 3 callersMethod_grant
(self)
litellm/integrations/adaptive_concurrency.py:57
↓ 3 callersFunction_granted_ids
(access: AgentAccess)
litellm/proxy/agent_endpoints/auth/agent_permission_handler.py:816
↓ 3 callersFunction_granted_through_team
The real grant resolver over a team that holds ``team_toolset_ids``, with no key access rule.
tests/unit/proxy/mcp_server/test_mcp_toolset_scope.py:35
↓ 3 callersMethod_graph_post
POST to Graph API with bearer auth. Returns: Tuple of (response_json, response_headers).
litellm/proxy/guardrails/guardrail_hooks/microsoft_purview/base.py:142
↓ 3 callersFunction_grew
(before: Sequence[Sample], after: Sequence[Sample], name: str, by: int)
tests/integration/observability/test_prometheus_series_cap.py:58
↓ 3 callersFunction_groq_completion_with_mocked_response
(response_json: dict)
tests/unit/llms/groq/chat/test_groq_chat_transformation.py:165
↓ 3 callersMethod_group_by_date
Group data by date, converting to UTC and validating dates.
litellm/integrations/cloudzero/cz_stream_api.py:70
↓ 3 callersMethod_group_deadline
Give each pending cleanup group an equal share of the time left. A single group keeps the whole run budget, while a persistent backl
litellm/proxy/db/db_transaction_queue/spend_log_cleanup.py:728
↓ 3 callersFunction_group_endpoints
(gateway: Gateway, group: str, key: str | None = None)
tests/integration/routing/test_batch_mode_deployments_wire.py:285
↓ 3 callersFunction_group_filter_response
(gateway: Gateway, group_name: str)
tests/integration/management/test_scim_admin_group.py:191
↓ 3 callersFunction_group_member
( group: str, model: str, key: str, weight: int, model_info: Mapping[str, object], **params: object )
tests/unit/decisions/test_main.py:4055
↓ 3 callersFunction_group_response
The one constructor of a job response: the caller names the group and passes that group's legs. Config is read off the first leg because every leg
litellm/proxy/management_endpoints/auto_router_endpoints.py:1544
↓ 3 callersFunction_groups_called
(provider_calls: MagicMock)
tests/unit/test_router/test_router.py:3616
↓ 3 callersFunction_guard_raw_provider_id
Deny a raw provider ID that maps to a managed resource the caller does not own, before it is forwarded upstream. Clients only ever receive ma
litellm/proxy/pass_through_endpoints/managed_id_rewriter.py:415
↓ 3 callersFunction_guard_recording
(bill_refusal: MagicMock)
tests/unit/responses/test_responses_websocket_all_providers.py:1693
↓ 3 callersFunction_guarded_body
(path: str, model: str, guardrail: str)
tests/integration/providers/test_decision_model_guardrail.py:211
↓ 3 callersFunction_guarded_chain_logging
(chain)
tests/unit/proxy/test_proxy_server_endpoints_and_startup.py:7543
↓ 3 callersFunction_guarded_progress_callback
( callback: ProgressCallback | None, logging_obj: LiteLLMLoggingObj | None, original_auth: UserAPI
litellm/proxy/mcp_server/operations.py:2559
↓ 3 callersFunction_guardrail
()
tests/unit/proxy/guardrails/guardrail_hooks/aporia_ai/test_aporia_ai.py:16
↓ 3 callersFunction_guardrail_entry
(name: str, decision_model: str, mode: str = "pre_call")
tests/integration/providers/test_decision_model_guardrail.py:73
↓ 3 callersFunction_guardrail_kwargs
(response_cost)
tests/unit/litellm_core_utils/test_litellm_logging.py:8584
↓ 3 callersFunction_guardrails_ai
()
tests/unit/proxy/guardrails/guardrail_hooks/guardrails_ai/test_guardrails_ai.py:244
↓ 3 callersFunction_guardrails_from_metadata
(metadata: Mapping[str, object] | None)
litellm/proxy/mcp_server/operations.py:2693
↓ 3 callersFunction_guardrails_table
( prisma_client: "PrismaClient", )
litellm/proxy/guardrails/usage_endpoints.py:87
↓ 3 callersFunction_halves
(text: str)
tests/integration/messages_endpoint/chat_bridge/test_chat_bridge_multi_tool_call_blocks_wire.py:208
↓ 3 callersMethod_handle_callback_failure
Handle callback logging failures by incrementing Prometheus metrics. Works for both sync and async contexts since Prometheus counter
litellm/litellm_core_utils/litellm_logging.py:4572
↓ 3 callersFunction_handle_content_block_stop
(data: dict, content_blocks: dict[int, dict])
litellm/llms/anthropic/messages/native/agentic_streaming_iterator.py:150
↓ 3 callersMethod_handle_converse_delta_event
Handle 'delta' event in converse chunk parsing.
litellm/llms/bedrock/chat/invoke_handler.py:624
↓ 3 callersMethod_handle_converse_start_event
Handle 'start' event in converse chunk parsing.
litellm/llms/bedrock/chat/invoke_handler.py:578
↓ 3 callersMethod_handle_folders_in_bucket_name
Handles when the user passes a bucket name with a folder postfix Example: - Bucket name: "my-bucket/my-folder/dev"
litellm/integrations/gcs_bucket/gcs_bucket_base.py:120
↓ 3 callersMethod_handle_logging_completed_response
Handle logging for completed responses in async context
litellm/responses/streaming_iterator.py:1345
↓ 3 callersMethod_handle_reasoning_item
Handle reasoning items for GitHub Copilot, preserving encrypted_content. GitHub Copilot uses encrypted_content in reasoning items to
litellm/llms/github_copilot/responses/transformation.py:287
↓ 3 callersMethod_handle_stream_complete
Handle logging and token counting when stream completes.
litellm/a2a_protocol/streaming_iterator.py:139
↓ 3 callersMethod_handle_stream_event
Handle the success event for a streaming response. For streaming calls, log_success_event handle is triggered for every chunk of the
litellm/integrations/mlflow.py:125
↓ 3 callersMethod_handle_success
(self, kwargs, response_obj, start_time, end_time)
litellm/integrations/arize/arize_phoenix.py:330
↓ 3 callersMethod_handle_unavailable
( self, data: dict, # mutable-ok: guardrail logging appends into the request metadata in plac
litellm/proxy/guardrails/guardrail_hooks/agent_365/agent_365.py:587
↓ 3 callersMethod_handle_usage
(self, anthropic_usage_chunk: Mapping[str, object])
litellm/llms/anthropic/chat/handler.py:806
↓ 3 callersFunction_handler_may_close_client
Whether a handler being finalized may close its client. Only when the handler built the client and is still its sole referrer. Finalization
litellm/llms/custom_httpx/http_handler.py:222
← previousnext →23,501–23,600 of 202,479, ranked by callers