MCPcopy Create free account

hub / github.com/BerriAI/litellm / functions

Functions202,479 in github.com/BerriAI/litellm

↓ 6 callersFunction_loaders
(agent: AgentResponse | None, groups: dict[str, LiteLLM_AccessGroupTable])
tests/unit/proxy/agent_endpoints/auth/test_agent_access_groups.py:37
↓ 6 callersMethod_locate_request_texts
(data: MutableRequest)
litellm/proxy/guardrails/guardrail_hooks/llm_shield_proxy/llm_shield_proxy.py:321
↓ 6 callersFunction_log
(db: Prisma, record: BaselineAccountingRecord)
tests/integration/spend/test_baseline_accounting.py:115
↓ 6 callersFunction_log_names_by_call_id
( gateway: Gateway, tmp_path: Path, call_ids: tuple[str, ...], *, inputs: tuple[str, ...]
tests/integration/observability/test_azure_storage_file_names.py:87
↓ 6 callersMethod_logged_call
( self, method: str, sub_route: str, request_body: dict[str, object],
tests/unit/proxy/pass_through_endpoints/llm_provider_handlers/test_openai_passthrough_logging_handler.py:2357
↓ 6 callersFunction_logged_frame_types
(relayed: SimpleNamespace)
tests/unit/proxy/pass_through_endpoints/test_pass_through_endpoints.py:9232
↓ 6 callersFunction_logged_response
(query: str, value: str)
tests/integration/providers/test_anthropic_thinking_signature_logging_wire.py:87
↓ 6 callersFunction_logger_for_signing
()
tests/unit/integrations/test_s3_v2.py:2486
↓ 6 callersFunction_logging
()
tests/unit/llms/dashscope/test_dashscope_text_to_speech_transformation.py:55
↓ 6 callersFunction_logging_obj
(*callbacks: CustomLogger, converted_stream: bool = False)
tests/unit/integrations/websearch_interception/test_websearch_agentic_loop_cap.py:195
↓ 6 callersFunction_logging_obj_with_failure_hook
(on_failure: Callable[[Exception], Awaitable[None]])
tests/unit/llms/anthropic/messages/responses_adapters/test_responses_adapters_streaming_iterator.py:640
↓ 6 callersMethod_lpop_daily_spend_transactions
Drains a daily spend buffer key and parses each popped item as JSON.
litellm/proxy/db/db_transaction_queue/redis_update_buffer.py:878
↓ 6 callersFunction_make_advisor_tool_use_response
( question: str = "How should I approach this?", tool_id: str = "toolu_advisor_01", model: str = "
tests/unit/llms/anthropic/messages/test_advisor_orchestration.py:45
↓ 6 callersFunction_make_assembled_model_response
(content: str)
tests/unit/proxy/guardrails/guardrail_hooks/test_generic_guardrail_api.py:1442
↓ 6 callersMethod_make_auth
(self, user_id="creator-123")
tests/unit/proxy/management_endpoints/test_key_management_endpoints.py:12852
↓ 6 callersFunction_make_context_window_filter
(state, top_k: int = 3)
tests/unit/proxy/mcp_server/test_semantic_tool_filter.py:1655
↓ 6 callersFunction_make_db
Prisma db mock whose deprecated-token find_first returns the given id.
tests/unit/proxy/test_deprecated_key_grace_period.py:34
↓ 6 callersFunction_make_dep
(dep_id: str, weight: Optional[int] = None)
tests/unit/test_router_weighted_failover.py:26
↓ 6 callersMethod_make_deployment
(self, order: Optional[int], dep_id: str)
tests/unit/test_router_order_fallback.py:30
↓ 6 callersFunction_make_empty_model_response
()
tests/unit/completion_extras/litellm_responses_transformation/test_completion_extras_litellm_responses_transformation_transformation.py:1330
↓ 6 callersFunction_make_empty_responses_api_response
(model: str = "gpt-5.4")
tests/unit/completion_extras/litellm_responses_transformation/test_completion_extras_litellm_responses_transformation_transformation.py:1286
↓ 6 callersFunction_make_failed_chunk
(error: dict, usage: ResponseAPIUsage | None = None)
tests/unit/responses/test_streaming_iterator_error_events.py:525
↓ 6 callersMethod_make_guardrail
(self)
tests/unit/integrations/test_custom_guardrail.py:1113
↓ 6 callersFunction_make_http_request
()
tests/unit/proxy/management_endpoints/test_ui_sso.py:10831
↓ 6 callersFunction_make_logging_obj
( kwargs: dict[str, Any], model: str, custom_llm_provider: str, call_type: str, optional_p
litellm/interactions/agents/main.py:79
↓ 6 callersFunction_make_logging_obj
()
tests/unit/passthrough/test_streaming_interrupt_spend_tracking.py:26
↓ 6 callersFunction_make_logging_obj
(stream: bool)
tests/unit/litellm_core_utils/test_litellm_logging.py:5318
↓ 6 callersFunction_make_logging_obj
Create a minimal mock logging object for ModelResponseIterator.
tests/unit/llms/vertex_ai/gemini/test_gemini_streaming_tool_call_finish_reason.py:19
↓ 6 callersFunction_make_managed_files_instance
Create a PROXY_LiteLLMManagedFiles with a mocked DB that returns a file owned by file_created_by.
tests/unit/enterprise/proxy/test_managed_files_access_check.py:39
↓ 6 callersFunction_make_mock_prisma
()
tests/unit/router_strategy/adaptive_router/test_e2e_adaptive_router.py:55
↓ 6 callersFunction_make_mock_response
(json_data: dict, status_code: int = 200, method: str = "POST")
tests/unit/test_anthropic_skills_transformation.py:30
↓ 6 callersMethod_make_mock_responses_api_response
Build a minimal ResponsesAPIResponse-like mock.
tests/unit/llms/test_file_search_responses.py:541
↓ 6 callersFunction_make_pair
Return an (assistant, user) message pair with one tool_use + tool_result.
tests/unit/llms/anthropic/messages/context_management/test_clear_tool_uses.py:31
↓ 6 callersFunction_make_prisma_with_team
(team_id: str, admins: list, members_with_roles: tuple[Member, ...] = ())
tests/unit/proxy/management_endpoints/test_project_org_authz.py:29
↓ 6 callersMethod_make_request
(self, query_string: str)
tests/unit/proxy/management_endpoints/test_internal_user_endpoints.py:3934
↓ 6 callersFunction_make_response_created_event
(model: str | None)
tests/unit/proxy/test_response_model_sanitization.py:71
↓ 6 callersMethod_make_router
(self, **policy_kwargs)
tests/unit/test_router/test_router.py:9677
↓ 6 callersFunction_make_slg_entry
(name: str = "headroom-test")
tests/unit/integrations/test_guardrail_logging_sync.py:15
↓ 6 callersFunction_make_streaming_response
(chunks: List[bytes])
tests/unit/passthrough/test_streaming_interrupt_spend_tracking.py:11
↓ 6 callersFunction_make_tc
Helper to build a ChatCompletionDeltaToolCall.
tests/unit/llms/chatgpt/chat/test_streaming_utils.py:37
↓ 6 callersMethod_make_team
Create a mock team object.
tests/unit/proxy/management_endpoints/test_team_default_params.py:697
↓ 6 callersFunction_make_team_member_add_request
Build a TeamMemberAddRequest with one Member entry for tests below.
tests/unit/proxy/management_endpoints/test_team_endpoints.py:1418
↓ 6 callersFunction_make_transcript_event
(text: str, item_id: str = "item_x")
tests/unit/litellm_core_utils/test_realtime_streaming.py:45
↓ 6 callersFunction_make_unified_file_id
Create a base64-encoded unified file ID that passes _is_base64_encoded_unified_file_id.
tests/unit/enterprise/proxy/test_managed_files_access_check.py:33
↓ 6 callersFunction_managed_object_table
(prisma_client: "PrismaClient")
enterprise/litellm_enterprise/proxy/common_utils/check_responses_cost.py:243
↓ 6 callersFunction_management_params
( name: str, rig: MatrixRig, *, mode: str | list[str] = "pre_call", scope: JsonValue = "st
tests/integration/observability/test_guardrail_stream_scope_matrix.py:916
↓ 6 callersMethod_manager
(upstream_tools, tool_name_to_description=None)
tests/unit/proxy/management_endpoints/test_mcp_management_endpoints.py:8974
↓ 6 callersFunction_mantle_body
(prompt: str, model: str = _OPUS_BASE)
tests/integration/providers/test_count_tokens_model_wire.py:213
↓ 6 callersFunction_mantle_count_requests
(wire: Wire)
tests/integration/providers/test_count_tokens_model_wire.py:204
↓ 6 callersMethod_map_masked_messages_back
Map Lasso-format masked messages back onto the original OpenAI-format messages. Lasso receives expanded messages (tool_use / tool_result bloc
litellm/proxy/guardrails/guardrail_hooks/lasso/lasso.py:491
↓ 6 callersMethod_map_thinking_param
( thinking_param: AnthropicThinkingParam, model: str | None = None, )
litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py:1662
↓ 6 callersFunction_mapped_client
(runtime: _EndUserClaimRuntime, scenario: Scenario)
tests/integration/authorization/test_jwt_key_mapping_lifecycle.py:1021
↓ 6 callersFunction_mapping
(value: object)
litellm/router_strategy/auto_router/auto_router_model_naming.py:116
↓ 6 callersMethod_marked_messages
()
tests/unit/llms/openai/chat/test_openai_gpt_transformation.py:983
↓ 6 callersFunction_marker
()
tests/integration/routing/test_pdf_document_pre_call_checks_owned_proxy.py:58
↓ 6 callersFunction_marker
()
tests/integration/routing/test_deployment_num_retries_generic_routes_wire.py:34
↓ 6 callersFunction_masked
(value: JsonValue)
tests/integration/observability/test_bedrock_converse_guardrail_rewrites.py:98
↓ 6 callersFunction_maybe_check_permissions
( *, provider: LlmProviders | None, vector_store_id: str, request: Request, user_api_key_d
litellm/proxy/vector_store_files_endpoints/endpoints.py:525
↓ 6 callersFunction_maybe_construct_otel_v2
If ``LITELLM_OTEL_V2`` is on, build (or reuse) a single ``OpenTelemetryV2`` instance configured via the preset for ``callback_name``. Returns
litellm/litellm_core_utils/litellm_logging.py:6453
↓ 6 callersFunction_mcp_response_body
()
tests/unit/llms/bedrock/search/test_agentcore_search_transformation.py:41
↓ 6 callersFunction_member_ids
(gateway: Gateway, team_id: str)
tests/integration/management/test_team_member_routes.py:36
↓ 6 callersFunction_member_name
(member: object)
litellm/proxy/guardrails/guardrail_hooks/tool_permission.py:199
↓ 6 callersFunction_memberships
(prisma: _FakePrisma)
tests/unit/proxy/management_helpers/test_team_roster_sync.py:281
↓ 6 callersMethod_merge_hidden_params_from_response_into_metadata
Copy response._hidden_params into litellm_params.metadata['hidden_params']. Non-streaming success uses _process_hidden_params_and_re
litellm/litellm_core_utils/litellm_logging.py:3095
↓ 6 callersFunction_message_text
Flatten message content to plain text, joining multi-part text blocks. Keeping only `type == "text"` parts is what drops tool-result turns with n
litellm/router_strategy/complexity_router/complexity_router.py:533
↓ 6 callersFunction_messages
(model: str, prompt: str, stream: bool = False)
tests/integration/providers/test_bedrock_mantle_context_overflow_fallbacks_wire.py:331
↓ 6 callersFunction_messages
(model: str, system: JsonValue | None, tools: JsonValue | None)
tests/integration/providers/test_vertex_gemini_count_tokens_wire.py:84
↓ 6 callersFunction_messages
(text: str, system: str | None = None)
tests/integration/observability/test_straiker_v3_platform.py:457
↓ 6 callersFunction_messages
(*messages: object)
tests/integration/sdk/test_responses_bridge_tool_search_sdk.py:27
↓ 6 callersFunction_messages_blocks
(response: httpx.Response)
tests/integration/providers/test_bedrock_native_structured_output_wire.py:508
↓ 6 callersFunction_messages_text
(blocks: tuple[dict[str, JsonValue], ...])
tests/integration/providers/test_bedrock_native_structured_output_wire.py:513
↓ 6 callersFunction_meta
(impl: str, **fields: JsonValue)
tests/integration/management/test_team_metadata_validation.py:32
↓ 6 callersFunction_metadata_deployment
(scenario: Scenario, api_base: str, model: str = _OPUS)
tests/integration/providers/test_bedrock_mantle_count_tokens_wire.py:287
↓ 6 callersFunction_mid_stream_error_sse_event
(exc: Exception)
litellm/llms/anthropic/messages/adapters/streaming_iterator.py:112
↓ 6 callersFunction_migration_job
(use_v2_resolver: bool)
tests/integration/database/migrations/test_request_log_indexes.py:262
↓ 6 callersMethod_mint
(self, api_base: str | None, monkeypatch: pytest.MonkeyPatch)
tests/unit/llms/anthropic/test_anthropic_wif.py:224
↓ 6 callersFunction_mistral_model
(scenario: Scenario, wire: Wire, **parameters: JsonValue)
tests/integration/messages_endpoint/test_tool_result_text_wire.py:152
↓ 6 callersFunction_mock_config_with_completed_response
(response: ResponsesAPIResponse)
tests/unit/responses/test_streaming_iterator.py:765
↓ 6 callersFunction_mock_gemini_post_response
A minimal stand-in for a successful Gemini generateContent HTTP response.
tests/unit/google_genai/test_google_genai_main.py:42
↓ 6 callersMethod_mock_manager
(self, servers, reachable_ids)
tests/unit/proxy/management_endpoints/test_mcp_management_endpoints.py:8005
↓ 6 callersFunction_mock_proxy
(rows, payloads)
tests/unit/proxy/client/cli/test_debug_commands.py:60
↓ 6 callersMethod_mock_request
(self, body: object)
tests/unit/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py:5825
↓ 6 callersFunction_mock_router
Router stub exposing one configured search tool.
tests/unit/integrations/websearch_interception/test_websearch_rich_query_shape.py:38
↓ 6 callersFunction_mock_search_route
(respx_mock: respx.MockRouter)
tests/unit/llms/milvus/vector_stores/test_milvus_vector_stores_transformation.py:149
↓ 6 callersFunction_mock_search_tool_backend
Patch the DB registry, prisma client, and config so /search_tools/list returns exactly ``db_tools`` (no config-defined tools).
tests/unit/proxy/management_endpoints/search_endpoints/test_search_tool_management.py:592
↓ 6 callersFunction_mock_service_response
Create a mock tool blocking client that returns the given JSON.
tests/unit/integrations/test_rubrik.py:523
↓ 6 callersFunction_mock_startup_prisma_client
(health_check_error=None, connect_error=None)
tests/unit/proxy/test_proxy_server_endpoints_and_startup.py:14325
↓ 6 callersFunction_model
A database deployment created through ``/model/new``; returns (model name, model id).
tests/integration/security/test_stored_config_slots.py:121
↓ 6 callersFunction_model
(**overrides)
tests/unit/proxy/spend_tracking/test_ptu_flat_cost_rollup.py:70
↓ 6 callersFunction_model_by_id_status
(model_id: str, user_api_key_dict: UserAPIKeyAuth)
tests/unit/proxy/test_model_list_callback_filter.py:159
↓ 6 callersFunction_model_groups
(user_api_key_dict: UserAPIKeyAuth)
tests/unit/proxy/test_model_list_callback_filter.py:154
↓ 6 callersFunction_model_name
()
tests/integration/management/test_ptu_share_guards.py:90
↓ 6 callersMethod_model_names
(router: "litellm.Router")
tests/unit/test_router/test_router.py:8497
↓ 6 callersFunction_model_table
(prisma_client: PrismaClient)
litellm/proxy/management_endpoints/model_access_group_management_endpoints.py:199
↓ 6 callersFunction_models
(client: httpx.Client)
tests/integration/management/test_team_block.py:71
↓ 6 callersFunction_moderation_guardrail
(api_base: str = "azure_text_moderation_api_base")
tests/unit/proxy/guardrails/guardrail_hooks/azure/test_azure_text_moderation.py:502
↓ 6 callersFunction_moderation_response
(severity)
tests/unit/proxy/guardrails/guardrail_hooks/azure/test_azure_text_moderation.py:493
↓ 6 callersFunction_muse_handshake
(observed: tuple[dict[str, JsonValue], ...])
tests/integration/providers/test_realtime_transcription_guardrail_session_update.py:1397
↓ 6 callersFunction_names
(spans: tuple[Span, ...])
tests/integration/observability/test_otel_team_capture_message_content.py:293
↓ 6 callersFunction_native
(body: Mapping[str, JsonValue], invoke: bool)
tests/integration/sdk/test_bedrock_native_output_fallback_sdk.py:44
← previousnext →12,001–12,100 of 202,479, ranked by callers