MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 4 callersFunction_responses_body
(model: str, value: JsonValue, guardrails: tuple[str, ...], *, stream: bool = False)
tests/integration/observability/test_azure_content_safety_dispatch.py:119
↓ 4 callersFunction_responses_body
(blob: str)
tests/integration/routing/test_fallback_hop_foreign_encrypted_reasoning.py:76
↓ 4 callersFunction_responses_caller_response
(reply: Reply, model: str)
tests/integration/observability/_openinference_support.py:401
↓ 4 callersFunction_responses_function
(tool: Mapping[str, object], **strict: bool | None)
tests/unit/proxy/test_proxy_token_counter.py:2919
↓ 4 callersFunction_responses_input
(tool_output: str)
tests/integration/providers/test_gemini_tool_result_part_reference_wire.py:227
↓ 4 callersFunction_responses_model
(scenario: Scenario, response: StoredResponse)
tests/integration/compatibility/test_status_code_followups_requests.py:191
↓ 4 callersFunction_responses_peer
(identity: str)
tests/integration/compatibility/test_openai_sdk_client_paths.py:216
↓ 4 callersFunction_responses_stream_response
(identity: str, calls: Sequence[dict[str, JsonValue]])
tests/integration/observability/_openinference_support.py:1016
↓ 4 callersFunction_responses_tail
(sequence_number, text)
tests/unit/proxy/guardrails/guardrail_hooks/unified_guardrails/test_unified_guardrail.py:2798
↓ 4 callersFunction_responses_text
(response_body: dict[str, JsonValue])
tests/integration/spend/test_spend_log_tool_payload_content.py:285
↓ 4 callersFunction_responses_websocket_turn_events
(total_tokens: int)
tests/unit/proxy/hooks/test_parallel_request_limiter_v3.py:4084
↓ 4 callersMethod_restamp_adaptive_choice
The adaptive feedback loop reads its chosen-model marker from request metadata; a gate rewrite must move the marker with the model or rewards
litellm/router_strategy/complexity_router/complexity_router.py:4194
↓ 4 callersMethod_restore_consumer_correlation_context
Restore trace_id/session_id in the *consuming* thread/task/context. wrapper_async() deliberately skips restoring correlation context when
litellm/litellm_core_utils/streaming_handler.py:562
↓ 4 callersFunction_restore_correlation_context_if_supported
Call logging_obj._restore_correlation_context() if it's actually there. Some call sites (tests, narrow unit paths) inject a minimal stand-in
litellm/utils.py:1083
↓ 4 callersFunction_restrict_discovery_to_corroborated_authorization_server
Reject discovered token/registration endpoints a manually pinned authorize endpoint cannot vouch for (the RFC 9700 authorization-server mix-up).
litellm/proxy/mcp_server/mcp_server_manager.py:931
↓ 4 callersFunction_result_part
(response: JsonValue, call_id: str | None = None)
tests/integration/providers/test_gemini_tool_result_part_reference_wire.py:539
↓ 4 callersFunction_results
(start: object, duration: object, transcript: str = "", is_final: object = True)
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_deepgram_listen_passthrough_logging_handler.py:25
↓ 4 callersFunction_resumed_events
(response_id: str)
tests/unit/proxy/response_api_endpoints/test_endpoints.py:1531
↓ 4 callersFunction_resync_guardrails
(guardrail_name: str)
litellm/proxy/common_utils/registry_read_through.py:243
↓ 4 callersMethod_retire_job
Take a row that can never be costed out of the poll page. Leaving it selectable would burn one of the MAX_OBJECTS_PER_POLL_CYCLE slot
enterprise/litellm_enterprise/proxy/common_utils/check_batch_cost.py:289
↓ 4 callersFunction_retry_once
(client: ComplexityRouterClient, key: str, group: str)
tests/e2e/router/test_reliability_retries_e2e.py:82
↓ 4 callersFunction_retry_threads
()
tests/unit/litellm_core_utils/test_get_model_cost_map.py:609
↓ 4 callersFunction_returned_tool_calls
( native_id: str | None, stream: bool, request_params: Mapping[str, object] )
tests/unit/llms/vertex_ai/gemini/test_thought_signature_in_tool_call_id.py:375
↓ 4 callersFunction_revalidate_active_subject
Re-validate that the subject sealed in a refresh envelope is still live, dispatching on its type: a key_hash reloads the virtual key, a user_id re
litellm/proxy/mcp_server/bridge_token_flow.py:416
↓ 4 callersFunction_review
(login: str, state: str, commit_id: str | None = "head")
tests/unit/test_spend_logs_guard.py:154
↓ 4 callersMethod_rewrite_ended_stream_events
Replace every buffered event ``rewrite_event`` returns a rewrite for, in both chunk formats this stream carries (parsed event dicts and raw SS
litellm/llms/anthropic/chat/guardrail_translation/handler.py:2006
↓ 4 callersMethod_rewrite_tool_names_in_messages
Return a copy of `messages` with tool_call/function_call names rewritten using the per-request forward map. Only mutates messages who
litellm/llms/anthropic/chat/transformation.py:1457
↓ 4 callersFunction_rewritten_body
Scan one record and hand back the body as it lands in the uploaded file.
tests/unit/proxy/openai_files_endpoint/test_batch_guardrails.py:1017
↓ 4 callersFunction_rig
( tmp_path_factory: pytest.TempPathFactory, name: str, environment: Mapping[str, str], settings: Mapping[s
tests/integration/observability/test_langfuse_otel_trace_fields.py:228
↓ 4 callersFunction_roster_team_alias
(members_json: str | None)
tests/unit/proxy/management_endpoints/test_team_endpoints.py:15115
↓ 4 callersFunction_roster_user_ids
(roster: JsonValue)
tests/integration/management/test_team_delete_large_membership.py:130
↓ 4 callersFunction_round_trip
( gateway: Gateway, provider: Provider, stream: bool, first_turn: Sequence[Event] = SEARCH_TURN )
tests/integration/providers/test_anthropic_tool_search_result_matrix_wire.py:115
↓ 4 callersFunction_routable_video_client
(gateway: Gateway, model: str)
tests/integration/compatibility/test_missing_body_param_status.py:1851
↓ 4 callersFunction_route_agentic_request
( monkeypatch: pytest.MonkeyPatch, respx_mock: respx.MockRouter, follow_ups: tuple[str, ...],
tests/unit/test_router/test_router.py:2956
↓ 4 callersFunction_route_call
(gateway: Gateway, headers: dict[str, str], name: str, tool: str)
tests/integration/mcp/test_mcp_toolsets.py:268
↓ 4 callersFunction_route_credentials
registry().credentials, sending each form to its own mock so call counts stay per form; a form without one returns a plain mock, as an unmocked ro
tests/unit/proxy/batches_endpoints/test_endpoints.py:187
↓ 4 callersFunction_route_decider_to
(monkeypatch: pytest.MonkeyPatch, litellm_params: Mapping[str, object])
tests/unit/proxy/decisions_endpoints/test_endpoints.py:967
↓ 4 callersMethod_route_matches_allowed_route
Check if route matches the allowed_route pattern. Supports both exact match and prefix match. Examples: - allowed_ro
litellm/proxy/auth/route_checks.py:684
↓ 4 callersFunction_route_unified_batch_to_team_deployment
( harness: RetrieveHarness | CancelHarness, deployment: Deployment | None = None )
tests/unit/proxy/batches_endpoints/test_endpoints.py:3403
↓ 4 callersFunction_routed_prisma_client
(writer_unavailable: bool = False)
tests/unit/proxy/management_helpers/test_access_group_key_sync.py:14
↓ 4 callersFunction_router
(primary: Wire, fallback: Wire | None, num_retries: int)
tests/integration/sdk/test_stream_open_error_provider_headers_sdk.py:456
↓ 4 callersFunction_router
( model_list: list[dict[str, JsonValue]], redis_client: Redis, provider_budget_config: dict[str, B
tests/integration/sdk/test_router_budget_limiter_wire.py:70
↓ 4 callersFunction_router
(*deployments: tuple[str, str])
tests/unit/proxy/spend_tracking/test_input_tokens.py:67
↓ 4 callersFunction_router
(model_name: str, model: str, **router_kwargs: object)
tests/unit/llms/anthropic/messages/native/test_anthropic_messages_router.py:124
↓ 4 callersMethod_router
(self)
tests/unit/test_router/test_router.py:6852
↓ 4 callersMethod_router
(self)
tests/unit/test_router/test_router.py:6985
↓ 4 callersMethod_router
()
tests/unit/test_router/test_router.py:8942
↓ 4 callersMethod_router
(mock_router_instance, basic_config)
tests/unit/router_strategy/test_complexity_router.py:11838
↓ 4 callersFunction_router_config
(classifier: Mapping[str, JsonValue], simple: str, complex_: str)
tests/integration/routing/test_complexity_router_databricks_classifier.py:171
↓ 4 callersFunction_router_logging
(request_model: str)
tests/unit/llms/azure_ai/test_azure_ai_cost_calculator.py:97
↓ 4 callersFunction_router_proxy_module
(router, model_name)
tests/unit/caching/test_redis_semantic_cache.py:1281
↓ 4 callersFunction_router_serving
A router whose registry().all() is ``model_list``, the live model list the resolver reads.
tests/unit/proxy/hooks/test_proxy_rate_limit_provider_field.py:126
↓ 4 callersFunction_router_serving_only
(base_model: str)
tests/unit/proxy/response_api_endpoints/test_endpoints.py:5120
↓ 4 callersFunction_router_store_entries
The live entry and expiry dicts of the router's in-memory routing-state store.
litellm/proxy/common_utils/debug_utils.py:143
↓ 4 callersFunction_router_with_advisor_deployment
Build a Router whose only deployment is the advisor model on Foundry. The Router resolves ``litellm.anthropic_messages`` per call, so each test
tests/unit/llms/anthropic/messages/test_advisor_orchestration.py:1055
↓ 4 callersMethod_router_with_complexity_router
(cls, default_model: str = "gpt-4o")
tests/unit/test_router/test_router.py:8482
↓ 4 callersFunction_router_with_failing_primary
(fallback_access_check)
tests/unit/test_router/test_router.py:11379
↓ 4 callersFunction_router_with_groups
(*groups: tuple[str, str])
tests/unit/proxy/spend_tracking/test_budget_reservation.py:455
↓ 4 callersFunction_router_with_plain_deployment
Plain deployment, no preconfigured mock_response — caller supplies via kwargs. Exception instances cannot live in `model_list[*].litellm_params`
tests/unit/test_router_exception_redaction.py:267
↓ 4 callersFunction_router_with_two_pass_through_deployments
(blocked_flags)
tests/unit/test_router/test_router.py:6564
↓ 4 callersFunction_routes
(received: Sequence[Request])
tests/integration/providers/test_cloudflare_clef_images_wire.py:805
↓ 4 callersFunction_routes_scanned_before_dispatch
Number of route.matches() calls Starlette's Router.app makes before it finds a full match.
tests/unit/proxy/test_route_priority.py:23
↓ 4 callersFunction_routing_client
Wire ``prisma_client.db`` to a routing wrapper with distinct engines. Returns the (writer, reader) mocks so a test can move either generation
tests/unit/proxy/utils/prisma_and_spend/test_prisma_client_reconnect.py:803
↓ 4 callersFunction_routing_db_with_writer_sessions
One watchdog cycle per value, then the loop is cancelled.
tests/unit/proxy/utils/prisma_and_spend/test_prisma_client_reconnect.py:519
↓ 4 callersFunction_routing_decision
The routing decision a pre-routing strategy wrote to a call's metadata, empty when a plain model served it. Read off the sampled request for the c
litellm/integrations/shadow_eval_logger.py:677
↓ 4 callersFunction_row
(server_id, *, authorization_url=None, registration_url=None, token_url=None, credentials=None)
tests/unit/proxy/mcp_server/test_oauth2_flow_backfill.py:107
↓ 4 callersFunction_row
(server_id: str, auth_type: MCPAuth, approval_status: str | None = None)
tests/unit/proxy/mcp_server/outbound_credentials/test_login_assertion_exchange.py:292
↓ 4 callersFunction_row
(name, limit=1000000)
tests/unit/proxy/common_utils/test_model_listing_utils.py:34
↓ 4 callersFunction_row_to_model
(row: "prisma_models.LiteLLM_MemoryTable")
litellm/proxy/memory/memory_endpoints.py:127
↓ 4 callersFunction_row_to_vector_store
(row: "_VectorStoreRow")
litellm/proxy/vector_store_endpoints/management_endpoints.py:57
↓ 4 callersFunction_row_written_under_previous_salt_key
A row encrypted under a salt key the proxy no longer holds. Asserts the fixture really is undecryptable under the current key, so a test buil
tests/unit/proxy/mcp_server/test_db_credentials.py:821
↓ 4 callersFunction_rows
(key: str, count: int)
tests/integration/mcp/test_mcp_accounting_guardrails.py:53
↓ 4 callersFunction_rows_by_status
(rows: list[dict[str, JsonValue]], status: str)
tests/integration/providers/test_bedrock_runtime_chat_completions_chaos.py:156
↓ 4 callersFunction_rows_database
(cached: SimpleNamespace | None, stored: SimpleNamespace | None)
tests/unit/proxy/proxy_server/test_proxy_config.py:5655
↓ 4 callersFunction_rows_for
(request_ids: frozenset[str], *, expected: int)
tests/integration/providers/test_bedrock_converse_stream_event_frames_wire.py:317
↓ 4 callersFunction_rpc_listed_names
(client: httpx.Client, key: str, forwarded: str)
tests/integration/mcp/test_mcp_access_matrix.py:658
↓ 4 callersFunction_rpc_tools
(alias: str)
tests/integration/mcp/test_mcp_access_matrix.py:677
↓ 4 callersFunction_rpm_request
( handler: _PROXY_MaxParallelRequestsHandler, cache: DualCache, auth: UserAPIKeyAuth, model: str )
tests/unit/proxy/hooks/test_parallel_request_limiter_v3.py:8642
↓ 4 callersFunction_rpm_tpm_router
(model_id: str)
tests/unit/test_router/test_router_provider_endpoints.py:84
↓ 4 callersFunction_rsa_private_pem
()
tests/unit/proxy/mcp_server/outbound_credentials/test_session_credentials.py:154
↓ 4 callersFunction_run
(cmd: Sequence[str], cwd: Path = REPO_ROOT, env: Mapping[str, str] | None = None)
scripts/openapi_docs_gate.py:57
↓ 4 callersFunction_run
(cmd: Sequence[str], cwd: Path = REPO_ROOT)
scripts/ruff_strict_gate.py:53
↓ 4 callersFunction_run
()
tests/unit/litellm_core_utils/test_streaming_overhead.py:269
↓ 4 callersFunction_run
Run a coroutine on a fresh event loop and close it — prevents the "unclosed event loop" / ResourceWarning that you get from asyncio.new_event_
tests/unit/integrations/test_otel_guardrail_violation_spans.py:164
↓ 4 callersFunction_run
(case: HarnessCase, tmp_path: Path, suite: UnitParitySuite)
tests/rust-python-harness/strategies/unit_tests_parity/test_runner.py:31
↓ 4 callersMethod_run
Drive ``call`` to its ``done`` or ``failed`` step, answering every step on the host. ``cut_deployment`` is the attempt whose stream failed, fo
litellm/router_rust/core.py:2933
↓ 4 callersMethod_run
(self, monkeypatch, tmp_path, partitioned, execute_fails)
tests/unit/litellm_proxy_extras/test_litellm_proxy_extras_utils.py:665
↓ 4 callersMethod_run
(self, request_data)
tests/unit/proxy/test_proxy_utils_model_creation_and_error_logging.py:659
↓ 4 callersMethod_run
(self, raw: bytes, status: int = 200, timeout=None)
tests/unit/llms/vertex_ai/files/test_vertex_ai_files_streaming.py:714
↓ 4 callersMethod_run
(self, params, model)
tests/unit/integrations/test_anthropic_cache_control_hook.py:4003
↓ 4 callersFunction_run_advisor_and_capture_subcall_kwargs
Run one advisor turn and return the kwargs of the advisor sub-call.
tests/unit/llms/anthropic/messages/test_advisor_orchestration.py:533
↓ 4 callersFunction_run_and_drain_hooks
The service hooks are fired as tasks; give them a turn before asserting.
tests/unit/proxy/common_utils/test_reset_budget_job.py:2515
↓ 4 callersFunction_run_background_health_check
Periodically run health checks in the background on the endpoints. Update health_check_results, based on this. Uses shared health check
litellm/proxy/proxy_server.py:4950
↓ 4 callersFunction_run_builder_with_key_lookup
Drive the real auth builder with ``get_key_object`` replaced by the given mock. Returns the builder result. Patches ``seed_request_identity``
tests/unit/proxy/auth/test_user_api_key_auth_request_flow.py:8685
↓ 4 callersMethod_run_call_regular
(self, manager, server)
tests/unit/proxy/mcp_server/test_mcp_server_manager.py:2526
↓ 4 callersFunction_run_edit
(old_record, updated_record, purge_mock=None)
tests/unit/proxy/management_endpoints/test_mcp_management_endpoints.py:7861
↓ 4 callersMethod_run_failure
Drive the failure hook, then close the SERVER span (the proxy closes it after the hook in real flow) so both the exception child span
tests/unit/integrations/test_otel_team_attributes_matrix.py:188
↓ 4 callersMethod_run_followup
( model: str, custom_llm_provider: str, patched_model: str | None = None )
tests/unit/litellm_core_utils/test_chat_completion_agentic_loop.py:1045
↓ 4 callersMethod_run_handler_and_capture_exception_seen_by_callback
( self, exception: Exception, request_data: dict )
tests/unit/test_rate_limit_error_unification.py:1531
↓ 4 callersFunction_run_hook
(end: bool, sampling_rate: int = 1, end_of_stream_only: bool = False)
tests/unit/proxy/guardrails/guardrail_hooks/unified_guardrails/test_anthropic_streaming_block.py:120
← previousnext →18,901–19,000 of 202,479, ranked by callers