MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 4 callersFunctioncombined_capabilities
The capabilities every one of `deployments` offers, the window falling back to `listed_context_window` when no deployment declares one.
litellm/proxy/common_utils/codex_model_translation.py:166
↓ 4 callersFunctioncommand_stats
`INFO commandstats` from every node, so a test can count what was actually sent.
litellm-rust/crates/redis-client/tests/support/mod.rs:147
↓ 4 callersFunctioncommit_tool_discoveries
Scheduled alongside update_spend on its own lock, so tool table writes never ride the spend commit. With the Redis buffer every worker hands its
litellm/proxy/db/tool_registry_writer.py:156
↓ 4 callersMethodcommon_done_event_logic
(self, sync_mode: bool = True)
litellm/responses/litellm_completion_transformation/streaming_iterator.py:1168
↓ 4 callersFunctioncompact_hits
(requests: tuple[Upstreamed, ...], text: str)
tests/integration/authorization/_responses_compact.py:206
↓ 4 callersFunctioncompact_to_fit
( ctx: RoutingContext, deployment: Mapping[str, object], payload: Mapping[str, object], surface: Surface |
litellm/router_strategy/complexity_router/context_compaction.py:368
↓ 4 callersFunctioncompaction_pending
(kwargs: Mapping[str, object] | None)
litellm/router_strategy/complexity_router/context_compaction.py:164
↓ 4 callersFunctioncompare_python_runs
(python: PythonReport, rust: PythonReport)
tests/rust-python-harness/shared/unit_runners/python_runner.py:135
↓ 4 callersMethodcompatibleContent
(e)
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 4 callersFunctioncompleted_event
( item_id: str, transcript: str, usage: RealtimeInputAudioTranscriptionUsage | None )
litellm/llms/base_llm/realtime/transcription_protocol.py:267
↓ 4 callersFunctioncompleted_output
(events: Sequence[Mapping[str, JsonValue]])
tests/integration/streaming/faked_responses_case.py:303
↓ 4 callersMethodcompletion
( self, model: str, messages: list, model_response: ModelResponse, pri
litellm/llms/vertex_ai/vertex_ai_partner_models/main.py:92
↓ 4 callersFunctioncompletion_binding
(native: NativeCompletion | None)
tests/test_litellm_rust/chat_completions/test_dispatch.py:31
↓ 4 callersFunctioncompose_body
( arguments: &CallArguments, body: &B, consumed: &[&str], )
litellm-rust/crates/core-utils/src/call_arguments.rs:45
↓ 4 callersFunctioncomposer
(page: PlaywrightPage)
tests/e2e/ui/helpers/playground.ts:7
↓ 4 callersFunctionconfig
(base: String, timeout: Option<Duration>)
litellm-rust/crates/cache-qdrant-semantic/tests/embedder.rs:97
↓ 4 callersMethodconfig
(self)
litellm-rust/crates/inference-messages/src/common_utils.rs:35
↓ 4 callersFunctionconfig_allows_workload_identity
A federation token is an Anthropic-org credential and its exchange POSTs the workload's OIDC assertion to the deployment's own host, so eligibilit
litellm/llms/anthropic/common_utils.py:517
↓ 4 callersFunctionconfig_entry
(gateway: Gateway, setting: str)
tests/integration/management/_batch_file_caps.py:327
↓ 4 callersMethodconfig_value
(self, key: str)
litellm/proxy/config_resolvers/settings_store.py:63
↓ 4 callersFunctionconfig_values
(argv: list[str])
tests/unit/llms/codex/harness/test_transformation.py:186
↓ 4 callersFunctionconfigured
()
tests/unit/proxy/test__lazy_features.py:169
↓ 4 callersFunctionconfigured_cache_backend
()
tests/e2e/provider_edge.py:1307
↓ 4 callersFunctionconfigured_event_hooks
(mode: str | list[str] | Mode)
litellm/proxy/guardrails/guardrail_initializers.py:106
↓ 4 callersFunctionconfigured_local_heuristic
(config: Mapping[str, object])
litellm/router_strategy/complexity_router/config.py:82
↓ 4 callersFunctionconfigured_spend_logs_metadata_fields
()
litellm/proxy/spend_tracking/spend_tracking_utils.py:2248
↓ 4 callersFunctionconfigured_versions
()
litellm/proxy/mcp_server/capabilities.py:75
↓ 4 callersMethodconfirm_batch_processed_support
Probe the batch_processed column before the proxy serves traffic, so the retrieve path never sees an unconfirmed poller on a schema t
enterprise/litellm_enterprise/proxy/common_utils/check_batch_cost.py:140
↓ 4 callersFunctionconflictServer
(t *testing.T, opts conflictServerOptions)
terraform/provider/litellm/resource_credential_crud_test.go:231
↓ 4 callersFunctionconflicting_callback_var_error
( callback_name: str, variable_name: str, callback_vars: Mapping[str, str] | None, stored_entr
litellm/proxy/common_utils/callback_config_validation.py:245
↓ 4 callersMethodconnect
( cls, url: str, headers: dict[str, str], timeout_seconds: float | None, )
litellm/rust_bridge/responses/websocket.py:26
↓ 4 callersMethodconnectSelection
()
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 4 callersFunctionconnect_with
( deployment: &RedisDeployment, breaker: Option<litellm_circuit_breaker::Breaker>, events: Option<
litellm-rust/crates/redis-store/tests/support/mod.rs:100
↓ 4 callersMethodconnection
(self)
tests/e2e/migrations/database.py:52
↓ 4 callersMethodconsume
( self, caller: &AuthenticatedCaller, request: &AccessRequest, )
litellm-rust/crates/gateway-auth/src/authorization.rs:128
↓ 4 callersFunctionconsumeReturnUrl
(runtimeBackendUrl: string | null = null)
ui/litellm-dashboard/src/utils/returnUrlUtils.ts:308
↓ 4 callersFunctionconsume_state
( repository: ConfigRepository, state: str, nonce: str, config: OAuthConfig, *, flow:
litellm/proxy/roi_calculator/oauth.py:188
↓ 4 callersMethodcontact
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callersMethodcontains
(self, identity: RustTestIdentity)
tests/rust-python-harness/shared/unit_runners/rust_runner.py:72
↓ 4 callersMethodcontent
(self)
tests/integration/streaming/test_interception_converted_stream_options.py:116
↓ 4 callersFunctioncontent_filtered
()
tests/unit/test_router/core/test_fallbacks_characterization_outcomes.py:462
↓ 4 callersFunctioncontext_management_explicitly_dropped
True when the caller opted out of context_management via ``additional_drop_params``. ``drop_params`` deliberately does NOT gate the polyfill: ``c
litellm/llms/anthropic/messages/adapters/handler.py:427
↓ 4 callersFunctioncontinuation_output_ceilings
The caller's output ceilings, top-level and in extra_body, minus the tokens already emitted, or None once nothing is left.
litellm/router_utils/pre_call_checks/continuation_prefill_check.py:163
↓ 4 callersFunctioncontrol_plane
(directory: Path, hosts: tuple[str, ...])
tests/integration/_support/aws_control_plane.py:229
↓ 4 callersFunctionconverse_tool_specs
(request: Request)
tests/integration/providers/test_responses_codex_repeated_additional_tools_wire.py:43
↓ 4 callersFunctionconverse_with_key
(rig: Rig, model: str, key: str)
tests/integration/providers/test_bedrock_passthrough_aws_errors.py:388
↓ 4 callersFunctionconvertToDotPrompt
(prompt: PromptType)
ui/litellm-dashboard/src/app/(dashboard)/prompts/_components/prompt_editor_view/utils.ts:25
↓ 4 callersMethodconvert_anthropic_tool_to_databricks_tool
(self, tool: AllAnthropicToolsValues | None)
litellm/llms/databricks/chat/transformation.py:500
↓ 4 callersFunctionconvert_args_to_kwargs
( original_function: Callable, args: tuple[object, ...] | None = None, )
litellm/caching/caching_handler.py:1500
↓ 4 callersFunctionconvert_custom_tool_format_to_responses_shape
Inverse of convert_custom_tool_format_to_chat_shape: unwrap the Chat Completions "grammar" object into the flat Responses API grammar shape.
litellm/litellm_core_utils/prompt_templates/common_utils.py:1063
↓ 4 callersFunctionconvert_custom_tool_to_function_tool
Convert a Responses API ``custom`` tool to a Chat Completions ``function`` tool. The grammar definition is embedded in the description so the
litellm/responses/litellm_completion_transformation/custom_tools.py:268
↓ 4 callersFunctionconvert_mid_conversation_system_turns
(messages: Vec<Message>)
litellm-rust/crates/llms/src/base_llm/messages/mid_conversation_system.rs:102
↓ 4 callersMethodconvert_openai_request_to_vertex
convert request from OpenAI format to Vertex format https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning
litellm/llms/vertex_ai/fine_tuning/handler.py:58
↓ 4 callersFunctioncooled
(core: RouterCore, *ids: str)
tests/unit/test_router/core/test_parity_regress5_errors.py:66
↓ 4 callersMethodcooled_down
Whether a failure report cooled the deployment down, with its cooldown event, which carries ``python_cooldown`` of ``configured`` and ``error`
litellm/router_rust/surface/health.py:229
↓ 4 callersFunctioncopy_user_api_key_auth_for_cache
( user_api_key_obj: UserAPIKeyAuth, )
litellm/proxy/auth/auth_checks.py:4433
↓ 4 callersFunctioncost_headers
( response_cost: float | str | None, litellm_logging_obj: LiteLLMLoggingObj | None )
litellm/proxy/common_request_processing.py:2057
↓ 4 callersFunctioncost_map_entry
(model: str, custom_llm_provider: str | None = None)
litellm/proxy/common_utils/token_count_settings.py:105
↓ 4 callersFunctioncost_per_second
Calculates the cost per second for a given model, prompt tokens, and completion tokens. Input: - model: str, the model name without
litellm/llms/openai/cost_calculation.py:50
↓ 4 callersFunctioncost_tracking
()
litellm/proxy/proxy_server.py:3354
↓ 4 callersMethodcount_pre_call_check_tokens
( self, messages: Sequence[Mapping[str, object]] | None, input: str | list[object] | N
litellm/router_api.py:1672
↓ 4 callersFunctioncount_request_input_tokens
Input-token count per candidate model, counted once per request. The counts are reused by both the max-cost and the input-cost estimate.
litellm/proxy/spend_tracking/budget_reservation.py:1619
↓ 4 callersFunctioncount_source_fields
(response: TokenCountResponse)
litellm/proxy/common_utils/token_count_settings.py:221
↓ 4 callersMethodcount_tokens
Count tokens in text using litellm.token_counter. Args: text: Text to count tokens for Returns: Tok
litellm/a2a_protocol/utils.py:131
↓ 4 callersFunctioncount_tokens_headers
(access_token: str, request_data: Mapping[str, object])
litellm/llms/vertex_ai/vertex_ai_partner_models/count_tokens/handler.py:60
↓ 4 callersFunctioncreate
(model: str, text: str, previous_response_id: str | None = None)
tests/integration/_support/responses_ws_peer.py:136
↓ 4 callersFunctioncreateBuffer
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callersFunctioncreateChatMultimodalMessage
( inputMessage: string, file: File, )
ui/litellm-dashboard/src/app/(dashboard)/playground/components/chat_ui/ChatImageUtils.tsx:25
↓ 4 callersFunctioncreateDeepLinkPath
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callersFunctioncreateElement
(s)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 4 callersFunctioncreateMockTeamData
(overrides: Partial<TeamData> = {})
ui/litellm-dashboard/src/components/team/TeamMemberTab.test.tsx:37
↓ 4 callersFunctioncreateSSOData
(overrides: Record<string, any> = {})
ui/litellm-dashboard/src/components/Settings/AdminSettings/SSOSettings/Modals/EditSSOSettingsModal.test.tsx:54
↓ 4 callersMethodcreate_agent
( self, agents_api_config: BaseAgentsAPIConfig, create_request: AgentCreateRequest,
litellm/interactions/agents/http_handler.py:36
↓ 4 callersFunctioncreate_app
(recorder: Optional[OpenAIRecordReplay] = None, http_client=None)
tests/_openai_record_replay_proxy.py:259
↓ 4 callersFunctioncreate_bad_base_deployment
Register a deployment pointing at an unreachable base, so every call to it fails with a real connection error the fallback can reroute around.
tests/e2e/router/reliability_support.py:82
↓ 4 callersMethodcreate_fine_tuning_job
( self, _is_async: bool, create_fine_tuning_job_data: dict, api_key: str | Non
litellm/llms/openai/fine_tuning/handler.py:108
↓ 4 callersMethodcreate_group
(self, name: str)
tests/e2e/idp.py:176
↓ 4 callersFunctioncreate_guardrail
Create a new guardrail 👉 [Guardrail docs](https://docs.litellm.ai/docs/proxy/guardrails/quick_start) Example Request: ```bash c
litellm/proxy/guardrails/guardrail_endpoints.py:383
↓ 4 callersMethodcreate_litellm_teams_from_service_principal_team_ids
Creates Litellm Teams from the Service Principal Group IDs When a user sets a `SERVICE_PRINCIPAL_ID` in the env, litellm will fetch
litellm/proxy/management_endpoints/ui_sso.py:5040
↓ 4 callersMethodcreate_many
( self, data: Sequence[Mapping[str, object]], *, skip_duplicates: bool | None = None )
litellm/repositories/prisma_protocols.py:55
↓ 4 callersMethodcreate_permission
Create a new object permission record.
litellm/repositories/object_permission_repository.py:40
↓ 4 callersFunctioncreate_standard_logging_payload
()
tests/unit/create_mock_standard_logging_payload.py:29
↓ 4 callersFunctioncreate_standard_logging_payload
()
tests/unit/test_router/test_router_helper_utils.py:39
↓ 4 callersMethodcreate_team
(self, team_alias: str, models: list[str])
tests/e2e/access_control/access_control_client.py:95
↓ 4 callersFunctioncredentialLabel
(credential: CredentialItem)
ui/litellm-dashboard/src/components/shared/credentialOptions.ts:11
↓ 4 callersFunctioncredentialListCall
(accessToken: string)
ui/litellm-dashboard/src/components/networking.tsx:2371
↓ 4 callersFunctioncredentials
( project: Option<String>, credentials: Option<SecretValue>, environment: Arc<dyn Lookup + Send +
litellm-rust/crates/secrets-google/src/auth.rs:8
↓ 4 callersFunctioncross_entry_family_error
Reject an entry that changes what a family another entry holds resolves to. Every stored entry's variables are flattened into one dict before a r
litellm/proxy/common_utils/callback_config_validation.py:171
↓ 4 callersFunctioncryptography_enforces_fips
The cryptography library's own OpenSSL runs with FIPS-only defaults and its FIPS provider can hash SHA-256.
litellm/proxy/common_utils/fips.py:43
↓ 4 callersMethodcurrent
(&self)
litellm-rust/crates/redis-client/src/connection.rs:216
↓ 4 callersFunctioncurrent_attempt_id
()
litellm/litellm_core_utils/attempt_settlement.py:32
↓ 4 callersFunctioncurrent_service_caller
()
litellm/_internal_context.py:155
↓ 4 callersFunctioncurrent_total_deadline
()
litellm/litellm_core_utils/total_deadline.py:148
↓ 4 callersFunctioncustom_auth_common_checks_warning
( *, custom_auth_configured: bool, run_common_checks: bool, )
litellm/proxy/auth/auth_utils.py:1762
↓ 4 callersFunctioncustom_llm_setup
Add custom_llm provider to provider list
litellm/utils.py:621
↓ 4 callersFunctioncustom_tier_classification_prompt
The classifier's system role for an operator-defined tier set. The single owner of the built-in-criteria substitution, so the dashboard's preview
litellm/router_strategy/complexity_router/complexity_router.py:370
↓ 4 callersFunctioncy
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0_6jqgnorqxl2.js:1
↓ 4 callersFunctiond
(e)
litellm/proxy/_experimental/out/_next/static/chunks/2hk8n3azev--d.js:1
↓ 4 callersFunctiondailyActivityAggregatedCall
( entity: DailyActivityEntity, req: DailyActivityRequest, )
ui/litellm-dashboard/src/components/networking.tsx:1392
↓ 4 callersFunctiondaily_activity_repository
(prisma_client: PrismaClient)
litellm/proxy/management_endpoints/common_daily_activity.py:580
← previousnext →19,901–20,000 of 202,479, ranked by callers