MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 3 callersFunction_normalize_claude_model
( request_data: dict, valid_token: UserAPIKeyAuth, request: Request | None, route: str )
litellm/proxy/auth/user_api_key_auth.py:287
↓ 3 callersMethod_normalize_event_for_ga_client
Apply per-provider GA normalization before forwarding to clients.
litellm/litellm_core_utils/realtime_streaming.py:1472
↓ 3 callersFunction_normalize_fine_tuning_job_dict
Normalize Azure OpenAI FineTuningJob response to match OpenAI schema. Azure differences: - organization_id: null → "" - result_files
litellm/llms/openai/fine_tuning/handler.py:25
↓ 3 callersFunction_normalize_language
Normalize language tag (lowercase, resolve aliases).
litellm/proxy/guardrails/guardrail_hooks/block_code_execution/block_code_execution.py:277
↓ 3 callersFunction_normalize_mcp_input_schema
Normalize MCP input schema to ensure it's valid for OpenAI function calling. OpenAI requires that function parameters have: - type: 'obj
litellm/mcp_client/tools.py:45
↓ 3 callersFunction_normalize_media_content
(kind: str, parts: list[dict[str, object]])
tests/unit/responses/litellm_completion_transformation/test_function_call_output_normalization.py:21
↓ 3 callersFunction_normalize_openai_chat_completions_responses_model
Strip `openai/chat_completions/<name>` → `openai/<name>` and return True when the prefix was applied (same effect as use_chat_completions_api
litellm/responses/main.py:1232
↓ 3 callersFunction_normalize_operation_ids
Make FastAPI-generated operation IDs stable for multi-method routes. FastAPI derives the default operation ID suffix from the first item in the
litellm/proxy/_lazy_openapi_snapshot.py:65
↓ 3 callersFunction_normalize_ttl_to_seconds
(ttl: object)
litellm/llms/vertex_ai/context_caching/transformation.py:96
↓ 3 callersFunction_normalized_authorize_endpoint
Compare authorize endpoints / issuers on scheme, host, and path only, through the shared URL canonicalizer: the default port is elided and the hos
litellm/proxy/mcp_server/mcp_server_manager.py:762
↓ 3 callersFunction_not_evaluated_response
(status: str, correlation_id: str = "corr-3")
tests/unit/proxy/guardrails/guardrail_hooks/test_agent_365.py:77
↓ 3 callersMethod_not_found
(self)
tests/unit/test_router/test_router.py:6873
↓ 3 callersFunction_note_renamed
(label: str, old: str, instead: str, *, stacklevel: int = 3)
litellm/router_deprecated.py:848
↓ 3 callersFunction_null_system_turn
()
tests/integration/providers/test_ollama_prompt_tools_wire.py:1426
↓ 3 callersFunction_number
(payload: Mapping[str, object], key: str)
litellm/integrations/zerobus/row.py:79
↓ 3 callersFunction_number
(value: JsonValue)
tests/integration/providers/test_cloudflare_clairic_extraction_wire.py:111
↓ 3 callersFunction_number
(value: JsonValue)
tests/integration/providers/test_decisions_wire.py:197
↓ 3 callersFunction_number
(value: JsonValue)
tests/integration/routing/test_complexity_router_databricks_classifier.py:100
↓ 3 callersFunction_number_setting
(value: JsonValue)
litellm/llms/bedrock/realtime/transformation.py:116
↓ 3 callersFunction_numeric_savings
``value`` as a recorded savings figure, or ``None`` when it is not one.
litellm/proxy/spend_tracking/savings.py:438
↓ 3 callersFunction_nvm_home
(tmp_path, nvm_sh: str)
tests/unit/test_with_dashboard_node.py:98
↓ 3 callersMethod_oauth_bearer_header
(token: str)
litellm/llms/anthropic/common_utils.py:1766
↓ 3 callersFunction_object
(response_content: bytes)
tests/integration/providers/test_vertex_timestamps_utc_wire.py:210
↓ 3 callersFunction_observe
(request: Request)
tests/integration/messages_endpoint/providers/anthropic/test_anthropic_safeguards_beta_wire.py:183
↓ 3 callersFunction_observed
(upstream: httpx.Client)
tests/integration/authorization/test_end_user_block.py:31
↓ 3 callersFunction_observed
(upstream: httpx.Client)
tests/integration/spend/test_key_budget_lockout.py:217
↓ 3 callersFunction_observed
(upstream: httpx.Client)
tests/integration/pricing/test_cost_margin_discount.py:41
↓ 3 callersFunction_observed
(upstream: httpx.Client)
tests/integration/management/test_user_delete_revokes_keys.py:24
↓ 3 callersFunction_observed_models
(upstream: httpx.Client)
tests/integration/authorization/test_team_member_permissions.py:119
↓ 3 callersFunction_observed_requests
(gateway: Gateway)
tests/integration/providers/test_decisions_wire.py:253
↓ 3 callersFunction_observed_requests
(upstream: httpx.Client)
tests/integration/spend/test_end_user_budget_enforcement.py:486
↓ 3 callersFunction_ocr_health_check_document
(model: str, custom_llm_provider: str)
litellm/litellm_core_utils/health_check_helpers.py:89
↓ 3 callersFunction_ocr_payload
(pages: list[object])
tests/unit/integrations/otel/test_otel_v2_sources_of_truth.py:937
↓ 3 callersFunction_of_kind
(events: Sequence[Mapping[str, JsonValue]], kind: str)
tests/integration/streaming/faked_responses_case.py:203
↓ 3 callersFunction_of_state
(recorder: _HookRecorder, state: _State)
tests/unit/test_router/test_router_callback_hook_sequence.py:300
↓ 3 callersFunction_ok
(body: Mapping[str, object])
tests/unit/responses/mcp/test_chat_completions_handler.py:1696
↓ 3 callersFunction_ok_token
(value="cached")
tests/unit/proxy/mcp_server/outbound_credentials/test_token_endpoint.py:283
↓ 3 callersFunction_on_worker
(gateway: Gateway, act: Callable[[httpx.Client], T])
tests/integration/mcp/test_mcp_llm_endpoints.py:1944
↓ 3 callersFunction_one_block
(text: str)
tests/integration/providers/test_databricks_chat_wire.py:1274
↓ 3 callersFunction_one_row_batch_bytes
(model: str)
tests/unit/proxy/hooks/test_batch_file_validation.py:1830
↓ 3 callersFunction_one_search_body
( guarded: _Guarded, marker: str, loads: list[JsonValue], **fields: JsonValue )
tests/integration/authorization/test_tool_search_replay_guardrails.py:158
↓ 3 callersFunction_one_spend_row
( call_id: str, database_url: str | None = None, *, seconds: float = 70, )
tests/integration/observability/test_guardrail_stream_scope_chaos.py:388
↓ 3 callersFunction_only
(values: tuple[str, ...])
tests/integration/providers/test_databricks_chat_wire.py:1999
↓ 3 callersFunction_only_error
(text: str)
tests/integration/providers/test_bedrock_mantle_context_overflow_wire.py:213
↓ 3 callersFunction_open_aliases
()
tests/integration/mcp/test_mcp_oauth_flows.py:61
↓ 3 callersFunction_open_session
(socket: ClientConnection, tool: Mapping[str, JsonValue])
tests/integration/providers/test_bedrock_nova_sonic_realtime_tool_calls.py:286
↓ 3 callersFunction_open_sessions_settling_to_while_the_loop_runs
(wire: Wire, at_most: int)
tests/integration/sdk/test_sync_stream_connection_release_wire.py:132
↓ 3 callersFunction_open_stream
(router, primary: _TrackingStream, fallback: _TrackingStream, mock_router)
tests/unit/test_streaming_connection_cleanup.py:236
↓ 3 callersFunction_open_stream
(core: RouterCore)
tests/unit/test_router/core/test_host_settings_changes_characterization.py:63
↓ 3 callersFunction_openai
(gateway: Gateway)
tests/integration/providers/test_api_base_trailing_slash_owned_proxy.py:66
↓ 3 callersFunction_openai
(target: ProxyTarget)
tests/integration/providers/_idle_upstream_support.py:180
↓ 3 callersFunction_openai
(gateway: Gateway)
tests/integration/providers/test_api_base_trailing_slash_wire.py:76
↓ 3 callersFunction_openai
(rig: _Rig)
tests/integration/streaming/test_interception_converted_stream_options.py:372
↓ 3 callersFunction_openai_batch_output_row
One row of an OpenAI batch output file. Per the OpenAI Batch spec, failed rows set `response` to null and populate `error` instead.
litellm/llms/vertex_ai/files/transformation.py:411
↓ 3 callersFunction_openai_chat_create_kwargs
(client, **completion_kwargs)
tests/unit/test_main.py:5415
↓ 3 callersFunction_openai_chat_upstream
(respx_mock: respx.MockRouter, stream: bool)
tests/unit/responses/test_responses_api_bridge_flag.py:1125
↓ 3 callersFunction_openai_chat_usage
(prompt_tokens: int, cache_write_tokens: int, completion_tokens: int)
tests/unit/litellm_core_utils/llm_cost_calc/test_openai_cache_write_cost.py:23
↓ 3 callersFunction_openai_chunk
( chunk_id: str, delta: Mapping[str, object], choice_extras: Mapping[str, object] = MappingProxyTy
tests/unit/litellm_core_utils/test_streaming_handler.py:6677
↓ 3 callersFunction_openai_client
(gateway: Gateway)
tests/integration/providers/test_custom_prompt_template_wire.py:154
↓ 3 callersFunction_openai_client
(gateway: Gateway)
tests/integration/providers/test_bedrock_runtime_chat_completions_wire.py:104
↓ 3 callersFunction_openai_client
(gateway: Gateway)
tests/integration/routing/test_model_capability_flags.py:207
↓ 3 callersFunction_openai_edge_api_base
The proxy may run in a container, so its edge binds where the proxy can reach it; an in-process SDK call reaches the edge on loopback.
tests/e2e/llm_translation/test_provider_features_e2e.py:112
↓ 3 callersFunction_openai_embeddings_params
The OpenAI embeddings deployment, wired through the record/replay edge when a fixture mode is active and straight at OpenAI otherwise (LIT-5974).
tests/e2e/llm_translation/test_embeddings_endpoint_e2e.py:92
↓ 3 callersFunction_openai_fixture
(_base_url: str)
tests/rust-python-harness/strategies/trace_parity/sdk/responses/case.py:27
↓ 3 callersFunction_openai_gpt_transcribe_reply
(request: Request, reported_seconds: float)
tests/integration/compatibility/test_audio_transcriptions_wire.py:708
↓ 3 callersFunction_openai_message_marks
(request: Request)
tests/integration/providers/test_responses_bridge_message_cache_control_wire.py:462
↓ 3 callersFunction_openai_messages
(route: respx.Route)
tests/unit/integrations/vector_store_integrations/test_vector_store_pre_call_hook_bedrock_kb.py:175
↓ 3 callersFunction_openai_messages_may_need_sync_media_fetch
Check media left after async prefetch for synchronous downloads or GCS metadata reads.
litellm/llms/vertex_ai/gemini/transformation.py:287
↓ 3 callersFunction_openai_peer
(prompt: str)
tests/integration/providers/test_bedrock_mantle_context_overflow_wire.py:168
↓ 3 callersFunction_openai_response_body
(response_id: str, text: str)
tests/unit/interactions/test_main.py:19
↓ 3 callersFunction_openai_responses_params
()
tests/e2e/llm_translation/test_responses_e2e.py:110
↓ 3 callersFunction_openai_sse_chunk
(chunk_id: str, model: str, choices: list[JsonValue])
tests/unit/llms/openai/test_openai.py:1181
↓ 3 callersFunction_openai_tools
()
tests/integration/providers/test_tool_config_cache_point_wire.py:28
↓ 3 callersFunction_openai_upstream
( marker: str, target: str, attempts: Attempts, served: Callable[[int, bool], Reply] )
tests/integration/routing/test_deployment_num_retries_generic_routes_wire.py:38
↓ 3 callersFunction_openai_websocket_refusal
(general_settings: Mapping[str, object])
litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py:3479
↓ 3 callersFunction_openapi_paths
(candidate: Gateway)
tests/integration/configuration/test_lazy_routes_flag.py:126
↓ 3 callersFunction_opened_refresh
(refresh_token: str, client_id: str = gateway_endpoints.CLAUDE_CODE_CLIENT_ID)
tests/unit/proxy/anthropic_endpoints/test_gateway_endpoints.py:243
↓ 3 callersFunction_opted_out_of_message_logging
(custom_logger: CustomLogger)
litellm/litellm_core_utils/redact_messages.py:55
↓ 3 callersFunction_org_admin_can_invite_user
Check if an org admin can invite the target user. Target user must be in at least one org where the admin has org admin role. Args:
litellm/proxy/management_endpoints/common_utils.py:387
↓ 3 callersFunction_origin
``scheme://host:port`` with the default port made explicit, so the same server spelled two ways (``https://llm.example.com`` and ``https://LLM.exa
litellm/proxy/client/cli/commands/pkce_login.py:232
↓ 3 callersMethod_otel
(self)
tests/unit/integrations/test_opentelemetry.py:6060
↓ 3 callersFunction_otlp_traces_endpoint
Point an OTLP/HTTP base endpoint at the ``/v1/traces`` signal path. ``OTEL_EXPORTER_OTLP_ENDPOINT`` is a base URL (e.g. ``http://host:4318``).
litellm/integrations/otel/plumbing/providers.py:142
↓ 3 callersFunction_ours
Whether the key still holds what a configure wrote (a key no configure ever changed is never ours).
litellm/proxy/client/cli/commands/claude_settings.py:459
↓ 3 callersFunction_outbound
(gateway: Gateway, identity: str)
tests/integration/compatibility/test_status_code_followups.py:111
↓ 3 callersMethod_outbound_tools
(self, tools: list[dict])
tests/unit/llms/bedrock/responses/test_bedrock_openai_responses.py:238
↓ 3 callersFunction_outcome
(status: int, text: str)
tests/integration/providers/test_databricks_chat_wire.py:1103
↓ 3 callersMethod_outcome
(self, op: str, args: tuple[object, ...], kwargs: Mapping[str, object])
tests/unit/test_router/core/scripted_host.py:361
↓ 3 callersFunction_outcome_from_rest
(response: httpx.Response)
tests/integration/_support/mcp.py:648
↓ 3 callersFunction_output_compaction_summary
(item: object)
litellm/llms/openai/responses/guardrail_translation/handler.py:140
↓ 3 callersFunction_output_item_type
(output_item: object)
litellm/litellm_core_utils/llm_cost_calc/tool_call_cost_tracking.py:41
↓ 3 callersFunction_output_items
(response: Mapping[str, JsonValue], item_type: str)
tests/integration/providers/test_responses_compaction_items_wire.py:379
↓ 3 callersFunction_output_message
(text: str)
tests/unit/responses/litellm_completion_transformation/test_session_handler.py:1051
↓ 3 callersFunction_overlay_environment
Fill connection fields from the REDIS_* environment the cache actually reads. A response cache pointed at Redis resolves host/port/password/etc.
litellm/proxy/management_endpoints/cache_settings_endpoints.py:120
↓ 3 callersMethod_override_auth
(role: LitellmUserRoles)
tests/unit/proxy/ui_crud_endpoints/test_proxy_setting_endpoints.py:3614
↓ 3 callersFunction_override_values
(candidate: Gateway, path: str, config_type: str)
tests/integration/security/test_config_overrides.py:70
↓ 3 callersFunction_overrides
(wire_url: str)
tests/integration/providers/test_gemini_tts_voice_mapping_owned_proxy.py:69
↓ 3 callersFunction_overrides
()
tests/integration/management/test_team_delete_chaos.py:167
↓ 3 callersFunction_overrides_hook
(callback: CustomLogger, hook_name: str)
litellm/proxy/utils.py:1908
↓ 3 callersFunction_owned_chat
(owned: _Owned, marker: str, **fields: JsonValue)
tests/integration/providers/test_malformed_tools_chaos.py:462
↓ 3 callersFunction_owned_config
( wires: tuple[Wire, ...], tmp_path: Path, template: Mapping[str, JsonValue], litellm_settings
tests/integration/providers/test_custom_prompt_template_chaos.py:294
← previousnext →24,201–24,300 of 202,479, ranked by callers