Commit Graph

23733 Commits

Author SHA1 Message Date
Krrish Dholakia
3501ee7e82 docs(index.md): cleanup 2025-08-01 13:56:52 -07:00
Krrish Dholakia
d158a0344d test: update unit tests 2025-08-01 13:37:51 -07:00
Krrish Dholakia
72fd4e3d55 test: remove bad unit tests 2025-08-01 13:34:23 -07:00
Krrish Dholakia
917233fd52 fix(model_group_alias_settings.tsx): fix check 2025-08-01 09:26:49 -07:00
Krrish Dholakia
278dd52e71 build(ui/): fix linting errors 2025-08-01 09:23:18 -07:00
Krrish Dholakia
fedd805b6a test: loosen check 2025-08-01 09:21:13 -07:00
Krrish Dholakia
e3c9fc458d test: update tests 2025-08-01 09:19:31 -07:00
Krrish Dholakia
461b615bde test: update tests 2025-08-01 09:12:44 -07:00
Krrish Dholakia
952c2b5215 test: update test 2025-08-01 09:07:53 -07:00
Krrish Dholakia
032cbafd60 fix(litellm_logging.py): fix merge error 2025-08-01 08:58:13 -07:00
Krrish Dholakia
4a66617d71 build(config.yml): use ci/cd postgres in test 2025-08-01 08:48:07 -07:00
aayush-malviya-acquia
1e315dc33b
Fix API Key Being Logged (#12978)
* AIF-262 Fix for keys being logged

* AIF-262 Undid http exception detail removal

* AIF-262 Converted f-string to normal
2025-07-31 22:41:18 -07:00
Dmitry Tyumentsev
9955521194
allow redifine base api url in pass trough (#13134) 2025-07-31 22:38:33 -07:00
Krrish Dholakia
fe24c270de Prompt Management - add local dotprompt file support 2025-07-31 22:28:29 -07:00
Ishaan Jaff
817b139420 bump: version 1.74.13 → 1.74.14 2025-07-31 21:52:27 -07:00
Ishaan Jaff
32da244cc3 bump: version 1.74.12 → 1.74.13 2025-07-31 21:52:27 -07:00
Mateo Di Loreto
6e5fe51184
add openssl in apk install in runtime stage in dockerfile.non_root (#13168)
* add openssl in apk install in runtime stage in dockerfile.non_rootdocker-compose logs -f litellm

* Improve Docker-compose.yaml for local debugging

---------

Co-authored-by: Krish Dholakia <krrishdholakia@gmail.com>
2025-07-31 21:52:11 -07:00
unique-jakub
3edb71e617
allow helm hooks for migrations job (#13174) 2025-07-31 21:51:07 -07:00
Jason Roberts
04c299410e
Fix/panw prisma airs post call hook (#13185)
* fix(guardrails): Fix PANW Prisma AIRS post-call hook method name

- Changed async_post_call_hook to async_post_call_success_hook to match proxy calling convention
- Added event_hook parameter to initialization to ensure proper hook registration
- Fixes post-call response scanning for PANW Prisma AIRS guardrails

Resolves issue where post-call hooks were not being invoked due to method name mismatch.

* Update PANW Prisma AIRS tests to use correct method name
2025-07-31 21:50:32 -07:00
Ishaan Jaff
74e29ae153
[UI QA] QA - Agent Activity Tab (#13203)
* backend fixes

* fixes for User-Agent ui

* UI fixes chart loader

* fixes chart loader

* fixes ChartLoader

* fix ChartLoader

* fixes for analytics
2025-07-31 21:35:25 -07:00
Krish Dholakia
d887a3d102
Anthropic - mid stream fallbacks p2 (add token usage across both calls) (#13170)
* fix(router.py): add acompletion_streaming_iterator inside router

allows router to catch errors mid-stream for fallbacks

Work for https://github.com/BerriAI/litellm/issues/6532

* fix(router.py): working mid-stream fallbacks

* fix(router.py): more iterations

* fix(router.py): working mid-stream fallbacks with fallbacks set on router

* fix(router.py): pass prior content back in new request as assistant prefix message

* fix(router.py): add a system prompt to help guide non-prefix supporting models to use the continued text correctly

* fix(common_utils.py): support converting `prefix: true` for non-prefix supporting models

* fix: reduce LOC in function

* test(test_router.py): add unit tests for new function

* test: add basic unit test

* fix(router.py): ensure return type of fallback stream is compatible with CustomStreamWrapper

prevent client code from breaking

* fix: cleanup

* test: update test

* fix: fix linting error

* fix(router.py): return combined usage

ensures accurate usage tracking on clientside for stream w/ fallbacks
2025-07-31 21:28:06 -07:00
Krish Dholakia
78997c2e35
Anthropic - working mid-stream fallbacks (#13149)
* fix(router.py): add acompletion_streaming_iterator inside router

allows router to catch errors mid-stream for fallbacks

Work for https://github.com/BerriAI/litellm/issues/6532

* fix(router.py): working mid-stream fallbacks

* fix(router.py): more iterations

* fix(router.py): working mid-stream fallbacks with fallbacks set on router

* fix(router.py): pass prior content back in new request as assistant prefix message

* fix(router.py): add a system prompt to help guide non-prefix supporting models to use the continued text correctly

* fix(common_utils.py): support converting `prefix: true` for non-prefix supporting models

* fix: reduce LOC in function

* test(test_router.py): add unit tests for new function

* test: add basic unit test

* fix(router.py): ensure return type of fallback stream is compatible with CustomStreamWrapper

prevent client code from breaking

* fix: cleanup

* test: update test

* fix: fix linting error
2025-07-31 21:22:49 -07:00
Krish Dholakia
c7e4435bdc
Fix - using managed files w/ OTEL + UI - add model group alias on UI (#13171)
* fix(router.py): safe deep copy kwargs

OTEL adds a parent_otel_span which cannot be deepcopied

* fix: use safe deep copy in other places as well

* test: add script to check and ban copy.deepcopy of kwargs

enforce safe_deep_copy usage

* build(ui/): new component for adding model group alias on UI

* fix(proxy_server.py): support updating model_group_alias via /config/update

allows ui component to work

* fix(router.py): update model_group_alias in router settings based on db value

* fix: fix code qa error
2025-07-31 21:22:04 -07:00
Ishaan Jaff
547c46cd02
add When to Use Each Endpoint (#13193) 2025-07-31 17:16:46 -07:00
Ishaan Jaff
cc4881eedd ui new build 2025-07-31 17:11:49 -07:00
Cole McIntosh
0666ede8e3
fix: correct patch path in langfuse test for MAX_LANGFUSE_INITIALIZED_CLIENTS (#13192)
The test was failing because it was trying to patch MAX_LANGFUSE_INITIALIZED_CLIENTS
at the wrong path. The constant is imported from litellm.constants into the langfuse
module namespace, so we need to use patch.object on the imported module reference.

Changes:
- Import langfuse module explicitly for patching
- Use patch.object instead of patch string path
- This fixes the AttributeError that was causing CI failures
2025-07-31 17:11:28 -07:00
Ishaan Jaff
56fc0cf374 ui polish 2025-07-31 17:08:47 -07:00
Ishaan Jaff
3acb78d450
Litellm fix fallbacks UI (#13191)
* UI - fix setting fallbacks on UI

* fix add fallbacks
2025-07-31 17:07:15 -07:00
Ishaan Jaff
ee70d593c1
[Feat] Allow redacting message / response content for specific logging integrations - DD LLM Observability (#13158)
* fix redact_standard_logging_payload

* add StandardCustomLoggerInitParams

* allow defining DatadogLLMObsInitParams

* fix init DataDogLLMObsLogger

* fix import

* update redact_standard_logging_payload_from_model_call_details

* test_dd_llms_obs_redaction

* docs DD logging

* docs DD

* docs DD

* Redacting Messages, Response docs DD LLM Obs

* fix redaction logic

* fix create_llm_obs_payload

* fix logging response

* fixes

* ruff fix

* fix test

* test_dd_llms_obs_redaction

* test_create_llm_obs_payload

* redact_standard_logging_payload_from_model_call_details

* img - dd_llm_obs

* docs DD

* fix linting

* fix linting

* fix mypy

* test_create_llm_obs_payload

* test_create_llm_obs_payload

* fix mock_env_vars

* fix _handle_anthropic_messages_response_logging
2025-07-31 16:44:16 -07:00
Ishaan Jaff
115d2480c1
[Bug Fix] Infra - ensure that stale Prisma clients disconnect DB connection (#13140)
* ensure original client is disconnected when re-creating

* test_recreate_prisma_client_successful_disconnect

* test_recreate_prisma_client_successful_disconnect
2025-07-31 16:43:26 -07:00
Ishaan Jaff
cbb922b1bb
[Bug Fix] Gemini-CLI Integration - ensure tool calling works as expected on generateContent (#13189)
* transform_generate_content_request

* add tools in GenerateContentRequestDict

* add generate_content_handler tool calling

* google_generate_content_endpoint_testing

* test_mock_stream_generate_content_with_tools

* test_validate_post_request_parameters

* fixes for generate_content_handler

* fix VertexAIGoogleGenAIConfig

* fixes veretx ai

* google_generate_content_endpoint_testing

* test_async_streaming_with_logging

* load_vertex_ai_credentials

* test_vertex_anthropic.py
2025-07-31 16:42:57 -07:00
Anand Khinvasara
212a339954
fix: support negative indexes in cache_control_injection_points for Anthropic Claude (#10226) (#13187) 2025-07-31 15:50:53 -07:00
Ishaan Jaff
edd3c3bc40 UI - new build 2025-07-31 14:16:16 -07:00
Jugal D. Bhatt
524a1ffd5f
[Proxy Startup]fix db config through envs (#13111)
* fix db config through envs

* add helper

* fix ruff

* fix imports

* add unit tests in db config changes
2025-07-31 13:52:56 -07:00
Ishaan Jaff
79be436c2b
[Feat] Background Health Checks - Allow disabling background health checks for a specific (#13186)
* disable background health checks for specific models

* test_background_health_check_skip_disabled_models

* Disable Background Health Checks For Specific Models
2025-07-31 13:48:35 -07:00
Ishaan Jaff
65ca4f66f6 Revert "add framework name to UserAgent header in AWS Bedrock API call (#13159)"
This reverts commit 77f506e860.
2025-07-30 23:12:36 -07:00
Ishaan Jaff
fad453bbf3 test_chat_completion_ratelimit 2025-07-30 23:12:11 -07:00
Kowyo
c35003bba0
fix: remove obsolete attribute version in docker compose (#13172)
Fix the warning: WARN[0000] docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
2025-07-30 22:56:06 -07:00
0x-fang
77f506e860
add framework name to UserAgent header in AWS Bedrock API call (#13159) 2025-07-30 22:44:22 -07:00
Krish Dholakia
c6a8733234
build(config.yml): migrate build_and_test to ci/cd pg db (#13166) 2025-07-30 18:19:36 -07:00
Ishaan Jaff
cf4c639dad test fix xai - it goes through base llm tests already 2025-07-30 18:18:49 -07:00
Krrish Dholakia
e3ba350345 ci: migrate to postgres in ci/cd 2025-07-30 17:00:06 -07:00
Krrish Dholakia
2266938184 ci(config.yml): remove check 2025-07-30 16:33:42 -07:00
Krrish Dholakia
09cc748871 test: handle api instability 2025-07-30 16:32:23 -07:00
Ishaan Jaff
50b1332fd5 poetry lock 2025-07-30 16:05:56 -07:00
Ishaan Jaff
090e2ffb5a Revert "[LLM translation] Fix bedrock computer use (#13143)"
This reverts commit 840dd2e7c7.
2025-07-30 16:03:35 -07:00
Jugal D. Bhatt
fa7e203953
fix migrations (#13157) 2025-07-30 15:56:45 -07:00
Krrish Dholakia
88aed06bbb ci: migrate to db in pipeline 2025-07-30 15:48:15 -07:00
Krrish Dholakia
2af5900c00 build(pyproject.toml): bump version 2025-07-30 15:45:37 -07:00
Ishaan Jaff
5aa4a70bd3 fix grype scan 2025-07-30 15:35:16 -07:00