litellm/tests/llm_translation
Krish Dholakia f0c8254665
Add new gemini preview models + Fix cohere v2 embedding 'embedding_types' param mapping (#10991)
* build(model_prices_and_context_window.json): add new gemini preview models

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

* fix(cohere/embed): Fix encoding format <-> embedding types param mapping

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

* fix(aim.py): fix syntax error
2025-05-20 22:39:31 -07:00
..
test_llm_response_utils Support caching on reasoning content + other fixes (#8973) 2025-03-04 21:12:16 -08:00
base_audio_transcription_unit_tests.py
base_embedding_unit_tests.py
base_llm_unit_tests.py Handle openai gpt file data + add openai 'supports_pdf_input' to all vision models + Support bedrock tool cache pointing (#10897) 2025-05-17 07:29:01 -07:00
base_rerank_unit_tests.py Add cost tracking for rerank via bedrock (#8691) 2025-02-20 21:00:18 -08:00
conftest.py
dog.wav
duck.png fix vertex ai multimodal embedding translation (#9471) 2025-03-24 23:23:28 -07:00
gettysburg.wav
guinea.png fix vertex ai multimodal embedding translation (#9471) 2025-03-24 23:23:28 -07:00
log.xt Litellm dev 04 05 2025 p2 (#9774) 2025-04-07 21:02:52 -07:00
Readme.md
test_aiohttp_openai.py
test_anthropic_completion.py Anthropic unified web search + tool cost tracking support (#10846) 2025-05-14 22:41:12 -07:00
test_anthropic_text_completion.py
test_aws_base_llm.py
test_azure_ai.py test: update test due to cohere ssl issues 2025-05-19 20:07:57 -07:00
test_azure_o_series.py test azure o series 2025-04-02 09:46:45 -07:00
test_azure_openai.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_bedrock_completion.py build: merge in https://github.com/BerriAI/litellm/pull/10909 2025-05-17 07:36:56 -07:00
test_bedrock_dynamic_auth_params_unit_tests.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_bedrock_embedding.py fix: remove aws params from bedrock embedding request body (#8618) (#8696) 2025-02-24 10:04:58 -08:00
test_bedrock_invoke_tests.py [Bedrock] Fixes to only allow accepted fields for tool json schema (#10062) 2025-05-13 19:49:30 -07:00
test_bedrock_llama.py Add bedrock llama4 pricing + handle llama4 templating on bedrock invoke route (#10582) 2025-05-06 16:06:24 -07:00
test_bedrock_nova_json.py Extract 'thinking' from nova response + Add 'drop_params' support for gpt-image-1 (#10680) 2025-05-08 23:01:38 -07:00
test_clarifai_completion.py
test_cloudflare.py
test_cohere_generate_api.py
test_cohere.py Migrate cohere to /v2/embed - adds support for output_dimensions param (#10809) 2025-05-13 23:06:56 -07:00
test_convert_dict_to_image.py
test_databricks.py fix(databricks/chat/transformation.py): handle empty headers case 2025-04-05 08:33:56 -07:00
test_deepgram.py
test_deepseek_completion.py [Bug]: Deepseek error on proxy after upgrading to 1.61.13-stable (#8860) 2025-02-26 21:11:06 -08:00
test_fireworks_ai_translation.py Handle fireworks ai tool calling response (#10130) 2025-04-19 09:37:45 -07:00
test_gemini.py Support Anthropic web search tool + Add more google finish reason mapping (#10785) 2025-05-12 22:45:51 -07:00
test_gpt4o_audio.py Add gemini audio input support + handle special tokens in sagemaker response (#9640) 2025-03-29 19:23:09 -07:00
test_groq.py
test_huggingface_chat_completion.py VertexAI non-jsonl file storage support (#9781) 2025-04-09 14:01:48 -07:00
test_infinity.py [Feat] Add infinity embedding support (contributor pr) (#10196) 2025-04-21 20:01:29 -07:00
test_jina_ai.py
test_litellm_proxy_provider.py fix(transformation.py): correctly translate 'thinking' param for lite… (#9904) 2025-04-11 23:25:13 -07:00
test_mistral_api.py
test_nvidia_nim.py [Feat] Add tools support for Nvidia NIM (#10763) 2025-05-12 14:07:35 -07:00
test_openai_o1.py test: override flaky test 2025-04-29 18:54:49 -07:00
test_openai.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_optional_params.py Add new gemini preview models + Fix cohere v2 embedding 'embedding_types' param mapping (#10991) 2025-05-20 22:39:31 -07:00
test_prompt_caching.py
test_prompt_factory.py Add DBRX Anthropic w/ thinking + response_format support (#9744) 2025-04-04 22:13:32 -07:00
test_rerank.py test: update tests to new deployment model (#10142) 2025-04-18 14:22:12 -07:00
test_router_llm_translation_tests.py test_prompt_caching 2025-02-26 09:29:15 -08:00
test_snowflake.py added mock_tests 2025-03-11 16:32:15 -04:00
test_text_completion_unit_tests.py
test_text_completion.py Add inference providers support for Hugging Face (#8258) (#9738) (#9773) 2025-04-05 10:50:15 -07:00
test_together_ai.py
test_triton.py fix(triton/completion/transformation.py): remove bad_words / stop wor… (#10163) 2025-04-19 11:23:37 -07:00
test_unit_test_bedrock_invoke.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_vertex.py Add vertex ai meta llama 4 support + handle tool call result in content for vertex ai (#10492) 2025-05-01 22:47:06 -07:00
test_voyage_ai.py Add unit test 2025-03-14 18:14:41 +01:00
test_watsonx.py
test_xai.py [Feat] Add reasoning_effort support for xai/grok-3-mini-beta model family (#9932) 2025-04-11 19:17:09 -07:00

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.