MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 36 callersFunction_transcription_scenario
(*transcripts: JsonValue, repeats: int = 1)
tests/integration/providers/test_realtime_transcription_guardrail_session_update.py:322
↓ 36 callersFunction_uploads
()
tests/unit/proxy/anthropic_endpoints/test_claude_code_marketplace.py:105
↓ 36 callersFunction_user
(user_id: str, *teams: str)
tests/unit/proxy/management_helpers/test_bulk_user_deletion.py:240
↓ 36 callersFunctionadd_new_model
Add a new model to the proxy. Parameters: - model_name: str - The name users will use to call this model (required) - litellm_params
litellm/proxy/management_endpoints/model_management_endpoints.py:3120
↓ 36 callersMethodanswering
(self, credential: str, respond: Responder)
tests/integration/_support/aws_control_plane.py:164
↓ 36 callersFunctionassert_key_reported
( response: httpx.Response, api_key: str, date: str, metadata: Mapping[str, JsonValue], me
tests/integration/_support/daily_activity.py:269
↓ 36 callersMethodasync_get_cache
Async get cache implementation. Used for embedding calls in async wrapper
litellm/caching/caching.py:735
↓ 36 callersFunctionbatch_cost_calculator
Calculate the cost of a batch job. Args: model_info: Optional deployment-level model info containing custom batch pricin
litellm/cost_calculator.py:3240
↓ 36 callersMethodclose
(self)
tests/unit/llms/openai/live/test_handler.py:146
↓ 36 callersMethodclose
(self)
tests/unit/llms/custom_httpx/test_http_handler.py:114
↓ 36 callersFunctioncollect_payloads
Wait until `count` stored payload lines exist, then return every stored payload object.
tests/integration/observability/_s3_v2_support.py:326
↓ 36 callersMethodget_registry
Get the registered MCP Servers from the registry and union with the config MCP Servers
litellm/proxy/mcp_server/mcp_server_manager.py:2536
↓ 36 callersMethodmarker
(self)
tests/integration/observability/test_straiker_v3_platform.py:392
↓ 36 callersMethodmodel_dump
(self)
litellm/litellm_core_utils/streaming_handler.py:308
↓ 36 callersMethodnow
(cls, tz=None)
tests/unit/router_strategy/test_lowest_latency.py:559
↓ 36 callersMethodoperation
(client: rest_endpoints.MCPClient)
tests/unit/proxy/mcp_server/test_rest_endpoints.py:4381
↓ 36 callersFunctionq
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/2-vteq4_63z28.js:1
↓ 36 callersMethodread
(self, path: str)
tests/unit/llms/pi/harness/test_transformation.py:165
↓ 36 callersFunctionrefusal_prompt
(fixture: str, marker: str)
tests/integration/_support/anthropic_refusal.py:281
↓ 36 callersMethodresolve
( self, server_id: str, caller: UserAPIKeyAuth, *, is_admin_view: bool
litellm/proxy/mcp_server/contracts.py:42
↓ 36 callersMethodresolve_deployment
( self, deployment: _DeploymentT, request_kwargs: Mapping[str, object] | None = None,
litellm/router_utils/kubernetes_pod_discovery.py:129
↓ 36 callersMethodrespond
(request: httpx.Request)
tests/unit/llms/bedrock_mantle/test_bedrock_mantle_transformation.py:1178
↓ 36 callersMethodretrieve
(self, thread_id)
tests/unit/llms/openai/test_openai.py:2079
↓ 36 callersMethodsend
( self, key: str, tools: Sequence[Mapping[str, object]], prompt: str | None = None, **extra: object
tests/integration/mcp/test_mcp_llm_endpoints.py:521
↓ 36 callersMethodshutdown
(self, timeout_millis: float = 30_000)
tests/unit/proxy/enterprise_billing/test_billing_metrics.py:170
↓ 36 callersMethodtransform_responses_api_tools_to_chat_completion_tools
Transform a Responses API tools into a Chat Completion tools
litellm/responses/litellm_completion_transformation/transformation.py:3022
↓ 36 callersMethodtransform_retrieve_batch_response
( self, model, raw_response, logging_obj, litellm_params )
tests/unit/llms/base_llm/batches/test_transformation.py:79
↓ 36 callersMethodtransform_video_create_request
( self, model: str, prompt: str, api_base: str, video_create_optional_
tests/integration/_support/custom_video_provider.py:66
↓ 36 callersMethodwait
(self)
litellm/harness/types.py:121
↓ 36 callersFunctionz
()
litellm/proxy/_experimental/out/_next/static/chunks/2-vteq4_63z28.js:1
↓ 35 callersFunctionM
(e,s,t,a)
litellm/proxy/_experimental/out/_next/static/chunks/37cr8te-omsl0.js:1
↓ 35 callersFunctionQ
(e,t,a)
litellm/proxy/_experimental/out/_next/static/chunks/00dfa0iob1t3d.js:1
↓ 35 callersFunction_chunk
(content: str, finish_reason: str | None = None)
tests/unit/responses/litellm_completion_transformation/test_streaming_iterator_transformation.py:46
↓ 35 callersFunction_default_date_range
Return (start_date, end_date) for the common 7-day range used in UI spend tests.
tests/unit/proxy/spend_tracking/test_spend_management_endpoints.py:30
↓ 35 callersFunction_deployment
(gateway: Gateway, scenario: Scenario, api_base: str, **overrides: JsonValue)
tests/integration/providers/test_vertex_partner_count_tokens_wire.py:214
↓ 35 callersFunction_deployment
(model_id="deploy-1", model_name="gpt-4o", access_groups=("prod-models",))
tests/unit/proxy/management_endpoints/test_access_group_management.py:861
↓ 35 callersMethod_drain
(self, guardrail, chunks)
tests/unit/proxy/guardrails/guardrail_hooks/test_tool_permission.py:3590
↓ 35 callersFunction_fetch_sequence
(*responses)
tests/unit/interactions/test_background_cost_polling.py:106
↓ 35 callersMethod_listing
(*models)
tests/unit/proxy/client/cli/test_agents.py:741
↓ 35 callersFunction_logging_obj
( call_type: str = "acreate_interaction", litellm_params: Optional[dict] = None, )
tests/unit/interactions/test_background_cost_polling.py:42
↓ 35 callersFunction_make_request_mock
(method: str, params: Mapping[str, object], request_id: object = "req-1")
tests/unit/proxy/agent_endpoints/test_a2a_endpoints.py:409
↓ 35 callersFunction_marker
()
tests/integration/providers/test_anthropic_refusal_stop_details_wire.py:200
↓ 35 callersFunction_peer
(mode: Mode)
tests/integration/providers/test_bedrock_stream_timeout_wire.py:160
↓ 35 callersFunction_response
(status_code: int, payload: Any = None, text: str | None = None)
tests/unit/proxy/guardrails/guardrail_hooks/test_agent_365.py:41
↓ 35 callersFunction_sample_payload
(**overrides)
tests/unit/integrations/otel/test_otel_v2_sources_of_truth.py:61
↓ 35 callersFunction_sandbox
(tmp_path: Path)
tests/unit/test_pre_commit_lint.py:111
↓ 35 callersFunction_team
(**overrides)
tests/unit/proxy/management_endpoints/test_team_admin_field_permissions.py:47
↓ 35 callersFunction_user_auth
(user_id: str = "user-a", team_id: str = "team-a")
tests/unit/proxy/memory/test_memory_endpoints.py:229
↓ 35 callersMethodany
`if info.get(field) is True: group.field = True`.
litellm-rust/crates/router-core/src/group_info.rs:208
↓ 35 callersMethodasync_anthropic_messages_handler
( self, model: str, messages: list[dict], anthropic_messages_provider_config:
litellm/llms/custom_httpx/llm_http_handler.py:2579
↓ 35 callersMethodasync_get_cache
(self, *, key: str, local_only: bool = ...)
litellm/proxy/auth/auth_checks.py:421
↓ 35 callersMethodbegin
(&mut self, py: Python<'_>, call: CacheCall)
litellm-rust/crates/python-bridge/src/cache/python/host.rs:45
↓ 35 callersMethodcancel
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2_9r2jeem0dh8.js:1
↓ 35 callersMethodchunk_creator
(self, chunk: object)
litellm/llms/oci/chat/transformation.py:886
↓ 35 callersMethodclassify
(self, context)
tests/unit/router_strategy/test_complexity_router.py:8394
↓ 35 callersFunctioncreate_config_class
Generate config class dynamically from JSON configuration
litellm/llms/openai_like/dynamic_config.py:46
↓ 35 callersMethodend
(e)
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 35 callersMethodexecute
(self, *a, **kw)
litellm-proxy-extras/tests/test_setup_database_fail_fast.py:155
↓ 35 callersFunctionfilter
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 35 callersFunctionget_bedrock_base_model
Get the base model from the given model name. Handle model names like: - "us.meta.llama3-2-11b-instruct-v1:0" -> "meta.llama3-2-11b-inst
litellm/llms/bedrock/common_utils.py:1541
↓ 35 callersMethodget_labels_for_metric
Get the labels for a metric, filtered if configured. The result is cached on the instance so the label set used to construct
litellm/integrations/prometheus.py:1498
↓ 35 callersFunctionhandle_streamable_http_mcp
Handle MCP requests through StreamableHTTP.
litellm/proxy/mcp_server/server.py:2473
↓ 35 callersMethodindex
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 35 callersFunctionisProxyAdminRole
(role: string)
ui/litellm-dashboard/src/utils/roles.ts:35
↓ 35 callersFunctionjson_response
(body: Value)
litellm-rust/crates/inference-ocr/tests/support/mod.rs:73
↓ 35 callersFunctionopen_stream
(core: RouterCore, **request: object)
tests/unit/test_router/core/test_streaming_characterization_anthropic.py:67
↓ 35 callersFunctionposted_targets
(wire: Wire)
tests/integration/_support/openai_wire.py:24
↓ 35 callersMethodpre_call_tool_check
Run pre-call checks and guardrail hooks for an MCP tool call. Authorization runs unconditionally; only the guardrail hooks, which ar
litellm/proxy/mcp_server/mcp_server_manager.py:6148
↓ 35 callersFunctionprompt_text
(marker: str)
tests/integration/providers/_mantle_gpt_prompt_cache_support.py:170
↓ 35 callersMethodquery_raw
(self, query: str, *args: object)
tests/integration/spend/test_session_grouped_logs_pages.py:334
↓ 35 callersFunctionread_response
(gateway: Gateway, key: str, response_id: str, body: Mapping[str, JsonValue] | None = None)
tests/integration/spend/_background_responses.py:209
↓ 35 callersFunctionrecording
An axum upstream that records every request it fully reads and answers with `respond`.
litellm-rust/crates/gateway-forward/tests/support/mod.rs:97
↓ 35 callersMethodremove
(self, *label_values)
tests/unit/integrations/test_prometheus_end_user_cardinality.py:86
↓ 35 callersMethodresponse_head
(&mut self)
litellm-rust/crates/gateway-forward/tests/support/mod.rs:220
↓ 35 callersMethodsend_alert
Alerting based on thresholds: - https://github.com/BerriAI/litellm/issues/1298 - Responses taking too long - Requests are ha
litellm/integrations/SlackAlerting/slack_alerting.py:1434
↓ 35 callersFunctionshow_router_debug
(host: ScriptedHost)
tests/unit/test_router/core/fallbacks_helpers.py:51
↓ 35 callersMethodstatus
(&self)
litellm-rust/crates/http/src/error.rs:498
↓ 35 callersFunctiont
()
litellm/proxy/_experimental/out/_next/static/chunks/2_9r2jeem0dh8.js:1
↓ 35 callersMethodtranslate_openai_response_to_anthropic
Translate OpenAI response to Anthropic format. Args: response: The OpenAI ModelResponse tool_name_mapping: O
litellm/llms/anthropic/messages/adapters/transformation.py:1746
↓ 35 callersMethodupdate
(self, *others: Iterable[object])
litellm/router_rust/surface/indexes.py:231
↓ 34 callersFunctionU
(e,s)
litellm/proxy/_experimental/out/_next/static/chunks/37cr8te-omsl0.js:1
↓ 34 callersFunction_budget_row
An expiring budget tier, shaped like the rows get_data() hands back.
tests/unit/proxy/common_utils/test_reset_budget_job.py:240
↓ 34 callersFunction_drain_sync
(wrapper: AnthropicStreamWrapper)
tests/unit/llms/anthropic/messages/adapters/test_streaming_iterator_first_delta.py:98
↓ 34 callersMethod_get_session_affinity_cache_key
(self, session_id: str, request_kwargs: dict)
litellm/router_strategy/complexity_router/complexity_router.py:4466
↓ 34 callersFunction_guardrail
(**overrides: object)
tests/unit/proxy/guardrails/guardrail_hooks/test_alice.py:21
↓ 34 callersFunction_is_json_object
(value: object)
litellm/responses/streaming_iterator.py:121
↓ 34 callersFunction_make_record
(level: int, msg: str, args=(), exc_info=None)
tests/unit/test_logging.py:720
↓ 34 callersFunction_member
(scenario: Scenario, *models: str, router_settings: Mapping[str, JsonValue] | None = None)
tests/integration/management/test_vector_store_file_list_managed_ids.py:366
↓ 34 callersFunction_minimal_responses_api_payload
(response_id: str, model: str)
tests/unit/responses/test_responses_api_request_body.py:46
↓ 34 callersFunction_only_request
(wire: Wire)
tests/integration/providers/test_responses_bridge_message_cache_control_wire.py:151
↓ 34 callersFunction_request_data
()
tests/unit/proxy/guardrails/guardrail_hooks/test_decision_model.py:404
↓ 34 callersFunction_restore_model_cost_entries
(original_entries)
tests/unit/test_router_model_cost_isolation.py:78
↓ 34 callersFunction_run_hook
( hook: VectorStorePreCallHook, vector_store_ids: list[str], logging_obj: FakeLoggingObj, requ
tests/unit/integrations/vector_store_integrations/test_vector_store_pre_call_hook.py:143
↓ 34 callersFunction_scan_full
(source, logging_obj, metadata=None)
tests/unit/proxy/openai_files_endpoint/test_batch_guardrails.py:74
↓ 34 callersFunction_settle
(condition: Callable[[], bool])
tests/unit/responses/mcp/test_aresponses_api_with_mcp.py:1629
↓ 34 callersFunction_shadow_router
A real Router, so the endpoint's model checks run against real resolution. `sonnet-router` exists to keep the judge-vs-candidate cases honest: it
tests/unit/proxy/management_endpoints/test_auto_router_endpoints.py:1453
↓ 34 callersFunction_steering_logger
``__new__`` skips the network setup in ``__init__``; spans land in memory.
tests/unit/integrations/test_langfuse.py:1600
↓ 34 callersFunction_token_request
A real Starlette request with case-insensitive headers (matches production).
tests/unit/proxy/mcp_server/test_discoverable_endpoints.py:8258
↓ 34 callersFunction_upstream_requests
(upstream_url: str)
tests/integration/observability/_logging_only_scope_support.py:926
↓ 34 callersFunction_user_auth
()
tests/unit/proxy/proxy_server/test_streaming_helpers.py:83
← previousnext →1,301–1,400 of 202,479, ranked by callers