MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 3 callersFunction_missing_managed_file_error
(file_id: str)
tests/unit/proxy/openai_files_endpoint/test_files_endpoint.py:5732
↓ 3 callersFunction_mistral_plus_anthropic_router
()
tests/unit/proxy/openai_files_endpoint/test_files_endpoint.py:5907
↓ 3 callersFunction_mixed_decisions_group_router
(*legs: dict[str, object])
tests/unit/test_router/test_router.py:157
↓ 3 callersFunction_mixed_router
(*deployments: dict[str, object], routing_strategy: str = "latency-based-routing")
tests/unit/test_router/test_router.py:19890
↓ 3 callersMethod_mock
(self, rows)
tests/unit/proxy/client/cli/test_configure_commands.py:652
↓ 3 callersFunction_mock_api_response
(payload: dict[str, object])
tests/unit/proxy/guardrails/guardrail_hooks/test_generic_guardrail_api.py:2636
↓ 3 callersFunction_mock_azure_client
( create_payload: dict | None = None, list_payload: dict | None = None, cancel_payload: dict | Non
tests/unit/llms/azure/test_azure_fine_tuning_api.py:31
↓ 3 callersFunction_mock_backend
(router: respx.MockRouter)
tests/unit/responses/test_responses_supported_endpoints_passthrough.py:63
↓ 3 callersFunction_mock_deployment
(model_name: str, reply: str)
tests/unit/llms/anthropic/messages/adapters/test_handler_safeguard_results.py:378
↓ 3 callersFunction_mock_login_v2_deps
(monkeypatch: pytest.MonkeyPatch)
tests/unit/proxy/test_proxy_server_endpoints_and_startup.py:185
↓ 3 callersFunction_mock_mlflow_modules
()
tests/unit/integrations/test_mlflow.py:147
↓ 3 callersFunction_mock_openai_completion_transport
(monkeypatch, *, stream=False, response_id="chatcmpl-test")
tests/unit/test_litellm_overhead.py:59
↓ 3 callersFunction_mock_prisma
Return a minimal mock prisma_client for a given set of found keys and deleted tokens.
tests/unit/proxy/management_endpoints/test_delete_verification_tokens_failed.py:68
↓ 3 callersFunction_mock_proxy_config_identity_crypto
()
tests/unit/proxy/management_endpoints/test_cache_settings_endpoints.py:876
↓ 3 callersMethod_mock_router
(num_retries=2)
tests/unit/test_router_per_deployment_num_retries.py:152
↓ 3 callersFunction_mock_stream_snapshots
(mock_response: object, prompt_tokens: int | None)
tests/unit/test_utils.py:8311
↓ 3 callersFunction_mock_token_exchange
()
tests/unit/realtime_api/test_main.py:1778
↓ 3 callersFunction_mock_transport
Answers anything with a short body, left unread when the caller asked to stream.
tests/unit/llms/custom_httpx/test_http_handler.py:1049
↓ 3 callersMethod_mode_matches
Return True only when a guardrail with logged ``guardrail_mode`` of ``g_mode`` is guaranteed to have run in ``mode`` for the audited
litellm/proxy/compliance_checks.py:41
↓ 3 callersFunction_model_access_group_budget_row
( access_group: str, prisma_client: PrismaClient )
litellm/proxy/management_endpoints/model_access_group_management_endpoints.py:272
↓ 3 callersFunction_model_access_group_counter_key
(row: _ModelAccessGroupRow)
litellm/proxy/common_utils/reset_budget_job.py:205
↓ 3 callersFunction_model_access_group_max_budget_check
Block the request when a model access group that authorized it is over its max budget. Only the groups auth already matched are charged and there
litellm/proxy/auth/auth_checks.py:7731
↓ 3 callersFunction_model_bodies
(wire: Wire)
tests/integration/streaming/test_google_genai_stream_usage_settings_wire.py:176
↓ 3 callersFunction_model_cost_entry
(key: str)
litellm/llms/bedrock/common_utils.py:1251
↓ 3 callersMethod_model_cost_entry
(model: str)
litellm/llms/gemini/realtime/transformation.py:536
↓ 3 callersFunction_model_cost_lookup_order
( model: str, potential_model_names: PotentialModelNamesAndCustomLLMProvider )
litellm/utils.py:7001
↓ 3 callersFunction_model_dump_table
( repo: _PrismaTableHolder[_PrismaModelDumpRow], lookup: str )
litellm/proxy/auth/auth_checks.py:337
↓ 3 callersFunction_model_group
(event: _HookEvent)
tests/unit/test_router/test_router_callback_hook_sequence.py:292
↓ 3 callersFunction_model_id
(gateway: Gateway, name: str)
tests/integration/routing/test_model_capability_flags.py:340
↓ 3 callersFunction_model_id_from_metadata
(litellm_metadata: Mapping[str, object] | None)
litellm/responses/streaming_iterator.py:201
↓ 3 callersFunction_model_id_values
(metric)
tests/unit/integrations/test_prometheus_deployment_state_proxy_rejects.py:60
↓ 3 callersFunction_model_info
(deployment: Mapping[str, object])
litellm/router_rust/surface/health_routing.py:91
↓ 3 callersFunction_model_info
(replica: Gateway, model: str)
tests/integration/spend/test_background_interaction_settlement.py:345
↓ 3 callersFunction_model_info
(max_embedding_batch_size: int | None)
tests/unit/router_utils/test_embedding_batch_size_check.py:38
↓ 3 callersFunction_model_info
(core: RouterCore, deployment_id: str)
tests/unit/test_router/core/test_parity_failure_logging.py:548
↓ 3 callersFunction_model_info_field
(deployment: Mapping[str, object], field: str)
litellm/proxy/auth/model_checks.py:449
↓ 3 callersMethod_model_map_lookup_candidates
Model-map keys to try for ``model``: the id itself, the same id with a bedrock/vertex routing prefix removed, the Bedrock base model, and each
litellm/llms/anthropic/common_utils.py:1011
↓ 3 callersFunction_model_name_file_retrieve_provider
(model_name: str | None)
enterprise/litellm_enterprise/proxy/hooks/managed_files.py:280
↓ 3 callersFunction_model_requests
(wire: Wire)
tests/integration/sdk/test_google_genai_adapter_stream_usage_sdk.py:127
↓ 3 callersFunction_model_response
A real ModelResponse so `.model_dump()` works like in production.
tests/unit/proxy/guardrails/guardrail_hooks/test_repelloai.py:55
↓ 3 callersFunction_model_usage_batch_failing_with
Point the model usage rollup's ``batch_()`` at a transaction that fails on commit, with no tool usage queued so the tool rollup never opens one.
tests/unit/proxy/utils/prisma_and_spend/test_spend_functions.py:1192
↓ 3 callersFunction_model_uses_max_completion_tokens
Return True for OCI-hosted models that require ``maxCompletionTokens``. OpenAI commercial models proxied through OCI (``openai.*``) reject ``
litellm/llms/oci/chat/transformation.py:91
↓ 3 callersFunction_model_with_credential
(gateway: Gateway, scenario: Scenario, credential: str, **model_info: JsonValue)
tests/integration/management/test_model_credential_name_updates.py:33
↓ 3 callersFunction_model_write_response
( row: _ProxyModelRow, member_write: MemberAutoRouterWrite | None )
litellm/proxy/management_endpoints/model_management_endpoints.py:255
↓ 3 callersFunction_modeled_status
(event_type: str)
tests/unit/llms/bedrock/chat/test_invoke_handler.py:1376
↓ 3 callersFunction_models
()
tests/integration/messages_endpoint/providers/anthropic/test_anthropic_messages_pre_content_retry_chaos.py:203
↓ 3 callersMethod_models
(self)
tests/unit/proxy/client/cli/autoroute/test_wizard.py:351
↓ 3 callersFunction_moderation_http_response
(severity: int)
tests/unit/proxy/guardrails/guardrail_hooks/azure/test_azure_text_moderation.py:510
↓ 3 callersFunction_modify_response
(modified_messages: Sequence[Mapping[str, object]])
tests/unit/proxy/guardrails/test_prompt_security_guardrails.py:184
↓ 3 callersMethod_move_defs_to_components
Move $defs from Pydantic v2 schema to OpenAPI components/schemas. This makes the definitions resolvable in Swagger/OpenAPI viewers.
litellm/proxy/common_utils/custom_openapi_spec.py:157
↓ 3 callersFunction_multipart_image_parts
(request: httpx.Request)
tests/unit/images/test_image_edit.py:90
↓ 3 callersFunction_multipart_request
(boundary: str)
tests/unit/test_vcr_filters.py:139
↓ 3 callersFunction_multipart_request
(form: dict[str, object])
tests/unit/proxy/ocr_endpoints/test_endpoints.py:152
↓ 3 callersFunction_mutate
( request: Request, publication: PluginPublication, existing: PluginSnapshot | None, store: Pl
litellm/proxy/discovery_endpoints/skill_hub_endpoints.py:398
↓ 3 callersFunction_name
(entry: EntryPoint, alias: str, tool: str)
tests/integration/mcp/test_mcp_access_matrix.py:69
↓ 3 callersFunction_name_from_url
(url: str)
litellm/proxy/guardrails/guardrail_hooks/ovalix/ovalix_extraction.py:91
↓ 3 callersFunction_named
The reason on its own for a caller that already has the deployment in hand, else named.
litellm/litellm_core_utils/ptu_pricing.py:122
↓ 3 callersFunction_named
(headers: httpx.Headers)
tests/integration/observability/test_otel_trace_response_header.py:380
↓ 3 callersFunction_named_credential_values
(kwargs: Mapping[str, object])
litellm/utils.py:783
↓ 3 callersFunction_namespace_members_or_tool
(tool: JsonValue)
litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py:563
↓ 3 callersFunction_native_anthropic_message
(model: str, identity: str, text: str)
tests/integration/streaming/test_stream_contracts.py:567
↓ 3 callersFunction_native_classifier_response
(content: str)
tests/unit/router_strategy/test_complexity_router.py:3490
↓ 3 callersFunction_native_count
( monkeypatch: pytest.MonkeyPatch, request: Mapping[str, object], policy: DropPolicy, response: httpx.Resp
tests/unit/llms/openai/responses/count_tokens/test_token_counter.py:668
↓ 3 callersFunction_native_deployment
(gateway: Gateway, scenario: Scenario, api_base: str, provider: str, backend: str)
tests/integration/providers/test_vertex_anthropic_structured_output_wire.py:1556
↓ 3 callersFunction_native_path
(model: str, stream: bool)
tests/integration/providers/test_gemini_long_decode_wire.py:1478
↓ 3 callersFunction_native_response
Return the provider's native payload when the caller asked for `req_format=native` and the provider config captured it, carrying over the
litellm/proxy/ocr_endpoints/endpoints.py:77
↓ 3 callersFunction_native_responses_response
(model: str, identity: str, text: str)
tests/integration/streaming/test_stream_contracts.py:580
↓ 3 callersFunction_native_sse_event
(event: dict[str, object])
tests/integration/streaming/test_stream_contracts.py:600
↓ 3 callersFunction_native_stops
(events: Sequence[Mapping[str, JsonValue]])
tests/integration/providers/test_anthropic_refusal_stop_details_wire.py:495
↓ 3 callersFunction_needed_jobs
(tier: _Tier)
tests/code_coverage_tests/test_unit_passed_gate.py:42
↓ 3 callersMethod_needs_count
(self)
litellm/router_rust/steps/precall.py:319
↓ 3 callersFunction_negotiated_websocket_subprotocol
(websocket: WebSocket)
litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py:3597
↓ 3 callersFunction_nested_container_ids
Identities of every dict/list reachable from `value`, so two structures can be checked for shared mutable state without writing into either one.
tests/unit/test_router_model_cost_isolation.py:68
↓ 3 callersFunction_nested_router_fixture
(parent_tier: str)
tests/unit/proxy/test_health_check_max_tokens.py:1242
↓ 3 callersFunction_nested_run_seconds
(workers: int)
tests/integration/database/test_harness_lifecycle.py:65
↓ 3 callersFunction_net_caching_savings_against_biller
True net caching savings, priced by the real cost calculator. Bills the request as it happened, then bills the same token total with nothing
tests/unit/proxy/spend_tracking/test_savings.py:185
↓ 3 callersFunction_network_error_response
(message: str)
tests/e2e/provider_edge.py:667
↓ 3 callersFunction_never_replayed
``EMPTY_STREAMS`` identical streams, every one reaching the upstream and carrying ids of its own.
tests/integration/caching/test_response_cache_empty_output.py:137
↓ 3 callersFunction_new_customer
(gateway: Gateway, user_id: str, *, path: str = "/customer/new", **fields: JsonValue)
tests/integration/spend/test_end_user_budget_enforcement.py:464
↓ 3 callersFunction_new_marker
(action: Action)
tests/integration/streaming/test_noma_v2_streaming_settings.py:517
↓ 3 callersFunction_new_session
()
tests/unit/llms/custom_httpx/test_aiohttp_transport.py:902
↓ 3 callersFunction_new_upstream
(tmp_path: Path)
tests/unit/test_circleci_checkout.py:130
↓ 3 callersFunction_newest_marker
(raw: bytes)
tests/integration/providers/test_responses_compaction_items_wire.py:99
↓ 3 callersFunction_newest_marker
(text: str)
tests/integration/streaming/test_responses_bridge_stream_chaos.py:133
↓ 3 callersFunction_newest_turn_is_human_ask
Whether the request's newest turn carries a real human ask, i.e. this is a new ask rather than an agent loop's continuation traffic. Anchored
litellm/router_strategy/complexity_router/complexity_router.py:775
↓ 3 callersFunction_newrelic_environment
(audit_sinks: SpanSinks, newrelic_sink: ConnectSink)
tests/integration/observability/test_otel_excluded_services.py:102
↓ 3 callersFunction_newrelic_vars
(excluded_services: str | None = None)
tests/integration/observability/test_otel_excluded_services.py:112
↓ 3 callersFunction_news
(index: int)
tests/unit/llms/firecrawl/search/test_firecrawl_search_transformation.py:19
↓ 3 callersMethod_next
(self, method: str, url: str)
tests/unit/llms/soniox/audio_transcription/test_soniox_audio_transcription_handler.py:38
↓ 3 callersMethod_next
(self, method: str, url: str)
tests/unit/llms/soniox/audio_transcription/test_soniox_audio_transcription_handler.py:63
↓ 3 callersFunction_next_event
(socket: ClientConnection, deadline: float)
tests/integration/providers/test_realtime_transcription_guardrail_session_update.py:482
↓ 3 callersFunction_next_retry_wait
( outcome: _FetchAttemptRetryable, attempt: int, max_attempts: int, rng: random.Random )
litellm/litellm_core_utils/get_model_cost_map.py:389
↓ 3 callersFunction_next_update
(settings: ROISettings, status: ROISyncStatus, report: ROIReport | None)
litellm/proxy/management_endpoints/roi_calculator_endpoints.py:617
↓ 3 callersMethod_no_exceptions
(self, **kwargs: object)
litellm/router_rust/invoke/endpoints.py:2025
↓ 3 callersMethod_no_otel_env
(monkeypatch: pytest.MonkeyPatch)
tests/unit/integrations/otel/test_otel_v2_destinations.py:4841
↓ 3 callersFunction_node
(number: int, merged: datetime)
tests/unit/proxy/roi_calculator/test_github_observed.py:25
↓ 3 callersFunction_noma_reply_per_text
(verdict_for_text)
tests/unit/proxy/guardrails/guardrail_hooks/test_noma.py:1858
↓ 3 callersFunction_non_str_text
(block: object)
litellm/llms/anthropic/messages/convertible_blocks.py:136
↓ 3 callersFunction_non_xai_batch_output_row
( provider_file_id: str, *, size_bytes: int, fallback: bool )
tests/unit/enterprise/proxy/hooks/test_managed_files.py:2953
↓ 3 callersFunction_normal_closure
()
litellm/llms/vertex_ai/audio_transcription/realtime_backend.py:156
← previousnext →24,101–24,200 of 202,479, ranked by callers