Sameer Kankute
c8bb92afdc
Merge pull request #18579 from BerriAI/litellm_remove_prompt_chaching_header
...
Remove prompt caching headers as the support has been removed
2026-01-02 21:01:50 +05:30
Sameer Kankute
dd96f91254
Add thought signature for non tool call requests
2026-01-02 12:31:31 +05:30
Sameer Kankute
ca94990307
remove prompt caching headers as the support has been removed
2026-01-02 11:08:35 +05:30
Sameer Kankute
0addab4f63
Add test for removal of thought signature
2025-12-23 14:56:42 +05:30
Alexsander Hamir
5534038e93
Fix CI: Revert security scan changes and add GitGuardian ignore rules ( #18358 )
2025-12-22 17:03:53 -08:00
Ishaan Jaffer
09dcb38b4b
Revert "test_update_model_cost_map_url"
...
This reverts commit c9d61fcdba .
2025-12-22 12:41:30 +05:30
Ishaan Jaffer
c9d61fcdba
test_update_model_cost_map_url
2025-12-22 11:51:30 +05:30
Ishaan Jaffer
148715541c
test compl openai orgs
2025-12-20 23:41:29 +05:30
Ishaan Jaffer
b1090db927
test_openai_stream_options_call
2025-12-20 22:35:21 +05:30
Ishaan Jaffer
6112160a16
Revert "[Fix] Security - Remove example API keys with high entropy ( #18255 )"
...
This reverts commit 24edbccf5c .
2025-12-20 20:48:11 +05:30
Ishaan Jaffer
c13b4c5514
test_aaapass_through_endpoint_pass_through_keys_langfuse
2025-12-20 14:36:59 +05:30
Alexsander Hamir
24edbccf5c
[Fix] Security - Remove example API keys with high entropy ( #18255 )
2025-12-19 10:09:50 -08:00
Alexsander Hamir
0c48826cdc
Revert "[Fix] CI/CD - local_testing & mapped tests ( #18222 )" ( #18223 )
...
This reverts commit dc7f500c47 .
2025-12-18 14:46:09 -08:00
Alexsander Hamir
dc7f500c47
[Fix] CI/CD - local_testing & mapped tests ( #18222 )
2025-12-18 14:34:48 -08:00
Alexsander Hamir
f353bb6dba
[Fix] CI/CD - litellm_mapped_tests_llms | litellm_mapped_tests_core | caching_unit_tests ( #18197 )
2025-12-18 08:49:23 -08:00
Kris Xia
be2f429087
fix(proxy): extract model from vertex ai passthrough url pattern ( #18097 )
...
extract model id from vertex ai passthrough routes that follow the pattern:
/vertex_ai/*/models/{model_id}:*
the model extraction now handles vertex ai routes by regex matching the model
segment from the url path, which allows proper model identification for
authentication and authorization in proxy pass-through endpoints.
adds comprehensive test coverage for vertex ai model extraction including:
- various vertex api versions (v1, v1beta1)
- different locations (us-central1, asia-southeast1)
- model names with special suffixes (gemini-1.5-pro, gemini-2.0-flash)
- precedence verification (request body model over url)
- non-vertex route isolation
2025-12-17 11:10:14 +05:30
Sameer Kankute
dbcae4aca5
fix: Add none to encoding_format instead of omitting it
2025-12-16 13:23:15 +05:30
Cesar Garcia
df19a747a2
feat(custom_llm): add image_edit and aimage_edit support ( #17999 )
...
* feat(custom_llm): add image_edit and aimage_edit support
Add support for image_edit and aimage_edit methods in CustomLLM class,
allowing users to implement custom image editing providers.
Changes:
- Add image_edit() and aimage_edit() methods to CustomLLM base class
- Add custom provider detection in litellm.image_edit() function
- Add tests for sync and async image_edit with custom handlers
* docs: add image_edit to CustomLLM documentation
- Add /v1/images/edits to supported routes
- Add Image Edit section with example
- Update Custom Handler Spec with image_edit methods
2025-12-15 14:16:36 -08:00
Alexsander Hamir
6635325629
fix: filter internal params in fallback code and fix test issues ( #17941 )
...
- Filter skip_mcp_handler and other internal params in fallback_utils.py before calling acompletion
Fixes issue where internal parameters were being passed to provider APIs causing errors
- Remove deployment field from GCS bucket logger test metadata
Fixes model name mismatch where deployment field was overriding the model in logging
- Update Bedrock Titan test to use non-deprecated model (titan-text-express-v1)
Fixes test failure due to deprecated amazon.titan-text-lite-v1 model
2025-12-13 15:05:26 -08:00
Ishaan Jaffer
b6562b9d88
test_thought_true_with_empty_text_creates_block
2025-12-06 16:00:05 -08:00
Alexsander Hamir
09dcd381d7
fix: mark test_caching_with_reasoning_content as flaky and handle InternalServerError ( #17603 )
...
- Add @pytest.mark.flaky(retries=3, delay=1) decorator to handle intermittent Anthropic API failures
- Add error handling to skip test when Anthropic API returns InternalServerError
- Prevents false test failures due to external API 500 errors
2025-12-06 09:41:09 -08:00
yuneng-jiang
4a0893ca22
Merge remote-tracking branch 'origin' into litellm_ui_callback_fix
2025-12-05 11:43:35 -08:00
Yannay Hammer
2627f0d519
Fix aim security guardrail tests ( #17499 )
2025-12-04 13:29:20 -08:00
Sameer Kankute
6751badf3a
fix: test_default_api_base for ragfow
2025-12-04 21:49:33 +05:30
yuneng-jiang
cc92fdf90f
Merge remote-tracking branch 'origin' into litellm_ui_callback_fix
2025-12-03 11:02:59 -08:00
Sameer Kankute
209e9e05aa
Fix gemini 3 last chunk thinking block
2025-12-03 10:13:59 +05:30
hxomer
b85df0b1fb
Better handle anonymization ( #17207 )
...
* Better handle anonymization
* Fix tests
2025-11-28 08:22:19 -08:00
yuneng-jiang
25e2331510
Merge remote-tracking branch 'origin' into litellm_ui_callback_fix
2025-11-27 17:29:29 -08:00
Ishaan Jaffer
01fd4d7cef
fix fireworks test
2025-11-26 18:58:32 -08:00
Ishaan Jaffer
0429ca4fd0
test_package_dependencies
2025-11-22 11:20:40 -08:00
Ishaan Jaffer
1b88cfbe60
test_router_get_deployment_credentials_with_provider
2025-11-22 10:46:12 -08:00
Ishaan Jaffer
badbadba0d
fix img URL for tests
2025-11-22 09:41:15 -08:00
Ishaan Jaffer
8fbf060ac5
ArizePhoenixConfig
2025-11-22 09:28:37 -08:00
yuneng-jiang
5853dbafc8
Merge branch 'main' into litellm_ui_callback_fix
2025-11-10 16:50:58 -08:00
Krish Dholakia
06906534b3
feat(audio_transcriptions/): calculate duration of audio file for cost calculation + feat (image_generations): cost tracking accuracy improved with output_format, quality, size values fixed per openai model
...
* feat(audio_transcriptions/): calculate duration of audio file for cost calculation
Fixes https://github.com/BerriAI/litellm/issues/11846
Closes https://github.com/BerriAI/litellm/issues/14605
* fix(cost_calculator.py): correctly use base model, when set
Fixes issue where azure base model was being ignored
* feat(cost_calculator.py): fix default cost tracking quality param for image generation
* feat(image_generations/): return output_format, quality, size
aligns response to openai spec and improves cost tracking accuracy
* fix(cost_calculator.py): refactor cost calculation for image generation to use image response instead of hidden params
* build: update build
* fix: fix cost calculation
* build: update poetry lock
* fix: fix ruff checks
* fix: fix aembedding
* fix: fix ruff errors
* fix: modify to catch errors
* fix: test
* fix: loosen test to handle openai lib out of sync
* fix: fix base models
* fix: fix usage object
2025-11-08 16:24:31 -08:00
Krish Dholakia
202eaeb1a2
Revert "(feat) Audio transcription - cost tracking + (feat) image generation …" ( #16409 )
...
This reverts commit c96da44265 .
2025-11-08 15:38:16 -08:00
Krish Dholakia
c96da44265
(feat) Audio transcription - cost tracking + (feat) image generation - accurate cost tracking based on output_format/quality/size
...
* feat(audio_transcriptions/): calculate duration of audio file for cost calculation
Fixes https://github.com/BerriAI/litellm/issues/11846
Closes https://github.com/BerriAI/litellm/issues/14605
* fix(cost_calculator.py): correctly use base model, when set
Fixes issue where azure base model was being ignored
* feat(cost_calculator.py): fix default cost tracking quality param for image generation
* feat(image_generations/): return output_format, quality, size
aligns response to openai spec and improves cost tracking accuracy
* fix(cost_calculator.py): refactor cost calculation for image generation to use image response instead of hidden params
* build: update build
* fix: fix cost calculation
* build: update poetry lock
* fix: fix ruff checks
* fix: fix aembedding
* fix: fix ruff errors
* fix: modify to catch errors
* fix: test
* fix: loosen test to handle openai lib out of sync
2025-11-08 15:30:46 -08:00
yuneng-jiang
3a96c700b4
Adjusted based on comments
2025-11-07 15:02:41 -08:00
Ishaan Jaff
bd7d653bae
Revert "Update perplexity cost tracking ( #15743 )" ( #16345 )
...
This reverts commit ad6a0f4d44 .
2025-11-06 19:00:45 -08:00
Aliaksandr Kuzmik
d14a637b16
OpikLogger: fix the bug with not incorrect attachment to existing trace & refactor ( #15529 )
...
* Fix bug, add new unit test
* Extract payload builder code to a separate namespace
* Update opik.py to use logic from the new namespace
* Code cleanup, type hints improvements
* Run linter
* Log model name as span field
* Reformat arguments in payload builders
* Use dataclasses for payloads, use opik native client if it's available
* Add cost and provider
* Add provider mapping
2025-11-05 16:29:50 -08:00
Sameer Kankute
ad6a0f4d44
Update perplexity cost tracking ( #15743 )
...
* Update perplexity cost tracking
* fix lint errors
* fix code
* fix tests in perplexity
* fix test realted to api call
* fix exception test
2025-11-03 08:45:34 -08:00
Krish Dholakia
74ae7aed44
build: Squashed commit of the following: ( #16176 )
...
commit bb0b050fb01633d83c1c2932f8e9c11432911847
Author: Krrish Dholakia <krrishdholakia@gmail.com >
Date: Sat Nov 1 20:00:01 2025 -0700
test: update tests
commit b2da4bdac23868e69a9452805b231f8830e49912
Author: Krrish Dholakia <krrishdholakia@gmail.com >
Date: Wed Oct 22 14:58:01 2025 -0700
fix(langfuse_otel_attributes.py): log tools and other optional params
commit 75bee1f2748f32b230467de0b085c55bf1d687a9
Author: Krrish Dholakia <krrishdholakia@gmail.com >
Date: Wed Oct 22 14:42:05 2025 -0700
feat(langfuse_otel/): working request/response logging on spans
Closes https://github.com/BerriAI/litellm/issues/13764
commit a3e4fa5b81e82f71c74fb9e7dc859c6cb40495f5
Author: Krrish Dholakia <krrishdholakia@gmail.com >
Date: Wed Oct 22 14:20:39 2025 -0700
fix: initial commit fixing langfuse request/response logging with OTEL
commit 09fc9deac844004104822810e42975cd9c68f0e3
Author: Krrish Dholakia <krrishdholakia@gmail.com >
Date: Wed Oct 22 13:33:52 2025 -0700
fix(litellm_logging.py): for responses api - return a unified usage object for logging
ensures logging integrations all pull the right usage information
2025-11-02 09:46:40 -08:00
Ishaan Jaffer
3c0d530197
test_async_vertexai_response_basic
2025-11-01 10:58:48 -07:00
Ishaan Jaffer
a188e5f8e4
test_litellm_anthropic_prompt_caching_system
2025-11-01 10:51:15 -07:00
Ishaan Jaffer
2608d37e8e
test prompt caching ant
2025-11-01 10:36:22 -07:00
Ishaan Jaffer
b41ad66e38
ant test prompt caching
2025-11-01 10:09:01 -07:00
Ishaan Jaffer
bf934c0799
test_anthropic_api_prompt_caching_basic_with_cache_creation
2025-11-01 09:21:42 -07:00
Ishaan Jaffer
2f1e947c44
test_anthropic_api_prompt_caching_basic
2025-10-31 19:32:46 -07:00
Ishaan Jaffer
c918dafb32
test_router_fallbacks_with_custom_model_costs
2025-10-31 19:23:08 -07:00
Ishaan Jaffer
6e46824939
test_streaming_response
2025-10-31 19:10:38 -07:00