diff --git a/any-discipline-budget.json b/any-discipline-budget.json new file mode 100644 index 00000000000..ae3446a1562 --- /dev/null +++ b/any-discipline-budget.json @@ -0,0 +1,1529 @@ +{ + "litellm/__init__.py": 801, + "litellm/_lazy_imports.py": 55, + "litellm/_logging.py": 163, + "litellm/_redis.py": 404, + "litellm/_redis_credential_provider.py": 16, + "litellm/_service_logger.py": 96, + "litellm/_uuid.py": 1, + "litellm/a2a_protocol/card_resolver.py": 12, + "litellm/a2a_protocol/client.py": 9, + "litellm/a2a_protocol/cost_calculator.py": 26, + "litellm/a2a_protocol/exception_mapping_utils.py": 2, + "litellm/a2a_protocol/litellm_completion_bridge/handler.py": 102, + "litellm/a2a_protocol/litellm_completion_bridge/transformation.py": 85, + "litellm/a2a_protocol/main.py": 158, + "litellm/a2a_protocol/providers/bedrock_agentcore/config.py": 15, + "litellm/a2a_protocol/providers/bedrock_agentcore/handler.py": 34, + "litellm/a2a_protocol/providers/bedrock_agentcore/transformation.py": 45, + "litellm/a2a_protocol/providers/langflow/config.py": 21, + "litellm/a2a_protocol/providers/pydantic_ai_agents/config.py": 13, + "litellm/a2a_protocol/providers/pydantic_ai_agents/handler.py": 11, + "litellm/a2a_protocol/providers/pydantic_ai_agents/transformation.py": 142, + "litellm/a2a_protocol/providers/watsonx_orchestrate/config.py": 13, + "litellm/a2a_protocol/providers/watsonx_orchestrate/handler.py": 117, + "litellm/a2a_protocol/providers/watsonx_orchestrate/transformation.py": 60, + "litellm/a2a_protocol/streaming_iterator.py": 44, + "litellm/a2a_protocol/utils.py": 34, + "litellm/anthropic_beta_headers_manager.py": 77, + "litellm/anthropic_interface/exceptions/exception_mapping_utils.py": 25, + "litellm/anthropic_interface/exceptions/exceptions.py": 7, + "litellm/anthropic_interface/messages/__init__.py": 17, + "litellm/assistants/main.py": 398, + "litellm/assistants/utils.py": 93, + "litellm/batch_completion/main.py": 174, + "litellm/batches/batch_utils.py": 129, + "litellm/batches/main.py": 240, + "litellm/budget_manager.py": 116, + "litellm/caching/_internal_lru_cache.py": 15, + "litellm/caching/azure_blob_cache.py": 48, + "litellm/caching/base_cache.py": 2, + "litellm/caching/caching.py": 376, + "litellm/caching/caching_handler.py": 337, + "litellm/caching/disk_cache.py": 75, + "litellm/caching/dual_cache.py": 191, + "litellm/caching/gcs_cache.py": 75, + "litellm/caching/in_memory_cache.py": 173, + "litellm/caching/llm_caching_handler.py": 30, + "litellm/caching/qdrant_semantic_cache.py": 319, + "litellm/caching/redis_cache.py": 566, + "litellm/caching/redis_cluster_cache.py": 35, + "litellm/caching/redis_semantic_cache.py": 193, + "litellm/caching/s3_cache.py": 120, + "litellm/completion_extras/litellm_responses_transformation/handler.py": 187, + "litellm/completion_extras/litellm_responses_transformation/transformation.py": 561, + "litellm/compression/compress.py": 120, + "litellm/compression/content_detection.py": 2, + "litellm/compression/message_stubbing.py": 50, + "litellm/compression/retrieval_tool.py": 6, + "litellm/compression/scoring/bm25.py": 23, + "litellm/compression/scoring/embedding_scorer.py": 31, + "litellm/constants.py": 40, + "litellm/containers/endpoint_factory.py": 85, + "litellm/containers/main.py": 280, + "litellm/containers/utils.py": 30, + "litellm/cost_calculator.py": 428, + "litellm/endpoints/speech/speech_to_completion_bridge/handler.py": 59, + "litellm/endpoints/speech/speech_to_completion_bridge/transformation.py": 31, + "litellm/evals/main.py": 522, + "litellm/exceptions.py": 417, + "litellm/experimental_mcp_client/client.py": 130, + "litellm/experimental_mcp_client/tools.py": 30, + "litellm/files/main.py": 260, + "litellm/files/streaming.py": 47, + "litellm/files/types.py": 4, + "litellm/fine_tuning/main.py": 167, + "litellm/google_genai/adapters/handler.py": 49, + "litellm/google_genai/adapters/transformation.py": 321, + "litellm/google_genai/main.py": 146, + "litellm/google_genai/streaming_iterator.py": 56, + "litellm/images/main.py": 326, + "litellm/images/utils.py": 28, + "litellm/integrations/SlackAlerting/batching_handler.py": 42, + "litellm/integrations/SlackAlerting/hanging_request_check.py": 48, + "litellm/integrations/SlackAlerting/slack_alerting.py": 610, + "litellm/integrations/SlackAlerting/utils.py": 15, + "litellm/integrations/additional_logging_utils.py": 1, + "litellm/integrations/agentops/agentops.py": 29, + "litellm/integrations/anthropic_cache_control_hook.py": 25, + "litellm/integrations/argilla.py": 194, + "litellm/integrations/arize/__init__.py": 10, + "litellm/integrations/arize/_utils.py": 631, + "litellm/integrations/arize/arize.py": 34, + "litellm/integrations/arize/arize_phoenix.py": 159, + "litellm/integrations/arize/arize_phoenix_client.py": 12, + "litellm/integrations/arize/arize_phoenix_prompt_manager.py": 115, + "litellm/integrations/athina.py": 80, + "litellm/integrations/azure_sentinel/azure_sentinel.py": 78, + "litellm/integrations/azure_storage/azure_storage.py": 141, + "litellm/integrations/bitbucket/__init__.py": 7, + "litellm/integrations/bitbucket/bitbucket_client.py": 71, + "litellm/integrations/bitbucket/bitbucket_prompt_manager.py": 83, + "litellm/integrations/braintrust_logging.py": 307, + "litellm/integrations/braintrust_mock_client.py": 29, + "litellm/integrations/cloudzero/cloudzero.py": 178, + "litellm/integrations/cloudzero/cz_resource_names.py": 7, + "litellm/integrations/cloudzero/cz_stream_api.py": 31, + "litellm/integrations/cloudzero/database.py": 8, + "litellm/integrations/cloudzero/transform.py": 75, + "litellm/integrations/compression_interception/handler.py": 177, + "litellm/integrations/custom_batch_logger.py": 39, + "litellm/integrations/custom_guardrail.py": 304, + "litellm/integrations/custom_logger.py": 191, + "litellm/integrations/custom_prompt_management.py": 2, + "litellm/integrations/custom_sso_handler.py": 1, + "litellm/integrations/datadog/datadog.py": 252, + "litellm/integrations/datadog/datadog_cost_management.py": 77, + "litellm/integrations/datadog/datadog_handler.py": 5, + "litellm/integrations/datadog/datadog_llm_obs.py": 297, + "litellm/integrations/datadog/datadog_metrics.py": 75, + "litellm/integrations/datadog/datadog_mock_client.py": 4, + "litellm/integrations/datadog/datadog_team_handler.py": 14, + "litellm/integrations/deepeval/api.py": 28, + "litellm/integrations/deepeval/deepeval.py": 131, + "litellm/integrations/deepeval/types.py": 16, + "litellm/integrations/dotprompt/__init__.py": 19, + "litellm/integrations/dotprompt/dotprompt_manager.py": 34, + "litellm/integrations/dotprompt/prompt_manager.py": 75, + "litellm/integrations/dynamodb.py": 59, + "litellm/integrations/email_alerting.py": 33, + "litellm/integrations/focus/database.py": 15, + "litellm/integrations/focus/destinations/base.py": 3, + "litellm/integrations/focus/destinations/factory.py": 50, + "litellm/integrations/focus/destinations/gcs_destination.py": 15, + "litellm/integrations/focus/destinations/mavvrik_destination.py": 47, + "litellm/integrations/focus/destinations/s3_destination.py": 27, + "litellm/integrations/focus/destinations/vantage_destination.py": 24, + "litellm/integrations/focus/export_engine.py": 18, + "litellm/integrations/focus/focus_logger.py": 30, + "litellm/integrations/focus/serializers/csv.py": 1, + "litellm/integrations/focus/transformer.py": 22, + "litellm/integrations/galileo.py": 381, + "litellm/integrations/gcs_bucket/gcs_bucket.py": 99, + "litellm/integrations/gcs_bucket/gcs_bucket_base.py": 48, + "litellm/integrations/gcs_bucket/gcs_bucket_mock_client.py": 57, + "litellm/integrations/gcs_pubsub/pub_sub.py": 51, + "litellm/integrations/generic_api/generic_api_callback.py": 182, + "litellm/integrations/generic_prompt_management/__init__.py": 7, + "litellm/integrations/generic_prompt_management/generic_prompt_manager.py": 51, + "litellm/integrations/gitlab/__init__.py": 12, + "litellm/integrations/gitlab/gitlab_client.py": 97, + "litellm/integrations/gitlab/gitlab_prompt_manager.py": 135, + "litellm/integrations/greenscale.py": 66, + "litellm/integrations/helicone.py": 173, + "litellm/integrations/helicone_mock_client.py": 4, + "litellm/integrations/humanloop.py": 47, + "litellm/integrations/lago.py": 120, + "litellm/integrations/langfuse/langfuse.py": 605, + "litellm/integrations/langfuse/langfuse_handler.py": 15, + "litellm/integrations/langfuse/langfuse_mock_client.py": 6, + "litellm/integrations/langfuse/langfuse_otel.py": 135, + "litellm/integrations/langfuse/langfuse_otel_attributes.py": 29, + "litellm/integrations/langfuse/langfuse_prompt_management.py": 118, + "litellm/integrations/langsmith.py": 240, + "litellm/integrations/langsmith_mock_client.py": 5, + "litellm/integrations/langtrace.py": 68, + "litellm/integrations/levo/levo.py": 10, + "litellm/integrations/litellm_agent/litellm_agent_model_resolver.py": 7, + "litellm/integrations/literal_ai.py": 234, + "litellm/integrations/logfire_logger.py": 84, + "litellm/integrations/lunary.py": 123, + "litellm/integrations/mavvrik_focus/mavvrik_focus_logger.py": 25, + "litellm/integrations/mlflow.py": 234, + "litellm/integrations/mock_client_factory.py": 72, + "litellm/integrations/newrelic/newrelic.py": 263, + "litellm/integrations/openmeter.py": 85, + "litellm/integrations/opentelemetry.py": 1468, + "litellm/integrations/opentelemetry_utils/base_otel_llm_obs_attributes.py": 4, + "litellm/integrations/opentelemetry_utils/gen_ai_semconv.py": 64, + "litellm/integrations/opik/opik.py": 80, + "litellm/integrations/opik/opik_payload_builder/api.py": 53, + "litellm/integrations/opik/opik_payload_builder/extractors.py": 61, + "litellm/integrations/opik/opik_payload_builder/payload_builders.py": 16, + "litellm/integrations/opik/opik_payload_builder/types.py": 24, + "litellm/integrations/opik/utils.py": 71, + "litellm/integrations/otel/logger.py": 84, + "litellm/integrations/otel/mappers/genai.py": 1, + "litellm/integrations/otel/mappers/langfuse.py": 2, + "litellm/integrations/otel/mappers/langtrace.py": 1, + "litellm/integrations/otel/mappers/openinference.py": 14, + "litellm/integrations/otel/mappers/utils.py": 21, + "litellm/integrations/otel/model/baggage.py": 1, + "litellm/integrations/otel/model/config.py": 3, + "litellm/integrations/otel/model/metadata.py": 42, + "litellm/integrations/otel/model/payloads.py": 67, + "litellm/integrations/otel/model/spans.py": 3, + "litellm/integrations/otel/model/utils.py": 4, + "litellm/integrations/otel/mount.py": 12, + "litellm/integrations/otel/plumbing/metrics.py": 115, + "litellm/integrations/otel/plumbing/providers.py": 2, + "litellm/integrations/otel/plumbing/routing.py": 5, + "litellm/integrations/otel/presets/agentops.py": 11, + "litellm/integrations/otel/presets/arize.py": 13, + "litellm/integrations/otel/presets/langfuse.py": 3, + "litellm/integrations/otel/presets/langtrace.py": 1, + "litellm/integrations/otel/presets/levo.py": 2, + "litellm/integrations/otel/presets/phoenix.py": 3, + "litellm/integrations/otel/presets/weave.py": 2, + "litellm/integrations/otel/runtime.py": 2, + "litellm/integrations/posthog.py": 326, + "litellm/integrations/posthog_mock_client.py": 4, + "litellm/integrations/prometheus.py": 1082, + "litellm/integrations/prometheus_helpers/__init__.py": 11, + "litellm/integrations/prometheus_helpers/bounded_prometheus_series_tracker.py": 4, + "litellm/integrations/prometheus_helpers/prometheus_api.py": 50, + "litellm/integrations/prometheus_services.py": 42, + "litellm/integrations/prompt_layer.py": 59, + "litellm/integrations/prompt_management_base.py": 27, + "litellm/integrations/rubrik.py": 203, + "litellm/integrations/s3.py": 110, + "litellm/integrations/s3_v2.py": 231, + "litellm/integrations/sqs.py": 118, + "litellm/integrations/supabase.py": 71, + "litellm/integrations/traceloop.py": 116, + "litellm/integrations/vantage/vantage_logger.py": 22, + "litellm/integrations/vector_store_integrations/vector_store_pre_call_hook.py": 75, + "litellm/integrations/weave/weave_otel.py": 107, + "litellm/integrations/websearch_interception/handler.py": 445, + "litellm/integrations/websearch_interception/tools.py": 36, + "litellm/integrations/websearch_interception/transformation.py": 183, + "litellm/integrations/weights_biases.py": 99, + "litellm/interactions/agents/http_handler.py": 170, + "litellm/interactions/agents/main.py": 194, + "litellm/interactions/http_handler.py": 158, + "litellm/interactions/litellm_responses_transformation/handler.py": 23, + "litellm/interactions/litellm_responses_transformation/streaming_iterator.py": 35, + "litellm/interactions/litellm_responses_transformation/transformation.py": 131, + "litellm/interactions/main.py": 153, + "litellm/interactions/streaming_iterator.py": 48, + "litellm/interactions/utils.py": 12, + "litellm/litellm_core_utils/app_crypto.py": 6, + "litellm/litellm_core_utils/asyncify.py": 21, + "litellm/litellm_core_utils/audio_utils/utils.py": 19, + "litellm/litellm_core_utils/cli_token_utils.py": 7, + "litellm/litellm_core_utils/cloud_storage_security.py": 7, + "litellm/litellm_core_utils/completion_timeout.py": 5, + "litellm/litellm_core_utils/core_helpers.py": 192, + "litellm/litellm_core_utils/coroutine_checker.py": 21, + "litellm/litellm_core_utils/credential_accessor.py": 3, + "litellm/litellm_core_utils/custom_logger_registry.py": 6, + "litellm/litellm_core_utils/dd_tracing.py": 25, + "litellm/litellm_core_utils/default_encoding.py": 3, + "litellm/litellm_core_utils/dot_notation_indexing.py": 54, + "litellm/litellm_core_utils/duration_parser.py": 24, + "litellm/litellm_core_utils/exception_mapping_utils.py": 1800, + "litellm/litellm_core_utils/fallback_utils.py": 54, + "litellm/litellm_core_utils/get_blog_posts.py": 7, + "litellm/litellm_core_utils/get_litellm_params.py": 45, + "litellm/litellm_core_utils/get_llm_provider_logic.py": 137, + "litellm/litellm_core_utils/get_model_cost_map.py": 47, + "litellm/litellm_core_utils/get_provider_specific_headers.py": 3, + "litellm/litellm_core_utils/get_supported_openai_params.py": 67, + "litellm/litellm_core_utils/health_check_helpers.py": 73, + "litellm/litellm_core_utils/health_check_utils.py": 17, + "litellm/litellm_core_utils/initialize_dynamic_callback_params.py": 19, + "litellm/litellm_core_utils/json_validation_rule.py": 62, + "litellm/litellm_core_utils/litellm_logging.py": 2329, + "litellm/litellm_core_utils/llm_cost_calc/tool_call_cost_tracking.py": 107, + "litellm/litellm_core_utils/llm_cost_calc/usage_object_transformation.py": 2, + "litellm/litellm_core_utils/llm_cost_calc/utils.py": 55, + "litellm/litellm_core_utils/llm_request_utils.py": 37, + "litellm/litellm_core_utils/llm_response_utils/convert_dict_to_response.py": 336, + "litellm/litellm_core_utils/llm_response_utils/get_api_base.py": 6, + "litellm/litellm_core_utils/llm_response_utils/get_formatted_prompt.py": 27, + "litellm/litellm_core_utils/llm_response_utils/get_headers.py": 30, + "litellm/litellm_core_utils/llm_response_utils/response_metadata.py": 80, + "litellm/litellm_core_utils/logging_callback_manager.py": 90, + "litellm/litellm_core_utils/logging_utils.py": 177, + "litellm/litellm_core_utils/logging_worker.py": 99, + "litellm/litellm_core_utils/model_param_helper.py": 41, + "litellm/litellm_core_utils/model_response_utils.py": 51, + "litellm/litellm_core_utils/prompt_templates/common_utils.py": 362, + "litellm/litellm_core_utils/prompt_templates/factory.py": 1441, + "litellm/litellm_core_utils/prompt_templates/huggingface_template_handler.py": 30, + "litellm/litellm_core_utils/prompt_templates/image_handling.py": 20, + "litellm/litellm_core_utils/realtime_streaming.py": 622, + "litellm/litellm_core_utils/redact_messages.py": 195, + "litellm/litellm_core_utils/rules.py": 9, + "litellm/litellm_core_utils/safe_json_dumps.py": 64, + "litellm/litellm_core_utils/safe_json_loads.py": 2, + "litellm/litellm_core_utils/sensitive_data_masker.py": 64, + "litellm/litellm_core_utils/specialty_caches/dynamic_logging_cache.py": 13, + "litellm/litellm_core_utils/streaming_chunk_builder_utils.py": 313, + "litellm/litellm_core_utils/streaming_handler.py": 1002, + "litellm/litellm_core_utils/token_counter.py": 238, + "litellm/litellm_core_utils/url_utils.py": 46, + "litellm/llms/__init__.py": 7, + "litellm/llms/a2a/chat/guardrail_translation/handler.py": 158, + "litellm/llms/a2a/chat/streaming_iterator.py": 13, + "litellm/llms/a2a/chat/transformation.py": 54, + "litellm/llms/a2a/common_utils.py": 35, + "litellm/llms/ai21/chat/transformation.py": 7, + "litellm/llms/aiml/image_generation/cost_calculator.py": 2, + "litellm/llms/aiml/image_generation/transformation.py": 61, + "litellm/llms/aiohttp_openai/chat/transformation.py": 11, + "litellm/llms/amazon_nova/chat/transformation.py": 11, + "litellm/llms/anthropic/batches/handler.py": 30, + "litellm/llms/anthropic/batches/transformation.py": 55, + "litellm/llms/anthropic/chat/guardrail_translation/handler.py": 181, + "litellm/llms/anthropic/chat/handler.py": 384, + "litellm/llms/anthropic/chat/transformation.py": 770, + "litellm/llms/anthropic/common_utils.py": 277, + "litellm/llms/anthropic/completion/transformation.py": 86, + "litellm/llms/anthropic/cost_calculation.py": 11, + "litellm/llms/anthropic/count_tokens/handler.py": 19, + "litellm/llms/anthropic/count_tokens/token_counter.py": 17, + "litellm/llms/anthropic/count_tokens/transformation.py": 19, + "litellm/llms/anthropic/experimental_pass_through/adapters/handler.py": 228, + "litellm/llms/anthropic/experimental_pass_through/adapters/streaming_iterator.py": 434, + "litellm/llms/anthropic/experimental_pass_through/adapters/transformation.py": 327, + "litellm/llms/anthropic/experimental_pass_through/context_management/dispatcher.py": 57, + "litellm/llms/anthropic/experimental_pass_through/context_management/editors/clear_tool_uses.py": 100, + "litellm/llms/anthropic/experimental_pass_through/context_management/editors/compact.py": 420, + "litellm/llms/anthropic/experimental_pass_through/context_management/placeholders.py": 3, + "litellm/llms/anthropic/experimental_pass_through/context_management/result.py": 2, + "litellm/llms/anthropic/experimental_pass_through/messages/agentic_streaming_iterator.py": 191, + "litellm/llms/anthropic/experimental_pass_through/messages/fake_stream_iterator.py": 78, + "litellm/llms/anthropic/experimental_pass_through/messages/handler.py": 148, + "litellm/llms/anthropic/experimental_pass_through/messages/interceptors/advisor.py": 150, + "litellm/llms/anthropic/experimental_pass_through/messages/streaming_iterator.py": 19, + "litellm/llms/anthropic/experimental_pass_through/messages/transformation.py": 162, + "litellm/llms/anthropic/experimental_pass_through/messages/utils.py": 7, + "litellm/llms/anthropic/experimental_pass_through/responses_adapters/handler.py": 96, + "litellm/llms/anthropic/experimental_pass_through/responses_adapters/streaming_iterator.py": 187, + "litellm/llms/anthropic/experimental_pass_through/responses_adapters/transformation.py": 249, + "litellm/llms/anthropic/files/handler.py": 54, + "litellm/llms/anthropic/files/transformation.py": 47, + "litellm/llms/anthropic/skills/transformation.py": 40, + "litellm/llms/apiserpent/search/defaults.py": 19, + "litellm/llms/apiserpent/search/transformation.py": 54, + "litellm/llms/aws_polly/text_to_speech/transformation.py": 74, + "litellm/llms/azure/assistants.py": 114, + "litellm/llms/azure/audio_transcription/transformation.py": 37, + "litellm/llms/azure/audio_transcriptions.py": 47, + "litellm/llms/azure/azure.py": 459, + "litellm/llms/azure/batches/handler.py": 21, + "litellm/llms/azure/chat/gpt_5_transformation.py": 29, + "litellm/llms/azure/chat/gpt_transformation.py": 43, + "litellm/llms/azure/chat/o_series_handler.py": 12, + "litellm/llms/azure/chat/o_series_transformation.py": 14, + "litellm/llms/azure/common_utils.py": 208, + "litellm/llms/azure/completion/handler.py": 128, + "litellm/llms/azure/completion/transformation.py": 2, + "litellm/llms/azure/containers/transformation.py": 6, + "litellm/llms/azure/exception_mapping.py": 36, + "litellm/llms/azure/files/handler.py": 27, + "litellm/llms/azure/fine_tuning/handler.py": 21, + "litellm/llms/azure/image_edit/transformation.py": 19, + "litellm/llms/azure/image_generation/http_utils.py": 8, + "litellm/llms/azure/passthrough/transformation.py": 16, + "litellm/llms/azure/realtime/handler.py": 15, + "litellm/llms/azure/realtime/http_transformation.py": 3, + "litellm/llms/azure/responses/o_series_transformation.py": 7, + "litellm/llms/azure/responses/transformation.py": 72, + "litellm/llms/azure/text_to_speech/transformation.py": 61, + "litellm/llms/azure/vector_stores/transformation.py": 3, + "litellm/llms/azure/videos/transformation.py": 6, + "litellm/llms/azure_ai/agents/handler.py": 291, + "litellm/llms/azure_ai/agents/transformation.py": 49, + "litellm/llms/azure_ai/anthropic/count_tokens/handler.py": 20, + "litellm/llms/azure_ai/anthropic/count_tokens/token_counter.py": 22, + "litellm/llms/azure_ai/anthropic/count_tokens/transformation.py": 8, + "litellm/llms/azure_ai/anthropic/handler.py": 101, + "litellm/llms/azure_ai/anthropic/messages_transformation.py": 44, + "litellm/llms/azure_ai/anthropic/transformation.py": 39, + "litellm/llms/azure_ai/azure_model_router/transformation.py": 9, + "litellm/llms/azure_ai/chat/transformation.py": 80, + "litellm/llms/azure_ai/embed/cohere_transformation.py": 7, + "litellm/llms/azure_ai/embed/handler.py": 79, + "litellm/llms/azure_ai/image_edit/flux2_transformation.py": 27, + "litellm/llms/azure_ai/image_edit/mai_transformation.py": 48, + "litellm/llms/azure_ai/image_edit/transformation.py": 7, + "litellm/llms/azure_ai/image_generation/cost_calculator.py": 2, + "litellm/llms/azure_ai/image_generation/mai_transformation.py": 87, + "litellm/llms/azure_ai/ocr/document_intelligence/transformation.py": 126, + "litellm/llms/azure_ai/ocr/transformation.py": 12, + "litellm/llms/azure_ai/rerank/transformation.py": 12, + "litellm/llms/azure_ai/vector_stores/transformation.py": 54, + "litellm/llms/base.py": 10, + "litellm/llms/base_llm/agents/transformation.py": 1, + "litellm/llms/base_llm/anthropic_messages/transformation.py": 5, + "litellm/llms/base_llm/audio_transcription/transformation.py": 10, + "litellm/llms/base_llm/base_model_iterator.py": 80, + "litellm/llms/base_llm/base_utils.py": 76, + "litellm/llms/base_llm/batches/transformation.py": 13, + "litellm/llms/base_llm/chat/transformation.py": 63, + "litellm/llms/base_llm/completion/transformation.py": 1, + "litellm/llms/base_llm/containers/transformation.py": 15, + "litellm/llms/base_llm/embedding/transformation.py": 1, + "litellm/llms/base_llm/evals/transformation.py": 2, + "litellm/llms/base_llm/files/azure_blob_storage_backend.py": 54, + "litellm/llms/base_llm/files/transformation.py": 2, + "litellm/llms/base_llm/google_genai/transformation.py": 14, + "litellm/llms/base_llm/guardrail_translation/base_translation.py": 21, + "litellm/llms/base_llm/guardrail_translation/utils.py": 10, + "litellm/llms/base_llm/image_edit/transformation.py": 16, + "litellm/llms/base_llm/image_generation/transformation.py": 2, + "litellm/llms/base_llm/image_variations/transformation.py": 1, + "litellm/llms/base_llm/interactions/transformation.py": 15, + "litellm/llms/base_llm/managed_resources/base_managed_resource.py": 111, + "litellm/llms/base_llm/managed_resources/isolation.py": 13, + "litellm/llms/base_llm/managed_resources/utils.py": 16, + "litellm/llms/base_llm/ocr/transformation.py": 13, + "litellm/llms/base_llm/passthrough/transformation.py": 4, + "litellm/llms/base_llm/realtime/http_transformation.py": 2, + "litellm/llms/base_llm/realtime/transformation.py": 1, + "litellm/llms/base_llm/rerank/transformation.py": 5, + "litellm/llms/base_llm/responses/transformation.py": 28, + "litellm/llms/base_llm/search/transformation.py": 8, + "litellm/llms/base_llm/skills/transformation.py": 2, + "litellm/llms/base_llm/text_to_speech/transformation.py": 19, + "litellm/llms/base_llm/vector_store/transformation.py": 7, + "litellm/llms/base_llm/vector_store_files/transformation.py": 2, + "litellm/llms/base_llm/videos/transformation.py": 15, + "litellm/llms/baseten/chat.py": 20, + "litellm/llms/bedrock/base_aws_llm.py": 341, + "litellm/llms/bedrock/batches/handler.py": 78, + "litellm/llms/bedrock/batches/transformation.py": 143, + "litellm/llms/bedrock/chat/agentcore/transformation.py": 193, + "litellm/llms/bedrock/chat/converse_handler.py": 152, + "litellm/llms/bedrock/chat/converse_transformation.py": 527, + "litellm/llms/bedrock/chat/invoke_agent/transformation.py": 65, + "litellm/llms/bedrock/chat/invoke_handler.py": 634, + "litellm/llms/bedrock/chat/invoke_transformations/amazon_ai21_transformation.py": 36, + "litellm/llms/bedrock/chat/invoke_transformations/amazon_cohere_transformation.py": 22, + "litellm/llms/bedrock/chat/invoke_transformations/amazon_deepseek_transformation.py": 25, + "litellm/llms/bedrock/chat/invoke_transformations/amazon_llama_transformation.py": 36, + "litellm/llms/bedrock/chat/invoke_transformations/amazon_mistral_transformation.py": 45, + "litellm/llms/bedrock/chat/invoke_transformations/amazon_moonshot_transformation.py": 25, + "litellm/llms/bedrock/chat/invoke_transformations/amazon_nova_transformation.py": 18, + "litellm/llms/bedrock/chat/invoke_transformations/amazon_openai_transformation.py": 24, + "litellm/llms/bedrock/chat/invoke_transformations/amazon_qwen2_transformation.py": 15, + "litellm/llms/bedrock/chat/invoke_transformations/amazon_qwen3_transformation.py": 71, + "litellm/llms/bedrock/chat/invoke_transformations/amazon_titan_transformation.py": 46, + "litellm/llms/bedrock/chat/invoke_transformations/amazon_twelvelabs_pegasus_transformation.py": 102, + "litellm/llms/bedrock/chat/invoke_transformations/anthropic_claude2_transformation.py": 39, + "litellm/llms/bedrock/chat/invoke_transformations/anthropic_claude3_transformation.py": 139, + "litellm/llms/bedrock/chat/invoke_transformations/base_invoke_transformation.py": 192, + "litellm/llms/bedrock/chat/mantle/transformation.py": 24, + "litellm/llms/bedrock/claude_platform/common_utils.py": 21, + "litellm/llms/bedrock/claude_platform/messages_transformation.py": 16, + "litellm/llms/bedrock/claude_platform/transformation.py": 18, + "litellm/llms/bedrock/common_utils.py": 279, + "litellm/llms/bedrock/count_tokens/bedrock_token_counter.py": 20, + "litellm/llms/bedrock/count_tokens/handler.py": 31, + "litellm/llms/bedrock/count_tokens/transformation.py": 106, + "litellm/llms/bedrock/embed/amazon_nova_transformation.py": 96, + "litellm/llms/bedrock/embed/amazon_titan_g1_transformation.py": 24, + "litellm/llms/bedrock/embed/amazon_titan_multimodal_transformation.py": 22, + "litellm/llms/bedrock/embed/amazon_titan_v2_transformation.py": 46, + "litellm/llms/bedrock/embed/cohere_transformation.py": 15, + "litellm/llms/bedrock/embed/embedding.py": 223, + "litellm/llms/bedrock/embed/twelvelabs_marengo_transformation.py": 57, + "litellm/llms/bedrock/files/handler.py": 33, + "litellm/llms/bedrock/files/transformation.py": 220, + "litellm/llms/bedrock/image_edit/amazon_nova_canvas_image_edit_transformation.py": 156, + "litellm/llms/bedrock/image_edit/handler.py": 56, + "litellm/llms/bedrock/image_edit/stability_transformation.py": 87, + "litellm/llms/bedrock/image_generation/amazon_nova_canvas_transformation.py": 73, + "litellm/llms/bedrock/image_generation/amazon_stability1_transformation.py": 54, + "litellm/llms/bedrock/image_generation/amazon_stability3_transformation.py": 19, + "litellm/llms/bedrock/image_generation/amazon_titan_transformation.py": 64, + "litellm/llms/bedrock/image_generation/cost_calculator.py": 1, + "litellm/llms/bedrock/image_generation/image_handler.py": 59, + "litellm/llms/bedrock/messages/invoke_transformations/anthropic_claude3_transformation.py": 237, + "litellm/llms/bedrock/messages/mantle_transformation.py": 18, + "litellm/llms/bedrock/passthrough/guardrail_translation/handler.py": 337, + "litellm/llms/bedrock/passthrough/transformation.py": 36, + "litellm/llms/bedrock/realtime/handler.py": 58, + "litellm/llms/bedrock/realtime/transformation.py": 293, + "litellm/llms/bedrock/rerank/handler.py": 40, + "litellm/llms/bedrock/rerank/transformation.py": 18, + "litellm/llms/bedrock/vector_stores/transformation.py": 123, + "litellm/llms/bedrock_mantle/chat/transformation.py": 15, + "litellm/llms/bedrock_mantle/responses/transformation.py": 63, + "litellm/llms/black_forest_labs/image_edit/handler.py": 126, + "litellm/llms/black_forest_labs/image_edit/transformation.py": 45, + "litellm/llms/black_forest_labs/image_generation/handler.py": 130, + "litellm/llms/black_forest_labs/image_generation/transformation.py": 49, + "litellm/llms/brave/search/transformation.py": 71, + "litellm/llms/bytez/chat/transformation.py": 128, + "litellm/llms/cerebras/chat.py": 19, + "litellm/llms/chatgpt/authenticator.py": 107, + "litellm/llms/chatgpt/chat/streaming_utils.py": 40, + "litellm/llms/chatgpt/chat/transformation.py": 15, + "litellm/llms/chatgpt/common_utils.py": 29, + "litellm/llms/chatgpt/responses/transformation.py": 105, + "litellm/llms/clarifai/chat/transformation.py": 16, + "litellm/llms/cloudflare/chat/transformation.py": 63, + "litellm/llms/codestral/completion/handler.py": 128, + "litellm/llms/codestral/completion/transformation.py": 49, + "litellm/llms/cohere/chat/transformation.py": 113, + "litellm/llms/cohere/chat/v2_transformation.py": 97, + "litellm/llms/cohere/common_utils.py": 153, + "litellm/llms/cohere/embed/handler.py": 71, + "litellm/llms/cohere/embed/transformation.py": 56, + "litellm/llms/cohere/embed/v1_transformation.py": 52, + "litellm/llms/cohere/rerank/guardrail_translation/handler.py": 16, + "litellm/llms/cohere/rerank/transformation.py": 21, + "litellm/llms/cohere/rerank_v2/transformation.py": 12, + "litellm/llms/cometapi/chat/transformation.py": 38, + "litellm/llms/cometapi/embed/transformation.py": 22, + "litellm/llms/cometapi/image_generation/cost_calculator.py": 2, + "litellm/llms/cometapi/image_generation/transformation.py": 23, + "litellm/llms/compactifai/chat/transformation.py": 17, + "litellm/llms/custom_httpx/aiohttp_handler.py": 191, + "litellm/llms/custom_httpx/aiohttp_transport.py": 40, + "litellm/llms/custom_httpx/async_client_cleanup.py": 42, + "litellm/llms/custom_httpx/container_handler.py": 169, + "litellm/llms/custom_httpx/http_handler.py": 337, + "litellm/llms/custom_httpx/httpx_handler.py": 22, + "litellm/llms/custom_httpx/llm_http_handler.py": 3883, + "litellm/llms/custom_httpx/mock_transport.py": 13, + "litellm/llms/custom_llm.py": 10, + "litellm/llms/dashscope/chat/transformation.py": 1, + "litellm/llms/dashscope/common_utils.py": 2, + "litellm/llms/dashscope/cost_calculator.py": 49, + "litellm/llms/dashscope/embed/transformation.py": 44, + "litellm/llms/dashscope/image_generation/transformation.py": 48, + "litellm/llms/dashscope/rerank/transformation.py": 60, + "litellm/llms/databricks/chat/transformation.py": 167, + "litellm/llms/databricks/common_utils.py": 51, + "litellm/llms/databricks/cost_calculator.py": 4, + "litellm/llms/databricks/embed/handler.py": 12, + "litellm/llms/databricks/embed/transformation.py": 19, + "litellm/llms/databricks/responses/transformation.py": 9, + "litellm/llms/databricks/streaming_utils.py": 68, + "litellm/llms/dataforseo/search/transformation.py": 52, + "litellm/llms/deepgram/audio_transcription/transformation.py": 62, + "litellm/llms/deepinfra/chat/transformation.py": 42, + "litellm/llms/deepinfra/rerank/transformation.py": 68, + "litellm/llms/deepseek/chat/transformation.py": 51, + "litellm/llms/deepseek/messages/transformation.py": 35, + "litellm/llms/deprecated_providers/aleph_alpha.py": 101, + "litellm/llms/deprecated_providers/palm.py": 75, + "litellm/llms/docker_model_runner/chat/transformation.py": 15, + "litellm/llms/duckduckgo/search/transformation.py": 67, + "litellm/llms/elevenlabs/audio_transcription/transformation.py": 44, + "litellm/llms/elevenlabs/text_to_speech/transformation.py": 94, + "litellm/llms/exa_ai/search/transformation.py": 40, + "litellm/llms/fal_ai/cost_calculator.py": 2, + "litellm/llms/fal_ai/image_generation/bria_transformation.py": 27, + "litellm/llms/fal_ai/image_generation/bytedance_transformation.py": 25, + "litellm/llms/fal_ai/image_generation/flux_pro_v11_transformation.py": 25, + "litellm/llms/fal_ai/image_generation/flux_pro_v11_ultra_transformation.py": 39, + "litellm/llms/fal_ai/image_generation/flux_schnell_transformation.py": 25, + "litellm/llms/fal_ai/image_generation/ideogram_v3_transformation.py": 41, + "litellm/llms/fal_ai/image_generation/imagen4_transformation.py": 32, + "litellm/llms/fal_ai/image_generation/nano_banana_transformation.py": 18, + "litellm/llms/fal_ai/image_generation/recraft_v3_transformation.py": 32, + "litellm/llms/fal_ai/image_generation/stable_diffusion_transformation.py": 41, + "litellm/llms/fal_ai/image_generation/transformation.py": 25, + "litellm/llms/fastcrw/search/transformation.py": 27, + "litellm/llms/featherless_ai/chat/transformation.py": 33, + "litellm/llms/firecrawl/search/transformation.py": 55, + "litellm/llms/fireworks_ai/chat/transformation.py": 123, + "litellm/llms/fireworks_ai/common_utils.py": 3, + "litellm/llms/fireworks_ai/completion/transformation.py": 14, + "litellm/llms/fireworks_ai/cost_calculator.py": 7, + "litellm/llms/fireworks_ai/embed/fireworks_ai_transformation.py": 14, + "litellm/llms/fireworks_ai/rerank/transformation.py": 52, + "litellm/llms/gemini/agents/transformation.py": 58, + "litellm/llms/gemini/chat/transformation.py": 26, + "litellm/llms/gemini/common_utils.py": 157, + "litellm/llms/gemini/count_tokens/handler.py": 35, + "litellm/llms/gemini/files/transformation.py": 40, + "litellm/llms/gemini/google_genai/transformation.py": 70, + "litellm/llms/gemini/image_edit/cost_calculator.py": 1, + "litellm/llms/gemini/image_edit/transformation.py": 44, + "litellm/llms/gemini/image_generation/cost_calculator.py": 2, + "litellm/llms/gemini/image_generation/transformation.py": 52, + "litellm/llms/gemini/image_usage_transformation.py": 31, + "litellm/llms/gemini/interactions/transformation.py": 92, + "litellm/llms/gemini/realtime/transformation.py": 324, + "litellm/llms/gemini/vector_stores/transformation.py": 96, + "litellm/llms/gemini/videos/transformation.py": 77, + "litellm/llms/gigachat/authenticator.py": 42, + "litellm/llms/gigachat/chat/streaming.py": 32, + "litellm/llms/gigachat/chat/transformation.py": 157, + "litellm/llms/gigachat/embedding/transformation.py": 34, + "litellm/llms/gigachat/file_handler.py": 47, + "litellm/llms/github_copilot/authenticator.py": 35, + "litellm/llms/github_copilot/chat/transformation.py": 87, + "litellm/llms/github_copilot/common_utils.py": 5, + "litellm/llms/github_copilot/embedding/transformation.py": 23, + "litellm/llms/github_copilot/responses/transformation.py": 70, + "litellm/llms/google_pse/search/transformation.py": 61, + "litellm/llms/gradient_ai/chat/transformation.py": 21, + "litellm/llms/groq/chat/handler.py": 14, + "litellm/llms/groq/chat/transformation.py": 55, + "litellm/llms/groq/stt/transformation.py": 31, + "litellm/llms/heroku/chat/transformation.py": 2, + "litellm/llms/hosted_vllm/chat/transformation.py": 80, + "litellm/llms/hosted_vllm/embedding/transformation.py": 19, + "litellm/llms/hosted_vllm/rerank/transformation.py": 40, + "litellm/llms/hosted_vllm/responses/transformation.py": 3, + "litellm/llms/hosted_vllm/transcriptions/transformation.py": 4, + "litellm/llms/huggingface/chat/transformation.py": 17, + "litellm/llms/huggingface/common_utils.py": 15, + "litellm/llms/huggingface/embedding/handler.py": 157, + "litellm/llms/huggingface/embedding/transformation.py": 224, + "litellm/llms/huggingface/rerank/transformation.py": 70, + "litellm/llms/hyperbolic/chat/transformation.py": 1, + "litellm/llms/inception/chat/transformation.py": 1, + "litellm/llms/inception/completion/transformation.py": 14, + "litellm/llms/infinity/common_utils.py": 2, + "litellm/llms/infinity/embedding/transformation.py": 28, + "litellm/llms/infinity/rerank/transformation.py": 20, + "litellm/llms/jina_ai/common_utils.py": 3, + "litellm/llms/jina_ai/embedding/transformation.py": 35, + "litellm/llms/jina_ai/rerank/transformation.py": 42, + "litellm/llms/langflow/a2a.py": 12, + "litellm/llms/langflow/chat/transformation.py": 67, + "litellm/llms/langgraph/chat/sse_iterator.py": 49, + "litellm/llms/langgraph/chat/transformation.py": 103, + "litellm/llms/lemonade/chat/transformation.py": 65, + "litellm/llms/linkup/search/transformation.py": 43, + "litellm/llms/litellm_proxy/chat/transformation.py": 21, + "litellm/llms/litellm_proxy/image_edit/transformation.py": 3, + "litellm/llms/litellm_proxy/image_generation/transformation.py": 3, + "litellm/llms/litellm_proxy/skills/code_execution.py": 111, + "litellm/llms/litellm_proxy/skills/handler.py": 66, + "litellm/llms/litellm_proxy/skills/prompt_injection.py": 54, + "litellm/llms/litellm_proxy/skills/sandbox_executor.py": 60, + "litellm/llms/litellm_proxy/skills/transformation.py": 57, + "litellm/llms/lm_studio/chat/transformation.py": 25, + "litellm/llms/lm_studio/embed/transformation.py": 18, + "litellm/llms/manus/files/transformation.py": 68, + "litellm/llms/manus/responses/transformation.py": 84, + "litellm/llms/maritalk.py": 9, + "litellm/llms/meta_llama/chat/transformation.py": 10, + "litellm/llms/milvus/vector_stores/transformation.py": 67, + "litellm/llms/minimax/chat/transformation.py": 2, + "litellm/llms/minimax/text_to_speech/transformation.py": 112, + "litellm/llms/mistral/audio_transcription/transformation.py": 34, + "litellm/llms/mistral/chat/transformation.py": 183, + "litellm/llms/mistral/ocr/guardrail_translation/handler.py": 39, + "litellm/llms/mistral/ocr/transformation.py": 22, + "litellm/llms/modelscope/chat/transformation.py": 12, + "litellm/llms/modelscope/image_generation/transformation.py": 33, + "litellm/llms/moonshot/chat/transformation.py": 54, + "litellm/llms/morph/chat/transformation.py": 1, + "litellm/llms/nebius/chat/transformation.py": 13, + "litellm/llms/nlp_cloud/chat/handler.py": 55, + "litellm/llms/nlp_cloud/chat/transformation.py": 57, + "litellm/llms/nlp_cloud/common_utils.py": 1, + "litellm/llms/novita/chat/transformation.py": 4, + "litellm/llms/nscale/chat/transformation.py": 1, + "litellm/llms/nvidia_nim/chat/transformation.py": 18, + "litellm/llms/nvidia_nim/embed.py": 39, + "litellm/llms/nvidia_nim/rerank/ranking_transformation.py": 4, + "litellm/llms/nvidia_nim/rerank/transformation.py": 58, + "litellm/llms/nvidia_riva/audio_transcription/audio_utils.py": 79, + "litellm/llms/nvidia_riva/audio_transcription/handler.py": 142, + "litellm/llms/nvidia_riva/audio_transcription/transformation.py": 83, + "litellm/llms/nvidia_riva/common_utils.py": 15, + "litellm/llms/oci/chat/cohere.py": 80, + "litellm/llms/oci/chat/generic.py": 58, + "litellm/llms/oci/chat/transformation.py": 159, + "litellm/llms/oci/common_utils.py": 219, + "litellm/llms/oci/embed/transformation.py": 45, + "litellm/llms/ollama/chat/transformation.py": 173, + "litellm/llms/ollama/common_utils.py": 68, + "litellm/llms/ollama/completion/handler.py": 41, + "litellm/llms/ollama/completion/transformation.py": 143, + "litellm/llms/oobabooga/chat/oobabooga.py": 59, + "litellm/llms/oobabooga/chat/transformation.py": 14, + "litellm/llms/oobabooga/common_utils.py": 1, + "litellm/llms/openai/chat/gpt_5_transformation.py": 51, + "litellm/llms/openai/chat/gpt_audio_transformation.py": 7, + "litellm/llms/openai/chat/gpt_transformation.py": 132, + "litellm/llms/openai/chat/guardrail_translation/handler.py": 196, + "litellm/llms/openai/chat/o_series_transformation.py": 20, + "litellm/llms/openai/common_utils.py": 46, + "litellm/llms/openai/completion/guardrail_translation/handler.py": 43, + "litellm/llms/openai/completion/handler.py": 139, + "litellm/llms/openai/completion/transformation.py": 19, + "litellm/llms/openai/completion/utils.py": 17, + "litellm/llms/openai/containers/transformation.py": 54, + "litellm/llms/openai/cost_calculation.py": 6, + "litellm/llms/openai/embeddings/guardrail_translation/handler.py": 35, + "litellm/llms/openai/evals/transformation.py": 73, + "litellm/llms/openai/fine_tuning/handler.py": 36, + "litellm/llms/openai/image_edit/dalle2_transformation.py": 47, + "litellm/llms/openai/image_edit/transformation.py": 64, + "litellm/llms/openai/image_generation/cost_calculator.py": 4, + "litellm/llms/openai/image_generation/dall_e_2_transformation.py": 23, + "litellm/llms/openai/image_generation/dall_e_3_transformation.py": 23, + "litellm/llms/openai/image_generation/gpt_transformation.py": 23, + "litellm/llms/openai/image_generation/guardrail_translation/handler.py": 14, + "litellm/llms/openai/image_variations/handler.py": 69, + "litellm/llms/openai/image_variations/transformation.py": 6, + "litellm/llms/openai/openai.py": 664, + "litellm/llms/openai/realtime/handler.py": 24, + "litellm/llms/openai/realtime/http_transformation.py": 2, + "litellm/llms/openai/responses/count_tokens/handler.py": 17, + "litellm/llms/openai/responses/count_tokens/token_counter.py": 30, + "litellm/llms/openai/responses/count_tokens/transformation.py": 85, + "litellm/llms/openai/responses/guardrail_translation/handler.py": 256, + "litellm/llms/openai/responses/transformation.py": 126, + "litellm/llms/openai/speech/guardrail_translation/handler.py": 14, + "litellm/llms/openai/transcriptions/gpt_transformation.py": 3, + "litellm/llms/openai/transcriptions/guardrail_translation/handler.py": 17, + "litellm/llms/openai/transcriptions/handler.py": 74, + "litellm/llms/openai/transcriptions/whisper_transformation.py": 23, + "litellm/llms/openai/vector_store_files/transformation.py": 42, + "litellm/llms/openai/vector_stores/transformation.py": 22, + "litellm/llms/openai/videos/transformation.py": 154, + "litellm/llms/openai_like/chat/handler.py": 113, + "litellm/llms/openai_like/chat/transformation.py": 36, + "litellm/llms/openai_like/common_utils.py": 20, + "litellm/llms/openai_like/dynamic_config.py": 73, + "litellm/llms/openai_like/embedding/handler.py": 56, + "litellm/llms/openai_like/json_loader.py": 45, + "litellm/llms/openai_like/responses/transformation.py": 2, + "litellm/llms/openrouter/chat/transformation.py": 88, + "litellm/llms/openrouter/embedding/transformation.py": 27, + "litellm/llms/openrouter/image_edit/transformation.py": 93, + "litellm/llms/openrouter/image_generation/transformation.py": 81, + "litellm/llms/openrouter/responses/transformation.py": 3, + "litellm/llms/ovhcloud/audio_transcription/transformation.py": 30, + "litellm/llms/ovhcloud/chat/transformation.py": 38, + "litellm/llms/ovhcloud/embedding/transformation.py": 25, + "litellm/llms/parallel_ai/search/transformation.py": 55, + "litellm/llms/pass_through/guardrail_translation/handler.py": 84, + "litellm/llms/perplexity/chat/transformation.py": 59, + "litellm/llms/perplexity/cost_calculator.py": 16, + "litellm/llms/perplexity/embedding/transformation.py": 47, + "litellm/llms/perplexity/responses/transformation.py": 21, + "litellm/llms/perplexity/search/transformation.py": 29, + "litellm/llms/petals/common_utils.py": 1, + "litellm/llms/petals/completion/handler.py": 49, + "litellm/llms/petals/completion/transformation.py": 25, + "litellm/llms/pg_vector/vector_stores/transformation.py": 10, + "litellm/llms/predibase/chat/handler.py": 98, + "litellm/llms/predibase/chat/transformation.py": 116, + "litellm/llms/predibase/common_utils.py": 1, + "litellm/llms/ragflow/chat/transformation.py": 43, + "litellm/llms/ragflow/vector_stores/transformation.py": 34, + "litellm/llms/recraft/cost_calculator.py": 2, + "litellm/llms/recraft/image_edit/transformation.py": 35, + "litellm/llms/recraft/image_generation/transformation.py": 20, + "litellm/llms/reducto/common.py": 46, + "litellm/llms/reducto/ocr/transformation.py": 53, + "litellm/llms/replicate/chat/handler.py": 137, + "litellm/llms/replicate/chat/transformation.py": 76, + "litellm/llms/replicate/common_utils.py": 1, + "litellm/llms/runwayml/cost_calculator.py": 2, + "litellm/llms/runwayml/image_generation/transformation.py": 79, + "litellm/llms/runwayml/text_to_speech/transformation.py": 115, + "litellm/llms/runwayml/videos/transformation.py": 125, + "litellm/llms/s3_vectors/vector_stores/transformation.py": 71, + "litellm/llms/sagemaker/chat/handler.py": 81, + "litellm/llms/sagemaker/chat/transformation.py": 33, + "litellm/llms/sagemaker/common_utils.py": 62, + "litellm/llms/sagemaker/completion/handler.py": 301, + "litellm/llms/sagemaker/completion/transformation.py": 95, + "litellm/llms/sagemaker/embedding/cohere_transformation.py": 22, + "litellm/llms/sagemaker/embedding/transformation.py": 30, + "litellm/llms/sagemaker/nova/transformation.py": 10, + "litellm/llms/sambanova/chat.py": 21, + "litellm/llms/sambanova/common_utils.py": 4, + "litellm/llms/sambanova/embedding/transformation.py": 25, + "litellm/llms/sap/chat/handler.py": 100, + "litellm/llms/sap/chat/models.py": 95, + "litellm/llms/sap/chat/transformation.py": 182, + "litellm/llms/sap/credentials.py": 61, + "litellm/llms/sap/embed/transformation.py": 82, + "litellm/llms/scaleway/audio_transcription/transformation.py": 30, + "litellm/llms/searchapi/search/transformation.py": 58, + "litellm/llms/searxng/search/transformation.py": 43, + "litellm/llms/serper/search/transformation.py": 37, + "litellm/llms/snowflake/chat/transformation.py": 244, + "litellm/llms/snowflake/common_utils.py": 3, + "litellm/llms/snowflake/embedding/transformation.py": 13, + "litellm/llms/snowflake/utils.py": 25, + "litellm/llms/soniox/audio_transcription/handler.py": 196, + "litellm/llms/soniox/audio_transcription/transformation.py": 107, + "litellm/llms/soniox/common_utils.py": 68, + "litellm/llms/stability/image_edit/transformations.py": 59, + "litellm/llms/stability/image_generation/transformation.py": 41, + "litellm/llms/tavily/search/transformation.py": 38, + "litellm/llms/together_ai/chat.py": 14, + "litellm/llms/together_ai/completion/transformation.py": 8, + "litellm/llms/together_ai/cost_calculator.py": 9, + "litellm/llms/together_ai/rerank/handler.py": 18, + "litellm/llms/together_ai/rerank/transformation.py": 18, + "litellm/llms/topaz/common_utils.py": 1, + "litellm/llms/topaz/image_variations/transformation.py": 18, + "litellm/llms/triton/common_utils.py": 1, + "litellm/llms/triton/completion/transformation.py": 71, + "litellm/llms/triton/embedding/transformation.py": 35, + "litellm/llms/v0/chat/transformation.py": 1, + "litellm/llms/vercel_ai_gateway/chat/transformation.py": 28, + "litellm/llms/vercel_ai_gateway/embedding/transformation.py": 20, + "litellm/llms/vertex_ai/agent_engine/sse_iterator.py": 21, + "litellm/llms/vertex_ai/agent_engine/transformation.py": 71, + "litellm/llms/vertex_ai/aws_credentials_supplier.py": 6, + "litellm/llms/vertex_ai/batches/handler.py": 108, + "litellm/llms/vertex_ai/batches/transformation.py": 10, + "litellm/llms/vertex_ai/common_utils.py": 488, + "litellm/llms/vertex_ai/context_caching/transformation.py": 15, + "litellm/llms/vertex_ai/context_caching/vertex_ai_context_caching.py": 85, + "litellm/llms/vertex_ai/cost_calculator.py": 4, + "litellm/llms/vertex_ai/count_tokens/handler.py": 9, + "litellm/llms/vertex_ai/files/handler.py": 28, + "litellm/llms/vertex_ai/files/transformation.py": 180, + "litellm/llms/vertex_ai/fine_tuning/handler.py": 53, + "litellm/llms/vertex_ai/gemini/transformation.py": 309, + "litellm/llms/vertex_ai/gemini/vertex_and_google_ai_studio_gemini.py": 905, + "litellm/llms/vertex_ai/gemini_embeddings/batch_embed_content_handler.py": 78, + "litellm/llms/vertex_ai/gemini_embeddings/batch_embed_content_transformation.py": 32, + "litellm/llms/vertex_ai/google_genai/transformation.py": 24, + "litellm/llms/vertex_ai/image_edit/cost_calculator.py": 2, + "litellm/llms/vertex_ai/image_edit/vertex_gemini_transformation.py": 70, + "litellm/llms/vertex_ai/image_edit/vertex_imagen_transformation.py": 85, + "litellm/llms/vertex_ai/image_generation/image_generation_handler.py": 69, + "litellm/llms/vertex_ai/image_generation/vertex_gemini_transformation.py": 118, + "litellm/llms/vertex_ai/image_generation/vertex_imagen_transformation.py": 50, + "litellm/llms/vertex_ai/multimodal_embeddings/embedding_handler.py": 50, + "litellm/llms/vertex_ai/multimodal_embeddings/transformation.py": 39, + "litellm/llms/vertex_ai/ocr/deepseek_transformation.py": 66, + "litellm/llms/vertex_ai/ocr/transformation.py": 20, + "litellm/llms/vertex_ai/rag_engine/ingestion.py": 51, + "litellm/llms/vertex_ai/rag_engine/transformation.py": 14, + "litellm/llms/vertex_ai/realtime/transformation.py": 44, + "litellm/llms/vertex_ai/rerank/transformation.py": 66, + "litellm/llms/vertex_ai/text_to_speech/text_to_speech_handler.py": 46, + "litellm/llms/vertex_ai/text_to_speech/transformation.py": 84, + "litellm/llms/vertex_ai/vector_stores/rag_api/transformation.py": 81, + "litellm/llms/vertex_ai/vector_stores/search_api/transformation.py": 88, + "litellm/llms/vertex_ai/vertex_ai_aws_wif.py": 31, + "litellm/llms/vertex_ai/vertex_ai_non_gemini.py": 301, + "litellm/llms/vertex_ai/vertex_ai_partner_models/ai21/transformation.py": 23, + "litellm/llms/vertex_ai/vertex_ai_partner_models/anthropic/experimental_pass_through/transformation.py": 38, + "litellm/llms/vertex_ai/vertex_ai_partner_models/anthropic/output_params_utils.py": 21, + "litellm/llms/vertex_ai/vertex_ai_partner_models/anthropic/transformation.py": 55, + "litellm/llms/vertex_ai/vertex_ai_partner_models/count_tokens/handler.py": 23, + "litellm/llms/vertex_ai/vertex_ai_partner_models/gpt_oss/transformation.py": 9, + "litellm/llms/vertex_ai/vertex_ai_partner_models/llama3/transformation.py": 65, + "litellm/llms/vertex_ai/vertex_ai_partner_models/main.py": 79, + "litellm/llms/vertex_ai/vertex_embeddings/bge.py": 20, + "litellm/llms/vertex_ai/vertex_embeddings/embedding_handler.py": 46, + "litellm/llms/vertex_ai/vertex_embeddings/transformation.py": 84, + "litellm/llms/vertex_ai/vertex_embeddings/types.py": 16, + "litellm/llms/vertex_ai/vertex_gemma_models/main.py": 14, + "litellm/llms/vertex_ai/vertex_gemma_models/transformation.py": 86, + "litellm/llms/vertex_ai/vertex_llm_base.py": 256, + "litellm/llms/vertex_ai/vertex_model_garden/main.py": 15, + "litellm/llms/vertex_ai/videos/transformation.py": 164, + "litellm/llms/vllm/common_utils.py": 10, + "litellm/llms/vllm/completion/handler.py": 75, + "litellm/llms/vllm/passthrough/transformation.py": 2, + "litellm/llms/volcengine/chat/transformation.py": 19, + "litellm/llms/volcengine/common_utils.py": 4, + "litellm/llms/volcengine/embedding/transformation.py": 40, + "litellm/llms/volcengine/responses/transformation.py": 200, + "litellm/llms/voyage/embedding/transformation.py": 24, + "litellm/llms/voyage/embedding/transformation_contextual.py": 24, + "litellm/llms/voyage/embedding/transformation_multimodal.py": 54, + "litellm/llms/voyage/rerank/transformation.py": 38, + "litellm/llms/wandb/chat/transformation.py": 13, + "litellm/llms/watsonx/audio_transcription/transformation.py": 42, + "litellm/llms/watsonx/chat/handler.py": 27, + "litellm/llms/watsonx/chat/transformation.py": 43, + "litellm/llms/watsonx/common_utils.py": 101, + "litellm/llms/watsonx/completion/transformation.py": 117, + "litellm/llms/watsonx/embed/transformation.py": 22, + "litellm/llms/watsonx/passthrough/transformation.py": 3, + "litellm/llms/watsonx/rerank/transformation.py": 89, + "litellm/llms/xai/chat/transformation.py": 105, + "litellm/llms/xai/common_utils.py": 20, + "litellm/llms/xai/cost_calculator.py": 6, + "litellm/llms/xai/oauth.py": 84, + "litellm/llms/xai/realtime/handler.py": 1, + "litellm/llms/xai/responses/transformation.py": 70, + "litellm/llms/xinference/image_generation/transformation.py": 11, + "litellm/llms/you_com/search/transformation.py": 49, + "litellm/main.py": 3124, + "litellm/models/access_group.py": 2, + "litellm/models/base.py": 12, + "litellm/models/budget.py": 1, + "litellm/models/config.py": 2, + "litellm/models/credentials.py": 8, + "litellm/models/end_user.py": 6, + "litellm/models/managed_files.py": 21, + "litellm/models/mcp_server.py": 3, + "litellm/models/model.py": 18, + "litellm/models/object_permission.py": 1, + "litellm/models/organization.py": 4, + "litellm/models/organization_membership.py": 9, + "litellm/models/project.py": 1, + "litellm/models/skills.py": 1, + "litellm/models/spend_logs.py": 11, + "litellm/models/tag.py": 9, + "litellm/models/team.py": 41, + "litellm/models/team_membership.py": 2, + "litellm/models/user.py": 18, + "litellm/models/verification_token.py": 9, + "litellm/ocr/main.py": 80, + "litellm/passthrough/main.py": 100, + "litellm/passthrough/timeout_utils.py": 15, + "litellm/passthrough/utils.py": 41, + "litellm/proxy/_experimental/mcp_server/auth/token_exchange.py": 21, + "litellm/proxy/_experimental/mcp_server/auth/user_api_key_auth_mcp.py": 175, + "litellm/proxy/_experimental/mcp_server/byok_oauth_endpoints.py": 58, + "litellm/proxy/_experimental/mcp_server/cost_calculator.py": 7, + "litellm/proxy/_experimental/mcp_server/db.py": 428, + "litellm/proxy/_experimental/mcp_server/discoverable_endpoints.py": 192, + "litellm/proxy/_experimental/mcp_server/elicitation_handler.py": 33, + "litellm/proxy/_experimental/mcp_server/guardrail_translation/handler.py": 19, + "litellm/proxy/_experimental/mcp_server/mcp_debug.py": 10, + "litellm/proxy/_experimental/mcp_server/mcp_server_manager.py": 737, + "litellm/proxy/_experimental/mcp_server/oauth2_token_cache.py": 36, + "litellm/proxy/_experimental/mcp_server/oauth_utils.py": 21, + "litellm/proxy/_experimental/mcp_server/openapi_to_mcp_generator.py": 210, + "litellm/proxy/_experimental/mcp_server/rest_endpoints.py": 274, + "litellm/proxy/_experimental/mcp_server/sampling_handler.py": 469, + "litellm/proxy/_experimental/mcp_server/semantic_tool_filter.py": 77, + "litellm/proxy/_experimental/mcp_server/server.py": 727, + "litellm/proxy/_experimental/mcp_server/sse_transport.py": 36, + "litellm/proxy/_experimental/mcp_server/tool_registry.py": 6, + "litellm/proxy/_experimental/mcp_server/toolset_db.py": 44, + "litellm/proxy/_experimental/mcp_server/ui_session_utils.py": 11, + "litellm/proxy/_experimental/mcp_server/utils.py": 99, + "litellm/proxy/_lazy_features.py": 84, + "litellm/proxy/_lazy_openapi_snapshot.py": 71, + "litellm/proxy/_logging.py": 10, + "litellm/proxy/_types.py": 837, + "litellm/proxy/a2a/agent_card.py": 51, + "litellm/proxy/a2a/discovery.py": 18, + "litellm/proxy/a2a/endpoints.py": 12, + "litellm/proxy/agent_endpoints/a2a_endpoints.py": 328, + "litellm/proxy/agent_endpoints/a2a_routing.py": 11, + "litellm/proxy/agent_endpoints/agent_registry.py": 143, + "litellm/proxy/agent_endpoints/auth/agent_permission_handler.py": 36, + "litellm/proxy/agent_endpoints/databricks_oauth.py": 36, + "litellm/proxy/agent_endpoints/endpoints.py": 222, + "litellm/proxy/agent_endpoints/model_list_helpers.py": 7, + "litellm/proxy/analytics_endpoints/analytics_endpoints.py": 13, + "litellm/proxy/anthropic_endpoints/claude_code_endpoints/claude_code_marketplace.py": 221, + "litellm/proxy/anthropic_endpoints/endpoints.py": 77, + "litellm/proxy/anthropic_endpoints/skills_endpoints.py": 106, + "litellm/proxy/auth/auth_checks.py": 652, + "litellm/proxy/auth/auth_checks_organization.py": 7, + "litellm/proxy/auth/auth_exception_handler.py": 15, + "litellm/proxy/auth/auth_utils.py": 273, + "litellm/proxy/auth/handle_jwt.py": 375, + "litellm/proxy/auth/ip_address_utils.py": 17, + "litellm/proxy/auth/litellm_license.py": 62, + "litellm/proxy/auth/login_utils.py": 40, + "litellm/proxy/auth/model_checks.py": 52, + "litellm/proxy/auth/oauth2_check.py": 15, + "litellm/proxy/auth/oauth2_proxy_hook.py": 9, + "litellm/proxy/auth/rds_iam_token.py": 45, + "litellm/proxy/auth/route_checks.py": 67, + "litellm/proxy/auth/trusted_proxy_utils.py": 20, + "litellm/proxy/auth/user_api_key_auth.py": 590, + "litellm/proxy/batches_endpoints/endpoints.py": 344, + "litellm/proxy/caching_routes.py": 101, + "litellm/proxy/client/chat.py": 31, + "litellm/proxy/client/cli/commands/agents.py": 16, + "litellm/proxy/client/cli/commands/auth.py": 227, + "litellm/proxy/client/cli/commands/chat.py": 101, + "litellm/proxy/client/cli/commands/credentials.py": 39, + "litellm/proxy/client/cli/commands/http.py": 13, + "litellm/proxy/client/cli/commands/keys.py": 100, + "litellm/proxy/client/cli/commands/models.py": 150, + "litellm/proxy/client/cli/commands/teams.py": 66, + "litellm/proxy/client/cli/commands/users.py": 41, + "litellm/proxy/client/cli/interface.py": 87, + "litellm/proxy/client/cli/main.py": 15, + "litellm/proxy/client/credentials.py": 10, + "litellm/proxy/client/health.py": 3, + "litellm/proxy/client/http_client.py": 4, + "litellm/proxy/client/keys.py": 42, + "litellm/proxy/client/model_groups.py": 2, + "litellm/proxy/client/models.py": 33, + "litellm/proxy/client/teams.py": 3, + "litellm/proxy/client/users.py": 9, + "litellm/proxy/common_request_processing.py": 748, + "litellm/proxy/common_utils/admin_ui_utils.py": 9, + "litellm/proxy/common_utils/banner.py": 3, + "litellm/proxy/common_utils/cache_coordinator.py": 23, + "litellm/proxy/common_utils/cache_pydantic_utils.py": 15, + "litellm/proxy/common_utils/callback_utils.py": 254, + "litellm/proxy/common_utils/custom_openapi_spec.py": 119, + "litellm/proxy/common_utils/debug_utils.py": 354, + "litellm/proxy/common_utils/encrypt_decrypt_utils.py": 10, + "litellm/proxy/common_utils/expired_ui_session_key_cleanup_manager.py": 39, + "litellm/proxy/common_utils/get_routes.py": 45, + "litellm/proxy/common_utils/http_parsing_utils.py": 169, + "litellm/proxy/common_utils/key_rotation_manager.py": 61, + "litellm/proxy/common_utils/load_config_utils.py": 55, + "litellm/proxy/common_utils/openai_endpoint_utils.py": 15, + "litellm/proxy/common_utils/openapi_schema_compat.py": 24, + "litellm/proxy/common_utils/performance_utils.py": 60, + "litellm/proxy/common_utils/proxy_rate_limit_error.py": 20, + "litellm/proxy/common_utils/proxy_state.py": 3, + "litellm/proxy/common_utils/rbac_utils.py": 8, + "litellm/proxy/common_utils/reset_budget_job.py": 524, + "litellm/proxy/common_utils/swagger_utils.py": 10, + "litellm/proxy/common_utils/timezone_utils.py": 2, + "litellm/proxy/common_utils/user_api_key_cache.py": 50, + "litellm/proxy/compliance_checks.py": 34, + "litellm/proxy/config_management_endpoints/pass_through_endpoints.py": 4, + "litellm/proxy/container_endpoints/endpoints.py": 85, + "litellm/proxy/container_endpoints/handler_factory.py": 120, + "litellm/proxy/container_endpoints/ownership.py": 167, + "litellm/proxy/credential_endpoints/endpoints.py": 118, + "litellm/proxy/custom_hooks/custom_ui_sso_hook.py": 3, + "litellm/proxy/custom_prompt_management.py": 3, + "litellm/proxy/custom_sso.py": 2, + "litellm/proxy/db/check_migration.py": 1, + "litellm/proxy/db/create_views.py": 43, + "litellm/proxy/db/db_spend_update_writer.py": 344, + "litellm/proxy/db/db_transaction_queue/base_update_queue.py": 22, + "litellm/proxy/db/db_transaction_queue/daily_spend_update_queue.py": 22, + "litellm/proxy/db/db_transaction_queue/pod_lock_manager.py": 35, + "litellm/proxy/db/db_transaction_queue/redis_update_buffer.py": 140, + "litellm/proxy/db/db_transaction_queue/spend_log_cleanup.py": 24, + "litellm/proxy/db/db_transaction_queue/spend_logs_partition_manager.py": 19, + "litellm/proxy/db/db_transaction_queue/spend_update_queue.py": 25, + "litellm/proxy/db/dynamo_db.py": 21, + "litellm/proxy/db/exception_handler.py": 23, + "litellm/proxy/db/log_db_metrics.py": 49, + "litellm/proxy/db/prisma_client.py": 50, + "litellm/proxy/db/routing_prisma_wrapper.py": 46, + "litellm/proxy/db/spend_counter_reseed.py": 65, + "litellm/proxy/db/spend_log_tool_index.py": 83, + "litellm/proxy/db/tool_registry_writer.py": 145, + "litellm/proxy/discovery_endpoints/ui_discovery_endpoints.py": 17, + "litellm/proxy/example_config_yaml/custom_auth.py": 16, + "litellm/proxy/example_config_yaml/custom_callbacks.py": 30, + "litellm/proxy/example_config_yaml/custom_callbacks1.py": 1, + "litellm/proxy/example_config_yaml/custom_guardrail.py": 23, + "litellm/proxy/example_config_yaml/custom_handler.py": 2, + "litellm/proxy/example_config_yaml/pipeline_test_guardrails.py": 7, + "litellm/proxy/fine_tuning_endpoints/endpoints.py": 222, + "litellm/proxy/google_endpoints/agents_endpoints.py": 158, + "litellm/proxy/google_endpoints/endpoints.py": 131, + "litellm/proxy/guardrails/_content_utils.py": 118, + "litellm/proxy/guardrails/guardrail_endpoints.py": 607, + "litellm/proxy/guardrails/guardrail_helpers.py": 27, + "litellm/proxy/guardrails/guardrail_hooks/aim/__init__.py": 1, + "litellm/proxy/guardrails/guardrail_hooks/aim/aim.py": 133, + "litellm/proxy/guardrails/guardrail_hooks/akto/__init__.py": 7, + "litellm/proxy/guardrails/guardrail_hooks/akto/akto.py": 127, + "litellm/proxy/guardrails/guardrail_hooks/aporia_ai/__init__.py": 1, + "litellm/proxy/guardrails/guardrail_hooks/aporia_ai/aporia_ai.py": 66, + "litellm/proxy/guardrails/guardrail_hooks/azure/__init__.py": 5, + "litellm/proxy/guardrails/guardrail_hooks/azure/base.py": 18, + "litellm/proxy/guardrails/guardrail_hooks/azure/prompt_shield.py": 9, + "litellm/proxy/guardrails/guardrail_hooks/azure/text_moderation.py": 33, + "litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py": 271, + "litellm/proxy/guardrails/guardrail_hooks/block_code_execution/__init__.py": 14, + "litellm/proxy/guardrails/guardrail_hooks/block_code_execution/block_code_execution.py": 27, + "litellm/proxy/guardrails/guardrail_hooks/cato_networks/__init__.py": 2, + "litellm/proxy/guardrails/guardrail_hooks/cato_networks/cato_networks.py": 387, + "litellm/proxy/guardrails/guardrail_hooks/cisco_ai_defense/__init__.py": 49, + "litellm/proxy/guardrails/guardrail_hooks/cisco_ai_defense/cisco_ai_defense.py": 755, + "litellm/proxy/guardrails/guardrail_hooks/cisco_ai_defense/cisco_ai_defense_mcp.py": 322, + "litellm/proxy/guardrails/guardrail_hooks/crowdstrike_aidr/__init__.py": 2, + "litellm/proxy/guardrails/guardrail_hooks/crowdstrike_aidr/crowdstrike_aidr.py": 104, + "litellm/proxy/guardrails/guardrail_hooks/custom_code/__init__.py": 4, + "litellm/proxy/guardrails/guardrail_hooks/custom_code/custom_code_guardrail.py": 68, + "litellm/proxy/guardrails/guardrail_hooks/custom_code/primitives.py": 102, + "litellm/proxy/guardrails/guardrail_hooks/custom_code/sandbox.py": 34, + "litellm/proxy/guardrails/guardrail_hooks/custom_guardrail.py": 21, + "litellm/proxy/guardrails/guardrail_hooks/dynamoai/__init__.py": 1, + "litellm/proxy/guardrails/guardrail_hooks/dynamoai/dynamoai.py": 83, + "litellm/proxy/guardrails/guardrail_hooks/enkryptai/__init__.py": 2, + "litellm/proxy/guardrails/guardrail_hooks/enkryptai/enkryptai.py": 79, + "litellm/proxy/guardrails/guardrail_hooks/generic_guardrail_api/__init__.py": 6, + "litellm/proxy/guardrails/guardrail_hooks/generic_guardrail_api/generic_guardrail_api.py": 107, + "litellm/proxy/guardrails/guardrail_hooks/grayswan/__init__.py": 29, + "litellm/proxy/guardrails/guardrail_hooks/grayswan/grayswan.py": 151, + "litellm/proxy/guardrails/guardrail_hooks/guardrails_ai/__init__.py": 2, + "litellm/proxy/guardrails/guardrail_hooks/guardrails_ai/guardrails_ai.py": 59, + "litellm/proxy/guardrails/guardrail_hooks/hiddenlayer/__init__.py": 5, + "litellm/proxy/guardrails/guardrail_hooks/hiddenlayer/hiddenlayer.py": 190, + "litellm/proxy/guardrails/guardrail_hooks/ibm_guardrails/__init__.py": 18, + "litellm/proxy/guardrails/guardrail_hooks/ibm_guardrails/ibm_detector.py": 66, + "litellm/proxy/guardrails/guardrail_hooks/javelin/__init__.py": 3, + "litellm/proxy/guardrails/guardrail_hooks/javelin/javelin.py": 57, + "litellm/proxy/guardrails/guardrail_hooks/lakera_ai.py": 92, + "litellm/proxy/guardrails/guardrail_hooks/lakera_ai_v2.py": 84, + "litellm/proxy/guardrails/guardrail_hooks/lasso/__init__.py": 1, + "litellm/proxy/guardrails/guardrail_hooks/lasso/lasso.py": 370, + "litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/__init__.py": 8, + "litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/competitor_intent/airline.py": 56, + "litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/competitor_intent/base.py": 33, + "litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/content_filter.py": 274, + "litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/guardrail_benchmarks/test_eval.py": 190, + "litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/patterns.py": 61, + "litellm/proxy/guardrails/guardrail_hooks/llm_as_a_judge/__init__.py": 82, + "litellm/proxy/guardrails/guardrail_hooks/mcp_end_user_permission/__init__.py": 4, + "litellm/proxy/guardrails/guardrail_hooks/mcp_end_user_permission/mcp_end_user_permission.py": 29, + "litellm/proxy/guardrails/guardrail_hooks/mcp_jwt_signer/__init__.py": 27, + "litellm/proxy/guardrails/guardrail_hooks/mcp_jwt_signer/mcp_jwt_signer.py": 198, + "litellm/proxy/guardrails/guardrail_hooks/mcp_security/__init__.py": 2, + "litellm/proxy/guardrails/guardrail_hooks/mcp_security/mcp_security_guardrail.py": 21, + "litellm/proxy/guardrails/guardrail_hooks/microsoft_purview/__init__.py": 13, + "litellm/proxy/guardrails/guardrail_hooks/microsoft_purview/base.py": 160, + "litellm/proxy/guardrails/guardrail_hooks/microsoft_purview/purview_dlp.py": 131, + "litellm/proxy/guardrails/guardrail_hooks/model_armor/__init__.py": 1, + "litellm/proxy/guardrails/guardrail_hooks/model_armor/model_armor.py": 195, + "litellm/proxy/guardrails/guardrail_hooks/noma/__init__.py": 6, + "litellm/proxy/guardrails/guardrail_hooks/noma/noma.py": 201, + "litellm/proxy/guardrails/guardrail_hooks/noma/noma_v2.py": 69, + "litellm/proxy/guardrails/guardrail_hooks/onyx/__init__.py": 1, + "litellm/proxy/guardrails/guardrail_hooks/onyx/onyx.py": 23, + "litellm/proxy/guardrails/guardrail_hooks/openai/__init__.py": 17, + "litellm/proxy/guardrails/guardrail_hooks/openai/moderations.py": 48, + "litellm/proxy/guardrails/guardrail_hooks/ovalix/__init__.py": 11, + "litellm/proxy/guardrails/guardrail_hooks/ovalix/ovalix.py": 34, + "litellm/proxy/guardrails/guardrail_hooks/pangea/__init__.py": 1, + "litellm/proxy/guardrails/guardrail_hooks/pangea/pangea.py": 83, + "litellm/proxy/guardrails/guardrail_hooks/panw_prisma_airs/__init__.py": 3, + "litellm/proxy/guardrails/guardrail_hooks/panw_prisma_airs/panw_prisma_airs.py": 655, + "litellm/proxy/guardrails/guardrail_hooks/pillar/__init__.py": 24, + "litellm/proxy/guardrails/guardrail_hooks/pillar/pillar.py": 179, + "litellm/proxy/guardrails/guardrail_hooks/presidio.py": 462, + "litellm/proxy/guardrails/guardrail_hooks/prompt_security/__init__.py": 1, + "litellm/proxy/guardrails/guardrail_hooks/prompt_security/prompt_security.py": 259, + "litellm/proxy/guardrails/guardrail_hooks/promptguard/__init__.py": 1, + "litellm/proxy/guardrails/guardrail_hooks/promptguard/promptguard.py": 39, + "litellm/proxy/guardrails/guardrail_hooks/qohash/__init__.py": 3, + "litellm/proxy/guardrails/guardrail_hooks/qohash/qohash.py": 14, + "litellm/proxy/guardrails/guardrail_hooks/qualifire/__init__.py": 10, + "litellm/proxy/guardrails/guardrail_hooks/qualifire/qualifire.py": 127, + "litellm/proxy/guardrails/guardrail_hooks/rubrik/__init__.py": 1, + "litellm/proxy/guardrails/guardrail_hooks/semantic_guard/__init__.py": 7, + "litellm/proxy/guardrails/guardrail_hooks/semantic_guard/route_loader.py": 29, + "litellm/proxy/guardrails/guardrail_hooks/semantic_guard/semantic_guard.py": 62, + "litellm/proxy/guardrails/guardrail_hooks/tool_permission.py": 208, + "litellm/proxy/guardrails/guardrail_hooks/tool_policy/__init__.py": 1, + "litellm/proxy/guardrails/guardrail_hooks/tool_policy/tool_policy_guardrail.py": 73, + "litellm/proxy/guardrails/guardrail_hooks/unified_guardrail/unified_guardrail.py": 144, + "litellm/proxy/guardrails/guardrail_hooks/vigil_guard/__init__.py": 1, + "litellm/proxy/guardrails/guardrail_hooks/vigil_guard/vigil_guard.py": 118, + "litellm/proxy/guardrails/guardrail_hooks/xecguard/__init__.py": 1, + "litellm/proxy/guardrails/guardrail_hooks/xecguard/xecguard.py": 221, + "litellm/proxy/guardrails/guardrail_hooks/zscaler_ai_guard/__init__.py": 1, + "litellm/proxy/guardrails/guardrail_hooks/zscaler_ai_guard/zscaler_ai_guard.py": 173, + "litellm/proxy/guardrails/guardrail_initializers.py": 77, + "litellm/proxy/guardrails/guardrail_registry.py": 209, + "litellm/proxy/guardrails/init_guardrails.py": 18, + "litellm/proxy/guardrails/tool_name_extraction.py": 30, + "litellm/proxy/guardrails/usage_endpoints.py": 454, + "litellm/proxy/guardrails/usage_tracking.py": 85, + "litellm/proxy/health_check.py": 302, + "litellm/proxy/health_check_utils/shared_health_check_manager.py": 85, + "litellm/proxy/health_endpoints/_health_endpoints.py": 686, + "litellm/proxy/hooks/azure_content_safety.py": 80, + "litellm/proxy/hooks/batch_rate_limiter.py": 111, + "litellm/proxy/hooks/batch_redis_get.py": 50, + "litellm/proxy/hooks/cache_control_check.py": 13, + "litellm/proxy/hooks/dynamic_rate_limiter.py": 42, + "litellm/proxy/hooks/dynamic_rate_limiter_v3.py": 105, + "litellm/proxy/hooks/key_management_event_hooks.py": 113, + "litellm/proxy/hooks/litellm_skills/main.py": 389, + "litellm/proxy/hooks/max_budget_limiter.py": 5, + "litellm/proxy/hooks/max_budget_per_session_limiter.py": 73, + "litellm/proxy/hooks/max_iterations_limiter.py": 37, + "litellm/proxy/hooks/mcp_semantic_filter/hook.py": 103, + "litellm/proxy/hooks/model_max_budget_limiter.py": 105, + "litellm/proxy/hooks/parallel_request_limiter.py": 383, + "litellm/proxy/hooks/parallel_request_limiter_v3.py": 625, + "litellm/proxy/hooks/prompt_injection_detection.py": 23, + "litellm/proxy/hooks/proxy_track_cost_callback.py": 198, + "litellm/proxy/hooks/rate_limiter_utils.py": 14, + "litellm/proxy/hooks/responses_id_security.py": 57, + "litellm/proxy/hooks/sensitive_data_routing.py": 30, + "litellm/proxy/hooks/user_management_event_hooks.py": 18, + "litellm/proxy/image_endpoints/endpoints.py": 125, + "litellm/proxy/litellm_pre_call_utils.py": 910, + "litellm/proxy/management_endpoints/access_group_endpoints.py": 277, + "litellm/proxy/management_endpoints/budget_management_endpoints.py": 69, + "litellm/proxy/management_endpoints/cache_settings_endpoints.py": 154, + "litellm/proxy/management_endpoints/callback_management_endpoints.py": 16, + "litellm/proxy/management_endpoints/common_daily_activity.py": 446, + "litellm/proxy/management_endpoints/common_utils.py": 147, + "litellm/proxy/management_endpoints/compliance_endpoints.py": 8, + "litellm/proxy/management_endpoints/config_override_endpoints.py": 164, + "litellm/proxy/management_endpoints/cost_tracking_settings.py": 104, + "litellm/proxy/management_endpoints/customer_endpoints.py": 198, + "litellm/proxy/management_endpoints/fallback_management_endpoints.py": 50, + "litellm/proxy/management_endpoints/internal_user_endpoints.py": 720, + "litellm/proxy/management_endpoints/jwt_key_mapping_endpoints.py": 80, + "litellm/proxy/management_endpoints/key_management_endpoints.py": 1556, + "litellm/proxy/management_endpoints/mcp_management_endpoints.py": 613, + "litellm/proxy/management_endpoints/model_access_group_management_endpoints.py": 163, + "litellm/proxy/management_endpoints/model_management_endpoints.py": 386, + "litellm/proxy/management_endpoints/organization_endpoints.py": 322, + "litellm/proxy/management_endpoints/policy_endpoints/ai_policy_suggester.py": 32, + "litellm/proxy/management_endpoints/policy_endpoints/endpoints.py": 286, + "litellm/proxy/management_endpoints/router_settings_endpoints.py": 37, + "litellm/proxy/management_endpoints/scim/scim_transformations.py": 30, + "litellm/proxy/management_endpoints/scim/scim_v2.py": 640, + "litellm/proxy/management_endpoints/sso_helper_utils.py": 1, + "litellm/proxy/management_endpoints/tag_management_endpoints.py": 207, + "litellm/proxy/management_endpoints/team_callback_endpoints.py": 127, + "litellm/proxy/management_endpoints/team_endpoints.py": 1235, + "litellm/proxy/management_endpoints/tool_management_endpoints.py": 172, + "litellm/proxy/management_endpoints/types.py": 7, + "litellm/proxy/management_endpoints/ui_sso.py": 947, + "litellm/proxy/management_endpoints/usage_endpoints/ai_usage_chat.py": 158, + "litellm/proxy/management_endpoints/usage_endpoints/endpoints.py": 7, + "litellm/proxy/management_endpoints/user_agent_analytics_endpoints.py": 176, + "litellm/proxy/management_endpoints/workflow_management_endpoints.py": 143, + "litellm/proxy/management_helpers/audit_logs.py": 30, + "litellm/proxy/management_helpers/object_permission_utils.py": 145, + "litellm/proxy/management_helpers/team_member_permission_checks.py": 4, + "litellm/proxy/management_helpers/user_invitation.py": 12, + "litellm/proxy/management_helpers/utils.py": 277, + "litellm/proxy/mcp_tools.py": 4, + "litellm/proxy/memory/memory_endpoints.py": 178, + "litellm/proxy/middleware/in_flight_requests_middleware.py": 12, + "litellm/proxy/middleware/prometheus_auth_middleware.py": 26, + "litellm/proxy/middleware/request_size_limit_middleware.py": 29, + "litellm/proxy/ocr_endpoints/endpoints.py": 47, + "litellm/proxy/openai_evals_endpoints/endpoints.py": 265, + "litellm/proxy/openai_files_endpoints/common_utils.py": 205, + "litellm/proxy/openai_files_endpoints/file_content_streaming_handler.py": 35, + "litellm/proxy/openai_files_endpoints/files_endpoints.py": 427, + "litellm/proxy/openai_files_endpoints/storage_backend_service.py": 22, + "litellm/proxy/pass_through_endpoints/jsonpath_extractor.py": 13, + "litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py": 375, + "litellm/proxy/pass_through_endpoints/llm_provider_handlers/anthropic_passthrough_logging_handler.py": 164, + "litellm/proxy/pass_through_endpoints/llm_provider_handlers/assembly_passthrough_logging_handler.py": 45, + "litellm/proxy/pass_through_endpoints/llm_provider_handlers/base_passthrough_logging_handler.py": 32, + "litellm/proxy/pass_through_endpoints/llm_provider_handlers/cohere_passthrough_logging_handler.py": 39, + "litellm/proxy/pass_through_endpoints/llm_provider_handlers/cursor_passthrough_logging_handler.py": 19, + "litellm/proxy/pass_through_endpoints/llm_provider_handlers/gemini_passthrough_logging_handler.py": 43, + "litellm/proxy/pass_through_endpoints/llm_provider_handlers/openai_passthrough_logging_handler.py": 114, + "litellm/proxy/pass_through_endpoints/llm_provider_handlers/vertex_ai_live_passthrough_logging_handler.py": 138, + "litellm/proxy/pass_through_endpoints/llm_provider_handlers/vertex_passthrough_logging_handler.py": 163, + "litellm/proxy/pass_through_endpoints/managed_id_codec.py": 3, + "litellm/proxy/pass_through_endpoints/managed_id_rewriter.py": 312, + "litellm/proxy/pass_through_endpoints/pass_through_endpoints.py": 910, + "litellm/proxy/pass_through_endpoints/passthrough_endpoint_router.py": 14, + "litellm/proxy/pass_through_endpoints/passthrough_guardrails.py": 27, + "litellm/proxy/pass_through_endpoints/streaming_handler.py": 35, + "litellm/proxy/pass_through_endpoints/success_handler.py": 113, + "litellm/proxy/policy_engine/attachment_registry.py": 83, + "litellm/proxy/policy_engine/init_policies.py": 71, + "litellm/proxy/policy_engine/pipeline_executor.py": 55, + "litellm/proxy/policy_engine/policy_endpoints.py": 83, + "litellm/proxy/policy_engine/policy_registry.py": 257, + "litellm/proxy/policy_engine/policy_resolve_endpoints.py": 187, + "litellm/proxy/policy_engine/policy_validator.py": 13, + "litellm/proxy/post_call_rules.py": 6, + "litellm/proxy/prisma_migration.py": 2, + "litellm/proxy/prometheus_cleanup.py": 1, + "litellm/proxy/prompts/init_prompts.py": 3, + "litellm/proxy/prompts/prompt_endpoints.py": 180, + "litellm/proxy/prompts/prompt_registry.py": 59, + "litellm/proxy/proxy_cli.py": 283, + "litellm/proxy/proxy_server.py": 5094, + "litellm/proxy/public_endpoints/public_endpoints.py": 164, + "litellm/proxy/rag_endpoints/endpoints.py": 247, + "litellm/proxy/realtime_endpoints/endpoints.py": 243, + "litellm/proxy/rerank_endpoints/endpoints.py": 53, + "litellm/proxy/response_api_endpoints/endpoints.py": 322, + "litellm/proxy/response_polling/background_streaming.py": 161, + "litellm/proxy/response_polling/polling_handler.py": 82, + "litellm/proxy/route_llm_request.py": 138, + "litellm/proxy/search_endpoints/endpoints.py": 59, + "litellm/proxy/search_endpoints/search_tool_management.py": 92, + "litellm/proxy/search_endpoints/search_tool_registry.py": 53, + "litellm/proxy/shutdown/graceful_shutdown_manager.py": 1, + "litellm/proxy/spend_tracking/budget_reservation.py": 245, + "litellm/proxy/spend_tracking/cloudzero_endpoints.py": 121, + "litellm/proxy/spend_tracking/cold_storage_handler.py": 3, + "litellm/proxy/spend_tracking/spend_log_error_logger.py": 3, + "litellm/proxy/spend_tracking/spend_management_endpoints.py": 978, + "litellm/proxy/spend_tracking/spend_tracking_utils.py": 274, + "litellm/proxy/spend_tracking/vantage_endpoints.py": 147, + "litellm/proxy/types_utils/utils.py": 11, + "litellm/proxy/ui_crud_endpoints/proxy_setting_endpoints.py": 481, + "litellm/proxy/utils.py": 1708, + "litellm/proxy/vector_store_endpoints/endpoints.py": 163, + "litellm/proxy/vector_store_endpoints/management_endpoints.py": 248, + "litellm/proxy/vector_store_endpoints/utils.py": 37, + "litellm/proxy/vector_store_files_endpoints/endpoints.py": 288, + "litellm/proxy/vertex_ai_endpoints/langfuse_endpoints.py": 37, + "litellm/proxy/video_endpoints/endpoints.py": 238, + "litellm/proxy/video_endpoints/utils.py": 27, + "litellm/proxy_auth/credentials.py": 15, + "litellm/rag/__init__.py": 7, + "litellm/rag/ingestion/base_ingestion.py": 64, + "litellm/rag/ingestion/bedrock_ingestion.py": 261, + "litellm/rag/ingestion/file_parsers/pdf_parser.py": 5, + "litellm/rag/ingestion/gemini_ingestion.py": 64, + "litellm/rag/ingestion/openai_ingestion.py": 31, + "litellm/rag/ingestion/s3_vectors_ingestion.py": 220, + "litellm/rag/ingestion/vertex_ai_ingestion.py": 134, + "litellm/rag/main.py": 108, + "litellm/rag/rag_query.py": 51, + "litellm/realtime_api/main.py": 163, + "litellm/repositories/base_repository.py": 54, + "litellm/repositories/budget_repository.py": 29, + "litellm/repositories/config_repository.py": 94, + "litellm/repositories/credentials_repository.py": 28, + "litellm/repositories/model_repository.py": 77, + "litellm/repositories/object_permission_repository.py": 29, + "litellm/repositories/organization_repository.py": 28, + "litellm/repositories/project_repository.py": 42, + "litellm/repositories/table_repositories.py": 7, + "litellm/repositories/team_repository.py": 163, + "litellm/repositories/user_repository.py": 81, + "litellm/repositories/verification_token_repository.py": 116, + "litellm/rerank_api/main.py": 129, + "litellm/rerank_api/rerank_utils.py": 13, + "litellm/responses/file_search/emulated_handler.py": 280, + "litellm/responses/litellm_completion_transformation/handler.py": 28, + "litellm/responses/litellm_completion_transformation/session_handler.py": 43, + "litellm/responses/litellm_completion_transformation/streaming_iterator.py": 152, + "litellm/responses/litellm_completion_transformation/transformation.py": 555, + "litellm/responses/main.py": 567, + "litellm/responses/mcp/chat_completions_handler.py": 365, + "litellm/responses/mcp/litellm_proxy_mcp_handler.py": 416, + "litellm/responses/mcp/mcp_streaming_iterator.py": 202, + "litellm/responses/sse_output_recovery.py": 48, + "litellm/responses/streaming_iterator.py": 987, + "litellm/responses/utils.py": 295, + "litellm/router.py": 4334, + "litellm/router_strategy/adaptive_router/adaptive_router.py": 48, + "litellm/router_strategy/adaptive_router/bandit.py": 3, + "litellm/router_strategy/adaptive_router/hooks.py": 143, + "litellm/router_strategy/adaptive_router/signals.py": 40, + "litellm/router_strategy/adaptive_router/update_queue.py": 30, + "litellm/router_strategy/auto_router/auto_router.py": 25, + "litellm/router_strategy/auto_router/litellm_encoder.py": 18, + "litellm/router_strategy/base_routing_strategy.py": 112, + "litellm/router_strategy/budget_limiter.py": 318, + "litellm/router_strategy/complexity_router/complexity_router.py": 59, + "litellm/router_strategy/complexity_router/evals/eval_complexity_router.py": 21, + "litellm/router_strategy/least_busy.py": 150, + "litellm/router_strategy/lowest_cost.py": 200, + "litellm/router_strategy/lowest_latency.py": 395, + "litellm/router_strategy/lowest_tpm_rpm.py": 159, + "litellm/router_strategy/lowest_tpm_rpm_v2.py": 341, + "litellm/router_strategy/quality_router/config.py": 1, + "litellm/router_strategy/quality_router/quality_router.py": 76, + "litellm/router_strategy/simple_shuffle.py": 29, + "litellm/router_strategy/tag_based_routing.py": 80, + "litellm/router_utils/add_retry_fallback_headers.py": 21, + "litellm/router_utils/batch_utils.py": 26, + "litellm/router_utils/client_initalization_utils.py": 11, + "litellm/router_utils/clientside_credential_handler.py": 11, + "litellm/router_utils/common_utils.py": 63, + "litellm/router_utils/cooldown_cache.py": 42, + "litellm/router_utils/cooldown_callbacks.py": 22, + "litellm/router_utils/cooldown_handlers.py": 26, + "litellm/router_utils/fallback_event_handlers.py": 56, + "litellm/router_utils/get_retry_from_policy.py": 3, + "litellm/router_utils/handle_error.py": 21, + "litellm/router_utils/health_state_cache.py": 22, + "litellm/router_utils/pattern_match_deployments.py": 41, + "litellm/router_utils/pre_call_checks/deployment_affinity_check.py": 112, + "litellm/router_utils/pre_call_checks/encrypted_content_affinity_check.py": 86, + "litellm/router_utils/pre_call_checks/model_rate_limit_check.py": 113, + "litellm/router_utils/pre_call_checks/prompt_caching_deployment_check.py": 35, + "litellm/router_utils/pre_call_checks/responses_api_deployment_check.py": 13, + "litellm/router_utils/prompt_caching_cache.py": 44, + "litellm/router_utils/router_callbacks/track_deployment_metrics.py": 2, + "litellm/router_utils/search_api_router.py": 59, + "litellm/scheduler.py": 54, + "litellm/search/cost_calculator.py": 16, + "litellm/search/main.py": 57, + "litellm/secret_managers/aws_secret_manager.py": 28, + "litellm/secret_managers/aws_secret_manager_v2.py": 132, + "litellm/secret_managers/base_secret_manager.py": 11, + "litellm/secret_managers/custom_secret_manager_loader.py": 19, + "litellm/secret_managers/cyberark_secret_manager.py": 79, + "litellm/secret_managers/get_azure_ad_token_provider.py": 4, + "litellm/secret_managers/google_kms.py": 4, + "litellm/secret_managers/google_secret_manager.py": 18, + "litellm/secret_managers/hashicorp_secret_manager.py": 218, + "litellm/secret_managers/main.py": 37, + "litellm/secret_managers/secret_manager_handler.py": 45, + "litellm/setup_wizard.py": 108, + "litellm/skills/main.py": 215, + "litellm/timeout.py": 68, + "litellm/types/access_group.py": 10, + "litellm/types/adapter.py": 2, + "litellm/types/agents.py": 117, + "litellm/types/caching.py": 21, + "litellm/types/completion.py": 33, + "litellm/types/compression.py": 7, + "litellm/types/containers/main.py": 96, + "litellm/types/embedding.py": 1, + "litellm/types/files.py": 12, + "litellm/types/google_genai/main.py": 7, + "litellm/types/guardrails.py": 80, + "litellm/types/images/main.py": 12, + "litellm/types/integrations/anthropic_cache_control_hook.py": 6, + "litellm/types/integrations/argilla.py": 5, + "litellm/types/integrations/arize.py": 4, + "litellm/types/integrations/arize_phoenix.py": 2, + "litellm/types/integrations/base_health_check.py": 2, + "litellm/types/integrations/compression_interception.py": 5, + "litellm/types/integrations/custom_logger.py": 3, + "litellm/types/integrations/datadog.py": 6, + "litellm/types/integrations/datadog_cost_management.py": 7, + "litellm/types/integrations/datadog_llm_obs.py": 39, + "litellm/types/integrations/datadog_metrics.py": 8, + "litellm/types/integrations/gcs_bucket.py": 6, + "litellm/types/integrations/langfuse.py": 8, + "litellm/types/integrations/langfuse_otel.py": 2, + "litellm/types/integrations/langsmith.py": 12, + "litellm/types/integrations/pagerduty.py": 31, + "litellm/types/integrations/posthog.py": 5, + "litellm/types/integrations/prometheus.py": 60, + "litellm/types/integrations/rag/bedrock_knowledgebase.py": 47, + "litellm/types/integrations/s3_v2.py": 3, + "litellm/types/integrations/slack_alerting.py": 22, + "litellm/types/integrations/websearch_interception.py": 2, + "litellm/types/interactions/generated.py": 77, + "litellm/types/litellm_core_utils/streaming_chunk_builder_utils.py": 8, + "litellm/types/llms/aiml.py": 10, + "litellm/types/llms/anthropic.py": 258, + "litellm/types/llms/anthropic_messages/anthropic_response.py": 26, + "litellm/types/llms/anthropic_skills.py": 21, + "litellm/types/llms/azure_ai.py": 7, + "litellm/types/llms/base.py": 29, + "litellm/types/llms/bedrock.py": 402, + "litellm/types/llms/bedrock_agentcore.py": 28, + "litellm/types/llms/bedrock_invoke_agents.py": 46, + "litellm/types/llms/cohere.py": 46, + "litellm/types/llms/custom_http.py": 1, + "litellm/types/llms/custom_llm.py": 2, + "litellm/types/llms/databricks.py": 36, + "litellm/types/llms/gemini.py": 64, + "litellm/types/llms/langgraph.py": 19, + "litellm/types/llms/mistral.py": 9, + "litellm/types/llms/oci.py": 62, + "litellm/types/llms/ollama.py": 12, + "litellm/types/llms/openai.py": 750, + "litellm/types/llms/openai_evals.py": 68, + "litellm/types/llms/openrouter.py": 3, + "litellm/types/llms/recraft.py": 21, + "litellm/types/llms/rerank.py": 3, + "litellm/types/llms/stability.py": 60, + "litellm/types/llms/vertex_ai.py": 347, + "litellm/types/llms/vertex_ai_text_to_speech.py": 9, + "litellm/types/llms/watsonx.py": 14, + "litellm/types/llms/xai.py": 12, + "litellm/types/management_endpoints/cache_settings_endpoints.py": 5, + "litellm/types/management_endpoints/router_settings_endpoints.py": 23, + "litellm/types/mcp.py": 34, + "litellm/types/mcp_server/mcp_server_manager.py": 3, + "litellm/types/mcp_server/mcp_toolset.py": 6, + "litellm/types/mcp_server/tool_registry.py": 10, + "litellm/types/memory_management.py": 9, + "litellm/types/passthrough_endpoints/pass_through_endpoints.py": 5, + "litellm/types/prompts/init_prompts.py": 19, + "litellm/types/proxy/claude_code_endpoints.py": 25, + "litellm/types/proxy/cloudzero_endpoints.py": 6, + "litellm/types/proxy/compliance_endpoints.py": 8, + "litellm/types/proxy/control_plane_endpoints.py": 3, + "litellm/types/proxy/discovery_endpoints/ui_discovery_endpoints.py": 5, + "litellm/types/proxy/guardrails/guardrail_hooks/azure/azure_prompt_shield.py": 5, + "litellm/types/proxy/guardrails/guardrail_hooks/azure/azure_text_moderation.py": 12, + "litellm/types/proxy/guardrails/guardrail_hooks/base.py": 2, + "litellm/types/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py": 60, + "litellm/types/proxy/guardrails/guardrail_hooks/block_code_execution.py": 12, + "litellm/types/proxy/guardrails/guardrail_hooks/cisco_ai_defense.py": 5, + "litellm/types/proxy/guardrails/guardrail_hooks/dynamoai.py": 31, + "litellm/types/proxy/guardrails/guardrail_hooks/enkryptai.py": 29, + "litellm/types/proxy/guardrails/guardrail_hooks/generic_guardrail_api.py": 20, + "litellm/types/proxy/guardrails/guardrail_hooks/ibm/ibm_detector.py": 15, + "litellm/types/proxy/guardrails/guardrail_hooks/javelin.py": 34, + "litellm/types/proxy/guardrails/guardrail_hooks/lakera_ai_v2.py": 24, + "litellm/types/proxy/guardrails/guardrail_hooks/litellm_content_filter.py": 36, + "litellm/types/proxy/guardrails/guardrail_hooks/presidio.py": 10, + "litellm/types/proxy/guardrails/guardrail_hooks/tool_permission.py": 22, + "litellm/types/proxy/guardrails/guardrail_hooks/xecguard.py": 2, + "litellm/types/proxy/litellm_pre_call_utils.py": 2, + "litellm/types/proxy/management_endpoints/common_daily_activity.py": 11, + "litellm/types/proxy/management_endpoints/config_overrides.py": 3, + "litellm/types/proxy/management_endpoints/internal_user_endpoints.py": 27, + "litellm/types/proxy/management_endpoints/key_management_endpoints.py": 11, + "litellm/types/proxy/management_endpoints/model_management_endpoints.py": 11, + "litellm/types/proxy/management_endpoints/scim_v2.py": 45, + "litellm/types/proxy/management_endpoints/team_endpoints.py": 20, + "litellm/types/proxy/management_endpoints/ui_sso.py": 16, + "litellm/types/proxy/policy_engine/pipeline_types.py": 8, + "litellm/types/proxy/policy_engine/policy_types.py": 1, + "litellm/types/proxy/policy_engine/resolver_types.py": 30, + "litellm/types/proxy/policy_engine/validation_types.py": 5, + "litellm/types/proxy/prompt_endpoints.py": 1, + "litellm/types/proxy/public_endpoints/public_endpoints.py": 22, + "litellm/types/proxy/ui_sso.py": 12, + "litellm/types/proxy/vantage_endpoints.py": 6, + "litellm/types/rag.py": 78, + "litellm/types/realtime.py": 28, + "litellm/types/rerank.py": 29, + "litellm/types/responses/main.py": 49, + "litellm/types/router.py": 191, + "litellm/types/search.py": 21, + "litellm/types/services.py": 13, + "litellm/types/tag_management.py": 5, + "litellm/types/tool_management.py": 27, + "litellm/types/utils.py": 1084, + "litellm/types/vector_store_files.py": 38, + "litellm/types/vector_stores.py": 118, + "litellm/types/videos/main.py": 59, + "litellm/types/videos/utils.py": 5, + "litellm/utils.py": 3321, + "litellm/vector_store_files/main.py": 244, + "litellm/vector_store_files/utils.py": 17, + "litellm/vector_stores/main.py": 268, + "litellm/vector_stores/utils.py": 19, + "litellm/vector_stores/vector_store_registry.py": 94, + "litellm/videos/main.py": 513, + "litellm/videos/utils.py": 54 +} diff --git a/scripts/check_any_discipline.py b/scripts/check_any_discipline.py index 4d1552d6014..664bf984eed 100644 --- a/scripts/check_any_discipline.py +++ b/scripts/check_any_discipline.py @@ -142,6 +142,12 @@ _HARMLESS_ANY = frozenset( if kind is not None ) +# Depth cap for the recursive "contains Any" walk. `seen` stops cycles between +# identical type objects, but a genuinely deep nesting (or a recursive type whose +# `get_proper_type` yields a fresh object each step) can still blow Python's stack. +# Real Any-bearing types are shallow, so treat anything past this as Any-free. +_MAX_TYPE_DEPTH = 100 + # AST attributes that point OUTSIDE the syntactic subtree (a RefExpr's resolved # definition, a node's TypeInfo). Skipping exactly these two makes a generic # child-walk equivalent to mypy's TraverserVisitor -- validated to the node @@ -170,8 +176,10 @@ def cap_for(baseline: int) -> int: # --------------------------------------------------------------------------- # -def contains_any(t: Type, _seen: set[int] | None = None) -> bool: +def contains_any(t: Type, _seen: set[int] | None = None, _depth: int = 0) -> bool: """True if a *value* of type ``t`` carries `Any` anywhere meaningful.""" + if _depth > _MAX_TYPE_DEPTH: + return False seen = _seen if _seen is not None else set() p = get_proper_type(t) if id(p) in seen: @@ -185,11 +193,11 @@ def contains_any(t: Type, _seen: set[int] | None = None) -> bool: if isinstance(p, AnyType): return p.type_of_any not in _HARMLESS_ANY if isinstance(p, UnionType): - return any(contains_any(item, seen) for item in p.items) + return any(contains_any(item, seen, _depth + 1) for item in p.items) if isinstance(p, Instance): - return any(contains_any(arg, seen) for arg in p.args) + return any(contains_any(arg, seen, _depth + 1) for arg in p.args) if isinstance(p, TupleType): - return any(contains_any(item, seen) for item in p.items) + return any(contains_any(item, seen, _depth + 1) for item in p.items) return False diff --git a/tests/test_litellm/test_check_any_discipline.py b/tests/test_litellm/test_check_any_discipline.py index a8523104400..800b7712011 100644 --- a/tests/test_litellm/test_check_any_discipline.py +++ b/tests/test_litellm/test_check_any_discipline.py @@ -81,3 +81,22 @@ def test_new_file_with_any_breaches_against_a_zero_budget(): def test_clean_file_never_breaches(): assert mod.budget_breaches({}, {"litellm/a.py": 100}) == [] + + +# --------------------------------------------------------------------------- # +# contains_any: the depth cap keeps a pathologically deep type from blowing the +# stack (some litellm types recurse past Python's default limit otherwise) +# --------------------------------------------------------------------------- # + + +def test_depth_cap_bails_out_past_the_limit(): + any_t = mod.AnyType(mod.TypeOfAny.explicit) + assert mod.contains_any(any_t) is True + assert mod.contains_any(any_t, _depth=mod._MAX_TYPE_DEPTH + 1) is False + + +def test_any_nested_in_a_union_is_still_found(): + from mypy.types import NoneType + + union = mod.UnionType([NoneType(), mod.AnyType(mod.TypeOfAny.explicit)]) + assert mod.contains_any(union) is True