MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 3 callersFunction_handler_result
(response_body: dict, request_body: dict)
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_typesafe_passthrough_logging_handler.py:36
↓ 3 callersMethod_has_agentic_completion_hook
True if any registered callback actually overrides ``async_should_run_agentic_loop`` (the gate every agentic hook goes throug
litellm/llms/custom_httpx/llm_http_handler.py:5988
↓ 3 callersMethod_has_any_special_delta_attributes
Check if delta has any special attributes (audio, image).
litellm/litellm_core_utils/streaming_handler.py:1240
↓ 3 callersFunction_has_meaningful_content
Check if a value contains meaningful content. Args: value: The value to check Returns: bool: True if the value has mean
litellm/litellm_core_utils/model_response_utils.py:86
↓ 3 callersFunction_has_oauth_discovery_source
Whether the server has any source OAuth discovery can fetch metadata from. Resource-rooted discovery (RFC 9728) is fetched from the server ``url`
litellm/proxy/mcp_server/mcp_server_manager.py:707
↓ 3 callersMethod_has_post_call_guardrails_for_passthrough
True when a post_call guardrail will actually run for THIS request. Mirrors the gate in ProxyLogging.post_call_success_hook
litellm/proxy/common_request_processing.py:3983
↓ 3 callersFunction_has_pre_call_deployment_hook
(logging_obj: LiteLLMLoggingObj)
litellm/llms/custom_httpx/llm_http_handler.py:529
↓ 3 callersMethod_has_retrieval_tool
(self, tools: object)
litellm/integrations/compression_interception/handler.py:412
↓ 3 callersFunction_has_root
(spans: tuple[Span, ...])
tests/integration/observability/test_otel_excluded_services_matrix.py:357
↓ 3 callersMethod_has_special_delta_attribute
Check if delta has a specific attribute and it's not None.
litellm/litellm_core_utils/streaming_handler.py:1228
↓ 3 callersFunction_has_tool_result
(body: Mapping[str, object])
tests/integration/mcp/test_mcp_llm_endpoints.py:170
↓ 3 callersFunction_hashed
(key: str)
tests/integration/spend/test_gemini_tts_speech_billing.py:110
↓ 3 callersFunction_header_cost_chat_response
(additional_headers: dict[str, str])
tests/unit/test_cost_calculator.py:911
↓ 3 callersFunction_headers
(key: str, extra: Mapping[str, str] | None)
tests/integration/providers/test_realtime_unguarded_voice_turns.py:364
↓ 3 callersFunction_headers
(credential: Credential, key: str)
tests/integration/authorization/test_unknown_key_generic_401.py:111
↓ 3 callersMethod_headers
(self)
tests/integration/_support/mcp.py:678
↓ 3 callersMethod_headers
(self)
tests/e2e/secret_manager/secret_store_hashicorp_vault.py:63
↓ 3 callersMethod_headers
(self, content_type: str | None = None)
tests/e2e/secret_manager/secret_store_cyberark.py:62
↓ 3 callersFunction_health_chat_reply
(request: Request, *, api_key: str, model: str, status: int = 200)
tests/integration/management/test_model_health_check.py:373
↓ 3 callersFunction_health_connection_response
( request: Request, model: str, *, validate_request_body: bool = True, expected_temperatur
tests/integration/management/test_model_health_check.py:823
↓ 3 callersFunction_health_routing_config
(directory: Path, general_settings: dict[str, object])
tests/integration/management/test_health_routing.py:17
↓ 3 callersFunction_hibp_client_with_handler
A real AsyncHTTPHandler over httpx.MockTransport (the DI seam used throughout test_password_policy.py), so no network is touched.
tests/unit/proxy/management_endpoints/test_internal_user_endpoints.py:5128
↓ 3 callersFunction_hidden
(response: object)
tests/unit/test_router/core/test_gaps_l5600.py:53
↓ 3 callersFunction_hidden_submit_model_warnings
(caplog: pytest.LogCaptureFixture)
tests/unit/proxy/policy_engine/test_response_retrieval.py:166
↓ 3 callersFunction_highlight
(s,o,a,w)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 3 callersFunction_histogram_of
(*values: float | None)
tests/unit/telemetry/test_histogram.py:11
↓ 3 callersFunction_history
(marker: str, **assistant_fields: JsonValue)
tests/integration/providers/test_responses_bridge_tool_search_replay.py:176
↓ 3 callersFunction_history
(gateway: Gateway, name: str, **params: str)
tests/integration/management/test_skill_download_history.py:60
↓ 3 callersFunction_hit
(posted: tuple[_Posted, ...])
tests/integration/sdk/test_router_include_fallback_errors_wire.py:136
↓ 3 callersFunction_hold_team_lock
Take the team's advisory lock and return its pg_locks key. Reading the key back off our own backend avoids re-deriving hashtext()'s signed 32
tests/integration/management/test_team_delete_member_add_race.py:61
↓ 3 callersFunction_holding_team_lock
Hold ``team_id``'s advisory lock in a test-owned transaction and yield the holder's backend pid; leaving the block commits, which releases the loc
tests/integration/management/test_team_delete_chaos.py:270
↓ 3 callersFunction_holds
(team_id: str, identity: str)
tests/integration/management/test_ptu_share_guards.py:200
↓ 3 callersMethod_hook
(guardrail: CustomGuardrail, upstream: AsyncIterator[ModelResponseStream])
tests/unit/proxy/guardrails/guardrail_hooks/unified_guardrails/test_unified_guardrail.py:3058
↓ 3 callersFunction_hook_output
( model: str, points: tuple[Mapping[str, object], ...] = ({"location": "message", "index": -1},), **params
tests/unit/integrations/test_anthropic_cache_control_hook.py:1426
↓ 3 callersFunction_hosted_openai_dialect_flag
Explicit opt-in for an OpenAI-shaped deployment served by another provider. ``model_cost`` is keyed per deployment string, so a flag on the
litellm/integrations/anthropic_cache_control_hook.py:444
↓ 3 callersMethod_http
(self, client: AsyncHTTPHandler | None)
litellm/llms/e2b/sandbox/transformation.py:47
↓ 3 callersMethod_http_client
(timeout: float = 90.0)
litellm/a2a_protocol/providers/watsonx_orchestrate/handler.py:93
↓ 3 callersFunction_http_observed
(endpoint: Endpoint, stream: bool, response: httpx.Response)
tests/integration/providers/test_gemini_tool_result_part_reference_wire.py:422
↓ 3 callersFunction_http_request_scope
()
tests/unit/proxy/test_proxy_server_endpoints_and_startup.py:11807
↓ 3 callersFunction_http_server
(server_id: str, name: str, **kwargs)
tests/unit/proxy/mcp_server/test_mcp_oauth_passthrough_tools.py:321
↓ 3 callersFunction_http_status_error
(status: int = 500, text: str = "upstream error body")
tests/unit/proxy/guardrails/guardrail_hooks/test_compresr.py:1886
↓ 3 callersFunction_httpx_answer
(response: httpx.Response, response_id: Callable[[httpx.Response], str | None])
tests/integration/routing/test_fallback_hop_foreign_encrypted_reasoning.py:460
↓ 3 callersFunction_httpx_chat
(gateway: Gateway, model: str, voice: JsonValue, text: str, *, stream: bool)
tests/integration/providers/test_gemini_tts_voice_mapping_wire.py:117
↓ 3 callersFunction_hydrate_spend_log_metadata
Re-hydrate the JSONB ``metadata`` column returned by ``query_raw`` as a string. The Prisma serialiser bypasses the model-layer JSON hydration we
litellm/proxy/spend_tracking/spend_management_endpoints.py:3189
↓ 3 callersFunction_identity_resource
(request: Request)
tests/integration/providers/test_azure_entra_token_reuse_wire.py:160
↓ 3 callersFunction_identity_with_user
An IdP identity plus the litellm user and team its claims resolve to, with teardown that also sweeps the user's keys and JWT mapping rows the prox
tests/e2e/other/test_jwt_auto_register_e2e.py:51
↓ 3 callersFunction_idp_upstream
(origin: Callable[[], str], moved: threading.Event, hold: _Hold | None = None)
tests/integration/mcp/test_oauth_configuration.py:369
↓ 3 callersFunction_ids
()
tests/integration/_support/bedrock_realtime_peer.py:57
↓ 3 callersMethod_ids
(self)
tests/integration/compatibility/_a2a_peers.py:104
↓ 3 callersFunction_image_dimensions_from_bytes
(img_data: bytes)
litellm/litellm_core_utils/token_counter.py:288
↓ 3 callersFunction_image_gen_token_usage
(input_text, input_image, output_image, output_text)
tests/unit/litellm_core_utils/llm_cost_calc/test_tool_call_cost_tracking.py:794
↓ 3 callersMethod_image_message
(items)
tests/unit/llms/anthropic/messages/responses_adapters/test_responses_adapters_transformation.py:1813
↓ 3 callersFunction_image_model
(scenario: Scenario, group: str, wire: Wire)
tests/integration/routing/test_key_router_settings_image_generation.py:53
↓ 3 callersFunction_image_part
(content: bytes)
tests/e2e/llm_translation/test_image_edits_e2e.py:46
↓ 3 callersFunction_image_reply
(bare: str, prompt: str)
tests/integration/routing/test_declared_provider_bare_model_routes.py:97
↓ 3 callersFunction_image_response
(num_images: int = 1, usage: ImageUsage | None = None)
tests/unit/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py:4054
↓ 3 callersFunction_in_scope
(span: ReadableSpan, scope: "OtelSpanScope")
litellm/integrations/otel/plumbing/providers.py:601
↓ 3 callersFunction_in_three_requests
(first_id: str, last: Answer)
tests/integration/providers/test_gemini_long_decode_wire.py:499
↓ 3 callersFunction_include_router
(attr_name: str = "router")
litellm/proxy/_lazy_features.py:37
↓ 3 callersMethod_include_thoughts
(requested: bool | None)
litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py:1488
↓ 3 callersMethod_incoming
(self, content: list[TextContent])
tests/unit/proxy/mcp_server/test_result_conversion.py:115
↓ 3 callersMethod_incr
(self, counter: str, amount: float)
tests/unit/redis/stores/spend_counters_double.py:252
↓ 3 callersMethod_increment
(self, key: str, value: int, ttl: int)
litellm/router_utils/pre_call_checks/model_rate_limit_check.py:144
↓ 3 callersMethod_increment_content_block_index
(self)
litellm/llms/anthropic/messages/adapters/streaming_iterator.py:1431
↓ 3 callersMethod_increment_top_level_request_and_spend_metrics
( self, end_user_id: str | None, user_api_key: str | None, user_api_key_alias:
litellm/integrations/prometheus.py:2296
↓ 3 callersFunction_index_state
(connection: "psycopg.Connection[tuple[object, ...]]", schema: str, index: str)
litellm-proxy-extras/litellm_proxy_extras/request_log_indexes.py:243
↓ 3 callersFunction_infer_mime_type_from_gcs_url
Infer MIME type from GCS URL file extension. Args: gcs_url: GCS URL like gs://bucket/path/to/file.png Returns: str: Inf
litellm/llms/vertex_ai/gemini_embeddings/batch_embed_content_transformation.py:68
↓ 3 callersFunction_inference_and_count
(peer: Wire)
tests/integration/providers/test_anthropic_count_tokens_system_lift_wire.py:641
↓ 3 callersMethod_inference_configuration
(config: BedrockRealtimeConfig, session: dict[str, object])
tests/unit/llms/bedrock/realtime/test_bedrock_realtime_transformation.py:1635
↓ 3 callersFunction_inference_params
( litellm_params: Mapping[str, object], responses_request: Mapping[str, object] )
litellm/proxy/proxy_server.py:15878
↓ 3 callersFunction_ingestion
(chunking_strategy: object)
tests/unit/rag/ingestion/test_gemini_ingestion.py:21
↓ 3 callersMethod_init_azure_client_for_cloudflare_ai_gateway
( self, api_base: str, model: str, api_version: str, max_retries: int,
litellm/llms/azure/common_utils.py:963
↓ 3 callersMethod_init_coordination_redis
Builds the coordination Redis from `general_settings.coordination_redis` when present, attaching it to the proxy-level caches. Runs b
litellm/proxy/proxy_server.py:6416
↓ 3 callersMethod_init_guardrails_in_db
(self, prisma_client: PrismaClient)
litellm/proxy/proxy_server.py:9640
↓ 3 callersMethod_init_non_llm_objects_in_db
Use this to read non-llm objects from the db and initialize them ex. Vector Stores, Guardrails, MCP tools, etc.
litellm/proxy/proxy_server.py:9072
↓ 3 callersMethod_init_policy_engine
Initialize the policy engine from config. Args: config: The proxy configuration dictionary prisma_client: Op
litellm/proxy/proxy_server.py:7704
↓ 3 callersFunction_initialized_guardrail
(guardrail_name: str)
litellm/proxy/common_utils/registry_read_through.py:343
↓ 3 callersFunction_inject_llm_router
(client: TestClient, llm_router: Router)
tests/unit/proxy/management_endpoints/test_daily_activity_routes.py:674
↓ 3 callersMethod_input
(self, remote: str)
tests/unit/llms/bedrock/responses/test_bedrock_openai_responses.py:426
↓ 3 callersFunction_input_audio_append_message
(raw_byte_count: int)
tests/unit/llms/gemini/realtime/test_gemini_realtime_transformation.py:2271
↓ 3 callersFunction_input_item_tools
(item: object)
litellm/proxy/guardrails/guardrail_hooks/tool_permission.py:245
↓ 3 callersFunction_input_items
(data: object)
litellm/proxy/guardrails/guardrail_hooks/tool_permission.py:256
↓ 3 callersFunction_input_transformations_response
()
tests/unit/llms/anthropic/chat/test_anthropic_chat_transformation.py:10713
↓ 3 callersFunction_insert_code
( api_key: str, server_id: str, user_id: str, challenge: str, redirect_uri: str, ttl:
tests/unit/proxy/mcp_server/test_byok_oauth_endpoints.py:350
↓ 3 callersFunction_insert_nameless_spend_logs
(connection: psycopg.Connection[tuple[object, ...]], digest: str, rows: int)
tests/integration/spend/test_key_metadata_recovery_probe_bounds.py:113
↓ 3 callersFunction_inside_step
Hold the nesting guard for the duration, restoring whatever it was.
tests/e2e/e2e_metadata.py:362
↓ 3 callersFunction_install_callbacks_config
(monkeypatch, mock_prisma)
tests/unit/proxy/proxy_server/test_routes_config.py:1300
↓ 3 callersMethod_install_counting_upstream
Route every upstream POST to a 500 and count it. ``retry-after: 0`` keeps provider-SDK backoff at zero so a mutated (double-retrying) build st
tests/unit/test_router_per_deployment_num_retries.py:236
↓ 3 callersMethod_install_fake_proxy_server
Install a stub ``litellm.proxy.proxy_server`` so the test does not depend on optional proxy dependencies (websockets, etc.). Returns (
tests/unit/integrations/test_opentelemetry.py:5107
↓ 3 callersFunction_install_fake_sandbox
(monkeypatch, session_cls=_FakeSandboxSession)
tests/unit/llms/litellm_proxy/test_sandbox_executor.py:50
↓ 3 callersFunction_install_fake_sdk_modules
Wire fake aws_sdk_bedrock_runtime / smithy packages into sys.modules for the handler's lazy imports.
tests/unit/llms/bedrock/realtime/test_bedrock_realtime_handler.py:475
↓ 3 callersFunction_install_tool_policies
(monkeypatch: pytest.MonkeyPatch, input_policies: Mapping[str, str])
tests/unit/proxy/guardrails/guardrail_hooks/test_tool_policy_guardrail.py:230
↓ 3 callersFunction_installed
(logger: _RecordingLogger)
tests/unit/test_router_silent_experiment.py:126
↓ 3 callersFunction_int
(value: JsonValue)
tests/integration/messages_endpoint/providers/anthropic/test_pdf_document_count_tokens_wire.py:64
↓ 3 callersFunction_int_value
(rows: Sequence[Mapping[str, JsonValue]], column: str)
tests/integration/management/test_scim_group_bulk_roster.py:227
↓ 3 callersFunction_integer_setting
(value: JsonValue)
litellm/llms/bedrock/realtime/transformation.py:122
↓ 3 callersMethod_interaction
(self, status)
tests/unit/llms/gemini/audio_transcription/test_gemini_audio_transcription_transformation.py:284
↓ 3 callersMethod_interaction_by_id_request
( self, interaction_id: str, api_base: str, litellm_params: GenericLiteLLMPara
litellm/llms/vertex_ai/interactions/transformation.py:114
↓ 3 callersFunction_interception_proxy
( directory: Path, respond: Callable[[Request], Reply], general_settings: Mapping[str, JsonValue],
tests/integration/streaming/test_interception_converted_stream_options.py:195
↓ 3 callersMethod_interrupted_chunks
(self, *, placeholder_output_tokens: int = 2, model: str | None = None)
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_anthropic_passthrough_logging_handler.py:1553
← previousnext →23,601–23,700 of 202,479, ranked by callers