MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 3 callersFunctionget_mistral_auth_headers
( headers: Mapping[str, str], api_key: str | None )
litellm/llms/mistral/common_utils.py:23
↓ 3 callersFunctionget_modality_token_cost_key
( model_info: ModelInfo, cost_key: str, prompt_tokens: int, *, threshold_is_inclusive: boo
litellm/litellm_core_utils/llm_cost_calc/utils.py:1207
↓ 3 callersMethodget_mode_handlers
Returns a dictionary of mode handlers for health check calls. Mode Handlers are Callables that need to be run for execution of the h
litellm/litellm_core_utils/health_check_helpers.py:259
↓ 3 callersMethodget_model_group
(self, id: str)
litellm/router_deprecated.py:564
↓ 3 callersMethodget_model_list_of_routed_group
(self, model_group: str, team_id: str | None = None)
tests/unit/proxy/public_endpoints/public_v1/test_model_hub.py:33
↓ 3 callersMethodget_model_router_selected_model
The model Azure Model Router actually served, stamped by ``AzureModelRouterConfig``. Reading this beats re-deriving the route from a model st
litellm/llms/azure_ai/common_utils.py:252
↓ 3 callersFunctionget_ms_teams_webhook_url
()
litellm/integrations/SlackAlerting/ms_teams.py:58
↓ 3 callersMethodget_object_name
Get the object name for the request
litellm/llms/bedrock/files/transformation.py:666
↓ 3 callersMethodget_openai_client
( self, api_key: str | None, api_base: str | None, timeout: float | httpx.Time
litellm/llms/azure/fine_tuning/handler.py:187
↓ 3 callersMethodget_openai_compatible_provider_info
( self, api_base: str | None, api_key: str | None, )
litellm/llms/modelscope/chat/transformation.py:70
↓ 3 callersMethodget_openai_compatible_provider_info
( self, api_base: str | None, api_key: str | None, )
litellm/llms/inception/chat/transformation.py:54
↓ 3 callersMethodget_openai_compatible_provider_info
( self, api_base: str | None, api_key: str | None, )
litellm/llms/featherless_ai/chat/transformation.py:115
↓ 3 callersMethodget_openai_count_tokens_endpoint
(self, api_base: str | None = None)
litellm/llms/openai/responses/count_tokens/transformation.py:172
↓ 3 callersMethodget_optional_params_video_generation
Get optional parameters for the video generation API. Args: model: The model name video_generation_provider_
litellm/videos/utils.py:15
↓ 3 callersFunctionget_optional_rerank_params
( rerank_provider_config: BaseRerankConfig, model: str, drop_params: bool, query: str, doc
litellm/rerank_api/rerank_utils.py:6
↓ 3 callersMethodget_or_create_session_state
( self, session_id: str, model_name: str, request_type: RequestType, )
litellm/router_strategy/adaptive_router/adaptive_router.py:334
↓ 3 callersMethodget_output_candidate_count
(data: object, call_type: str | None = None)
litellm/proxy/hooks/parallel_request_limiter_v3.py:881
↓ 3 callersMethodget_output_file_id_from_unified_file_id
(self, file_id: str)
enterprise/litellm_enterprise/proxy/hooks/managed_files.py:2291
↓ 3 callersFunctionget_passthrough_resource_metadata_url
The per-server protected-resource metadata URL matching the spelling the request arrived on, so a strict RFC 9728 client resolves the same route t
litellm/proxy/mcp_server/oauth_utils.py:294
↓ 3 callersFunctionget_passthrough_www_authenticate
The RFC 9728 ``WWW-Authenticate`` value advertising the per-server protected-resource metadata, with the RFC 6750 ``invalid_token`` error code whe
litellm/proxy/mcp_server/oauth_utils.py:309
↓ 3 callersFunctionget_plugin
Get details of a specific plugin. Parameters: - plugin_name: The name of the plugin Returns: Plugin details including s
litellm/proxy/anthropic_endpoints/claude_code_endpoints/claude_code_marketplace.py:758
↓ 3 callersFunctionget_primary_resource_owner_scope
Return the canonical owner scope to stamp on newly-created rows. ``None`` for identity-less callers — callers that depend on a primary scope
litellm/litellm_core_utils/resource_ownership.py:57
↓ 3 callersFunctionget_project_model_rpm_limit
( user_api_key_dict: UserAPIKeyAuth, )
litellm/proxy/auth/auth_utils.py:1746
↓ 3 callersFunctionget_project_model_tpm_limit
( user_api_key_dict: UserAPIKeyAuth, )
litellm/proxy/auth/auth_utils.py:1754
↓ 3 callersMethodget_prompt_version
Fetch a prompt version from Arize Phoenix. Args: prompt_version_id: The ID of the prompt version to fetch Retur
litellm/integrations/arize/arize_phoenix_client.py:64
↓ 3 callersFunctionget_prompt_versions
Get all versions of a specific prompt by base prompt ID 👉 [Prompt docs](https://docs.litellm.ai/docs/proxy/prompt_management) E
litellm/proxy/prompts/prompt_endpoints.py:323
↓ 3 callersMethodget_provider_config
Get OpenAI provider configuration for the given model.
litellm/proxy/pass_through_endpoints/llm_provider_handlers/openai_passthrough_logging_handler.py:226
↓ 3 callersMethodget_provider_harness_config
Get the agent-harness configuration (Claude Code, Codex, OpenCode, Deep Agents, Tool Loop).
litellm/utils.py:11594
↓ 3 callersMethodget_provider_info
(self, model: str)
litellm/llms/fireworks_ai/chat/transformation.py:644
↓ 3 callersMethodget_provider_search_config
Get Search configuration for a given provider.
litellm/utils.py:11513
↓ 3 callersFunctionget_provider_specific_geo_multiplier
Resolve the provider-specific regional pricing multiplier for the geo the request was served from (``usage.inference_geo``), e.g. Anthropic's
litellm/litellm_core_utils/llm_cost_calc/utils.py:1502
↓ 3 callersMethodget_provider_specific_params
Get provider specific parameters that are not OpenAI compatible eg. if user passes `diarize=True`, we need to pass `diarize` to the
litellm/llms/base_llm/audio_transcription/transformation.py:248
↓ 3 callersMethodget_public_agent_list
(self)
litellm/proxy/agent_endpoints/agent_registry.py:444
↓ 3 callersMethodget_remaining_model_group_usage
( self, model_group: str )
litellm/router_deprecated.py:697
↓ 3 callersFunctionget_remaining_tokens_and_requests_from_request_data
Helper function to return x-litellm-key-remaining-tokens-{model_group} and x-litellm-key-remaining-requests-{model_group} Returns {} when ap
litellm/proxy/common_utils/callback_utils.py:442
↓ 3 callersFunctionget_repo_root
Get the repository root directory.
tests/code_coverage_tests/check_provider_folders_documented.py:41
↓ 3 callersFunctionget_request_error_activity
Failed requests over time by HTTP status, and the keys, teams, users and model groups they land on. Deployment-wide, so admin-only.
litellm/proxy/management_endpoints/request_error_endpoints.py:226
↓ 3 callersMethodget_requested_container_list_optional_param
Extract only valid container list parameters from the passed parameters.
litellm/containers/utils.py:78
↓ 3 callersMethodget_requested_image_edit_optional_param
Filter parameters to only include those defined in ImageEditOptionalRequestParams. Args: params: Dictionary of parameter
litellm/images/utils.py:80
↓ 3 callersFunctionget_resource_type
Get a single ResourceType by ID per RFC 7644.
litellm/proxy/management_endpoints/scim/scim_v2.py:1642
↓ 3 callersMethodget_resources_from_server
( self, server: MCPServer, user_api_key_auth: UserAPIKeyAuth | None, mcp_auth_
litellm/proxy/mcp_server/mcp_server_manager.py:4937
↓ 3 callersMethodget_response_ms
(self)
litellm/litellm_core_utils/litellm_logging.py:2051
↓ 3 callersFunctionget_role_based_models
Get the models allowed for a user role. Used by JWT Auth.
litellm/proxy/auth/auth_checks.py:2906
↓ 3 callersFunctionget_role_based_routes
Get the routes allowed for a user role.
litellm/proxy/auth/auth_checks.py:2923
↓ 3 callersMethodget_routable_deployments
( self, model: str, request_kwargs: Mapping[str, object] = MappingProxyType({}),
litellm/router_deprecated.py:449
↓ 3 callersMethodget_router_deployment_budget_limiter
(self)
litellm/router_deprecated.py:640
↓ 3 callersFunctionget_routes
Every GET route path on the proxy app, including routes hidden from the OpenAPI spec. The child imports the same source tree the owned proxy runs
tests/integration/security/_sweeps.py:326
↓ 3 callersFunctionget_routing_tags_from_request_kwargs
(request_kwargs: Mapping[str, object])
litellm/router_strategy/tag_based_routing.py:801
↓ 3 callersMethodget_scan
(self, submission_id: str)
litellm/models/skill_submission.py:82
↓ 3 callersFunctionget_schema
Get a single Schema by its URI per RFC 7643 Section 7.
litellm/proxy/management_endpoints/scim/scim_v2.py:1690
↓ 3 callersMethodget_scopes
(self, token: dict)
litellm/proxy/auth/handle_jwt.py:756
↓ 3 callersMethodget_secret_for_python
(&self, name: &str)
litellm-rust/crates/secrets-google/src/secret_manager.rs:130
↓ 3 callersFunctionget_service_tier_timeout
Return the deployment's ``key`` timeout for the request's ``service_tier``, else ``None``.
litellm/litellm_core_utils/request_timeout_resolver.py:41
↓ 3 callersMethodget_settings
Get settings for a specific guardrail from the passthrough config.
litellm/proxy/pass_through_endpoints/passthrough_guardrails.py:98
↓ 3 callersFunctionget_stable_session_id
(litellm_params: object | None)
litellm/litellm_core_utils/provider_affinity.py:97
↓ 3 callersMethodget_supported_anthropic_messages_params
(self, model: str)
litellm/llms/anthropic/messages/native/transformation.py:118
↓ 3 callersMethodget_supported_openai_params
(self, model: str)
litellm/llms/mistral/audio_transcription/transformation.py:31
↓ 3 callersMethodget_supported_openai_params
(self, model: str)
litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py:922
↓ 3 callersMethodget_supported_openai_params
dimensions Only supported in nomic-ai/nomic-embed-text-v1.5 and later models. https://docs.fireworks.ai/api-reference/creates-an-emb
litellm/llms/fireworks_ai/embed/fireworks_ai_transformation.py:12
↓ 3 callersMethodget_supported_openai_params
Include reasoning parameters regardless of model-map capabilities.
litellm/llms/openrouter/chat/transformation.py:50
↓ 3 callersMethodget_supported_video_types
(self)
litellm/llms/bedrock/chat/converse_transformation.py:823
↓ 3 callersFunctionget_supports_system_message
( model: str, custom_llm_provider: Literal["vertex_ai", "vertex_ai_beta", "gemini"] )
litellm/llms/vertex_ai/common_utils.py:340
↓ 3 callersMethodget_team_alias
Extract team name/alias from JWT token using the configured team_alias_jwt_field. Args: token: The decoded JWT token dic
litellm/proxy/auth/handle_jwt.py:556
↓ 3 callersFunctionget_token
()
litellm/llms/sap/credentials.py:521
↓ 3 callersMethodget_token
A follower whose leader published nothing re-classifies rather than recursing, so a contended entry cannot grow the stack one frame per failed
litellm/llms/base_llm/auth/token_exchange.py:682
↓ 3 callersMethodget_trace_id
For the given service (e.g. langfuse), return the trace_id actually logged. Used for constructing the url in slack alerting.
litellm/litellm_core_utils/litellm_logging.py:4973
↓ 3 callersMethodget_traceparent_from_header
(self, headers)
litellm/integrations/opentelemetry.py:3054
↓ 3 callersMethodget_tracer_to_use_for_request
Route guardrail/raw-request spans to the same per-project tracer as the request.
litellm/integrations/arize/arize_phoenix.py:185
↓ 3 callersMethodget_ttl
(&self, context: &Self::Context)
litellm-rust/crates/cache-memory/src/cache.rs:384
↓ 3 callersMethodget_us_regions
Source: https://www.aws-services.info/bedrock.html
litellm/llms/bedrock/common_utils.py:919
↓ 3 callersMethodget_user
Get user info (GET /user/info)
litellm/proxy/client/users.py:36
↓ 3 callersFunctionget_user_env_vars_bulk
Return ``{server_id: {var_name: value}}`` for one user across many servers. Servers with no stored row are simply absent from the result.
litellm/proxy/mcp_server/db.py:2470
↓ 3 callersMethodget_user_roles
Returns the user role from the token. Set via 'user_roles_jwt_field' in the config.
litellm/proxy/auth/handle_jwt.py:608
↓ 3 callersFunctionget_users
Get a paginated list of users with filtering and sorting options. Parameters: role: Optional[str] Filter users by role.
litellm/proxy/management_endpoints/internal_user_endpoints.py:2314
↓ 3 callersFunctionget_validated_callback_metadata
(item: dict, *, source: str)
litellm/proxy/litellm_pre_call_utils.py:1240
↓ 3 callersFunctionget_vertex_ai_lyria_generation_cost
(model: str)
litellm/llms/vertex_ai/common_utils.py:138
↓ 3 callersMethodget_video_edit_prefetch_params
Return (url, body) for a pre-fetch HTTP call that must be made before transform_video_edit_request, or None if no pre-fetch is requir
litellm/llms/base_llm/videos/transformation.py:348
↓ 3 callersMethodget_vocab
(&self, py: Python<'_>, with_added_tokens: bool)
litellm-rust/crates/python-bridge/src/tokenizer.rs:408
↓ 3 callersFunctionget_volcengine_base_url
Get the base URL for Volcengine API calls. Args: api_base: Optional custom API base URL Returns: The base URL to use fo
litellm/llms/volcengine/common_utils.py:24
↓ 3 callersMethodget_watsonx_credentials
(optional_params: dict, api_key: str | None, api_base: str | None)
litellm/llms/watsonx/common_utils.py:292
↓ 3 callersFunctionget_weave_authorization_header
Get the authorization header for Weave OpenTelemetry. Weave uses Basic auth with format: api:<WANDB_API_KEY>
litellm/integrations/weave/weave_otel.py:128
↓ 3 callersFunctiongigachat_proxy_route
[Docs](https://docs.litellm.ai/docs/pass_through/gigachat)
litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py:4406
↓ 3 callersFunctiongit
(args: Sequence[str])
tests/unit/test_lint_base_counts.py:408
↓ 3 callersFunctiongithub_copilot_supports_responses_api
Gate native /v1/responses dispatch per github_copilot model. Resolution (first match wins): mode "responses" -> True; mode "chat" -> Fal
litellm/llms/github_copilot/responses/transformation.py:58
↓ 3 callersFunctionglobal
( namespace: &Py<PyDict>, py: Python<'_>, name: &str, )
litellm-rust/crates/python-bridge/src/secrets/python.rs:126
↓ 3 callersFunctiongoToTab
(tab: AgentTab)
ui/litellm-dashboard/src/app/(dashboard)/playground/components/chat_ui/AgentBuilderView.tsx:212
↓ 3 callersFunctiongo_priced_reply
(route: str, model: str, usage_extra: Mapping[str, object])
tests/unit/llms/opencode/chat/test_transformation.py:573
↓ 3 callersFunctiongoogle_login
Create Proxy API Keys using Google Workspace SSO. Requires setting PROXY_BASE_URL in .env PROXY_BASE_URL should be the your deployed proxy en
litellm/proxy/management_endpoints/ui_sso.py:1141
↓ 3 callersMethodgrandchild_is_gone
(self, within_seconds: float)
tests/unit/proxy/db/conftest.py:125
↓ 3 callersFunctiongrant
Build a caller whose ``subject`` level grants exactly ``granted`` out of ``ceiling``. ``ceiling`` is what the key itself can reach before the sub
tests/integration/_support/mcp_grants.py:69
↓ 3 callersFunctiongranted_skills
Key grant intersected with the team grant when both are non-empty; either alone applies as is. An empty list is the Prisma column default, so it
litellm/proxy/anthropic_endpoints/claude_code_endpoints/claude_code_skill_access.py:46
↓ 3 callersMethodgroup_by
( self, *, by: Sequence[Literal["user_id", "date"]], sum: Mapping[str, object]
litellm/proxy/roi_calculator/sync.py:63
↓ 3 callersMethodgroup_deployments
``_core_get_model_list(model_name=...)`` on the host registry.
litellm/router_rust/invoke/endpoints.py:120
↓ 3 callersFunctiongroup_members
The deployments `_core_get_model_list(model_name=group, team_id=team_id)` lists: the name's own (a team's public name among them), an alias's target's
litellm-rust/crates/router-core/src/call.rs:200
↓ 3 callersFunctiongroup_rows
(model_group: str, count: int, seconds: float = 70)
tests/integration/providers/_coralbricks.py:409
↓ 3 callersFunctiongroup_subtitle_tokens_into_cues
Group transcription tokens into subtitle cues aligned to the actual speech. Cues only ever break at word boundaries (tokens may be subwords,
litellm/litellm_core_utils/audio_utils/subtitle_utils.py:160
↓ 3 callersFunctiongrouped
Consecutive events joined until a chunk reaches `target_bytes`, the size the provider's writes arrive in.
tests/e2e/perf/setup/mocks/reply_common.py:170
↓ 3 callersFunctionguardrailInfoToStringMap
(info map[string]interface{})
terraform/provider/litellm/resource_guardrail.go:249
↓ 3 callersFunctiongw
()
litellm/proxy/_experimental/out/_next/static/chunks/085r5ieqhajig.js:10
↓ 3 callersFunctionh
(e)
litellm/proxy/_experimental/out/_next/static/chunks/0tx19jeq-wskb.js:2
← previousnext →27,401–27,500 of 202,479, ranked by callers