MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 4 callersMethod_idp_auth_enabled
( mechanism: Literal["oauth2", "oauth2_proxy"], verify: AsyncMock, premium: bool = True )
tests/unit/proxy/mcp_server/auth/test_user_api_key_auth_mcp.py:2929
↓ 4 callersFunction_ids
(deployments: object)
tests/unit/test_router/core/test_registry_changesets.py:36
↓ 4 callersFunction_image_base64
(image_format: str)
tests/unit/llms/ollama/test_ollama_completion_transformation.py:823
↓ 4 callersFunction_image_messages
(payload: str)
tests/unit/litellm_core_utils/test_logging_utils.py:222
↓ 4 callersFunction_image_messages
(url: str, detail: str)
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_openai_passthrough_logging_handler.py:2674
↓ 4 callersFunction_image_response
(b64_payload: str, body_type: str = "bytes")
tests/unit/test_vcr_filters.py:36
↓ 4 callersFunction_image_retry_transport
( requests: SimpleQueue[httpx.Request], outcome: Literal["503", "timeout", "success"] )
tests/unit/images/test_main.py:37
↓ 4 callersFunction_images_in_tool_messages
(messages)
tests/unit/llms/anthropic/messages/adapters/test_anthropic_messages_adapters_transformation.py:4674
↓ 4 callersMethod_increment_spend
Atomically increment the session spend and return the new value.
litellm/proxy/hooks/max_budget_per_session_limiter.py:323
↓ 4 callersMethod_increment_value_in_current_window
Increment spend within existing budget window Runs once the budget start time exists in Redis Cache (on the 2nd and subsequent reque
litellm/router_strategy/base_routing_strategy.py:94
↓ 4 callersMethod_incremental_scan_cache
Resolve the cache used to remember which segments a session already scanned. Prefers the proxy's shared cache (``internal_usage_cache.dual_ca
litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py:3260
↓ 4 callersFunction_indexed_table
(database_url: str, index: str)
tests/integration/database/migrations/test_request_log_indexes.py:231
↓ 4 callersFunction_ingest_request
(name: str, vector_store: Mapping[str, JsonValue])
tests/integration/authorization/test_rag_team_provider_credentials.py:766
↓ 4 callersFunction_inherited_constraint_sets
( inherited_tags: object, routing_prefix: str )
litellm/router_strategy/tag_based_routing.py:428
↓ 4 callersFunction_init
( monkeypatch: pytest.MonkeyPatch, token_file: str, roles_trusting_oidc: frozenset[str] )
tests/unit/proxy/auth/test_rds_iam_token.py:119
↓ 4 callersMethod_init_agents_in_db
(self, prisma_client: PrismaClient)
litellm/proxy/proxy_server.py:9827
↓ 4 callersMethod_init_response_taking_too_long_task
Initialize the response taking too long task if user is using slack alerting Only run task if user is using slack alerting
litellm/proxy/utils.py:5333
↓ 4 callersFunction_initialize
(**tool_permission_params: object)
tests/unit/proxy/guardrails/test_guardrail_initializers.py:21
↓ 4 callersMethod_initialize_spend_capture_rate_check_job
The job always runs and re-reads ``spend_capture_rate_check`` each run; an absent setting clears the gauge.
litellm/proxy/proxy_server.py:12262
↓ 4 callersMethod_injection_guardrail
(action)
tests/unit/proxy/guardrails/guardrail_hooks/content_filter/test_content_filter.py:3418
↓ 4 callersFunction_input_item_cache_control
(input_item: Mapping[str, object])
litellm/responses/litellm_completion_transformation/transformation.py:728
↓ 4 callersFunction_input_text
(text: str)
tests/integration/providers/test_openai_responses_prompt_cache_breakpoint_wire.py:58
↓ 4 callersFunction_insert_database_guardrail
( identity: str, policy_url: str, scope: str | None, *, mode: str = "pre_call", defaul
tests/integration/observability/_logging_only_scope_support.py:768
↓ 4 callersFunction_insert_scan_rows
(owner: str, group: str, size: int, created_at: datetime)
tests/integration/spend/test_batch_poll_starvation.py:306
↓ 4 callersMethod_insert_spend_log_to_db
( self, payload: Mapping[str, object], prisma_client: PrismaClient | None = None,
litellm/proxy/db/db_spend_update_writer.py:1722
↓ 4 callersMethod_inspect_chat
( self, messages: list[dict[str, str]], request_data: dict, user_api_key_dict:
litellm/proxy/guardrails/guardrail_hooks/cisco_ai_defense/cisco_ai_defense.py:789
↓ 4 callersMethod_install_member_spend
(monkeypatch: pytest.MonkeyPatch, model: str, spend: float)
tests/unit/proxy/test_common_request_processing.py:8937
↓ 4 callersMethod_instrument_prisma_client
(self, prisma_client: "Prisma | _PrismaClient")
litellm/proxy/db/prisma_client.py:341
↓ 4 callersFunction_int_or_none
(value: object)
litellm/llms/vertex_ai/gemini/long_decode.py:84
↓ 4 callersFunction_interim
()
tests/unit/proxy/mcp_server/test_result_conversion.py:27
↓ 4 callersFunction_internal_error
Build a 500 HTTPException with a generic, caller-safe `detail` while logging the actual exception server-side. Avoids leaking internal Prisma
litellm/proxy/memory/memory_endpoints.py:150
↓ 4 callersFunction_internal_user
()
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:15550
↓ 4 callersMethod_introspect_opaque_token
Perform RFC 7662 token introspection for opaque (non-JWT) tokens. Returns the introspection response dict. Raises on HTTP error or
litellm/proxy/guardrails/guardrail_hooks/mcp_jwt_signer/mcp_jwt_signer.py:503
↓ 4 callersFunction_invalid_input
(message: str)
litellm/llms/vertex_ai/gemini_embeddings/batch_embed_content_transformation.py:179
↓ 4 callersFunction_invalid_request
(response: httpx.Response)
tests/integration/compatibility/test_status_code_followups.py:138
↓ 4 callersMethod_invalidate_access_groups_cache
(self)
litellm/router_rust/surface/registry.py:837
↓ 4 callersMethod_invoke
(self, exc: Exception, callback_headers: Optional[dict] = None)
tests/unit/proxy/test_common_request_processing.py:5349
↓ 4 callersFunction_invoke_agent
(agent, request)
tests/unit/proxy/agent_endpoints/test_agent_header_isolation.py:100
↓ 4 callersFunction_invoke_body
(request: httpx.Request)
tests/unit/llms/bedrock/count_tokens/test_bedrock_token_counter.py:280
↓ 4 callersFunction_invoke_delta_frame
(index: int, delta: _InvokeDelta)
tests/unit/llms/bedrock/passthrough/guardrail_translation/test_handler.py:3404
↓ 4 callersFunction_invoke_frames
(items: Sequence[object])
litellm/llms/bedrock/passthrough/guardrail_translation/handler.py:1025
↓ 4 callersFunction_invoke_list_keys_and_capture_helper_kwargs
Invoke list_keys with mocked dependencies and return the kwargs that list_keys passes to _list_key_helper (so tests can assert on admin_t
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:7170
↓ 4 callersFunction_invoke_model_garden_completion
Drive litellm.acompletion through the Vertex Model Garden route and return the patched AsyncHTTPHandler so callers can inspect the outbound HTTP c
tests/unit/llms/vertex_ai/test_vertex_model_garden_openapi.py:104
↓ 4 callersFunction_invoke_params_for_schema
( model: str, schema: Mapping[str, object], thinking_params: Mapping[str, object] | None = None )
tests/unit/llms/bedrock/chat/invoke_transformations/test_bedrock_chat_invoke_transformations_anthropic_claude_transformation.py:550
↓ 4 callersFunction_invoke_stream
(*deltas: str)
tests/unit/llms/bedrock/passthrough/guardrail_translation/test_handler.py:3312
↓ 4 callersFunction_ips_in_row
(row: Mapping[str, JsonValue])
tests/integration/spend/test_requester_ip_address_logging.py:513
↓ 4 callersFunction_isPlaceholder
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callersFunction_is_azure_claude_model
Check if a model name contains 'claude' (case-insensitive). Used to detect Claude models that need Anthropic-specific handling.
litellm/litellm_core_utils/get_llm_provider_logic.py:83
↓ 4 callersMethod_is_batch_polling_enabled
Check if batch cost tracking is actually enabled and running. Returns: bool: True if batch cost tracking is active, False
enterprise/litellm_enterprise/proxy/hooks/managed_files.py:2635
↓ 4 callersFunction_is_blank_sso_user_id
(user_id: object)
litellm/proxy/management_endpoints/ui_sso.py:3257
↓ 4 callersFunction_is_client_error_exception
(exc: Exception)
litellm/proxy/utils.py:670
↓ 4 callersFunction_is_context_window_error
Detect a context-window overflow anywhere in an exception's tree.
litellm/proxy/mcp_server/semantic_tool_filter.py:43
↓ 4 callersFunction_is_cooldown_required
A function to determine if a cooldown is required based on the exception status. Parameters: model_id (str) The id of the model in t
litellm/router_utils/cooldown_handlers.py:276
↓ 4 callersFunction_is_dict
(value: object)
litellm/proxy/common_utils/responses_stream_errors.py:97
↓ 4 callersFunction_is_discovery
(request: Request)
tests/integration/security/test_api_key_secret_reference.py:411
↓ 4 callersMethod_is_embedding_request
(data: object, call_type: str | None)
litellm/proxy/hooks/parallel_request_limiter_v3.py:803
↓ 4 callersMethod_is_gcs_uri
Check if the input string is a GCS URI.
litellm/llms/vertex_ai/multimodal_embeddings/transformation.py:61
↓ 4 callersFunction_is_gcs_url
Check if string is a GCS URL (gs://...).
litellm/llms/vertex_ai/gemini_embeddings/batch_embed_content_transformation.py:63
↓ 4 callersMethod_is_gemini_tts_model
(self, model: str)
litellm/endpoints/speech/speech_to_completion_bridge/transformation.py:200
↓ 4 callersFunction_is_guardrail_error
(event: Event)
tests/integration/providers/test_bedrock_nova_sonic_realtime_guardrails.py:142
↓ 4 callersMethod_is_invalid_api_key_request
Determine if a request has an invalid API key based on status code and exception. This method prevents invalid authentication attemp
litellm/integrations/prometheus.py:2862
↓ 4 callersFunction_is_mcp_passthrough_cold_start
True only when EVERY targeted server is a pass-through server with no auth headers — the cold-start OAuth discovery case per RFC 9728 / MCP Au
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:198
↓ 4 callersFunction_is_nonzero_price
(value: object)
litellm/proxy/management_endpoints/model_management_endpoints.py:1170
↓ 4 callersFunction_is_object_list
(value: object)
litellm/proxy/guardrails/guardrail_hooks/compresr/compresr.py:166
↓ 4 callersFunction_is_object_sequence
(value: object)
litellm/responses/utils.py:81
↓ 4 callersFunction_is_openai_compatible_host
True if the hostname is OpenAI proper or one of the Azure OpenAI domains. Hostname-only check, kept for the route-level helpers that additionally
litellm/proxy/pass_through_endpoints/llm_provider_handlers/openai_passthrough_logging_handler.py:81
↓ 4 callersFunction_is_output_tool_call_item
(item: object)
litellm/llms/openai/responses/guardrail_translation/handler.py:358
↓ 4 callersMethod_is_recognized_call_type_for_logging
Returns True if the call type is recognized for logging (eg. ModelResponse, ModelResponseStream, etc.)
litellm/litellm_core_utils/litellm_logging.py:3463
↓ 4 callersFunction_is_redacted
(record: logging.LogRecord)
litellm/_logging.py:98
↓ 4 callersFunction_is_rejected_signature
(error: httpx.HTTPStatusError | BaseLLMException)
litellm/llms/vertex_ai/gemini/rejected_thought_signature_retry.py:29
↓ 4 callersFunction_is_remote_module_url
(value: object)
litellm/proxy/proxy_server.py:5164
↓ 4 callersFunction_is_response_cache_excluded
(model: str | None, kwargs: Mapping[str, object])
litellm/caching/caching_handler.py:117
↓ 4 callersFunction_is_same_origin_return_path
True for a strictly relative return path that stays on the gateway's own origin by construction, and is therefore safe to honor without a configur
litellm/proxy/management_endpoints/ui_sso.py:3107
↓ 4 callersFunction_is_str_object_dict
(value: object)
litellm/proxy/guardrails/guardrail_hooks/compresr/compresr.py:162
↓ 4 callersMethod_is_text_only_live_model
(model: str)
litellm/llms/gemini/realtime/transformation.py:549
↓ 4 callersFunction_item_type
(item: dict[str, object] | BaseLiteLLMOpenAIResponseObject)
tests/unit/responses/mcp/test_mcp_streaming_iterator.py:68
↓ 4 callersFunction_items
(value: JsonValue)
tests/unit/llms/base_llm/chat/test_provider_chat_translation.py:622
↓ 4 callersMethod_items
(cls, marked_calls: int)
tests/unit/integrations/test_anthropic_cache_control_hook.py:4718
↓ 4 callersFunction_items_from_newest_compaction
(input: Sequence[_Item])
litellm/responses/litellm_completion_transformation/compaction_items.py:284
↓ 4 callersFunction_iter_batch_output_entries
Yield parsed batch output JSONL entries one at a time without materializing the whole file as a list, so peak memory stays bounded. A malform
litellm/batches/batch_utils.py:701
↓ 4 callersFunction_iter_human_asks_newest_first
Yield user-turn texts that carry a real human ask, newest first, with harness noise removed.
litellm/router_strategy/complexity_router/complexity_router.py:658
↓ 4 callersMethod_iter_metadata_dicts
Metadata may land on `metadata` or `litellm_metadata` depending on the endpoint, mirroring DeploymentAffinityCheck's precedence.
litellm/router_strategy/complexity_router/complexity_router.py:4422
↓ 4 callersFunction_iter_sse_events
Yield one ``data:`` SSE line at a time from a sync text stream. The OCI streaming endpoint does not align SSE event boundaries with HTTP read
litellm/llms/oci/chat/transformation.py:111
↓ 4 callersFunction_joined
(deltas: tuple[dict[str, JsonValue], ...], field: str)
tests/integration/caching/test_response_cache_stream_replay.py:152
↓ 4 callersFunction_joined_token_ids
(choices: Sequence[Mapping[str, object]])
tests/unit/litellm_core_utils/test_streaming_handler.py:7063
↓ 4 callersFunction_json
(payload: Mapping[str, JsonValue])
tests/integration/providers/test_azure_entra_token_reuse_wire.py:152
↓ 4 callersFunction_json
(value: object)
tests/integration/observability/test_guardrail_stream_scope.py:58
↓ 4 callersFunction_json
(status: int, body: Mapping[str, JsonValue])
tests/integration/_support/device_login.py:110
↓ 4 callersMethod_json
(self, body: object, status_code: int = 200)
litellm/harness/endpoint.py:595
↓ 4 callersFunction_json_body
(response: _JsonResponse)
litellm/llms/gemini/agents/transformation.py:35
↓ 4 callersFunction_json_body
(request: Request)
tests/integration/routing/test_declared_provider_bare_model_routes.py:82
↓ 4 callersFunction_json_list
(value: object)
litellm/completion_extras/litellm_responses_transformation/transformation.py:429
↓ 4 callersFunction_json_mode_chat
(group: str, text: str, **extra: JsonValue)
tests/integration/routing/test_pre_call_response_format_filter.py:70
↓ 4 callersFunction_json_object_fields
A typed, read-only view of a JSON object, or None when it is not one.
litellm/proxy/management_endpoints/scim/scim_v2.py:597
↓ 4 callersFunction_json_reply
(status: int, payload: Mapping[str, JsonValue], marker: str)
tests/integration/_support/bedrock_runtime_peer.py:68
↓ 4 callersFunction_json_tool_block_events
(index: int, encoded: str)
tests/unit/llms/anthropic/chat/test_anthropic_chat_handler.py:3756
↓ 4 callersFunction_json_transcription_call_kwargs
(provider_config)
tests/unit/llms/custom_httpx/test_llm_http_handler.py:3013
↓ 4 callersMethod_judge_error
(self, router: MagicMock, monkeypatch: pytest.MonkeyPatch)
tests/unit/integrations/test_shadow_eval_logger.py:1609
↓ 4 callersFunction_judge_response_mock
()
tests/unit/proxy/guardrails/test_llm_as_a_judge.py:597
↓ 4 callersFunction_judge_targets
(judge: Wire)
tests/integration/management/test_auto_router_databricks_classifier_writes.py:151
← previousnext →18,101–18,200 of 202,479, ranked by callers