litellm/tests/local_testing
Krish Dholakia beae5cfea9
Litellm staging 05 10 2025 - openai pdf url support + sagemaker chat content length error fix (#10724)
* Support pdf url's to openai (#10640)

* fix(gpt_transformation.py): support pdf url input to openai

pass as base64 as openai doesn't support image url's

* fix(openai.py): support async message transformation

allows async get request to convert url to base64

* fix(gpt_transformation.py): fix linting errrors and use common components across sync + async flows

* fix: fix linting errors

* fix(openai.py): pop correct var

* Fix sagemaker chat calls - content length error  (#10607)

* fix(sagemaker_chat/): support passing dynamic aws params

previously being ignored

* refactor(sagemaker/chat): more refactoring

* fix(sagemaker_chat/): make sure streaming is correctly handled post-refactor

* refactor: more refactoring to support using signed json str

* fix(sagemaker/chat): working sync streaming post refactor

* fix(sagemaker/chat): support async streaming post refactor

* fix(llm_http_handler.py): await async function

* fix: remove print statements

* test: update test

* test: update test

* fix(llm_http_handler.py): retain passing in data as json str

* test: update test

* fix(base_model_iterator.py): fix linting error

* test: test auth

* fix: fix linting error

* test: update test

* test: update translation test

* fix(gpt_transformation.py): handle awaitable/non-awaitable object

* fix: handle async flow for message transformation on openai compatible api's

* test: cleanup testing

* test: update test

* test(test_router.py): use model with higher quota

* test: simplify test

* test: update test
2025-05-10 17:41:57 -07:00
..
.litellm_cache
example_config_yaml test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_configs test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_model_response_typing
adroit-crow-413218-bc47f303efc9.json
azure_fine_tune.jsonl
batch_job_results_furniture.jsonl
cache_unit_tests.py
conftest.py
create_mock_standard_logging_payload.py
data_map.txt
eagle.wav
example.jsonl VertexAI non-jsonl file storage support (#9781) 2025-04-09 14:01:48 -07:00
gettysburg.wav
large_text.py
model_cost.json
openai_batch_completions_router.jsonl
openai_batch_completions.jsonl
speech_vertex.mp3
stream_chunk_testdata.py
test_acompletion_fallbacks.py
test_acompletion.py Complete o3 model support (#8183) 2025-02-02 22:36:37 -08:00
test_acooldowns_router.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
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 test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_amazing_vertex_completion.py text fix vertex deprecated a model 2025-05-03 16:22:24 -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 assistants fixes 2025-04-19 08:09:45 -07:00
test_async_fn.py
test_audio_speech.py
test_auth_utils.py Add target model name validation (#10722) 2025-05-10 14:27:06 -07:00
test_azure_content_safety.py
test_azure_openai.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_azure_perf.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_bad_params.py test_completion_invalid_param_cohere 2025-04-02 06:49:11 -07:00
test_basic_python_version.py
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
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: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_caching.py fix(caching_handler.py): fix embedding str caching result (#10700) 2025-05-09 23:37:02 -07:00
test_class.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_completion_cost.py test: more testing fixes 2025-05-01 15:36:13 -07:00
test_completion_with_retries.py
test_completion.py fix ai21 test 2025-05-07 21:45:57 -07:00
test_config.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_cost_calc.py
test_custom_api_logger.py
test_custom_callback_input.py Update fireworks ai pricing (#10425) 2025-04-29 20:58:05 -07:00
test_custom_callback_router.py Litellm dev 04 30 2025 p1 (#10462) 2025-04-30 22:11:12 -07:00
test_custom_llm.py
test_custom_logger.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_disk_cache_unit_tests.py
test_dual_cache.py
test_dynamic_rate_limit_handler.py
test_dynamodb_logs.py
test_embedding.py Add target model name validation (#10722) 2025-05-10 14:27:06 -07:00
test_exceptions.py Litellm dev 04 30 2025 p1 (#10462) 2025-04-30 22:11:12 -07:00
test_file_types.py
test_function_call_parsing.py
test_function_calling.py test: handle internal server errors 2025-05-01 16:47:30 -07:00
test_function_setup.py
test_gcs_bucket.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_get_llm_provider.py Add llamafile as a provider (#10203) (#10482) 2025-05-01 18:36:55 -07:00
test_get_model_file.py
test_get_model_info.py test: update test 2025-05-08 21:12:14 -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 test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_helicone_integration.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
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 test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_litellm_max_budget.py
test_literalai.py
test_llm_guard.py
test_load_test_router_s3.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_loadtest_router.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_logfire.py
test_logging.py
test_longer_context_fallback.py
test_lowest_cost_routing.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_lowest_latency_routing.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_lunary.py
test_max_tpm_rpm_limiter.py
test_mem_leak.py
test_mem_usage.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_mock_request.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_model_alias_map.py test: fix test 2025-04-16 07:57:10 -07:00
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 Embedding caching fixes - handle str -> list cache, set usage tokens for cache hits, combine usage tokens on partial cache hits (#10424) 2025-04-29 21:21:28 -07:00
test_prometheus.py done 2025-01-22 20:19:31 +09:00
test_prompt_caching.py
test_prompt_injection_detection.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_promptlayer_integration.py
test_provider_specific_config.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_pydantic_namespaces.py
test_pydantic.py
test_register_model.py
test_router_batch_completion.py
test_router_budget_limiter.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_router_caching.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_router_client_init.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_router_cooldowns.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_router_custom_routing.py
test_router_debug_logs.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
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 test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_router_get_deployments.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_router_init.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_router_max_parallel_requests.py
test_router_pattern_matching.py
test_router_policy_violation.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_router_retries.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
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 test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_router_utils.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_router_with_fallbacks.py
test_router.py Litellm staging 05 10 2025 - openai pdf url support + sagemaker chat content length error fix (#10724) 2025-05-10 17:41:57 -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 property ordering for vertex ai schema (#9828) + Fix combining multiple tool calls (#10040) 2025-04-15 22:29:25 -07:00
test_streaming.py fix ai21 test 2025-05-07 21:26:35 -07:00
test_supabase_integration.py
test_team_config.py
test_text_completion.py Add key-level multi-instance tpm/rpm/max parallel request limiting (#10458) 2025-04-30 21:32:31 -07:00
test_timeout.py Update fireworks ai pricing (#10425) 2025-04-29 20:58:05 -07:00
test_together_ai.py
test_tpm_rpm_routing_v2.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -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
whitelisted_bedrock_models.txt Add supports_pdf_input: true to Claude 3.7 bedrock models (#9917) 2025-05-01 14:56:54 -07:00