MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 3 callersFunction_prompt
(scenario: str, marker: str, *directives: str)
tests/integration/streaming/test_chat_stream_guardrail_error_events.py:220
↓ 3 callersFunction_prompt_exceeds_threshold
(prompt_tokens: int, threshold: float, inclusive: bool)
litellm/litellm_core_utils/llm_cost_calc/utils.py:318
↓ 3 callersFunction_prompts
(wire: Wire)
tests/integration/providers/test_ollama_prompt_tools_wire.py:1473
↓ 3 callersFunction_provider_404
(message: str)
tests/integration/spend/test_background_response_poll_retirement.py:83
↓ 3 callersFunction_provider_auth_failure_kwargs
()
tests/unit/integrations/test_prometheus_invalid_key_filtering.py:488
↓ 3 callersFunction_provider_call
(gateway: Gateway, model: str, text: str, *wires: Wire)
tests/integration/configuration/test_effective_settings.py:938
↓ 3 callersFunction_provider_calls
(wire: Wire, marker: str)
tests/integration/providers/test_responses_compaction_items_wire.py:259
↓ 3 callersFunction_provider_calls
(wire: Wire)
tests/integration/authorization/test_access_group_budget.py:106
↓ 3 callersFunction_provider_completed
(text: str)
tests/unit/proxy/pass_through_endpoints/test_codex_passthrough_endpoints.py:344
↓ 3 callersMethod_provider_default_ids
``provider_default_deployment_ids`` as the cooldown check reads it (``deployment in settings().provider_default_deployment_ids``): the ids it
litellm/router_rust/core.py:1670
↓ 3 callersFunction_provider_deployment
( gateway: Gateway, scenario: Scenario, provider: str, api_base: str, **parameters: JsonValue )
tests/integration/providers/test_vertex_gemini_count_tokens_wire.py:1003
↓ 3 callersFunction_provider_environment
(upstream: str)
tests/integration/authorization/test_rag_team_provider_credentials.py:537
↓ 3 callersFunction_provider_error
(status: int)
tests/integration/providers/test_provider_lookup_status.py:138
↓ 3 callersFunction_provider_error
(status: int, message: str)
tests/integration/management/_batch_file_caps.py:80
↓ 3 callersFunction_provider_file_id
(bearer: str, filename: str)
tests/integration/compatibility/test_fine_tuning_jobs.py:90
↓ 3 callersFunction_provider_kwargs
( managed_files: PROXY_LiteLLMManagedFiles, call_type: str, request: Mapping[str, str], deployment_id: str
tests/unit/enterprise/proxy/hooks/test_managed_files.py:6079
↓ 3 callersFunction_provider_params
(form: str, bare: str)
tests/integration/routing/test_declared_provider_bare_model_routes.py:57
↓ 3 callersFunction_provider_stream
(text: str)
tests/unit/proxy/pass_through_endpoints/test_codex_passthrough_endpoints.py:364
↓ 3 callersFunction_provider_token_count
Count with the provider, using the token_count_model in its region when one is set. Returns None when the count should be estimated locally, or t
litellm/proxy/proxy_server.py:15401
↓ 3 callersMethod_providerless_kwargs
(self)
tests/unit/integrations/test_opentelemetry.py:6762
↓ 3 callersFunction_provision_custom_priced
( proxy: ProxyClient, resources: ResourceManager )
tests/e2e/llm_translation/test_custom_pricing_e2e.py:98
↓ 3 callersFunction_proxy_base
(gateway: Gateway)
tests/integration/compatibility/test_a2a_wire_versions.py:71
↓ 3 callersFunction_proxy_config
(directory: Path, name: str, sections: dict[str, JsonValue])
tests/integration/spend/test_failure_spend_live_counters_chaos.py:40
↓ 3 callersFunction_proxy_config
( directory: Path, general_settings: Mapping[str, JsonValue], litellm_settings: Mapping[str, JsonV
tests/integration/spend/test_responses_stream_spend_row_id.py:207
↓ 3 callersFunction_proxy_exc
(message: str, error_type: str, code: int)
tests/unit/litellm_core_utils/test_error_normalization.py:16
↓ 3 callersFunction_proxy_general_settings
()
litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py:1695
↓ 3 callersFunction_proxy_llm_router
()
enterprise/litellm_enterprise/proxy/hooks/managed_files.py:239
↓ 3 callersMethod_proxy_logging
(guardrail)
tests/unit/proxy/guardrails/guardrail_hooks/content_filter/test_content_filter.py:3434
↓ 3 callersFunction_proxy_model_client
(rows: list[prisma_models.LiteLLM_ProxyModelTable])
tests/unit/repositories/test_repositories.py:341
↓ 3 callersFunction_proxy_on
(gateway: Gateway, directory: Path, database_url: str, *, workers: int = 1)
tests/integration/spend/test_daily_activity_key_alias_probes.py:132
↓ 3 callersFunction_proxy_on
(gateway: Gateway, directory: Path, database_url: str, *, workers: int = 1)
tests/integration/spend/test_daily_activity_key_owner_faults.py:44
↓ 3 callersFunction_proxy_patches
(agent: MagicMock)
tests/unit/proxy/agent_endpoints/test_a2a_version_e2e.py:169
↓ 3 callersFunction_proxy_reply
(case: ProxyCase)
tests/unit/integrations/test_custom_guardrail_post_call_once.py:334
↓ 3 callersFunction_proxy_root
(gateway: Gateway)
tests/integration/providers/test_databricks_chat_wire.py:1467
↓ 3 callersFunction_proxy_shaped_request
The proxy builds the request's `Logging` object before it hands the call to the router.
tests/unit/router_strategy/test_router_routing_groups.py:371
↓ 3 callersFunction_proxy_span
(parent: Context | None = None)
tests/unit/integrations/test_langfuse_otel.py:1372
↓ 3 callersFunction_proxy_url
(gateway: Gateway)
tests/integration/providers/test_vertex_realtime_multi_region_host.py:107
↓ 3 callersFunction_proxy_url
(gateway: Gateway)
tests/integration/providers/test_vertex_batch_row_line_errors_wire.py:338
↓ 3 callersFunction_proxy_url
(gateway: Gateway)
tests/integration/routing/test_reasoning_effort_levels_wire.py:2172
↓ 3 callersFunction_proxy_wire_body
(kwargs: Mapping[str, object])
litellm/integrations/shadow_eval_logger.py:91
↓ 3 callersFunction_proxy_with_router
(monkeypatch: pytest.MonkeyPatch, router: MagicMock, model_name: str)
tests/unit/caching/test_redis_semantic_cache.py:1135
↓ 3 callersMethod_prune_expired_cache
(self)
litellm/integrations/code_interpreter_interception/handler.py:976
↓ 3 callersFunction_ptu_counter
(team_id: str, model_group: str)
tests/integration/routing/test_ptu_shares.py:329
↓ 3 callersFunction_ptu_sized_router
( model_group: str, shares: Mapping[str, int] = MappingProxyType({"team-a": 30, "team-b": 20}) )
tests/unit/proxy/management_endpoints/test_daily_activity_routes.py:653
↓ 3 callersFunction_ptu_zeroed_pricing
The pricing a PTU deployment must carry, empty unless one is being stored. Reserved capacity is already billed by the flat cost the rollup writes
litellm/proxy/management_endpoints/model_management_endpoints.py:1212
↓ 3 callersFunction_public_file_object
(file_object: OpenAIFileObject, unified_file_id: str)
enterprise/litellm_enterprise/proxy/hooks/managed_files.py:202
↓ 3 callersFunction_public_register_rig
(minted)
tests/unit/proxy/mcp_server/test_discoverable_endpoints.py:2448
↓ 3 callersFunction_publication_error
(error: PluginPublicationError)
litellm/proxy/anthropic_endpoints/claude_code_endpoints/claude_code_marketplace.py:535
↓ 3 callersFunction_publish_two_commits
(tmp_path: Path)
tests/unit/test_circleci_checkout.py:142
↓ 3 callersFunction_published_keys
(mock_publish)
tests/unit/proxy/management_endpoints/test_tag_management_endpoints.py:684
↓ 3 callersFunction_published_rows
(name: str)
tests/integration/database/test_skill_submissions.py:73
↓ 3 callersMethod_python_memory
(self, key: str)
litellm/proxy/common_utils/user_api_key_cache.py:186
↓ 3 callersFunction_python_tokenizer
()
litellm/rust_bridge/tokenizer.py:81
↓ 3 callersFunction_qa_websocket
(messages)
tests/unit/proxy/auth/test_user_api_key_auth.py:2173
↓ 3 callersFunction_query
(url: str)
tests/unit/proxy/db/test_pgbouncer.py:65
↓ 3 callersFunction_query_raw_rows
(prisma_client: PrismaClient, sql_query: str, *args: object)
litellm/proxy/proxy_server.py:2550
↓ 3 callersMethod_queue_message_item_added_event
(self)
litellm/responses/litellm_completion_transformation/streaming_iterator.py:838
↓ 3 callersFunction_queue_request_base_path
(model: str)
litellm/llms/fal_ai/videos/transformation.py:102
↓ 3 callersFunction_queue_streaming
(monkeypatch, interval, delay=0.3, fails_with=None)
tests/unit/proxy/proxy_server/test_streaming_helpers.py:3095
↓ 3 callersFunction_quiet_logging
()
tests/integration/observability/test_batch_line_items_cold_storage.py:487
↓ 3 callersFunction_quota_media_request
(kind: str, payload: str, call_type: str)
tests/unit/proxy/hooks/test_tpm_concurrent.py:3602
↓ 3 callersFunction_race_ids
Unique per test: xdist workers share one Postgres, so a shared id lets one worker's cleanup delete the team another worker is mid-race on.
tests/integration/management/test_team_delete_member_add_race.py:87
↓ 3 callersFunction_rail
( name: str, sink_url: str, scope: Literal["streaming", "non_streaming"], *, default_on: b
tests/integration/observability/test_guardrail_stream_scope_chaos.py:215
↓ 3 callersFunction_raise_404_if_model_access_group_missing
(access_group: str, prisma_client: PrismaClient)
litellm/proxy/management_endpoints/model_access_group_management_endpoints.py:340
↓ 3 callersMethod_raise_503_if_db_unavailable
Raise a retryable 503 when ``e`` means the auth database is unreachable, else return so the caller applies its own fail-closed mapping. A DB o
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:1658
↓ 3 callersFunction_raise_entra_rejection_as_auth_error
(error: Exception)
litellm/llms/azure/common_utils.py:166
↓ 3 callersFunction_raise_fallback_failure
What a stream's recovery ends on: the error the fallback's own stream raised, or the failure a walk that served nothing was handed; never the inte
litellm/router_rust/invoke/streaming.py:506
↓ 3 callersMethod_raise_header_team_membership_denial
The single denial shape for a provisional x-litellm-team-id header, raised identically for nonexistent teams and for teams the user i
litellm/proxy/auth/handle_jwt.py:2464
↓ 3 callersFunction_raise_http_if_reload_degraded_serving
Same verdict as the model-write endpoints, expressed through this file's HTTPException error convention, with the metadata-only obligation: these
litellm/proxy/management_endpoints/model_access_group_management_endpoints.py:403
↓ 3 callersFunction_raise_if_config_owned
(vector_store_id: str)
litellm/proxy/vector_store_endpoints/management_endpoints.py:66
↓ 3 callersMethod_raise_if_file_blocked
(self, sanitization_result: _SanitizeResult, resource_name: str)
litellm/proxy/guardrails/guardrail_hooks/prompt_security/prompt_security.py:597
↓ 3 callersFunction_raise_if_model_update_adds_missing_rate_limits
( *, existing: Deployment, written_name: str, written_team_model: bool, incoming_params: G
litellm/proxy/management_endpoints/model_management_endpoints.py:887
↓ 3 callersFunction_raise_if_team_write_leaves_projects_short
( *, prisma_client: PrismaClient, general_settings: Mapping[str, object], llm_router: Router |
litellm/proxy/management_endpoints/model_management_endpoints.py:955
↓ 3 callersMethod_raise_invalid_reasoning_effort
Raise a ``BadRequestError`` for an unrecognised ``reasoning_effort``. Args: model: The model id the request was routed to (surfac
litellm/llms/anthropic/chat/transformation.py:848
↓ 3 callersFunction_raise_not_found_when_openai_fallback_unservable
( requested_provider: "str | None", data: Mapping[str, object], not_found_message: str, )
litellm/proxy/batches_endpoints/endpoints.py:186
↓ 3 callersFunction_raise_preemptive_401_for_unauthenticated_servers
Fail fast with HTTP 401 for MCP servers that need user auth but didn't receive it on this request. Covers both gateway-managed OAuth2
litellm/proxy/mcp_server/server.py:1898
↓ 3 callersMethod_raise_team_passthrough_route_denial
(route: str, team_object: LiteLLM_TeamTable | None)
litellm/proxy/auth/handle_jwt.py:1740
↓ 3 callersFunction_raised
(invoke: Callable[[], None])
tests/integration/sdk/test_stream_open_error_provider_headers_sdk.py:206
↓ 3 callersFunction_raising_token_provider
(error: Exception)
tests/unit/llms/azure/test_azure_common_utils.py:2532
↓ 3 callersFunction_ranked_keys
(rows: Sequence[_Activity])
tests/unit/proxy/management_endpoints/test_daily_activity_routes.py:430
↓ 3 callersFunction_rate_limit_error
(limit_label: str, limit: int, current: float)
litellm/router_utils/pre_call_checks/io_token_rate_limit_check.py:515
↓ 3 callersFunction_ratelimit_headers
(response: ModelResponse | CustomStreamWrapper)
tests/unit/test_router/test_router_provider_endpoints.py:96
↓ 3 callersFunction_raw_header_pairs
(source: _RawHeaderPairsSource)
litellm/proxy/mcp_server/server.py:160
↓ 3 callersFunction_raw_header_value
(raw_headers: Mapping[str, str] | None, name: str)
litellm/proxy/mcp_server/mcp_server_manager.py:1268
↓ 3 callersFunction_read
(settings_path: Path)
litellm/proxy/client/cli/commands/codex_settings.py:65
↓ 3 callersFunction_read_all_through_getters
( cache: UserApiKeyCache, prisma: MagicMock )
tests/unit/proxy/auth/test_auth_object_prefetch.py:109
↓ 3 callersFunction_read_and_cancel
( gateway: Gateway, key: str, response_id: str, headers: Mapping[str, str] | None = None )
tests/integration/spend/test_responses_stream_spend_row_id.py:142
↓ 3 callersFunction_read_arguments
(step: Step)
tests/e2e/perf/setup/corpus/session.py:121
↓ 3 callersMethod_read_bytes
(self, path: str)
litellm/llms/deepagents/harness/sandbox_backend.py:206
↓ 3 callersFunction_read_frames
Count SSE frames, collecting garbage between chunks so a finalizer has every chance to fire. The body is joined before counting: a chunk boundary
tests/unit/caching/test_llm_caching_handler.py:516
↓ 3 callersFunction_read_logged_by_callbacks
( hook: ResponsesIDSecurity, caller: UserAPIKeyAuth, issued_id: str, call_type: CallTypesLiter
tests/unit/test_responses_id_security.py:1567
↓ 3 callersFunction_read_report_sent
(slack_alerting: SlackAlerting)
tests/unit/integrations/SlackAlerting/test_slack_alerting.py:286
↓ 3 callersFunction_read_scope_caller
(user_api_key_dict: UserAPIKeyAuth)
litellm/proxy/management_endpoints/workflow_management_endpoints.py:55
↓ 3 callersFunction_read_summary_max_tokens_setting
Look up the configured summary ``max_tokens`` from proxy general_settings. Falls back to :data:`COMPACT_SUMMARY_MAX_TOKENS` when the setting is
litellm/llms/anthropic/messages/context_management/editors/compact.py:108
↓ 3 callersFunction_read_until
(stream: CustomStreamWrapper, content: str)
tests/unit/responses/mcp/test_chat_completions_handler.py:1821
↓ 3 callersFunction_readable_mcp_servers
( rows: Iterable["prisma_db_models.LiteLLM_MCPServerTable"], )
litellm/proxy/mcp_server/db.py:850
↓ 3 callersFunction_readback
(gateway: Gateway, endpoint_id: str)
tests/integration/spend/test_passthrough_request_tags.py:450
↓ 3 callersFunction_readiness
(replica: Gateway)
tests/integration/spend/test_background_interaction_settlement.py:445
↓ 3 callersFunction_reads
(results: Iterable[Result[KeyInfoResponse]])
tests/e2e_harness/test_proxy_client.py:258
↓ 3 callersFunction_real_mcp_logging_obj
(call_id: str)
tests/unit/proxy/mcp_server/test_mcp_server_tool_calls_and_headers.py:9966
← previousnext →24,501–24,600 of 202,479, ranked by callers