MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 3 callersFunction_serve_soniox
(reply: str | None)
tests/unit/realtime_api/test_main.py:2487
↓ 3 callersFunction_serve_the_demo_mcp_listing
(monkeypatch: pytest.MonkeyPatch)
tests/unit/responses/mcp/test_aresponses_api_with_mcp.py:2028
↓ 3 callersFunction_serve_turn
(check: PromptCachingDeploymentCheck, request_input: object)
tests/unit/router_utils/pre_call_checks/test_prompt_caching_deployment_check.py:2290
↓ 3 callersFunction_served
(results: tuple[Sent | str, ...])
tests/integration/observability/test_otel_excluded_services_matrix.py:623
↓ 3 callersFunction_served
(gateway: Gateway, provider: SharedProvider, model: str, key: str)
tests/integration/spend/test_budget_limit_envelopes.py:54
↓ 3 callersFunction_served
(gateway: Gateway, provider: SharedProvider, model: str, key: str)
tests/integration/spend/test_team_member_total_spend_reconciliation.py:86
↓ 3 callersFunction_served
(gateway: Gateway, session: str, mark: JsonValue, *, overload: bool = False)
tests/integration/routing/test_prompt_cache_pin_ttl_chaos.py:98
↓ 3 callersFunction_served_from_cache_at_no_charge
(result: object)
litellm/litellm_core_utils/litellm_logging.py:7728
↓ 3 callersFunction_served_ids
(deployments: "Sequence[Mapping[str, Mapping[str, object]]] | None")
tests/unit/proxy/common_utils/test_registry_read_through.py:530
↓ 3 callersFunction_served_model_stream_chunks
(model: str | None)
tests/unit/llms/anthropic/chat/test_anthropic_chat_handler.py:3070
↓ 3 callersMethod_served_openrouter_model
(self)
litellm/litellm_core_utils/streaming_handler.py:992
↓ 3 callersFunction_served_pairs
(response: httpx.Response)
tests/integration/mcp/test_mcp_access_matrix.py:533
↓ 3 callersFunction_served_provider
(litellm_params: Mapping[str, object])
litellm/completion_extras/litellm_responses_transformation/transformation.py:225
↓ 3 callersFunction_served_tier_cost_model
(monkeypatch: pytest.MonkeyPatch)
tests/unit/test_cost_calculator.py:7199
↓ 3 callersMethod_server
(auth_type: MCPAuthType = MCPAuth.oauth_delegate)
tests/unit/proxy/mcp_server/test_mcp_server_manager.py:14441
↓ 3 callersMethod_server
()
tests/unit/proxy/mcp_server/test_mcp_server_manager.py:14565
↓ 3 callersMethod_server
(self, auth_type)
tests/unit/proxy/mcp_server/test_mcp_hook_extra_headers.py:1111
↓ 3 callersFunction_server_auth_header_for
Server-specific ``x-mcp-<alias>-authorization`` header, else the deprecated global one.
litellm/proxy/mcp_server/mcp_server_manager.py:1326
↓ 3 callersFunction_server_everywhere
( client: ManagementClient, server_id: str, *, settled: Callable[[McpServerRow], bool] )
tests/e2e/management/test_mcp_lifecycle_e2e.py:75
↓ 3 callersFunction_server_only_marker_value
(marker: str, value: str)
tests/unit/proxy/test__types.py:53
↓ 3 callersMethod_server_search_response
(self)
tests/unit/proxy/guardrails/guardrail_hooks/test_tool_permission.py:1388
↓ 3 callersFunction_server_span
(otel, path: str, headers: dict[str, str])
tests/unit/integrations/open_telemetry/test_otel_admin_endpoints.py:488
↓ 3 callersFunction_server_spans_by_route
(exporter)
tests/unit/integrations/otel/test_otel_v2_mount.py:373
↓ 3 callersFunction_server_tool_call_id
(call: ChatCompletionAssistantToolCall)
litellm/llms/anthropic/common_utils.py:2439
↓ 3 callersFunction_server_tool_call_id
(tool_call: object)
litellm/integrations/anthropic_cache_control_hook.py:583
↓ 3 callersFunction_server_with_oauth_endpoints
Join deferred discovery for missing endpoints or unknown public-client metadata. Capability discovery is optional when manual endpoints already r
litellm/proxy/mcp_server/discoverable_endpoints.py:818
↓ 3 callersFunction_serves
(text: str)
tests/integration/sdk/test_router_sync_stream_fallback_wire.py:37
↓ 3 callersFunction_service_account
( private_key: str = "pk-1234567890", client_email: str = "svc@example.com" )
tests/unit/proxy/credential_endpoints/test_endpoints.py:526
↓ 3 callersMethod_service_account_token
(self, team_id: str)
tests/unit/proxy/management_helpers/test_team_member_permission_checks.py:446
↓ 3 callersFunction_session
( gateway: Gateway, model: str, key: str, opening: tuple[str, ...], stop: frozenset[str] )
tests/integration/providers/test_bedrock_nova_sonic_realtime_tool_calls.py:520
↓ 3 callersFunction_session_affinity
(request_data: Mapping[str, object])
litellm/proxy/guardrails/guardrail_hooks/headroom/headroom.py:373
↓ 3 callersMethod_session_bearer
(self, user_id="sso-user-42", client_id="llm_dcrc_abc")
tests/unit/proxy/mcp_server/auth/test_user_api_key_auth_mcp.py:8574
↓ 3 callersMethod_session_event_for_client
(self, event: Mapping[str, object])
litellm/litellm_core_utils/realtime_streaming.py:1481
↓ 3 callersFunction_session_from_payload
(payload: Mapping[str, object])
litellm/proxy/client/cli/commands/statusline_script.py:230
↓ 3 callersFunction_session_grouped_mock_prisma
Mock prisma dispatching the raw queries the keyset grouped path emits.
tests/unit/proxy/spend_tracking/test_spend_management_endpoints.py:7230
↓ 3 callersFunction_session_identity_from_cookie
Return ``(user_id, session_key)`` from the UI ``token`` cookie (HS256-signed with ``master_key``), or ``(None, None)`` if missing/invalid. Th
litellm/proxy/mcp_server/byok_oauth_endpoints.py:95
↓ 3 callersFunction_session_page_row
(session_key, last_activity)
tests/unit/proxy/spend_tracking/test_spend_management_endpoints.py:7283
↓ 3 callersFunction_session_update_frame
(session: Mapping[str, object])
litellm/litellm_core_utils/realtime_streaming.py:191
↓ 3 callersMethod_session_update_message_obj
(self, message: str)
litellm/litellm_core_utils/realtime_streaming.py:1065
↓ 3 callersFunction_set
A user edit: set (or with `_ABSENT`, remove) the key at a dotted path in the settings file.
tests/unit/proxy/client/cli/test_claude_settings.py:386
↓ 3 callersFunction_set_authorized_user
Configure auth context with permission to call the specified servers.
tests/unit/proxy/mcp_server/test_mcp_logging.py:348
↓ 3 callersFunction_set_cached_hidden_param
(response: object, key: str, value: object)
litellm/caching/caching_handler.py:305
↓ 3 callersMethod_set_cost_per_request
Helper function to set the cost per request in the logging object Only set the cost per request if it's set in the passthrough loggi
litellm/proxy/pass_through_endpoints/success_handler.py:716
↓ 3 callersFunction_set_event_field
Events are pydantic models with extra fields allowed, so any event type can carry the field.
litellm/responses/mcp/mcp_streaming_iterator.py:68
↓ 3 callersFunction_set_fee
(scenario: Scenario, account_id: str)
tests/integration/spend/test_chatgpt_subscription_usage.py:215
↓ 3 callersMethod_set_final_chunk_usage
(self, chunk: ModelResponseStream)
litellm/litellm_core_utils/streaming_handler.py:2314
↓ 3 callersMethod_set_grounding_usage_counters
(usage: Usage, grounding_metadata: Sequence[Mapping[str, object]])
litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py:2785
↓ 3 callersFunction_set_reserved_entries_actual_cost
Every reserved counter is read from one MGET and the consistent adjustments go out in one pipeline, or are returned unwritten when ``apply_consist
litellm/proxy/spend_tracking/budget_reservation.py:1139
↓ 3 callersFunction_set_throttle_clock
(monkeypatch: pytest.MonkeyPatch, now: float)
tests/unit/proxy/proxy_server/test_routes_login_sso.py:508
↓ 3 callersMethod_setting
(self, setting_name: str)
litellm/proxy/db/db_transaction_queue/spend_log_cleanup.py:543
↓ 3 callersMethod_settings
(self)
litellm/proxy/common_utils/user_api_key_cache.py:123
↓ 3 callersFunction_settings_proxy_config
(tmp_path: Path, name: str, settings: str)
tests/integration/authorization/test_responses_compact_id_ownership.py:587
↓ 3 callersFunction_settle
(execution: Execution, step: Step)
litellm/rust_bridge/execution.py:55
↓ 3 callersFunction_settle
()
tests/unit/test_router/core/test_gaps_l2800.py:43
↓ 3 callersMethod_settle
Wait for retirement to clear and, when given, for the drain to run. The drain pool is shared and bounded, so a shed processor is closed once
tests/unit/integrations/otel/test_otel_v2_destinations.py:4094
↓ 3 callersFunction_settle_background_billing
( settle: _BillingSettlement, retry_delays: Sequence[float] = _BILLING_RETRY_DELAYS_SECONDS )
litellm/proxy/response_api_endpoints/endpoints.py:1102
↓ 3 callersFunction_settled
(step: Step)
litellm/rust_bridge/execution.py:68
↓ 3 callersFunction_settled
(gateway: Gateway, body: Mapping[str, JsonValue])
tests/integration/routing/test_video_poll_routing_wire.py:124
↓ 3 callersFunction_setup_db
Return a database instance with prisma client mocked out.
tests/unit/integrations/cloudzero/test_cloudzero_database.py:12
↓ 3 callersFunction_setup_guardrail
( client: GuardrailsClient, resources: ResourceManager, *, prefix: str, backend: str,
tests/e2e/guardrails/test_openai_moderation_category_matrix_e2e.py:66
↓ 3 callersFunction_setup_managed_file_route_answering_404
Wire the single-file routes to a managed file store that knows no file, the way the managed files hook answers once a file has been deleted or was
tests/unit/proxy/openai_files_endpoint/test_files_endpoint.py:5695
↓ 3 callersFunction_setup_models
(observed: tuple[dict[str, JsonValue], ...])
tests/integration/providers/test_vertex_realtime_multi_region_host.py:237
↓ 3 callersFunction_setup_proxy
(monkeypatch, llm_router: Router)
tests/unit/proxy/test_batch_retrieve_bedrock.py:65
↓ 3 callersFunction_setup_proxy
(monkeypatch, llm_router: Router)
tests/unit/proxy/test_batch_expiry.py:43
↓ 3 callersFunction_setup_role_mappings
Setup role mappings from SSO database settings.
litellm/proxy/management_endpoints/ui_sso.py:1490
↓ 3 callersFunction_setup_update_key_fn_policy_mocks
(monkeypatch, existing_key: LiteLLM_VerificationToken)
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:13924
↓ 3 callersFunction_shadow_eval_jobs
(prisma_client: "PrismaClient")
litellm/proxy/management_endpoints/auto_router_endpoints.py:223
↓ 3 callersFunction_shadowing_alias
A hidden alias whose name is also a real group, live on every candidate so the name routes to ``target``.
tests/integration/authorization/test_hidden_alias_budget_bypass.py:564
↓ 3 callersFunction_shard_files
(path: Path | None)
tests/integration/conftest.py:177
↓ 3 callersFunction_shared_model_info
(shares: Mapping[str, int])
tests/unit/proxy/management_endpoints/test_ptu_model_settings.py:1443
↓ 3 callersFunction_shared_replay_source
(root: Path, profile: MatchProfile = "legacy")
tests/e2e/provider_edge.py:1214
↓ 3 callersFunction_shield_http_response
(attack_detected: bool)
tests/unit/proxy/guardrails/guardrail_hooks/azure/test_azure_prompt_shield.py:291
↓ 3 callersFunction_shipped_kimi_k3_framing
()
tests/unit/proxy/test_proxy_token_counter.py:3312
↓ 3 callersMethod_short_circuit
(self, *, stream: bool, kwargs: dict | None)
tests/unit/integrations/websearch_interception/test_websearch_short_circuit.py:599
↓ 3 callersFunction_short_prompt
()
tests/integration/routing/test_complexity_router_databricks_classifier.py:109
↓ 3 callersFunction_should_check_db
Prevent calling db repeatedly for items that don't exist in the db.
litellm/proxy/auth/auth_checks.py:2858
↓ 3 callersFunction_should_defer_streaming_cache_hit_callbacks
When the cache hit is replayed as a stream, do not run success callbacks at cache-hit time. Cached chat/text completion replay uses CustomSt
litellm/caching/caching_handler.py:249
↓ 3 callersMethod_should_drop_event_from_client
Return True for provider-specific events that must not reach GA clients.
litellm/litellm_core_utils/realtime_streaming.py:1466
↓ 3 callersFunction_should_drop_param
(k, additional_drop_params)
litellm/utils.py:4477
↓ 3 callersFunction_should_passthrough_credential_exchange
Force the Google OAuth2/STS token mint to run live, never from cassette. The mint returns a short-lived ``ya29.*`` access token. Recording it let
tests/_vcr_conftest_common.py:632
↓ 3 callersFunction_should_skip_budget_checks
( request_data: dict[str, object], route: str, request: Request | None, llm_router: litellm.Ro
litellm/proxy/auth/user_api_key_auth.py:4353
↓ 3 callersMethod_should_store_message
( self, message_obj: Mapping[str, object], )
litellm/litellm_core_utils/realtime_streaming.py:653
↓ 3 callersFunction_should_use_dd_tracer
Returns True if `USE_DDTRACE` is set to True in .env
litellm/litellm_core_utils/dd_tracing.py:64
↓ 3 callersMethod_should_use_guardrail_load_balancing
Check if load balancing should be used for this guardrail. Returns True if the router has multiple deployments for this guardrail na
litellm/proxy/utils.py:2599
↓ 3 callersFunction_should_use_role_from_sso_response
returns true if SSO upsert should use the 'role' defined on the SSO response
litellm/proxy/management_endpoints/ui_sso.py:2074
↓ 3 callersMethod_sign
(self, headers: Dict[str, Any], request_data: Dict[str, Any])
tests/unit/llms/bedrock/test_base_aws_llm.py:3320
↓ 3 callersFunction_signed_test_license
(private_key: RSAPrivateKey, max_users: int)
tests/unit/proxy/proxy_server/test_proxy_config.py:2695
↓ 3 callersMethod_signed_upload_request
(self, litellm_params: dict)
tests/unit/llms/bedrock/files/test_bedrock_files_transformation.py:526
↓ 3 callersMethod_signer_that_forbids_credentials
(self)
tests/unit/llms/bedrock_mantle/test_bedrock_mantle_transformation.py:454
↓ 3 callersFunction_simple_expected_input
(marker: str, *, marked: bool)
tests/integration/providers/_responses_bridge_prompt_cache_breakpoint.py:239
↓ 3 callersFunction_single
(values: frozenset[str])
tests/integration/providers/test_gemini_tool_result_part_reference_wire.py:310
↓ 3 callersFunction_single
(values: AbstractSet[str])
tests/integration/providers/test_gemini_thinking_replay_wire.py:207
↓ 3 callersMethod_single_credential_tools
Tool allowlist on ``server_id`` for one credential pinned to at most one team: the key's own and its team's tool rules under the end-user, use
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:3306
↓ 3 callersFunction_single_spend_row
(item: _Sent)
tests/integration/providers/test_cache_control_tool_call_marks_owned_proxy.py:138
↓ 3 callersFunction_single_tagged_status
(tag: str)
tests/integration/providers/test_bedrock_mantle_context_overflow_wire.py:738
↓ 3 callersFunction_sink_hits
(policy: Wire, marker: str)
tests/integration/authorization/test_key_guardrail_opt_out_runtime.py:31
↓ 3 callersFunction_skill_response
(request: Request, plugin: PluginListItem, download_count: int | None = None)
litellm/proxy/discovery_endpoints/skill_hub_endpoints.py:110
↓ 3 callersMethod_skip_set_global
(self)
litellm/integrations/opentelemetry.py:644
↓ 3 callersMethod_slo_metadata
(self)
tests/unit/integrations/test_opentelemetry.py:196
↓ 3 callersFunction_small_and_big_openai_embedders
(make_core: MakeCore, small: int)
tests/unit/test_router/core/test_construction_precall_characterization_precall.py:90
← previousnext →25,101–25,200 of 202,479, ranked by callers