Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BerriAI/litellm
/ functions
Functions
202,479 in github.com/BerriAI/litellm
⨍
Functions
202,479
◇
Types & classes
26,341
↳
Endpoints
5,595
↓ 3 callers
Function
_json_id
(response: httpx.Response)
tests/integration/compatibility/test_codex_model_catalog.py:811
↓ 3 callers
Function
_json_mode_message_body
(stop_reason: str, stop_details: dict | None)
tests/unit/llms/anthropic/chat/test_anthropic_chat_transformation.py:10572
↓ 3 callers
Function
_json_mode_stream_chunks
(events: tuple[dict[str, object], ...])
tests/unit/llms/anthropic/chat/test_anthropic_chat_handler.py:3985
↓ 3 callers
Function
_json_mode_thinking_kwargs
()
tests/unit/llms/bedrock/chat/test_bedrock_converse_handler.py:831
↓ 3 callers
Function
_json_object
(value: object)
litellm/proxy/pass_through_endpoints/codex_passthrough_endpoints.py:371
↓ 3 callers
Function
_json_object
(value: object)
litellm/llms/bedrock/files/transformation.py:403
↓ 3 callers
Function
_json_object
(raw: bytes)
tests/integration/spend/test_end_user_spend_without_proxy_user.py:135
↓ 3 callers
Function
_json_object_body
Decode a Vault response body as a plain JSON object.
litellm/secret_managers/hashicorp_secret_manager.py:84
↓ 3 callers
Function
_json_object_body
Decode a Responses API response body into its JSON object form.
litellm/llms/openai/responses/transformation.py:344
↓ 3 callers
Function
_json_object_or_none
(value: object)
litellm/llms/openai/responses/transformation.py:236
↓ 3 callers
Function
_json_payload
Read an HTTP response body as an opaque JSON payload.
litellm/llms/gemini/videos/transformation.py:65
↓ 3 callers
Function
_json_question
(model: str, marker: str, cache: Mapping[str, JsonValue] = _NO_CACHE)
tests/integration/streaming/test_fake_stream_reasoning_wire.py:293
↓ 3 callers
Function
_json_reply
(status: int, payload: Mapping[str, JsonValue])
tests/integration/providers/test_anthropic_count_tokens_system_lift_wire.py:102
↓ 3 callers
Function
_json_reply
(body: Mapping[str, JsonValue], status: int = 200, **headers: str)
tests/integration/providers/test_strands_decider_agentcore_wire.py:195
↓ 3 callers
Function
_json_request
(body: Mapping[str, object], user_agent: str)
tests/unit/proxy/test_proxy_token_counter.py:1486
↓ 3 callers
Function
_json_response
(status: int, payload: dict[str, object])
tests/unit/proxy/mcp_server/outbound_credentials/test_sso_assertion_refresher.py:842
↓ 3 callers
Function
_json_schema_stream_choices
(respx_mock: respx.MockRouter, call: str, stream: bytes)
tests/unit/llms/databricks/chat/test_databricks_chat_transformation.py:3028
↓ 3 callers
Function
_json_schema_stream_kwargs
(model)
tests/unit/llms/bedrock/chat/mantle/test_bedrock_chat_mantle_transformation.py:151
↓ 3 callers
Function
_json_tool
(delivery: _Delivery)
tests/integration/providers/test_vertex_anthropic_structured_output_wire.py:617
↓ 3 callers
Function
_json_tool_calls
(*blocks: object)
tests/unit/llms/anthropic/chat/test_anthropic_chat_transformation.py:8920
↓ 3 callers
Function
_jsonable_dict
(value: object)
litellm/proxy/guardrails/guardrail_hooks/straiker/straiker.py:307
↓ 3 callers
Function
_jsonified
(prisma_client: PrismaClient, payload: dict[str, object])
enterprise/litellm_enterprise/proxy/management_endpoints/project_endpoints.py:114
↓ 3 callers
Function
_judge_reply_router
A router whose judge arm returns a caller-shaped reply, so the shapes that all land on the same parser error can be posed apart: no content at all
tests/unit/integrations/test_shadow_eval_logger.py:189
↓ 3 callers
Method
_jwt
(issuer: str = "https://idp.example")
tests/unit/proxy/mcp_server/auth/test_user_api_key_auth_mcp.py:2667
↓ 3 callers
Method
_jwt_auth_enabled
(auth_jwt: AsyncMock)
tests/unit/proxy/mcp_server/auth/test_user_api_key_auth_mcp.py:2692
↓ 3 callers
Function
_jwt_key_mapping_table
( repo: _PrismaTableHolder[_PrismaJWTKeyMappingRow], )
litellm/proxy/auth/auth_checks.py:331
↓ 3 callers
Function
_jwt_with_exp
(exp: int)
tests/unit/secret_managers/test_secret_managers_main.py:121
↓ 3 callers
Function
_keep_record_team_order
(record_teams: Sequence[str], target_teams: Sequence[str])
litellm/proxy/management_endpoints/scim/scim_v2.py:2267
↓ 3 callers
Function
_key
(rig: Rig, *, permissions: dict[str, JsonValue] | None = None)
tests/integration/security/test_hide_secrets_tool_compatibility.py:123
↓ 3 callers
Method
_key
(self, user_id: str, server_id: str)
litellm/proxy/mcp_server/outbound_credentials/dual_cache_token_backend.py:49
↓ 3 callers
Function
_key_activity_rows
( repository: DailyActivityRepository, rows: Sequence[KeySpendRow], resolved_scope: ResolvedScope,
litellm/proxy/management_endpoints/daily_activity_routes.py:146
↓ 3 callers
Function
_key_dialog_models
(user_role: LitellmUserRoles, team_id: str | None)
tests/unit/proxy/proxy_server/test_routes_models.py:702
↓ 3 callers
Function
_key_generation_required_param_check
(data: GenerateKeyRequest, required_params: list[str] | None)
litellm/proxy/management_endpoints/key_management_endpoints.py:748
↓ 3 callers
Function
_key_groups
(hashed: str)
tests/integration/authorization/test_access_group_model_listing.py:109
↓ 3 callers
Function
_key_info
(rpm_limit: int)
tests/e2e_harness/test_proxy_client.py:254
↓ 3 callers
Function
_key_is_active
``True`` when the presented key is neither blocked nor past its expiry. The OAuth token endpoint is unauthenticated, so the presented key is vali
litellm/proxy/mcp_server/bridge_token_flow.py:141
↓ 3 callers
Function
_key_limited_to
(access_group: str)
tests/unit/proxy/auth/test_fallback_model_access.py:32
↓ 3 callers
Function
_key_metadata_unless_database_fails
( repository: DailyActivityRepository, rows: Sequence[GroupingSetsRow] | Sequence[EntityRollupRow] | S
litellm/proxy/management_endpoints/common_daily_activity.py:925
↓ 3 callers
Method
_key_object_permission_hydrated
The key's object_permission, loading it by ``object_permission_id`` when the main auth flow cached the key with the relation unhydrated (its l
litellm/proxy/mcp_server/auth/user_api_key_auth_mcp.py:3191
↓ 3 callers
Function
_key_or_team_allows_client_pricing_override
( user_api_key_dict: UserAPIKeyAuth, )
litellm/proxy/litellm_pre_call_utils.py:761
↓ 3 callers
Function
_key_or_team_metadata_flag_is_true
( user_api_key_dict: UserAPIKeyAuth, metadata_key: str, )
litellm/proxy/litellm_pre_call_utils.py:733
↓ 3 callers
Function
_key_spend_row
(api_key: str, rows: Sequence[_Activity])
tests/unit/proxy/management_endpoints/test_daily_activity_routes.py:440
↓ 3 callers
Function
_keyed_tool_fields
(tool: object)
litellm/proxy/guardrails/guardrail_hooks/tool_permission.py:230
↓ 3 callers
Function
_keyring_api
()
litellm/litellm_core_utils/cli_keyring.py:115
↓ 3 callers
Function
_keys
Each entry's identity key (its id and how many earlier entries share it, ``seen`` counting the ids of entries before these), and the counts once p
litellm/router_rust/surface/model_list.py:109
↓ 3 callers
Method
_known_prefix_to_server
Every prefix form a tool name may carry, keyed to its server; a form two servers share stays with the one registered first.
litellm/proxy/mcp_server/mcp_server_manager.py:3105
↓ 3 callers
Function
_kwargs
(logging_obj: Logging, trusted: bool = True, *, explicit_logging: bool = True)
tests/unit/proxy/hooks/test_autorouter_baseline_cache.py:86
↓ 3 callers
Method
_kwargs
(self, marker, started=None, ended=None)
tests/unit/test_router/test_router.py:7004
↓ 3 callers
Method
_kwargs
(self, call_type, litellm_metadata=None)
tests/unit/integrations/test_opentelemetry.py:7196
↓ 3 callers
Function
_langfuse_callback
(host: str, **callback_vars: JsonValue)
tests/integration/spend/test_background_response_billed_once.py:913
↓ 3 callers
Function
_langfuse_usage_details
(usage_object: Mapping[str, object])
tests/unit/integrations/otel/test_otel_v2_vendor_mappers.py:556
↓ 3 callers
Function
_last_received
(wire: Wire)
tests/integration/spend/test_key_metadata_recovery_dropped_connection.py:275
↓ 3 callers
Function
_late
(reply: Reply, seconds: float)
tests/integration/messages_endpoint/providers/anthropic/test_anthropic_messages_overloaded_wire.py:73
↓ 3 callers
Function
_later_chunk_outputs
( custom_llm_provider: str, later_chunks: Sequence[ChatCompletionChunk], logging_obj: Logging )
tests/unit/litellm_core_utils/test_streaming_handler.py:7379
↓ 3 callers
Function
_later_turns_admitted_through
(dual_cache: "DualCache")
tests/unit/responses/test_responses_websocket_all_providers.py:1745
↓ 3 callers
Function
_launch_until_ready
( command: tuple[str, ...], root: Path, environment: Mapping[str, str], output: Path, workers: int )
tests/integration/_support/process.py:674
↓ 3 callers
Function
_lazy_routes
(app: "FastAPI")
litellm/proxy/_lazy_features.py:410
↓ 3 callers
Function
_lazy_slots
(app: "FastAPI")
litellm/proxy/_lazy_features.py:406
↓ 3 callers
Function
_leaf_identity
(holder: _StringHolder)
litellm/llms/bedrock/passthrough/guardrail_translation/handler.py:357
↓ 3 callers
Function
_leaves_no_input
(decision_input: DecisionsIRState | DecisionsIRMessages)
litellm/decisions/call.py:435
↓ 3 callers
Function
_leg_attempt_counts
Each leg's attempt count and recorded spend by leg id, judged and errored alike, in one grouped read. They are the same figures the sampler budget
litellm/proxy/management_endpoints/auto_router_endpoints.py:1529
↓ 3 callers
Function
_legacy_turn
(db, key: str, at: datetime, session_id: str = "s1", router: str = "auto-1")
tests/integration/spend/test_autorouter_session_rollup.py:260
↓ 3 callers
Function
_lens_rows
(rig: _Rig, model: str, count: int)
tests/integration/spend/test_disable_end_user_cost_tracking.py:390
↓ 3 callers
Function
_let_tasks_run
()
tests/unit/test_router/core/test_parity_failure_logging.py:79
↓ 3 callers
Method
_lifecycle_headers
(api_key: str)
litellm/llms/opensandbox/sandbox/transformation.py:431
↓ 3 callers
Function
_limit
(max_parallel_requests: int = 1)
tests/unit/router_utils/test_client_initalization_utils.py:11
↓ 3 callers
Function
_limits
(entry: Mapping[str, JsonValue])
tests/integration/pricing/test_model_listing_token_limits.py:68
↓ 3 callers
Function
_linear_issue_tool
()
tests/unit/proxy/mcp_server/test_semantic_tool_filter.py:2017
↓ 3 callers
Function
_lines
(*messages: object)
tests/unit/llms/e2b/sandbox/test_transformation.py:15
↓ 3 callers
Function
_lines
(rollout: str)
tests/e2e/codex/rollout.py:91
↓ 3 callers
Function
_lines_with
(log: str, text: str)
tests/integration/configuration/test_startup_output.py:33
↓ 3 callers
Function
_list
(value: JsonValue)
tests/integration/providers/test_responses_websocket_session_limit.py:266
↓ 3 callers
Function
_list
(value: JsonValue)
tests/integration/messages_endpoint/chat_bridge/test_chat_bridge_multi_tool_call_blocks_wire.py:378
↓ 3 callers
Function
_list_at
(container: Mapping[str, object], key: str)
litellm/litellm_core_utils/prompt_templates/json_schema_utils.py:310
↓ 3 callers
Function
_list_budgets
(client: ManagementClient, params: BudgetPageParams)
tests/e2e/management/test_budget_customer_user_org_e2e.py:321
↓ 3 callers
Method
_list_optional_pages
( self, fetch_page: Callable[[PaginatedRequestParams | None], Awaitable[_ListPage]], i
litellm/mcp_client/client.py:1284
↓ 3 callers
Function
_list_team_a_keys_as
(user_role, members_with_roles, query)
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:17878
↓ 3 callers
Function
_listed
(tools: JsonValue)
litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py:591
↓ 3 callers
Function
_listed
(response: httpx.Response, model: str)
tests/integration/routing/test_vllm_passthrough_stream_relay.py:502
↓ 3 callers
Function
_listed_description
(listing: Outcome, credential: str)
tests/integration/mcp/test_mcp_credentials.py:502
↓ 3 callers
Function
_listed_names
(gateway: Gateway, key: str, path: str, field: str)
tests/integration/authorization/test_search_tool_allowlist.py:50
↓ 3 callers
Function
_listing_bucket_name
(litellm_params: Mapping[str, object], purpose: str | None)
litellm/llms/bedrock/files/transformation.py:532
↓ 3 callers
Function
_lit6463_drive_realtime_session_holding_a_max_parallel_slot
Run the realtime endpoint with a real v3 limiter registered and the request's stash already holding slot-1 of a two-slot counter, the state pre-ca
tests/unit/proxy/test_proxy_server_endpoints_and_startup.py:11051
↓ 3 callers
Function
_lit6973_fake_realtime_ws
()
tests/unit/proxy/test_proxy_server_endpoints_and_startup.py:10863
↓ 3 callers
Function
_litellm_executed_batch_runner
(llm_router: Router, proxy_logging_obj: ProxyLogging)
litellm/proxy/batches_endpoints/endpoints.py:109
↓ 3 callers
Function
_litellm_params
(model: str, api_base: str)
tests/integration/providers/test_bedrock_mantle_count_tokens_wire.py:251
↓ 3 callers
Method
_live
(self, key: str)
tests/unit/proxy/hooks/test_model_max_budget_limiter.py:227
↓ 3 callers
Function
_live_workers
(log: Path)
tests/integration/providers/test_openai_dialect_prompt_cache_breakpoint_owned_proxy.py:102
↓ 3 callers
Function
_llm_call_data
(error)
tests/unit/integrations/otel/test_otel_v2_components.py:1334
↓ 3 callers
Method
_llm_classifier_outcome
Call the LLM classifier and turn its verdict, or its failure, into an outcome. `scored` is the heuristic outcome the caller already computed,
litellm/router_strategy/complexity_router/complexity_router.py:2317
↓ 3 callers
Function
_llm_cost
()
tests/integration/providers/test_bedrock_native_guardrail_trace_spend.py:51
↓ 3 callers
Function
_llm_provider_request_ids
(response: httpx.Response)
tests/integration/providers/test_openai_like_response_headers_wire.py:222
↓ 3 callers
Function
_load
(path)
tests/unit/test_daybreak_model_metadata.py:30
↓ 3 callers
Function
_load
()
tests/unit/proxy/auth/test_auth_checks_object_access_and_lookup.py:9119
↓ 3 callers
Function
_load_bounded_registry
A bounded id set under one cache key, so an id outside it costs no DB read. ``None`` = unusable (overflow or recent DB error): fall back to
litellm/proxy/auth/auth_checks.py:2114
↓ 3 callers
Function
_load_cost_map
(filename: str = "model_prices_and_context_window.json")
tests/unit/test_muse_spark_1_3_model_metadata.py:22
↓ 3 callers
Method
_load_creds_from_key
(self, api_key: str)
litellm/llms/gdc/chat/transformation.py:206
↓ 3 callers
Method
_load_heuristic_v1_tuning_baselines
Read the recorded tuning baselines, recording current routers on the first boot.
litellm/proxy/proxy_server.py:11531
↓ 3 callers
Function
_load_json
(file_name: str)
tests/unit/llms/azure/test_azure_fine_tuning_api.py:16
↓ 3 callers
Function
_load_json_value
Parse a JSON payload whose top-level shape the caller narrows itself.
litellm/responses/streaming_iterator.py:196
← previous
next →
23,801–23,900 of 202,479, ranked by callers