litellm/tests/local_testing
Krish Dholakia e1f7bcb47d
Fix VertexAI Credential Caching issue (#9756)
* refactor(vertex_llm_base.py): Prevent credential misrouting for projects

Fixes https://github.com/BerriAI/litellm/issues/7904

* fix: passing unit tests

* fix(vertex_llm_base.py): common auth logic across sync + async vertex ai calls

prevents credential caching issue across both flows

* test: fix test

* fix(vertex_llm_base.py): handle project id in default cause

* fix(factory.py): don't pass cache control if not set

bedrock invoke does not support this

* test: fix test

* fix(vertex_llm_base.py): add .exception message in load_auth

* fix: fix ruff error
2025-04-04 16:38:08 -07:00
..
.litellm_cache
example_config_yaml
test_configs
test_model_response_typing
adroit-crow-413218-bc47f303efc9.json vertex testing use pathrise-convert-1606954137718 2025-01-05 14:00:17 -08:00
azure_fine_tune.jsonl
batch_job_results_furniture.jsonl
cache_unit_tests.py (code refactor) - Add BaseRerankConfig. Use BaseRerankConfig for cohere/rerank and azure_ai/rerank (#7319) 2024-12-19 17:03:34 -08:00
conftest.py
create_mock_standard_logging_payload.py [Bug Fix]: Errors in LiteLLM When Using Embeddings Model with Usage-Based Routing (#7390) 2024-12-23 17:42:24 -08:00
data_map.txt
eagle.wav
gettysburg.wav
large_text.py
messages_with_counts.py
model_cost.json
openai_batch_completions_router.jsonl
openai_batch_completions.jsonl
speech_vertex.mp3
stream_chunk_testdata.py
test_acompletion_fallbacks.py (core sdk fix) - fix fallbacks stuck in infinite loop (#7751) 2025-01-13 19:34:34 -08:00
test_acompletion.py Complete o3 model support (#8183) 2025-02-02 22:36:37 -08:00
test_acooldowns_router.py
test_add_function_to_prompt.py
test_add_update_models.py Allow team admins to add/update/delete models on UI + show api base and model id on request logs (#9572) 2025-03-27 12:06:31 -07:00
test_aim_guardrails.py Support post-call guards for stream and non-stream responses 2025-03-13 08:53:54 +02:00
test_alangfuse.py all e2e langfuse tests now run on test_langfuse_e2e_test.p 2025-02-04 21:22:51 -08:00
test_amazing_vertex_completion.py Fix VertexAI Credential Caching issue (#9756) 2025-04-04 16:38:08 -07:00
test_anthropic_prompt_caching.py LiteLLM Minor Fixes & Improvements (01/16/2025) - p2 (#7828) 2025-02-02 23:17:50 -08:00
test_arize_ai.py Merge branch 'main' into litellm_arize_dynamic_logging 2025-03-18 22:13:35 -07:00
test_arize_phoenix.py Litellm contributor prs 02 24 2025 (#8775) 2025-02-24 18:55:48 -08:00
test_assistants.py test_create_delete_assistants 2025-03-25 22:08:06 -07:00
test_async_fn.py
test_audio_speech.py Litellm dev 2024 12 20 p1 (#7335) 2024-12-20 21:22:31 -08:00
test_auth_utils.py Ollama ssl verify = False + Spend Logs reliability fixes (#7931) 2025-01-23 23:05:41 -08:00
test_azure_content_safety.py
test_azure_openai.py Litellm dev 01 20 2025 p1 (#7884) 2025-01-20 21:45:48 -08:00
test_azure_perf.py
test_bad_params.py test_completion_invalid_param_cohere 2025-04-02 06:49:11 -07:00
test_basic_python_version.py Litellm dev 01 10 2025 p2 (#7679) 2025-01-10 21:50:53 -08:00
test_batch_completion_return_exceptions.py
test_batch_completions.py Litellm dev contributor prs 01 31 2025 (#8168) 2025-02-01 09:05:20 -08:00
test_blocked_user_list.py
test_braintrust.py Litellm dev 01 07 2025 p3 (#7635) 2025-01-08 11:46:24 -08:00
test_budget_manager.py
test_caching_handler.py test(test_caching_handler.py): move to in-memory cache - prevent redis flakiness from impacting ci/cd 2025-03-28 13:32:04 -07:00
test_caching_ssl.py
test_caching.py test_redis_caching_llm_caching_ttl 2025-04-02 21:54:35 -07:00
test_class.py
test_completion_cost.py fix(cost_calculator.py): allows checking received + sent model name when checking for cost calculation (#9669) 2025-03-31 21:29:48 -07:00
test_completion_with_retries.py
test_completion.py run ci/cd again 2025-03-26 08:12:51 -07:00
test_config.py Litellm dev 01 29 2025 p2 (#8102) 2025-01-29 20:53:37 -08:00
test_cost_calc.py test(test_cost_calc.py): fix test to handle llm api errors 2024-12-24 16:49:02 -08:00
test_custom_api_logger.py
test_custom_callback_input.py test fixes - azure deprecated dall-e-2 2025-04-02 20:56:20 -07:00
test_custom_callback_router.py (Fixes) OpenAI Streaming Token Counting + Fixes usage track when litellm.turn_off_message_logging=True (#8156) 2025-01-31 15:06:37 -08:00
test_custom_llm.py LiteLLM Minor Fixes & Improvements (01/10/2025) - p1 (#7670) 2025-01-10 17:49:05 -08:00
test_custom_logger.py (Refactor / QA) - Use LoggingCallbackManager to append callbacks and ensure no duplicate callbacks are added (#8112) 2025-01-30 19:35:50 -08:00
test_disk_cache_unit_tests.py
test_dual_cache.py (code refactor) - Add BaseRerankConfig. Use BaseRerankConfig for cohere/rerank and azure_ai/rerank (#7319) 2024-12-19 17:03:34 -08:00
test_dynamic_rate_limit_handler.py
test_dynamodb_logs.py
test_embedding.py Add cohere v2/rerank support (#8421) (#8605) 2025-02-22 22:25:29 -08:00
test_exceptions.py feat(azure.py): add azure bad request error support 2025-03-10 15:59:06 -07:00
test_file_types.py
test_function_call_parsing.py
test_function_calling.py Support caching on reasoning content + other fixes (#8973) 2025-03-04 21:12:16 -08:00
test_function_setup.py
test_gcs_bucket.py use latest bucket for testing 2025-01-05 14:55:48 -08:00
test_get_llm_provider.py test(test_get_llm_provider.py): cover scenario where xai not in model name 2025-03-18 11:04:59 -07:00
test_get_model_file.py
test_get_model_info.py Add OpenAI gpt-4o-transcribe support (#9517) 2025-03-26 23:10:25 -07:00
test_get_optional_params_embeddings.py
test_get_optional_params_functions_not_supported.py
test_google_ai_studio_gemini.py
test_guardrails_ai.py
test_guardrails_config.py feat(guardrails.py): return specific litellm params in /guardrails/list endpoint 2025-02-10 22:13:58 -08:00
test_health_check.py feat(health_check.py): set upperbound for api when making health check call (#7865) 2025-01-18 19:47:43 -08:00
test_helicone_integration.py
test_hf_prompt_templates.py
test_http_parsing_utils.py (Bug fix) - reading /parsing request body when on hypercorn (#8734) 2025-02-25 15:18:04 -08:00
test_img_resize.py
test_lakera_ai_prompt_injection.py Merge pull request #9222 from BerriAI/litellm_snowflake_pr_mar_13 2025-03-13 21:35:39 -07:00
test_langchain_ChatLiteLLM.py
test_langsmith.py
test_least_busy_routing.py build: merge litellm_dev_03_01_2025_p2 2025-03-03 23:05:41 -08:00
test_litellm_max_budget.py
test_literalai.py
test_llm_guard.py
test_load_test_router_s3.py
test_loadtest_router.py
test_logfire.py
test_logging.py
test_longer_context_fallback.py
test_lowest_cost_routing.py
test_lowest_latency_routing.py
test_lunary.py
test_max_tpm_rpm_limiter.py
test_mem_leak.py
test_mem_usage.py
test_mock_request.py Litellm dev 02 12 2025 p1 (#8494) 2025-02-12 22:39:29 -08:00
test_model_alias_map.py
test_model_max_token_adjust.py
test_multiple_deployments.py
test_ollama_local_chat.py
test_ollama_local.py
test_ollama.py Litellm dev 03 08 2025 p3 (#9089) 2025-03-09 18:20:56 -07:00
test_openai_moderations_hook.py
test_opik.py
test_parallel_request_limiter.py Add all /key/generate api params to UI + add metadata fields on team AND org add/update (#8667) 2025-02-19 21:13:06 -08:00
test_pass_through_endpoints.py oops 2025-03-11 08:27:36 -04:00
test_presidio_masking.py
test_profiling_router.py
test_prometheus_service.py
test_prometheus.py done 2025-01-22 20:19:31 +09:00
test_prompt_caching.py
test_prompt_injection_detection.py
test_promptlayer_integration.py
test_provider_specific_config.py test: update testing 2025-03-17 22:34:08 -07:00
test_pydantic_namespaces.py
test_pydantic.py
test_register_model.py
test_router_batch_completion.py (code quality) run ruff rule to ban unused imports (#7313) 2024-12-19 12:33:42 -08:00
test_router_budget_limiter.py Support budget/rate limit tiers for keys (#7429) 2024-12-26 19:05:27 -08:00
test_router_caching.py Fix: Create RedisClusterCache when startup nodes provided in cache args of router (#9010) 2025-03-06 17:14:32 -08:00
test_router_client_init.py test: fix test - delete env var before running 2025-03-11 20:57:57 -07:00
test_router_cooldowns.py fix(route_llm_request.py): move to using common router, even for clie… (#8966) 2025-03-03 22:57:08 -08:00
test_router_custom_routing.py
test_router_debug_logs.py
test_router_fallback_handlers.py (Feat) - return x-litellm-attempted-fallbacks in responses from litellm proxy (#8558) 2025-02-15 14:54:23 -08:00
test_router_fallbacks.py (Feat) - return x-litellm-attempted-fallbacks in responses from litellm proxy (#8558) 2025-02-15 14:54:23 -08:00
test_router_get_deployments.py build: merge litellm_dev_03_01_2025_p2 2025-03-03 23:05:41 -08:00
test_router_init.py fix: remove client init tests for router - dup behaviour - provider caching already exists 2025-03-10 21:17:36 -07:00
test_router_max_parallel_requests.py
test_router_pattern_matching.py (code quality) run ruff rule to ban unused imports (#7313) 2024-12-19 12:33:42 -08:00
test_router_policy_violation.py
test_router_retries.py
test_router_tag_routing.py build: merge litellm_dev_03_01_2025_p2 2025-03-03 23:05:41 -08:00
test_router_timeout.py Litellm dev 01 20 2025 p3 (#7890) 2025-01-20 21:46:36 -08:00
test_router_utils.py fix(router.py): add new test 2025-03-14 14:23:45 -07:00
test_router_with_fallbacks.py
test_router.py test fixes - azure deprecated dall-e-2 2025-04-02 20:56:20 -07:00
test_rules.py
test_sagemaker.py test: mock sagemaker tests 2025-03-21 16:21:18 -07:00
test_scheduler.py
test_secret_detect_hook.py test(base_llm_unit_tests.py): add test to ensure drop params is respe… (#8224) 2025-02-03 16:04:44 -08:00
test_simple_shuffle.py
test_spend_calculate_endpoint.py
test_stream_chunk_builder.py Add anthropic thinking + reasoning content support (#8778) 2025-02-24 21:54:30 -08:00
test_streaming.py Support openrouter reasoning_content on streaming (#9094) 2025-03-09 20:03:59 -07:00
test_supabase_integration.py
test_team_config.py
test_text_completion.py fix(ollama/completions/transformation.py): pass prompt, untemplated on /completions request 2025-03-17 18:35:44 -07:00
test_timeout.py
test_together_ai.py
test_token_counter.py fix(utils.py): handle token counter error when invalid message passed in (#8670) 2025-02-19 22:21:34 -08:00
test_tpm_rpm_routing_v2.py fix(response_metadata.py): log the litellm_model_name 2025-03-18 17:46:33 -07:00
test_traceloop.py test: skip redundant test 2025-02-10 22:13:58 -08:00
test_ui_sso_helper_utils.py
test_unit_test_caching.py (Bug fix) - don't log messages in model_parameters in StandardLoggingPayload (#8932) 2025-03-01 13:39:45 -08:00
test_update_spend.py test_batch_update_spend 2025-04-01 07:12:29 -07:00
test_validate_environment.py
test_wandb.py
test_whisper.py Add OpenAI gpt-4o-transcribe support (#9517) 2025-03-26 23:10:25 -07:00
user_cost.json
vertex_ai.jsonl
vertex_batch_completions.jsonl
vertex_key.json ci/cd update vertex acct 2025-01-05 13:43:32 -08:00
whitelisted_bedrock_models.txt Add anthropic3-7-sonnet (#8766) 2025-02-24 12:59:00 -08:00