MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 9 callersFunction_pinned
A single keep-alive connection, so every request on it is served by the worker that accepted it.
tests/integration/mcp/test_mcp_listed_tool_metadata.py:131
↓ 9 callersFunction_pinned
(proxy: Gateway)
tests/integration/spend/test_daily_activity_key_metadata_query_timeout.py:289
↓ 9 callersFunction_poll
(proxy: Gateway, session: CliSession)
tests/integration/authorization/test_sso_blank_identity.py:502
↓ 9 callersFunction_post
(rig: _Rig, path: str, body: Mapping[str, JsonValue], *, key: str | None = None)
tests/integration/streaming/test_interception_converted_stream_options.py:257
↓ 9 callersFunction_post_chat
(gateway: Gateway, body: Mapping[str, JsonValue])
tests/integration/providers/test_bedrock_converse_missing_content_wire.py:219
↓ 9 callersFunction_post_rag_query
( client: TestClient, *, retrieval_config: Mapping[str, object], managed_stores: Sequence[Lite
tests/unit/proxy/rag_endpoints/test_rag_endpoints.py:393
↓ 9 callersMethod_prepare
( self, audio_file: FileTypes | None, optional_params: dict, litellm_params: d
litellm/llms/soniox/audio_transcription/handler.py:215
↓ 9 callersFunction_prepare_request_data_and_content
Helper function to route data/content parameters correctly for httpx requests This prevents httpx DeprecationWarnings that cause memory leak
litellm/llms/custom_httpx/http_handler.py:277
↓ 9 callersMethod_preview
(**payload)
tests/unit/proxy/management_endpoints/test_model_management_endpoints.py:7723
↓ 9 callersFunction_priced_jev_models
()
tests/unit/proxy/proxy_server/test_routes_models.py:620
↓ 9 callersFunction_prisma
()
tests/unit/proxy/db/test_proxy_worker_heartbeat.py:20
↓ 9 callersFunction_prisma_client
(file_rows=None, batch_rows=None)
tests/unit/proxy/pass_through_endpoints/test_managed_id_rewriter.py:40
↓ 9 callersFunction_prisma_client_over
(table: _InMemorySearchToolsTable)
tests/unit/proxy/management_endpoints/search_endpoints/test_search_tool_management.py:1332
↓ 9 callersMethod_prisma_with_row
(model_id: str, model_name: str, deployment_count: int)
tests/unit/proxy/management_endpoints/test_model_management_endpoints.py:8704
↓ 9 callersMethod_process_async_embedding_cached_response
Returns the final embedding cached response and a boolean indicating if all elements in the list have a cache hit For embedding resp
litellm/caching/caching_handler.py:641
↓ 9 callersFunction_producer
( path: Path, fallback: _Fallback, on_unavailable="fallback", buffer_size: int = 100, open
tests/unit/proxy/spend_tracking/test_spend_event_producer.py:116
↓ 9 callersFunction_project_update_mocks
(monkeypatch, stored_metadata: dict)
tests/unit/enterprise/proxy/management_endpoints/test_project_endpoints_prisma.py:1244
↓ 9 callersFunction_prompt
(status: int, count_model_status: int | None = None)
tests/integration/providers/test_count_tokens_model_wire.py:113
↓ 9 callersFunction_prompt_token_counter_calls
(token_counter: MagicMock)
tests/unit/test_main.py:4526
↓ 9 callersFunction_provider
(*, responses: bool = False)
tests/unit/llms/openai_like/test_provider_affinity_forwarding.py:13
↓ 9 callersFunction_provider_calls
(wire: Wire)
tests/integration/sdk/test_stream_open_error_provider_headers_sdk.py:224
↓ 9 callersFunction_provider_config_items
(config: Mapping[str, object])
litellm/main.py:1437
↓ 9 callersFunction_proxy_url
(gateway: Gateway)
tests/integration/providers/test_bedrock_converse_missing_content_wire.py:196
↓ 9 callersFunction_ptu_response
(usage: Usage)
tests/unit/proxy/hooks/test_parallel_request_limiter_v3.py:9246
↓ 9 callersMethod_query_first_with_cached_plan_fallback
Execute a query, recovering once from PostgreSQL's "cached plan must not change result type" error. That error surfaces duri
litellm/proxy/utils.py:6075
↓ 9 callersFunction_raise_timeout
(error: httpx.TimeoutException, started_at: float)
litellm/llms/custom_httpx/http_handler.py:650
↓ 9 callersFunction_ranker
(embedder: RecordingEmbedder | None = None)
tests/unit/proxy/mcp_server/test_mcp_tool_search.py:211
↓ 9 callersMethod_rate_limited_model
(self, requested_model: str | None)
litellm/proxy/hooks/parallel_request_limiter_v3.py:2441
↓ 9 callersFunction_reasoning_chunk
(reasoning: str, finish_reason: str | None = None)
tests/unit/responses/litellm_completion_transformation/test_streaming_iterator_transformation.py:1302
↓ 9 callersFunction_recording_callback
( events: List[str], name: str, fired: asyncio.Event )
tests/unit/proxy/common_utils/test_config_sync_pubsub.py:217
↓ 9 callersFunction_recording_validator
(recorded, valid=True, error_message=None)
tests/unit/proxy/management_endpoints/test_team_endpoints.py:14171
↓ 9 callersMethod_refresher
( self, source: PgBouncerTokenSource, installed: list[str], install: Callable[
tests/unit/proxy/db/test_pgbouncer.py:609
↓ 9 callersFunction_refused
(status: int, response: httpx.Response)
tests/integration/providers/_idle_upstream_support.py:172
↓ 9 callersFunction_register_agent
(gateway: Gateway, scenario: Scenario, body: dict[str, JsonValue])
tests/integration/compatibility/test_a2a_wire_versions.py:57
↓ 9 callersFunction_register_chat_model
(proxy: ProxyClient, resources: ResourceManager)
tests/e2e/llm_translation/test_chat_completions_contract_e2e.py:41
↓ 9 callersFunction_register_oauth
(scenario, peer: McpPeer, auth: AuthorizationServer, alias: str, **fields: object)
tests/integration/mcp/test_mcp_oauth_flows.py:98
↓ 9 callersMethod_reload_with_db_server
(manager: MCPServerManager, server_id: str, db_name: str = "db_server")
tests/unit/proxy/mcp_server/test_mcp_server_manager.py:14798
↓ 9 callersMethod_reminder_markers_for_request
(self, request_kwargs: Mapping[str, object])
litellm/router_strategy/complexity_router/complexity_router.py:4392
↓ 9 callersFunction_replayed_messages_from
( turns: Sequence[Mapping[str, object]], current: Mapping[str, object], *, model: str = _CLAUD
tests/unit/responses/litellm_completion_transformation/test_litellm_completion_responses.py:6281
↓ 9 callersFunction_req_with_headers
(headers, body=b"")
tests/unit/test_vcr_safe_body_matcher.py:42
↓ 9 callersFunction_request
( proxy: Gateway, model: str, marker: str, *, prompt: str = "weather in Paris?", heade
tests/integration/observability/test_arize_otel_v2_openinference_modes.py:37
↓ 9 callersMethod_request
()
tests/unit/integrations/test_custom_guardrail.py:3353
↓ 9 callersFunction_requested_model_values
(metric)
tests/unit/integrations/test_prometheus_requested_model_cardinality.py:81
↓ 9 callersFunction_rerank
(candidate: Gateway, model: str, path: str = "/v1/rerank", **extra: JsonValue)
tests/integration/providers/test_voyage_mongodb_host_wire.py:225
↓ 9 callersFunction_reserve_budget_after_common_checks
( user_api_key_auth_obj: UserAPIKeyAuth, request_data: dict, route: str, llm_router: litellm.R
litellm/proxy/auth/user_api_key_auth.py:4307
↓ 9 callersFunction_resolve_model_for_cost_lookup
Resolve a model name (which may be a router alias/model_group) to the underlying litellm model name, provider, and any deployment-configured
litellm/proxy/management_endpoints/cost_tracking_settings.py:97
↓ 9 callersMethod_resolve_num_trusted_hops
(raw_num_trusted_hops: object)
litellm/proxy/auth/ip_address_utils.py:259
↓ 9 callersMethod_resolve_user_id
Resolve the Entra user object ID from request data or auth context. Returns the strongest available identity walking down four sources, in
litellm/proxy/guardrails/guardrail_hooks/microsoft_purview/base.py:289
↓ 9 callersFunction_responses_completed
( model: str, input_tokens: int, output_tokens: int, event: str = "response.completed", se
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_openai_websocket_passthrough_logging_handler.py:55
↓ 9 callersMethod_retrieved_response
(self, background: bool | None = None)
tests/unit/litellm_core_utils/test_litellm_logging.py:8394
↓ 9 callersFunction_role_and_content
(message: object)
tests/unit/responses/litellm_completion_transformation/test_session_handler.py:909
↓ 9 callersMethod_rotate_key
Rotate a single key using existing regenerate_key_fn and call the rotation hook
litellm/proxy/common_utils/key_rotation_manager.py:164
↓ 9 callersMethod_route
( router: ComplexityRouter, metadata: Mapping[str, object], proposed_model: str,
tests/unit/router_strategy/test_complexity_router.py:6691
↓ 9 callersFunction_router
(wire: Wire, primary_model_info: Mapping[str, object] | None = None, **settings: object)
tests/integration/sdk/test_router_unsupported_params_fallback_wire.py:86
↓ 9 callersFunction_router_settings_row
(content_policy_fallbacks: object)
tests/unit/proxy/test_proxy_server_endpoints_and_startup.py:5715
↓ 9 callersFunction_router_with_priced_and_unpriced_models
()
tests/unit/proxy/auth/test_auth_checks_object_access_and_lookup.py:10001
↓ 9 callersFunction_routes
(received: tuple[Request, ...])
tests/integration/providers/test_bedrock_runtime_chat_completions_sad_wire.py:95
↓ 9 callersFunction_row
(param_value=None, reload_revision=0, last_run_at=None)
tests/unit/proxy/common_utils/test_periodic_reload_schedule.py:24
↓ 9 callersFunction_row
(window_start: datetime, spend: float)
tests/unit/proxy/db/test_spend_counter_reseed.py:85
↓ 9 callersFunction_row
(request_id: str, blob_bytes: int = 0)
tests/unit/proxy/db/test_spend_log_batching.py:26
↓ 9 callersFunction_row_id
()
tests/integration/spend/test_daily_activity_aggregated_breakdowns.py:45
↓ 9 callersFunction_run
(bin_dirs: list[Path], home: Path)
tests/unit/test_with_dashboard_node.py:28
↓ 9 callersFunction_run
(mw, scope)
tests/unit/proxy/middleware/test_per_request_root_path_middleware.py:75
↓ 9 callersFunction_run
(coro)
tests/unit/llms/vertex_ai/batches/test_handler.py:99
↓ 9 callersMethod_run
( self, processor: ProxyBaseLLMRequestProcessing, user_api_key_dict: ProxyUserAPIKeyAu
tests/unit/proxy/test_common_request_processing.py:8488
↓ 9 callersFunction_run_auth_builder_with_header_team
( jwt_auth_config: LiteLLM_JWTAuth, token: dict, header_team_id: str, user_object: LiteLLM_Use
tests/unit/proxy/auth/test_handle_jwt.py:5935
↓ 9 callersFunction_run_passthrough_failure
( target: str, custom_llm_provider: str | None, upstream: httpx.Response | Exception, stream:
tests/unit/proxy/pass_through_endpoints/test_pass_through_endpoints.py:10572
↓ 9 callersFunction_run_project_update
(project_id: str, **fields)
tests/unit/enterprise/proxy/management_endpoints/test_project_endpoints_prisma.py:1264
↓ 9 callersFunction_run_update
(data: UpdateMCPServerRequest, fields_set=None)
tests/unit/proxy/mcp_server/test_mcp_partial_update.py:51
↓ 9 callersFunction_run_verifier
( wheel: Path, *, exposes_panic: bool = False, )
tests/unit/rust_bridge/test_verify_linux_native_wheel.py:105
↓ 9 callersFunction_sampled_arize_logger
( random_draw: Callable[[], float] | None = None, )
tests/unit/integrations/arize/test_arize.py:174
↓ 9 callersMethod_scanned_prompt
(guardrail, data, monkeypatch)
tests/unit/proxy/guardrails/guardrail_hooks/test_repelloai.py:284
↓ 9 callersFunction_schema_sent_through
( gateway: Gateway, wire: Wire, endpoint: Endpoint, model: str, tool: Mapping[str, JsonValue], **extra: Js
tests/integration/providers/test_bedrock_converse_lookaround_regex_wire.py:291
↓ 9 callersMethod_scope
(self, bearer, path="/mcp", extra_headers=())
tests/unit/proxy/mcp_server/auth/test_user_api_key_auth_mcp.py:8594
↓ 9 callersFunction_search
( asynchronous: bool, respond: Callable[[httpx.Request], httpx.Response], executor: RecordingEmbed
tests/unit/llms/opensearch/vector_stores/test_opensearch_transformation.py:128
↓ 9 callersFunction_search_kwargs
(**overrides)
tests/unit/llms/s3_vectors/vector_stores/test_s3_vectors_transformation.py:44
↓ 9 callersFunction_secret_fields
(assertion: str)
tests/unit/llms/microsoft_365_copilot/chat/test_handler.py:40
↓ 9 callersFunction_select
( *, router: Router, config: ComplexityRouterConfig, response: PreRoutingHookResponse, bod
tests/unit/proxy/common_utils/test_cache_aware_routing.py:135
↓ 9 callersFunction_send
(gateway: Gateway, endpoint: Endpoint, body: Mapping[str, JsonValue], *, key: str | None = None)
tests/integration/providers/test_bedrock_kimi_k3_cache_point_wire.py:525
↓ 9 callersFunction_send
(gateway: Gateway, model: str, shape: ShapeName, tag: str, *, cached: bool = True)
tests/integration/messages_endpoint/chat_bridge/test_chat_bridge_multi_tool_call_blocks_wire.py:408
↓ 9 callersFunction_send
( gateway: Gateway, path: str, body: Callable[[str], Mapping[str, JsonValue]], *, key: str | None = None )
tests/integration/routing/test_include_fallback_errors_wire.py:231
↓ 9 callersFunction_sent_body
(route: respx.Route)
tests/unit/llms/bedrock_mantle/test_bedrock_mantle_messages_transformation.py:102
↓ 9 callersFunction_serve_credential
( credential_store: _InstallCredentialStore, served: CredentialItem, in_memory: tuple[CredentialIt
tests/unit/proxy/credential_endpoints/test_endpoints.py:512
↓ 9 callersFunction_served_by_every_worker
(gateway: Gateway, identities: frozenset[str])
tests/integration/routing/test_non_chat_model_endpoint_gate.py:188
↓ 9 callersFunction_served_name
The prefixed name this worker lists for ``tool`` once its registry reload carries the server.
tests/integration/mcp/test_mcp_listed_tool_metadata.py:174
↓ 9 callersMethod_service_span
(self, service, call_type, dsn, error=None, replica_dsn=None)
tests/unit/integrations/test_opentelemetry.py:7088
↓ 9 callersFunction_set_http2
(monkeypatch: pytest.MonkeyPatch, enabled: bool)
tests/integration/sdk/test_http2_wire.py:240
↓ 9 callersFunction_set_prisma
(monkeypatch, prisma)
tests/unit/proxy/policy_engine/test_policy_engine_endpoints.py:77
↓ 9 callersFunction_settle_audit_log_tasks
()
tests/unit/proxy/management_endpoints/test_team_endpoints.py:15097
↓ 9 callersFunction_settled
(read: Callable[[], T], satisfied: Callable[[T], bool], *, seconds: float = CONVERGENCE_SECONDS)
tests/integration/compatibility/test_codex_model_catalog.py:147
↓ 9 callersFunction_setup_unscoped_list_files_route
Wire GET /v1/files to the managed file store, with afile_list as the store.
tests/unit/proxy/openai_files_endpoint/test_files_endpoint.py:3165
↓ 9 callersFunction_seven_day_policy
(received: list[CustomKeyPolicyRequest])
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:13777
↓ 9 callersFunction_shell
Type each line into a bare `lite` shell against the gateway, then quit
tests/unit/proxy/client/cli/test_interface.py:14
↓ 9 callersFunction_should_run_cooldown_logic
Helper that decides if cooldown logic should be run Returns False if cooldown logic should not be run Does not run cooldown logic when:
litellm/router_utils/cooldown_handlers.py:337
↓ 9 callersMethod_span
(self)
tests/unit/integrations/test_opentelemetry.py:6157
↓ 9 callersFunction_spans_carrying
(batches: Sequence[Request], marker: str, name: str | None = "litellm_request")
tests/integration/observability/test_langtrace_delivery.py:167
↓ 9 callersFunction_spend_error_information
(call_id: str)
tests/integration/observability/test_passthrough_upstream_error_visibility.py:97
↓ 9 callersFunction_spend_logs_metadata
(row: Mapping[str, JsonValue])
tests/integration/spend/test_passthrough_request_tags.py:85
↓ 9 callersFunction_spend_logs_table_prisma
()
tests/unit/proxy/db/test_db_spend_update_writer.py:4756
↓ 9 callersFunction_spend_rows
(key: str, count: int)
tests/integration/providers/test_realtime_transcription_guardrail_session_update.py:800
← previousnext →7,701–7,800 of 202,479, ranked by callers