litellm/tests/llm_translation
Krish Dholakia 4b9c66ea59 LiteLLM Minor Fixes & Improvements (11/29/2024) (#6965)
* fix(factory.py): ensure tool call converts image url

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

* fix(transformation.py): support mp4 + pdf url's for vertex ai

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

* fix(http_handler.py): mask gemini api key in error logs

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

* docs(prometheus.md): update prometheus FAQs

* feat(auth_checks.py): ensure specific model access > wildcard model access

if wildcard model is in access group, but specific model is not - deny access

* fix(auth_checks.py): handle auth checks for team based model access groups

handles scenario where model access group used for wildcard models

* fix(internal_user_endpoints.py): support adding guardrails on `/user/update`

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

* fix(key_management_endpoints.py): fix prepare_metadata_fields helper

* fix: fix tests

* build(requirements.txt): bump openai dep version

fixes proxies argument

* test: fix tests

* fix(http_handler.py): fix error message masking

* fix(bedrock_guardrails.py): pass in prepped data

* test: fix test

* test: fix nvidia nim test

* fix(http_handler.py): return original response headers

* fix: revert maskedhttpstatuserror

* test: update tests

* test: cleanup test

* fix(key_management_endpoints.py): fix metadata field update logic

* fix(key_management_endpoints.py): maintain initial order of guardrails in key update

* fix(key_management_endpoints.py): handle prepare metadata

* fix: fix linting errors

* fix: fix linting errors

* fix: fix linting errors

* fix: fix key management errors

* fix(key_management_endpoints.py): update metadata

* test: update test

* refactor: add more debug statements

* test: skip flaky test

* test: fix test

* fix: fix test

* fix: fix update metadata logic

* fix: fix test

* ci(config.yml): change db url for e2e ui testing
2024-12-01 05:26:06 -08:00
..
test_llm_response_utils LiteLLM Minor Fixes & Improvements (10/23/2024) (#6407) 2024-10-24 19:01:41 -07:00
base_llm_unit_tests.py LiteLLM Minor Fixes & Improvements (11/26/2024) (#6913) 2024-11-28 00:01:38 +05:30
base_rerank_unit_tests.py LiteLLM Minor Fixes & Improvement (11/14/2024) (#6730) 2024-11-15 01:02:54 +05:30
conftest.py [Feat] Add max_completion_tokens param (#5691) 2024-09-14 14:57:01 -07:00
dog.wav (feat) Support audio param in responses streaming (#6312) 2024-10-18 19:16:14 +05:30
Readme.md LiteLLM Minor Fixes & Improvements (11/29/2024) (#6965) 2024-12-01 05:26:06 -08:00
test_anthropic_completion.py LiteLLM Minor Fixes & Improvements (11/29/2024) (#6965) 2024-12-01 05:26:06 -08:00
test_azure_ai.py LiteLLM Minor Fixes & Improvements (11/29/2024) (#6965) 2024-12-01 05:26:06 -08:00
test_azure_openai.py LiteLLM Minor Fixes & Improvements (10/28/2024) (#6475) 2024-10-29 17:20:24 -07:00
test_bedrock_completion.py LiteLLM Minor Fixes & Improvements (11/27/2024) (#6943) 2024-11-28 00:32:46 +05:30
test_cohere.py feat(cohere/chat.py): return citations in model response 2024-11-30 13:59:57 -08:00
test_convert_dict_to_image.py fix ImageObject conversion (#6584) 2024-11-04 15:46:43 -08:00
test_databricks.py LiteLLM Minor Fixes & Improvements (11/04/2024) (#6572) 2024-11-06 17:53:46 +05:30
test_deepseek_completion.py Litellm dev 11 21 2024 (#6837) 2024-11-22 01:53:52 +05:30
test_fireworks_ai_translation.py LiteLLM Minor Fixes & Improvements (09/18/2024) (#5772) 2024-09-19 13:25:29 -07:00
test_gemini.py fix(key_management_endpoints.py): fix user-membership check when creating team key (#6890) 2024-11-26 14:19:24 +05:30
test_gpt4o_audio.py (feat) Support audio param in responses streaming (#6312) 2024-10-18 19:16:14 +05:30
test_groq.py Litellm dev 11 21 2024 (#6837) 2024-11-22 01:53:52 +05:30
test_jina_ai.py LiteLLM Minor Fixes & Improvement (11/14/2024) (#6730) 2024-11-15 01:02:54 +05:30
test_max_completion_tokens.py LiteLLM Minor Fixes & Improvements (11/29/2024) (#6965) 2024-12-01 05:26:06 -08:00
test_mistral_api.py Litellm dev 11 21 2024 (#6837) 2024-11-22 01:53:52 +05:30
test_nvidia_nim.py LiteLLM Minor Fixes & Improvements (11/29/2024) (#6965) 2024-12-01 05:26:06 -08:00
test_openai.py LiteLLM Minor Fixes & Improvements (11/29/2024) (#6965) 2024-12-01 05:26:06 -08:00
test_openai_o1.py LiteLLM Minor Fixes & Improvements (11/29/2024) (#6965) 2024-12-01 05:26:06 -08:00
test_optional_params.py Litellm dev 11 21 2024 (#6837) 2024-11-22 01:53:52 +05:30
test_prompt_caching.py (feat) openai prompt caching (non streaming) - add prompt_tokens_details in usage response (#6039) 2024-10-03 23:31:10 +05:30
test_prompt_factory.py fix(key_management_endpoints.py): fix user-membership check when creating team key (#6890) 2024-11-26 14:19:24 +05:30
test_text_completion.py (fix) litellm.text_completion raises a non-blocking error on simple usage (#6546) 2024-11-04 15:47:48 -08:00
test_text_completion_unit_tests.py LiteLLM Minor Fixes & Improvements (11/29/2024) (#6965) 2024-12-01 05:26:06 -08:00
test_vertex.py LiteLLM Minor Fixes & Improvements (11/29/2024) (#6965) 2024-12-01 05:26:06 -08:00
test_xai.py (feat) add XAI ChatCompletion Support (#6373) 2024-11-01 20:37:09 +05:30

Unit tests for individual LLM providers.

Name of the test file is the name of the LLM provider - e.g. test_openai.py is for OpenAI.