MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 13 callersMethod_route
(self, path: str)
tests/e2e/transport.py:361
↓ 13 callersFunction_router
()
tests/unit/proxy/management_endpoints/test_auto_router_endpoints.py:74
↓ 13 callersFunction_router
( name: str, config: Mapping[str, object] | None, *, tags: list[str] | None = None, db_id:
tests/unit/router_strategy/test_auto_router_tuning_baseline.py:39
↓ 13 callersMethod_router
(mock_router_instance, **overrides)
tests/unit/router_strategy/test_complexity_router.py:2974
↓ 13 callersMethod_row
()
tests/unit/proxy/management_endpoints/test_model_management_endpoints.py:9013
↓ 13 callersFunction_row_values
Every row's value for one column, read out of the flat parameter tuple.
tests/unit/proxy/db/test_db_spend_update_writer.py:413
↓ 13 callersFunction_run
(path: str, query: str, key: str | None, *, turns: int = 0, ws_base: str | None = None)
tests/integration/providers/test_openai_realtime_transcription_url.py:196
↓ 13 callersFunction_run
(prisma, users, caller=ADMIN, license=None, generate_key=_no_keys)
tests/unit/proxy/management_helpers/test_bulk_user_creation.py:182
↓ 13 callersMethod_run_converse_stream
( self, monkeypatch, guardrail, chunks, event_stream_hook=None,
tests/unit/proxy/test_common_request_processing.py:6789
↓ 13 callersFunction_run_legacy_streaming_step
( monkeypatch, guardrail, chunks, on_fail="block", on_error="next", translation=None )
tests/unit/proxy/policy_engine/test_pipeline_executor.py:1672
↓ 13 callersFunction_run_log_event
( callback_params: dict, response_id: str = "chatcmpl-test-id", log_kwargs: dict[str, object] | None = Non
tests/unit/integrations/test_s3.py:33
↓ 13 callersFunction_run_under_circuit_breaker
Run one Redis coroutine under a circuit breaker. Shared by the method decorator and the Lua script executor so both feed the same health sign
litellm/caching/redis_cache.py:484
↓ 13 callersFunction_runtime_server
(server_id: str = "canonical-server")
tests/unit/proxy/mcp_server/test_server_resolution.py:63
↓ 13 callersFunction_s3_signature_for
(method: str, url: str, headers: Mapping[str, str])
tests/unit/llms/bedrock/files/test_bedrock_files_transformation.py:3260
↓ 13 callersMethod_safe_refresh_token
Refresh the database token with proper locking to prevent race conditions. Uses an asyncio lock to ensure only one refresh operation
litellm/proxy/db/prisma_client.py:842
↓ 13 callersFunction_sample_agent_card_params
()
tests/unit/proxy/agent_endpoints/test_endpoints.py:36
↓ 13 callersFunction_scoped_store_key
Key for the recovery store: caller identity plus framework call id. Keying on the call id alone is unsafe: it comes from the client-settable
litellm/proxy/guardrails/guardrail_hooks/compresr/compresr.py:388
↓ 13 callersFunction_sdk_chats
(candidate: Gateway, model: str, key: str, prompts: tuple[str, ...])
tests/integration/observability/test_s3_v2_partition_granularity.py:157
↓ 13 callersFunction_sdk_response
An object that mimics the OpenAI SDK Batch: only ``.model_dump()`` is used.
tests/unit/llms/azure/batches/test_handler.py:68
↓ 13 callersFunction_sealed_token
(keys: EnvelopeKeys, now: datetime = _NOW, identity: EnvelopeIdentity = _IDENTITY)
tests/unit/proxy/mcp_server/outbound_credentials/test_bridge_credentials.py:53
↓ 13 callersFunction_search
(config, client=None, query="what is litellm", optional_params=None, litellm_params=None, executor=None)
tests/unit/llms/valkey/vector_stores/test_valkey_transformation.py:87
↓ 13 callersFunction_sent_signature
(headers: Mapping[str, str])
tests/unit/llms/bedrock/files/test_bedrock_files_transformation.py:3273
↓ 13 callersFunction_sequence
(*jobs: dict[str, object])
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_transcribe_passthrough_logging_handler.py:106
↓ 13 callersFunction_served
(sent: Sent)
tests/integration/observability/test_otel_team_capture_message_content.py:253
↓ 13 callersFunction_served_id
(prompt: str, attempt: int)
tests/integration/messages_endpoint/providers/anthropic/test_anthropic_messages_pre_content_retry_wire.py:89
↓ 13 callersFunction_set_caller_identity
(monkeypatch: pytest.MonkeyPatch, mode: str)
tests/unit/integrations/test_prometheus_caller_identity.py:63
↓ 13 callersFunction_setup_update_key_mocks
(monkeypatch, mock_prisma_client)
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:3105
↓ 13 callersMethod_should_skip_batch_input_file_processing
Skip downloading batch input files when the operator disabled batch input-file rate limiting, when the batch runs entirely on a skip-
litellm/proxy/hooks/batch_rate_limiter.py:367
↓ 13 callersFunction_show_no_redis_warning
()
litellm/proxy/health_endpoints/_health_endpoints.py:2147
↓ 13 callersFunction_source
(**overrides)
tests/unit/batches/test_batch_line_items.py:70
↓ 13 callersFunction_spend_row
(query: str, identity: str)
tests/integration/providers/test_bedrock_mantle_claude_chat_wire.py:217
↓ 13 callersFunction_spend_row
(identity: str)
tests/integration/compatibility/test_openai_sdk_client_paths.py:622
↓ 13 callersFunction_spoken
(transcript: str = TRANSCRIPT, *, turns: int = 1)
tests/integration/providers/test_realtime_unguarded_voice_turns.py:212
↓ 13 callersFunction_starlette_request
( body: bytes, content_type: str, path: str = "/v1/messages", content_encoding: str = "",
tests/unit/proxy/common_utils/test_http_parsing_utils.py:43
↓ 13 callersFunction_static_configure
`lite configure claude --api-key`'s shape: a virtual key as a static token, no pinned model.
tests/unit/proxy/client/cli/test_claude_settings.py:57
↓ 13 callersFunction_stream_builder_text_chunk
(model: str, content: str, finish_reason: str | None = None)
tests/unit/test_main.py:5837
↓ 13 callersFunction_stream_chat
(gateway: Gateway, body: Mapping[str, JsonValue], *, key: str | None = None)
tests/integration/providers/test_anthropic_thinking_signature_stream_wire.py:157
↓ 13 callersFunction_stub_v2_env
(monkeypatch, tmp_path, ledger_logs="")
litellm-proxy-extras/tests/test_setup_database_fail_fast.py:200
↓ 13 callersFunction_sync_environment_variables_row
( pc: ProxyConfig, values: Mapping[str, str | None] | None, revision: int | None )
tests/unit/proxy/proxy_server/test_proxy_config.py:5674
↓ 13 callersMethod_team
(enabled: bool = True)
tests/unit/proxy/management_endpoints/test_model_management_endpoints.py:9004
↓ 13 callersFunction_team_member_model_budget_spend_keys
(models: Sequence[str])
tests/unit/proxy/auth/test_user_api_key_auth_request_flow.py:176
↓ 13 callersMethod_token_exchange_server
(server_id: str)
tests/unit/proxy/mcp_server/test_mcp_server_manager.py:15247
↓ 13 callersFunction_tool_call_chunk
(finish_reason: str | None = None)
tests/unit/responses/litellm_completion_transformation/test_streaming_iterator_transformation.py:1226
↓ 13 callersFunction_tool_call_model_response
()
tests/unit/litellm_core_utils/test_chat_completion_agentic_loop.py:111
↓ 13 callersFunction_tool_names
(family: _Family, body: Mapping[str, JsonValue])
tests/integration/providers/test_malformed_tools_wire.py:506
↓ 13 callersFunction_tools_listed_through_the_gateway
( monkeypatch: pytest.MonkeyPatch, user_api_key_auth: UserAPIKeyAuth, server_urls: tuple[str, ...]
tests/unit/responses/mcp/test_litellm_proxy_mcp_handler.py:1770
↓ 13 callersFunction_trace_id
(sink_url: str, response: httpx.Response, seconds: float = 40)
tests/integration/observability/test_otel_excluded_services.py:151
↓ 13 callersMethod_transform_responses_api_input_item_to_chat_completion_message
Transform a Responses API input item into a Chat Completion message - EasyInputMessageParam - Message - ResponseOutp
litellm/responses/litellm_completion_transformation/transformation.py:2341
↓ 13 callersFunction_transformed_input
( config: BaseResponsesAPIConfig, input: str | list[dict[str, object]], litellm_params: GenericLiteLLMPara
tests/unit/llms/openai/responses/test_openai_responses_transformation.py:4424
↓ 13 callersFunction_two_step_pipeline_data
( mode: str, first_on_pass: str, first_on_fail: str = "block", second_on_fail: str = "block" )
tests/unit/proxy/utils/proxy_logging/test_guardrail_pipeline.py:1191
↓ 13 callersFunction_txn
( entity_id: str, window_start: datetime, spend: float, duration: str = "30d", entity_type
tests/unit/proxy/db/db_transaction_queue/test_window_spend_update_queue.py:16
↓ 13 callersMethod_unavailable
(router: Router, model_id: str, source: Literal["health", "cooldown"])
tests/unit/router_strategy/test_complexity_router.py:15611
↓ 13 callersFunction_update_request_data_with_model_routing_hint
( data: dict, request: Request, llm_router: Optional["Router"] = None, user_api_key_dict: User
litellm/proxy/vector_store_files_endpoints/endpoints.py:311
↓ 13 callersFunction_upstream
(family: Family, ending: Ending | None = None)
tests/integration/streaming/test_stream_clean_eof_without_finish_reason.py:163
↓ 13 callersFunction_upstream_calls
(gateway: Gateway, handle: ScenarioHandle)
tests/integration/providers/test_databricks_decisions_wire.py:133
↓ 13 callersMethod_upstream_session_for
( self, client: MCPClient, mcp_server: MCPServer, raw_headers: Mapping[str, st
litellm/proxy/mcp_server/mcp_server_manager.py:6434
↓ 13 callersFunction_upstream_warning
(log: Path, needle: str = "pass_through_endpoint: upstream")
tests/integration/observability/test_passthrough_upstream_error_visibility.py:117
↓ 13 callersMethod_url
(self, path: str)
tests/e2e/transport.py:126
↓ 13 callersFunction_usage
(prompt_tokens: int, cached_tokens: int, completion_tokens: int)
tests/unit/llms/fireworks_ai/test_fireworks_ai_cost_calculator.py:38
↓ 13 callersFunction_user_key_hashes
(user: str)
tests/integration/authorization/test_jwt_auto_register_map_existing_key.py:106
↓ 13 callersFunction_validate_chat_environment
(api_key=None)
tests/unit/llms/anthropic/test_anthropic_common_utils.py:2637
↓ 13 callersFunction_vault_body
(value: str)
tests/unit/rust_bridge/host/test_secret_manager.py:49
↓ 13 callersFunction_vllm_embedding_response
(input_count: int)
tests/unit/router_utils/test_embedding_batch_size_check.py:117
↓ 13 callersFunction_wire_key_generation_prisma
(monkeypatch)
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:19934
↓ 13 callersFunction_write_metadata_only_file
What a post-migration token.json looks like: everything except the secret material.
tests/unit/litellm_core_utils/test_cli_token_utils.py:80
↓ 13 callersFunction_yaml_guardrail
( guardrail_id: str = "yaml-1", name: str = "yaml-pii", provider: str = "presidio", info: Opti
tests/unit/proxy/guardrails/test_usage_endpoints.py:46
↓ 13 callersFunctiona
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2j7hjtph8n74b.js:1
↓ 13 callersMethodaclose
(self)
litellm/proxy/common_utils/config_sync_pubsub.py:24
↓ 13 callersFunctionactive_request_redis_batches
()
litellm/caching/redis_batch.py:667
↓ 13 callersMethodadd
(&self, command: Command<T>)
litellm-rust/crates/redis-client/src/batch.rs:74
↓ 13 callersFunctionadd_fallback_headers_to_response
Add fallback headers to the response Args: response: The response to add the headers to attempted_fallbacks: The number of f
litellm/litellm_core_utils/add_retry_fallback_headers.py:323
↓ 13 callersMethodadd_pattern
Add a regex pattern and the corresponding llm deployments to the patterns Args: pattern: str llm_deployment:
litellm/litellm_core_utils/pattern_match_deployments.py:87
↓ 13 callersMethodadd_policy
Add or update a single policy. Args: policy_name: Name of the policy policy: Policy object to add
litellm/proxy/policy_engine/policy_registry.py:350
↓ 13 callersMethodadvance
(self, seconds: float)
tests/unit/caching/test_evicted_client_closer.py:34
↓ 13 callersMethodaimage_generation
(self, optional_params: dict[str, object], **kwargs: object)
tests/unit/images/test_main.py:734
↓ 13 callersMethodaiter_bytes
Given an async iterator that yields lines, iterate over it & yield every event encountered
litellm/llms/sagemaker/common_utils.py:354
↓ 13 callersFunctionallFieldsValue
(form: McpForm)
ui/litellm-dashboard/src/app/(dashboard)/mcp-servers/_components/mcpFormStore.ts:96
↓ 13 callersFunctionanthropic_messages_handler
Makes Anthropic `/v1/messages` API calls In the Anthropic API Spec Args: container: Container config with skills for code execution
litellm/llms/anthropic/messages/native/handler.py:626
↓ 13 callersFunctionapply_context_management
Run edits in order; return a single ``PolyfillResult``. Every ``clear_tool_uses_20250919`` edit is validated before any editor runs, so a malform
litellm/llms/anthropic/messages/context_management/dispatcher.py:88
↓ 13 callersFunctionapply_guardrail
Apply a guardrail to text input and return the processed result. This endpoint allows testing guardrails by applying them to custom text inp
litellm/proxy/guardrails/guardrail_endpoints.py:2440
↓ 13 callersMethodapply_guardrail
(self, inputs, request_data, input_type, logging_obj=None)
tests/unit/proxy/guardrails/guardrail_hooks/test_bedrock_guardrails.py:6586
↓ 13 callersMethodaread
(self)
litellm/proxy/common_request_processing.py:711
↓ 13 callersMethodaretrieve_kwargs
Exact kwargs forwarded to litellm.aretrieve_batch.
tests/unit/proxy/batches_endpoints/test_endpoints.py:1456
↓ 13 callersMethodarm_routing_read_prefetch
( self, model: str, request_kwargs: dict[str, object] | None = None, # mutable-ok: th
litellm/router_deprecated.py:805
↓ 13 callersFunctionas_json_array
(value: object)
litellm/llms/bedrock/chat/converse_to_openai.py:131
↓ 13 callersFunctionas_json_object
(value: object)
litellm/llms/bedrock/chat/converse_to_openai.py:124
↓ 13 callersFunctionassert_complete_trace
The enforced behavior: the destination holds exactly one call-id-tagged trace for the call, rooted at the SERVER span, with auth/db children and
tests/e2e/logging/test_otel_trace_e2e.py:82
↓ 13 callersFunctionassert_download_limited
( observed: Timed, minute_ends: float, file_id: str, limit: int, holder: str, source: str )
tests/integration/management/_batch_file_caps.py:282
↓ 13 callersFunctionassert_one_unstreamed_upstream_call
(wire: Wire, target: str)
tests/integration/streaming/faked_responses_case.py:154
↓ 13 callersFunctionassert_prioritized
(answer: Answer)
tests/integration/routing/test_priority_scheduler_queue_cleanup.py:1052
↓ 13 callersFunctionassert_refused
(response: httpx.Response, detail: str)
tests/integration/authorization/_responses_compact.py:336
↓ 13 callersFunctionasync_admit_io_token_turn
( dual_cache: DualCache, deployment: Mapping[str, object], now: datetime, parent_otel_span: Sp
litellm/router_utils/pre_call_checks/io_token_rate_limit_check.py:799
↓ 13 callersMethodasync_filter_deployments
Optionally filter healthy deployments based on: 1. `previous_response_id` (Responses API continuity) [highest priority] 2. ca
litellm/router_utils/pre_call_checks/deployment_affinity_check.py:380
↓ 13 callersMethodasync_get_cache
( self, key: str, litellm_parent_otel_span: Span | None, local_only: bool = Fa
litellm/proxy/utils.py:500
↓ 13 callersMethodasync_get_cache
(self, key, *args, **kwargs)
tests/unit/proxy/auth/test_resolvers_store.py:27
↓ 13 callersFunctionasync_get_cooldown_deployments
Async implementation of 'get_cooldown_deployments'
litellm/router_utils/cooldown_handlers.py:654
↓ 13 callersMethodasync_log_success_event
(self, kwargs, response_obj, start_time, end_time)
litellm/router_strategy/lowest_latency.py:275
↓ 13 callersMethodasync_post_mcp_tool_call_hook
( self, kwargs, response_obj: MCPPostCallResponseObject, start_time, end_time )
tests/unit/proxy/mcp_server/test_mcp_logging.py:659
↓ 13 callersMethodasync_pre_call_hook
( self, user_api_key_dict: UserAPIKeyAuth, cache: DualCache, data: dict,
litellm/proxy/guardrails/guardrail_hooks/aim/aim.py:141
↓ 13 callersMethodasync_sse_data_generator
Anthropic /messages streaming data generator, which requires SSE events. Returns the underlying ``async_streaming_data_generator`` c
litellm/proxy/common_request_processing.py:5059
← previousnext →4,801–4,900 of 202,479, ranked by callers