MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 10 callersFunctionseen
(requests: tuple[Request, ...], mark: str)
tests/integration/management/_batch_file_caps.py:146
↓ 10 callersMethodselect
( &self, _stage: &SelectStage, _ctx: &RoutingContext<'_>, candidates: Vec<Arc<
litellm-rust/crates/router-core/tests/call_loop.rs:103
↓ 10 callersFunctionsend
(attempt: int)
litellm/proxy/roi_calculator/github.py:233
↓ 10 callersMethodsend
(self, value: object)
litellm/rust_bridge/execution.py:37
↓ 10 callersMethodsend
( self, body: Mapping[str, JsonValue], *, streaming: bool = False, close_connection: bool = False
tests/integration/messages_endpoint/test_anthropic_messages_caller_tools_wire.py:241
↓ 10 callersMethodsendRequest
(method, path string, body interface{})
terraform/provider/litellm/client.go:423
↓ 10 callersMethodsend_text
(self, data: str)
litellm/llms/openai/live/handler.py:90
↓ 10 callersFunctionserialize
(s,o)
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 10 callersMethodserve
(self, address: CollectorAddress)
litellm/proxy/collector.py:78
↓ 10 callersFunctionsetCallbacksCall
(accessToken: string, formValues: Record<string, any>)
ui/litellm-dashboard/src/components/networking.tsx:3246
↓ 10 callersMethodsetMeta
(e,t)
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:1
↓ 10 callersFunctionsetServerRootPath
(rootPath: string)
ui/litellm-dashboard/src/lib/serverRootPath.ts:10
↓ 10 callersFunctionset_session_token_cookie
Set the ``token`` session cookie shared by every sign-in path. Not HttpOnly: the dashboard reads this cookie via ``document.cookie`` to popul
litellm/proxy/management_endpoints/ui_sso.py:3174
↓ 10 callersFunctionsettle
Wait for the logging and recording tasks a finished stream scheduled, and any tasks they schedule.
tests/unit/test_router/core/test_streaming_characterization_outcomes.py:70
↓ 10 callersFunctionshape_anthropic_messages_request
( request: MessagesRequest, reasoning_auto_summary: bool, )
litellm-rust/crates/llms/src/anthropic/messages/handler.rs:18
↓ 10 callersFunctionshould_cooldown_based_on_allowed_fails_policy
Check if fails are within the allowed limit and update the number of fails. When *allowed_fails_override* / *cooldown_time_override* are sup
litellm/router_utils/cooldown_handlers.py:756
↓ 10 callersMethodshould_run_guardrail
(self, data, event_type)
tests/unit/proxy/guardrails/guardrail_hooks/unified_guardrails/test_unified_guardrail.py:77
↓ 10 callersMethodshould_run_logging
( self, event_type: Literal["async_success", "sync_success", "async_failure", "sync_failure"],
litellm/litellm_core_utils/litellm_logging.py:2914
↓ 10 callersFunctionsign
(claims: Mapping[str, object], typ: str = ID_JAG_TYP)
tests/unit/proxy/auth/test_handle_jwt.py:8488
↓ 10 callersFunctionsigned
(mut request: Request, signer: &dyn RequestSigner)
litellm-rust/crates/http/src/outbound.rs:53
↓ 10 callersMethodsingle_list_request
(self)
tests/integration/management/test_vector_store_file_list_managed_ids.py:420
↓ 10 callersMethodsink_calls
(self, marker: str)
tests/integration/observability/test_straiker_v3_platform.py:410
↓ 10 callersMethodsleep
(&self, _duration: std::time::Duration)
litellm-rust/crates/router-core/src/build.rs:281
↓ 10 callersFunctionslow_upstream_answer
(body: bytes = b"")
tests/unit/llms/bedrock/slow_upstream.py:33
↓ 10 callersFunctionsse_error_payload
Build the ProxyException-shaped ``{"error": ...}`` body used in SSE error frames. Matches ``ProxyException.to_dict()`` so streaming and non-strea
litellm/proxy/common_request_processing.py:1328
↓ 10 callersFunctionst
litellm/proxy/_experimental/out/_next/static/chunks/2k-fkubkt19cc.js:8
↓ 10 callersMethodstart
( self, model: str, custom_tokenizer: CustomHuggingfaceTokenizer | None, loop: asyncio.AbstractEventLo
litellm/proxy/proxy_server.py:15543
↓ 10 callersMethodstart
(self)
litellm/proxy/common_utils/auth_cache_invalidation_pubsub.py:257
↓ 10 callersFunctionstartNewTag
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 10 callersFunctionstart_in_container_pgbouncer
Start the pooler for ``upstream_url`` and return the loopback URL the workers must use. The pooler lives as long as this process: it is stopped f
litellm/proxy/db/pgbouncer.py:686
↓ 10 callersMethodstorage
(&self)
litellm-rust/crates/spend-clickhouse/src/lib.rs:27
↓ 10 callersFunctionstream
()
tests/unit/proxy/guardrails/guardrail_hooks/test_llm_shield_proxy.py:153
↓ 10 callersMethodstream
(self, path: str, *, headers: BaseModel, json: BaseModel)
tests/e2e/transport.py:40
↓ 10 callersFunctionstream_chunks
(response: RecordedStreamedResponse)
tests/e2e_harness/test_provider_edge.py:1001
↓ 10 callersFunctionstream_events
( gateway: Gateway, path: str, body: Mapping[str, JsonValue], key: str | None = None )
tests/integration/streaming/faked_responses_case.py:180
↓ 10 callersFunctionstream_results
(raw: bytes)
tests/integration/_support/safeguards_rig.py:362
↓ 10 callersFunctionstrip_auth_scheme
Return ``auth_value`` with a leading ``<scheme>`` and separator removed, or unchanged when absent. Callers supply both a bare credential and a co
litellm/mcp_client/client.py:151
↓ 10 callersFunctionstrip_beta_gated_thinking
Drop ``thinking`` sub-fields whose beta is absent. Returns the same object when nothing is gated.
litellm/anthropic_beta_gated_fields.py:134
↓ 10 callersFunctionstrip_empty_content_blocks_from_anthropic_messages
Return a new message list with empty or whitespace-only ``{"type": "text"}`` content blocks and empty *unsigned* ``{"type": "thinking"}`` blo
litellm/llms/anthropic/common_utils.py:2108
↓ 10 callersMethodstrip_sse_data_from_chunk
Strips the 'data: ' prefix from Server-Sent Events (SSE) chunks. Some providers like sagemaker send it as `data:`, need to handle bo
litellm/litellm_core_utils/streaming_handler.py:2950
↓ 10 callersFunctionsummarize
(report: ROIReport, mappings: Mapping[str, str])
litellm/proxy/roi_calculator/analytics.py:128
↓ 10 callersFunctionswitching
The 101 uvicorn writes for `handshake`, with `headers` added.
litellm-rust/crates/gateway-forward/tests/websocket.rs:106
↓ 10 callersFunctionsync_models_json
Replace only the litellm provider entry, leaving the rest of the file intact.
litellm/proxy/client/cli/commands/pi.py:247
↓ 10 callersMethodsync_prompt_from_db
(self, prompt: PromptSpec)
litellm/proxy/prompts/prompt_registry.py:259
↓ 10 callersFunctiontag_txn
(**overrides)
tests/unit/proxy/db/test_daily_spend_bulk_upsert.py:26
↓ 10 callersFunctiontargets
(rig: Rig, request_nonce: str)
tests/integration/messages_endpoint/safeguards/test_safeguard_results_synthesized_streams.py:230
↓ 10 callersFunctionteam_access_denied
()
litellm/proxy/management/teams/authz.py:60
↓ 10 callersFunctionteam_member_add
Add new members (either via user_email or user_id) to a team If user doesn't exist, new user row will also be added to User Table Only
litellm/proxy/management_endpoints/team_endpoints.py:3768
↓ 10 callersFunctiontext
(entry: Option<&Entry>)
litellm-rust/crates/redis-resolve/src/options.rs:197
↓ 10 callersFunctiontext_stream
(identity: str)
tests/integration/streaming/test_stream_contracts.py:39
↓ 10 callersFunctionthis_tests_files
(root: Path)
tests/e2e_harness/test_provider_edge.py:351
↓ 10 callersMethodto_list
(self)
litellm/integrations/ternary/export_engine.py:31
↓ 10 callersFunctiontoken_response
(access_token: str = "keycloak-minted-token")
tests/unit/llms/base_llm/auth/test_client_credentials.py:86
↓ 10 callersFunctiontool_answer
(tool_call_id: JsonValue, content: str = WEATHER_ANSWER)
tests/integration/providers/_tool_search_support.py:244
↓ 10 callersFunctiontool_call_to_tool_data
(tool_call: object)
litellm/proxy/guardrails/guardrail_hooks/ovalix/ovalix_extraction.py:259
↓ 10 callersFunctiontrace_row
One ``TRACE_TABLE_COLUMNS`` row for a ``StandardLoggingPayload``.
litellm/integrations/zerobus/row.py:109
↓ 10 callersMethodtransform_list_files_response
( self, raw_response: httpx.Response, logging_obj: LiteLLMLoggingObj, litellm_
litellm/llms/xai/files/transformation.py:222
↓ 10 callersMethodtransform_openai_batch_request_to_vertex_ai_batch_request
Transforms OpenAI Batch requests to Vertex AI Batch requests
litellm/llms/vertex_ai/batches/transformation.py:210
↓ 10 callersMethodtransform_request
( self, model: str, messages: list[AllMessageValues], # mutable-ok: inherited contrac
litellm/llms/databricks/chat/transformation.py:675
↓ 10 callersMethodtransform_response
( self, model: str, raw_response: Response, model_response: ModelResponse,
litellm/llms/ollama/completion/transformation.py:308
↓ 10 callersMethodtransform_response
( self, model: str, raw_response: httpx.Response, model_response: ModelRespons
litellm/llms/sap/chat/transformation.py:393
↓ 10 callersMethodtransform_turn_request
( self, ctx: SessionContext, setup: HarnessSessionSetup, private_dir: str,
litellm/llms/pi/harness/transformation.py:491
↓ 10 callersMethodtransform_turn_response
( self, ctx: SessionContext, state: PiStreamState, exit_code: int, std
litellm/llms/pi/harness/transformation.py:554
↓ 10 callersMethodtransform_video_status_retrieve_request
( self, video_id: str, api_base: str, litellm_params: GenericLiteLLMParams,
tests/integration/_support/custom_video_provider.py:88
↓ 10 callersMethodtranslate_legacy_thinking_for_adaptive_model
( model: str, optional_params: MutableMapping[str, object], # mutable-ok: in-place out-param
litellm/llms/anthropic/common_utils.py:1226
↓ 10 callersMethodtruthy
(&self)
litellm-rust/crates/python-bridge/src/coercion.rs:155
↓ 10 callersMethodturn
(self, ctx: SessionContext, prompt: str)
tests/unit/harness/core_fakes.py:182
↓ 10 callersFunctionui_view_users
Filter users based on partial match of user_id or email, or combined ``search``, with pagination. Behaviour depends on the ``scope_user_sear
litellm/proxy/management_endpoints/internal_user_endpoints.py:2841
↓ 10 callersMethodunconfigure
(self)
tests/unit/proxy/client/cli/test_claude_settings.py:426
↓ 10 callersFunctionunexpected_reply
A reply whose shape a codec over it refuses, as `what` describes.
litellm-rust/crates/redis-client/src/commands.rs:171
↓ 10 callersFunctionunless_database_fails
(lookup: Awaitable[_T], fallback: _T, left_out: str)
litellm/proxy/management_endpoints/common_daily_activity.py:915
↓ 10 callersFunctionunpack_legacy_defs
Inline ``$ref``s backed by draft-04 ``definitions`` / OpenAPI ``components.schemas``. ``$defs`` is left untouched. Anthropic and Fireworks to
litellm/litellm_core_utils/prompt_templates/common_utils.py:966
↓ 10 callersFunctionuntil_asserted
(check: Callable[[], T], *, seconds: float = 10)
tests/integration/_support/client.py:62
↓ 10 callersMethodupdate_agent_in_db
Update an agent in the database
litellm/proxy/agent_endpoints/agent_registry.py:786
↓ 10 callersFunctionupdate_coordination_redis_settings
Save coordination Redis settings under `general_settings.coordination_redis`. Parameters: - settings: dict - Redis connection params (ho
litellm/proxy/management_endpoints/coordination_redis_endpoints.py:330
↓ 10 callersMethodupdate_many
(self, *, where: Mapping[str, object], data: Mapping[str, object])
litellm/proxy/management_helpers/utils.py:86
↓ 10 callersMethodupdate_many
(self, where: Mapping[str, object], data: Mapping[str, object])
enterprise/litellm_enterprise/proxy/hooks/managed_files.py:330
↓ 10 callersFunctionupdate_responses_input_with_model_file_ids
Updates responses API input with provider-specific file IDs. File IDs are always inside the content array, not as direct input_file items.
litellm/litellm_core_utils/prompt_templates/file_id_utils.py:120
↓ 10 callersFunctionupstream_observations
(gateway: Gateway)
tests/integration/authorization/_guardrail_opt_out.py:62
↓ 10 callersFunctionuseChatShell
()
ui/litellm-dashboard/src/contexts/ChatShellContext.tsx:31
↓ 10 callersFunctionuseIsExpanded
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 10 callersFunctionuseLevel
()
litellm/proxy/swagger/swagger-ui-bundle.js:2
↓ 10 callersFunctionuser_api_key_auth_websocket_for_model
( websocket: WebSocket, model: str, *, close_on_auth_error: bool = True )
litellm/proxy/auth/user_api_key_auth.py:1331
↓ 10 callersFunctionv
(e,t,r)
litellm/proxy/_experimental/out/_next/static/chunks/2_9r2jeem0dh8.js:1
↓ 10 callersFunctionvalidate_complexity_router_config_write
Reject a complexity config the router would refuse to build a deployment from. Parsed with the router's own ``ComplexityRouterConfig`` rather tha
litellm/router_strategy/auto_router/auto_router_model_naming.py:377
↓ 10 callersMethodvalidate_environment
( self, headers: dict, model: str, messages: list[AllMessageValues], o
litellm/llms/anthropic/common_utils.py:1572
↓ 10 callersMethodvalidate_environment
( self, headers, model, messages, optional_params, litellm_params, api_key=None, api_base=None )
tests/unit/llms/custom_httpx/test_llm_http_handler.py:4688
↓ 10 callersFunctionvalidate_key_list_check
( user_api_key_dict: UserAPIKeyAuth, user_id: str | None, team_id: str | None, organization_id
litellm/proxy/management_endpoints/key_management_endpoints.py:7030
↓ 10 callersFunctionvalidate_key_search_tools_against_team
Validate key object_permission.search_tools is a subset of the team's allowlist. Empty team allowlist means no restriction at team layer (sk
litellm/proxy/management_helpers/object_permission_utils.py:919
↓ 10 callersFunctionvalidate_team_org_change
Validate that a team can be moved to an organization. - The org must have access to the team's models - The team budget cannot be greate
litellm/proxy/management_endpoints/team_endpoints.py:2318
↓ 10 callersFunctionversion
()
litellm-rust/crates/testkit/tests/install.rs:18
↓ 10 callersFunctionwire_body
(json: BaseModel)
tests/e2e/e2e_http.py:272
↓ 10 callersFunctionwith_login_refresh_token
The same login, now also carrying the refresh token the ID-JAG client exchanged the assertion for, with the lifetime the IdP gave that token. It i
litellm/proxy/mcp_server/outbound_credentials/sso_assertion_store.py:207
↓ 10 callersFunctionwith_resolved_session_model
(session: Mapping[str, object], model_name: str)
litellm/realtime_api/main.py:124
↓ 10 callersFunctionworker_configuration
(config: Path, directory: Path, inherited: Mapping[str, str] = os.environ)
tests/integration/_support/process.py:736
↓ 10 callersMethodwrite
(self, blob: str)
tests/unit/litellm_core_utils/fake_secret_vault.py:51
↓ 10 callersFunctiony
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0_6jqgnorqxl2.js:1
↓ 10 callersMethodyield_
Yields the value `ask` builds around a fresh [`Reply`] and waits for its answer.
litellm-rust/crates/coroutine/src/co.rs:31
↓ 9 callersFunctionC
(e,t,n)
litellm/proxy/_experimental/out/_next/static/chunks/0dvgjd47fte1d.js:1
↓ 9 callersFunctionD
(e,t,r)
litellm/proxy/_experimental/out/_next/static/chunks/2aatum0yo4cv8.js:1
← previousnext →7,301–7,400 of 202,479, ranked by callers