litellm-mirror/litellm/tests
Krrish Dholakia a2fd8459fc fix(utils.py): don't raise error on openai content filter during streaming - return as is
Fixes issue where we would raise an error vs. openai who return the chunk with finish reason as 'content_filter'
2024-07-25 19:50:52 -07:00
..
example_config_yaml test(test_proxy_server.py): fix test to use valid redis host 2024-04-19 19:22:24 -07:00
test_configs test - default on/off guardrails 2024-07-03 14:50:13 -07:00
test_model_response_typing
conftest.py test(test_utils.py): reset env after test complete 2024-06-17 20:33:39 -07:00
data_map.txt
gettysburg.wav test groq/whisper-large-v3 2024-07-04 16:45:45 -07:00
langfuse.log test(test_alangfuse.py): fix test to expect correct response object 2024-07-11 09:00:31 -07:00
large_text.py feat(router.py): enable pre-call checks 2024-03-23 18:03:30 -07:00
litellm_uuid.txt
messages_with_counts.py New line 2024-07-15 11:13:14 -07:00
model_cost.json
openai_batch_completions.jsonl test - openai batches file 2024-05-28 14:54:58 -07:00
test_acompletion.py fix completion vs acompletion params 2024-05-09 07:59:37 -07:00
test_acooldowns_router.py fix(router.py): fix router should_retry 2024-04-27 15:13:20 -07:00
test_add_function_to_prompt.py test: update tests 2024-03-04 18:42:08 -08:00
test_add_update_models.py fix migrate to LitellmUserRoles 2024-05-30 13:57:50 -07:00
test_alangfuse.py test(test_alangfuse.py): fix test to expect correct response object 2024-07-11 09:00:31 -07:00
test_alerting.py refactor(litellm_logging.py): refactors how slack_alerting generates langfuse trace url 2024-06-21 16:12:25 -07:00
test_amazing_s3_logs.py (ci/cd) aws suspended account 2024-04-04 17:43:16 -07:00
test_amazing_vertex_completion.py feat(vertex_ai_llama.py): vertex ai llama3.1 api support 2024-07-23 17:07:30 -07:00
test_anthropic_completion.py test_anthropic_completion_input_translation_with_metadata 2024-07-23 15:23:58 -07:00
test_aproxy_startup.py (fix) proxy_startup test 2024-02-06 13:17:57 -08:00
test_arize_ai.py fix using arize as success callback 2024-07-22 15:32:49 -07:00
test_assistants.py test(test_assistants.py): handle openai api instability 2024-07-11 21:32:43 -07:00
test_async_fn.py test_async_response_azure 2024-07-12 19:04:05 -07:00
test_async_opentelemetry.py fix Local only test. WIP 2024-07-11 10:30:40 -07:00
test_audio_speech.py feat(azure.py): azure tts support 2024-06-27 16:59:25 -07:00
test_auth_checks.py test(test_auth_checks.py): add unit tests for customer max budget check 2024-05-29 18:03:59 -07:00
test_azure_content_safety.py fix failing azure content safety errors 2024-05-11 18:19:00 -07:00
test_azure_perf.py fix(router.py): fix typing 2024-05-13 18:06:10 -07:00
test_bad_params.py test UnsupportedParamsError 2024-07-24 12:21:22 -07:00
test_banned_keyword_list.py test: refactor testing to handle the hash token fix 2024-04-17 17:31:39 -07:00
test_batch_completion_return_exceptions.py Make return-exceptions as default behavior in litellm.batch_completion 2024-05-24 11:09:11 +08:00
test_batch_completions.py test(test_batch_completions.py): handle anthropic overloaded error 2024-03-26 13:55:03 -07:00
test_bedrock_completion.py fix(utils.py): add exception mapping for bedrock image internal server error 2024-07-19 19:30:41 -07:00
test_blocked_user_list.py fix testing spend_tracking 2024-06-21 16:52:42 -07:00
test_braintrust.py test(test_braintrust.py): add testing for braintrust integration 2024-07-22 18:05:11 -07:00
test_budget_manager.py
test_caching.py fix(litellm_logging.py): fix async caching for sync streaming calls (don't do it) 2024-07-17 11:15:30 -07:00
test_caching_ssl.py
test_clarifai_completion.py test(test_clarifai_completion.py): skip clarifai tests - account rate limited 2024-06-03 21:07:57 -07:00
test_class.py feat(main.py): support router.chat.completions.create 2024-03-25 08:26:28 -07:00
test_clickhouse_logger.py (test) clickhouse 2024-02-26 18:56:43 -08:00
test_cohere_completion.py (fix) use cohere_chat optional params 2024-03-12 14:31:43 -07:00
test_completion.py test: cleanup testing 2024-07-24 19:47:50 -07:00
test_completion_cost.py fix(utils.py): support raw response headers for streaming requests 2024-07-23 11:58:58 -07:00
test_completion_with_retries.py
test_config.py fix linting error 2024-07-06 11:27:58 -07:00
test_custom_api_logger.py (fix) custom api testing 2024-02-15 17:25:30 -08:00
test_custom_callback_input.py fix(proxy/utils.py): add stronger typing for litellm params in failure call logging 2024-07-22 21:31:39 -07:00
test_custom_callback_router.py (fix) azure_base_model cost calc 2024-02-07 18:18:15 -08:00
test_custom_llm.py fix(custom_llm.py): pass input params to custom llm 2024-07-25 19:03:52 -07:00
test_custom_logger.py fix(__init__.py): add 'log_raw_request_response' flag to init 2024-06-11 17:26:03 -07:00
test_datadog.py (test) dd test 2024-03-18 16:22:59 -07:00
test_deployed_proxy_keygen.py
test_dynamic_rate_limit_handler.py fix(dynamic_rate_limiter.py): support setting priority + reserving tpm/rpm 2024-07-01 23:08:54 -07:00
test_dynamodb_logs.py (test) AWS Suspended Account 2024-02-28 18:40:59 -08:00
test_embedding.py test: cleanup testing 2024-07-24 19:47:50 -07:00
test_exceptions.py test - openai content policy errors 2024-07-22 16:24:03 -07:00
test_file_types.py File type unit tests 2024-06-17 17:50:05 -07:00
test_fireworks_ai.py test - fireworks ai param mapping 2024-06-26 06:58:00 -07:00
test_function_call_parsing.py test(test_function_call_parsing.py): add test for function call parsing 2024-05-08 10:54:26 -07:00
test_function_calling.py fix function calling mistral large latest 2024-05-15 16:05:17 -07:00
test_function_setup.py fix(proxy/utils.py): log rejected proxy requests to langfuse 2024-04-25 19:26:27 -07:00
test_get_llm_provider.py fix(main.py): fix calling openai gpt-3.5-turbo-instruct via /completions 2024-07-25 09:57:19 -07:00
test_get_model_file.py
test_get_model_info.py test get mode info for gemini/gemini-1.5-flash 2024-07-11 13:04:18 -07:00
test_get_model_list.py
test_get_optional_params_embeddings.py test - bedrock v2 supports dimension 2024-05-03 16:23:37 -07:00
test_get_optional_params_functions_not_supported.py test: fix linting 2024-05-10 14:42:06 -07:00
test_google_ai_studio_gemini.py
test_guardrails_config.py feat(guardrails): Flag for PII Masking on Logging 2024-07-11 16:09:34 -07:00
test_health_check.py test: removing aws tests - account suspended - pending their approval 2024-02-28 13:46:20 -08:00
test_helicone_integration.py test fixes 2024-07-08 21:17:35 -07:00
test_hf_prompt_templates.py
test_image_generation.py fix(vertex_httpx.py): add sync vertex image gen support 2024-07-09 13:33:54 -07:00
test_img_resize.py
test_jwt.py build: re-run ci/cd 2024-07-13 11:41:35 -07:00
test_key_generate_dynamodb.py test: removing aws tests - account suspended - pending their approval 2024-02-28 13:46:20 -08:00
test_key_generate_prisma.py fix(test_key_generate_prisma.py): pass user_api_key_dict to test call 2024-07-17 08:29:21 -07:00
test_lakera_ai_prompt_injection.py Merge branch 'main' into litellm_run_moderation_check_on_embedding 2024-07-18 12:44:30 -07:00
test_langchain_ChatLiteLLM.py
test_langsmith.py test - logging langsmith tags 2024-07-24 07:12:45 -07:00
test_least_busy_routing.py test(test_least_busy_routing.py): avoid deployments with low rate limits 2024-05-09 13:54:24 -07:00
test_litellm_max_budget.py
test_llm_guard.py test: refactor testing to handle the hash token fix 2024-04-17 17:31:39 -07:00
test_load_test_router_s3.py test: reintegrate s3 testing 2024-03-07 08:56:59 -08:00
test_loadtest_router.py (cookbook) load test litellm router 2024-02-08 07:24:28 -08:00
test_logfire.py test - logfire 2024-06-17 19:47:48 -07:00
test_logging.py
test_longer_context_fallback.py
test_lowest_cost_routing.py ci/cd run again 2024-06-05 21:58:59 -07:00
test_lowest_latency_routing.py test(test_lowest_latency_routing.py): use mock responses 2024-06-20 21:05:23 -07:00
test_lunary.py add tests 2024-06-13 15:10:24 -03:00
test_max_tpm_rpm_limiter.py fix(parallel_request_limiter.py): fix user+team tpm/rpm limit check 2024-05-27 08:48:23 -07:00
test_mem_usage.py Merge branch 'main' into litellm_imp_mem_use 2024-03-11 19:00:56 -07:00
test_mock_request.py fix using mock completion 2024-06-25 11:14:40 -07:00
test_model_alias_map.py fix(get_api_base): fix get_api_base to handle model with alias 2024-05-09 08:01:17 -07:00
test_model_max_token_adjust.py test: removing aws tests - account suspended - pending their approval 2024-02-28 13:46:20 -08:00
test_multiple_deployments.py (test) tgai is unstable 2024-02-03 20:00:40 -08:00
test_ollama.py comment out test method calls, following the pattern 2024-05-06 20:13:11 -07:00
test_ollama_local.py update ollama test file 2024-05-05 20:25:43 -07:00
test_ollama_local_chat.py
test_openai_batches_and_files.py test openai files endpoints 2024-07-10 15:54:55 -07:00
test_openai_moderations_hook.py test - openai moderation response 2024-05-23 13:24:46 -07:00
test_optional_params.py build(model_prices_and_context_window.json): add model pricing for vertex ai llama 3.1 api 2024-07-23 17:36:07 -07:00
test_parallel_request_limiter.py feat(proxy_server.py): return 'retry-after' param for rate limited requests 2024-07-13 17:15:20 -07:00
test_pass_through_endpoints.py fix(pass_through_endpoints.py): fix client init 2024-07-13 14:46:56 -07:00
test_presidio_masking.py test(test_presidio_pii_masking.py): fix presidio test 2024-07-13 21:44:22 -07:00
test_profiling_router.py
test_prometheus_service.py test(test_prometheus_service.py): remove duplicate test 2024-04-19 16:23:47 -07:00
test_prompt_factory.py Fix test_prompt_factory flake8 warning 2024-07-24 09:14:22 -07:00
test_prompt_injection_detection.py fix(prompt_injection_detection.py): fix type check 2024-03-21 08:56:13 -07:00
test_promptlayer_integration.py Merge branch 'main' into litellm_fix_azure_function_calling_streaming 2024-02-22 22:36:38 -08:00
test_provider_specific_config.py Revert "Fix: use Bedrock region from environment variables before other region definitions" 2024-07-22 07:40:24 -07:00
test_proxy_custom_auth.py fix(proxy_server.py): check if master key is str before hashing 2024-03-09 16:51:11 -08:00
test_proxy_custom_logger.py fix(main.py): ignore model_config param 2024-05-14 19:03:17 -07:00
test_proxy_encrypt_decrypt.py test test_encrypt_decrypt 2024-07-08 07:54:07 -07:00
test_proxy_exception_mapping.py test: fix test 2024-07-18 22:40:51 -07:00
test_proxy_gunicorn.py
test_proxy_pass_user_config.py
test_proxy_reject_logging.py fix: fix linting errors 2024-07-13 14:39:42 -07:00
test_proxy_routes.py add test for anthropic routes 2024-07-22 14:48:22 -07:00
test_proxy_server.py feat(auth_check.py): support using redis cache for team objects 2024-07-24 18:14:49 -07:00
test_proxy_server_caching.py test(test_proxy_server_caching.py): skip aws test - aws account suspended 2024-02-28 14:55:57 -08:00
test_proxy_server_cost.py
test_proxy_server_keys.py
test_proxy_server_langfuse.py test(test_proxy_server_langfuse.py): cleanup tests causing OOM issues. 2024-06-22 23:53:18 -07:00
test_proxy_server_spend.py
test_proxy_setting_guardrails.py test - default on/off guardrails 2024-07-03 14:50:13 -07:00
test_proxy_token_counter.py test - token count response 2024-05-16 13:20:01 -07:00
test_proxy_utils.py test using "metadata", litellm_metadata 2024-06-18 08:06:49 -07:00
test_pydantic_namespaces.py Added pytest for pydantic protected namespace warning 2024-04-27 15:44:40 -07:00
test_python_38.py fix test_litellm_proxy_server_config_no_general_settings 2024-06-20 21:11:30 -07:00
test_register_model.py
test_router.py Merge branch 'main' into litellm_fix_httpx_transport 2024-07-06 19:12:06 -07:00
test_router_batch_completion.py test_batch_completion_multiple_models_multiple_messages 2024-05-28 22:54:54 -07:00
test_router_caching.py test fix - test_acompletion_caching_on_router 2024-06-04 07:55:53 -07:00
test_router_client_init.py
test_router_cooldowns.py fix(router.py): set cooldown_time: per model 2024-06-25 16:51:55 -07:00
test_router_custom_routing.py router - add doc string 2024-06-20 14:36:51 -07:00
test_router_debug_logs.py fix test router debug logs 2024-06-29 13:24:57 -07:00
test_router_fallbacks.py fix(router.py): improve error message returned for fallbacks 2024-06-25 11:27:20 -07:00
test_router_get_deployments.py fix(router.py): add random shuffle and tpm-based shuffle for async shuffle logic 2024-04-22 12:58:59 -07:00
test_router_init.py test - test_init_clients_async_mode 2024-07-06 14:08:35 -07:00
test_router_max_parallel_requests.py test(test_router_max_parallel_requests.py): more extensive testing for setting max parallel requests 2024-04-20 12:56:54 -07:00
test_router_policy_violation.py
test_router_retries.py test(test_amazing_vertex_completion.py): add retries for 'Content has no parts.' error in vertex test 2024-06-03 14:06:36 -07:00
test_router_tag_routing.py fix test 2024-07-18 22:40:51 -07:00
test_router_timeout.py test(test_router_timeout.py): fix test 2024-07-19 19:00:55 -07:00
test_router_utils.py fix - azure test - don't pop api key 2024-04-17 07:54:16 -07:00
test_router_with_fallbacks.py fix(router.py): support fallbacks / retries with sync embedding calls 2024-03-11 14:51:22 -07:00
test_rules.py test: test fixes 2024-07-13 15:04:13 -07:00
test_scheduler.py fix(test_scheduler.py): simplify scheduler testing. fix race condition 2024-06-01 18:57:47 -07:00
test_secret_detect_hook.py add stricter secret detection 2024-06-27 15:12:13 -07:00
test_secret_manager.py (test_secret_manager.py) - Improve and add CircleCI v1 test with Amazon. 2024-07-24 16:05:58 +00:00
test_simple_shuffle.py fix(router.py): add random shuffle and tpm-based shuffle for async shuffle logic 2024-04-22 12:58:59 -07:00
test_spend_calculate_endpoint.py test - aliases on /spend/calculate 2024-06-24 21:13:01 -07:00
test_spend_logs.py test - spend logs 2024-07-08 12:02:24 -07:00
test_stream_chunk_builder.py fix(main.py): fix stream_chunk_builder usage calc 2024-07-06 14:52:59 -07:00
test_streaming.py fix(utils.py): don't raise error on openai content filter during streaming - return as is 2024-07-25 19:50:52 -07:00
test_supabase_integration.py
test_team_config.py fix(proxy_server.py): load default team config straight from config file 2024-02-02 19:03:47 -08:00
test_text_completion.py fix(main.py): fix calling openai gpt-3.5-turbo-instruct via /completions 2024-07-25 09:57:19 -07:00
test_timeout.py fix(bedrock.py): convert httpx.timeout to boto3 valid timeout 2024-05-03 16:24:21 -07:00
test_together_ai.py
test_token_counter.py fix(utils.py): fix token_counter to handle empty tool calls in messages 2024-07-19 19:39:00 -07:00
test_tpm_rpm_routing_v2.py fix test test_router_completion_streaming 2024-06-21 21:02:34 -07:00
test_traceloop.py Revert "Revert "fix: Log errors in Traceloop Integration (reverts previous revert)"" 2024-05-30 04:06:45 +03:00
test_triton.py feat: enables batch embedding support for triton 2024-07-16 21:43:17 -07:00
test_update_spend.py fix testing spend_tracking 2024-06-21 16:52:42 -07:00
test_user_api_key_auth.py fix(user_api_key_auth.py): update team values in token cache if refreshed more recently 2024-07-19 17:35:59 -07:00
test_utils.py feat(utils.py): accept 'api_key' as param for validate_environment 2024-07-11 12:02:23 -07:00
test_validate_environment.py
test_wandb.py
test_whisper.py fix(whisper---handle-openai/azure-vtt-response-format): Fixes https://github.com/BerriAI/litellm/issues/4595 2024-07-08 09:10:40 -07:00
user_cost.json
vertex_key.json ci(vertex_key.json): switch gcloud accounts 2024-04-06 12:14:46 -07:00