Commit Graph
26868 Commits
Author SHA1 Message Date
Chris GibbonsandGitHub 2bef7c3662 fix: Preserve Bedrock inference profile IDs in health checks (#15947)
* fix: Preserve Bedrock inference profile IDs in health checks

- Fixes issue where health checks were stripping inference profile IDs
- Preserves cross-region inference profile prefixes (us., eu., apac., jp., au., us-gov., global.)
- Strips only AWS region routing while preserving routes and handlers
- Resolves both issue #15807 and inference profile requirement errors
- Adds comprehensive tests for all Bedrock model format combinations

Issue #15807 attempted to fix regional Bedrock model health checks but was too
aggressive, stripping cross-region inference profile prefixes that AWS requires.
This caused errors: "Invocation of model ID X with on-demand throughput isn't
supported. Retry your request with the ID or ARN of an inference profile."

The fix now correctly:
- Strips AWS regions (us-west-2, eu-central-1, etc.) from routing
- Preserves CRIS prefixes (us., eu., etc.) required by AWS
- Preserves routes (converse/, invoke/)
- Preserves handlers (llama/, deepseek_r1/)
- Only affects Bedrock models (checked via startswith)

Test coverage includes 20+ scenarios for all Bedrock model format combinations.

* Remove unused traceback import
2025-10-27 19:44:45 -07:00
YutaSaitoandGitHub 8b33328cc1 Perf speed up pytest (#15951)
* perf: Skip sleep delays in base_mail.py during tests to improve test speed

* perf: Mock datetime.now in parallel_request_limiter_v3.py to improve test speed

* pref: Mock urllib system calls in test_aiohttp_transport.py to improve test speed

* chore: add --durations=50 to visualize slowest tests

* pref: reduce setup phase overhead by widening fixture scope in conftest.py

* test: stabilize flaky tests

* fix: minor issue
2025-10-27 19:43:40 -07:00
Mac MisiuraandGitHub 5ad108bc9b 📝 updated ibm_guardrails.md to better indicate how detectors could be configured (#15971) 2025-10-27 19:41:10 -07:00
dima-hx430andGitHub c5c37bf7f5 Add models missing deprecation dates (#15976) 2025-10-27 19:39:38 -07:00
Ishaan JaffandGitHub 4cef208c5f [Fix] - Responses API - add /openai routes for responses API. (Azure OpenAI SDK Compatibility) (#15988)
* add /openai routes for responses API

* TestResponsesAPIEndpoints
2025-10-27 19:12:13 -07:00
yuneng-jiangandGitHub 43af45ab88 Key Already Exist Error Notification (#15993) 2025-10-27 18:00:38 -07:00
Ishaan Jaffer a3d64fb843 fix omni-moderation-latest 2025-10-27 17:48:35 -07:00
Ishaan Jaffer 0e23f89eb7 fix ModelArmorGuardrail 2025-10-27 17:47:19 -07:00
Ishaan Jaffer d5f48c7e23 get_metadata_variable_name_from_kwargs 2025-10-27 17:38:24 -07:00
Ishaan Jaffer de6fffe743 bump: version 1.79.0 → 1.79.1 2025-10-27 17:22:54 -07:00
yuneng-jiangandGitHub 64167b7e34 Remove limit from admin UI numerical input fix (#15991) 2025-10-27 17:20:58 -07:00
yuneng-jiangandGitHub 4ed9c7d7f2 [Feat] UI - Changed API Base from Select to Input in New LLM Credentials (#15987)
* Changed API Base from Select to Input

* Added Tests
2025-10-27 15:46:04 -07:00
Ishaan Jaffer 1acc321eb3 test_router_amoderation 2025-10-27 13:50:32 -07:00
Ishaan Jaffer 2d836dfb6d test_basic_moderations_on_proxy_with_model 2025-10-27 13:49:47 -07:00
Ishaan Jaffer cb57455172 test_foward_litellm_user_info_to_backend_llm_call 2025-10-27 13:48:23 -07:00
Sameer KankuteandGitHub 59df75276c Fix: Respect LiteLLM-Disable-Message-Redaction header for Responses API (#15966)
* fix overide for logging unredacted messages

* Use _get_metadata_variable_name_from_kwargs

* fix test related to redaction
2025-10-27 13:46:21 -07:00
Ishaan JaffandGitHub 0bb53f5048 [Fix] Azure OpenAI - Add handling for v1 under azure api versions (#15984)
* fix _is_azure_v1_api_version

* test_is_azure_v1_api_version
2025-10-27 13:45:44 -07:00
Ishaan JaffandGitHub 65afdda3ef fix exception triggered only when not logging (#15982) 2025-10-27 13:45:34 -07:00
Ishaan JaffandGitHub 17f6238d2b [Feat] OTEL - Ensure error information is logged on OTEL (#15978)
* fix _record_exception_on_span

* _record_exception_on_span

* test_record_exception_on_span

* fix linting errors
2025-10-27 13:45:21 -07:00
Ishaan JaffandGitHub 02df4c6b30 [Fix] DD logging - ensure key's metadata + guardrail is logged on DD (#15980)
* fix get_sanitized_user_information_from_key

* test_get_sanitized_user_information_from_key_includes_guardrails_metadata
2025-10-27 13:45:09 -07:00
Ishaan JaffandGitHub 20f9e189fb [Buf fix] - Azure OpenAI, fix ContextWindowExceededError is not mapped from Azure openai errors (#15981)
* fix is_error_str_context_window_exceeded

* test_is_error_str_context_window_exceeded
2025-10-27 13:44:55 -07:00
Shanto MathewandGitHub 4535b5847d docs(openrouter): add base_url config with environment variables (#15946)
Added a new "Configuration with Environment Variables" section demonstrating:
- Using os.getenv() to dynamically retrieve OpenRouter configuration
- Explicitly passing base_url parameter with environment variables
- Benefits of this approach for managing configs across environments

This helps users implement production-ready configuration patterns.
2025-10-27 13:35:52 -07:00
pinkguandGitHub 4758e2998b feat: support during_call for model armor guardrails (#15970)
Signed-off-by: bjornjee <bjornjee95@gmail.com>
2025-10-27 13:34:59 -07:00
Rob GeadaandGitHub 49b9bd3cad Update IBM Guardrails implementation to correctly registrer SSL Verify argument (#15975)
Signed-off-by: Rob Geada <rob@geada.net>
2025-10-27 13:00:32 -07:00
Krrish Dholakia e1f54ef02c docs: refactor placement of adding guardrails to endpoints doc 2025-10-27 10:26:00 -07:00
YutaSaitoandGitHub c0890e7d33 [Feat] add support for dynamic client registration (#15921) (enables Atlassian MCP to work via Oauth on LiteLLM)
* feat: add support for dynamic client registration #13856

* fix: test

* feat: return 401 when oauth2_header is missing for OAuth2-based MCP servers
2025-10-26 10:13:46 -07:00
75b5624b32 Fix duplicate trace (#15931)
Co-authored-by: eycjur <eycjur@example.com>
2025-10-26 10:12:04 -07:00
Sameer KankuteandGitHub 70650a044c Add all sora models (#15937) 2025-10-26 10:10:57 -07:00
d8b44f4dbf Enable OpenTelemetry context propagation by external tracers (#15940)
* Fix: Enable OpenTelemetry context propagation with external tracers

* Add test for handling external tracers

* change priority to get tracer

---------

Co-authored-by: eycjur <eycjur@example.com>
2025-10-26 10:09:54 -07:00
oroxenbergandGitHub a75e75ae1a feat(lasso): Upgrade to Lasso API v3 and fix ULID generation (#15941)
* 1. add v3 classify
2. add new classifix for masking
3. support same id for the conversation for pre and post
working with duplicates

* clean code, remove some debug and run tests

* update liter errors

* improvment for Code Organization, httpx Error Handling Specificity, Logging Improvements and Type

* transfer test test_lasso_guard_config to the new location

* Fix type hints and linting errors in lasso.py

- Add type: ignore for httpx module when None
- Fix return type issues in _handle_classification and _handle_masking
- Ensure masked_messages is not None before passing to _apply_masking_to_model_response
- Convert LassoResponse to dict for _log_masking_applied call

* feat(lasso): Upgrade to Lasso API v3 and fix ULID generation

- Update Lasso API endpoints from v2 to v3 (/gateway/v3/classify)
- Update masking endpoints from v1 to v3 (/gateway/v3/classifix)
- Fix ULID generation: use ulid.new() instead of ULID() constructor
- Resolve MemoryView error that occurred with incorrect ULID usage

Tested with real proxy server and verified:
- Malicious content (jailbreak) properly blocked
- Safe content passes through guardrail
- PII detection and masking works correctly
- No ULID generation errors

* docs(lasso): Add ulid-py>=1.1.0 dependency prerequisite

Add Prerequisites section documenting the required ulid-py package
(version 1.1.0 or higher) for Lasso guardrail conversation tracking.

* update docs with the right api_key format
2025-10-26 10:08:52 -07:00
Ishaan JaffandGitHub 06a17ac1af 1-79-0 docs (#15936)
* draft v1-79-0

* docs fix

* docs fix

* 1.78.5-stable

* docs fix

* docs fix

* docs video gen
2025-10-25 18:04:04 -07:00
Ishaan Jaffer d6b0c11d5b test fixes, fk azure v1.79.0-nightly v1.79.0.rc.1 2025-10-25 17:15:52 -07:00
Ishaan Jaffer 4fc692d1e3 TestGooglePSESearch 2025-10-25 17:13:45 -07:00
Ishaan Jaffer 869ff086f0 bump: version 1.78.9 → 1.79.0 2025-10-25 17:11:48 -07:00
Ishaan Jaffer 3ef6ff8696 bump: version 1.78.8 → 1.78.9 2025-10-25 17:11:41 -07:00
Ishaan Jaffer cd0db19750 unstable test 2025-10-25 17:11:13 -07:00
Ishaan Jaffer cbadcd4a77 TestPerplexityIntegration 2025-10-25 17:06:01 -07:00
Ishaan Jaffer 04ff660276 fixes exception handling 2025-10-25 16:55:16 -07:00
Ishaan Jaffer bbfddd00e4 test fix 2025-10-25 16:46:29 -07:00
Ishaan Jaffer 3441b7b737 qa fix 2025-10-25 16:46:11 -07:00
Ishaan Jaffer 8a12e01f9e fix code qa 2025-10-25 16:40:58 -07:00
Ishaan Jaffer 6ac21ddcec fix build and test gpt-3.5-turbo 2025-10-25 16:39:14 -07:00
Ishaan Jaffer a1d3790198 TestAzureResponsesAPITest 2025-10-25 16:22:52 -07:00
Krrish Dholakia ef2c50c408 fix: fix linting errors 2025-10-25 16:18:54 -07:00
Krrish Dholakia 0f7e1acfc6 test: update tests 2025-10-25 16:14:19 -07:00
Krrish Dholakia 3c0df6a2da test: update unit testing 2025-10-25 16:09:53 -07:00
Ishaan Jaffer f0ae2bef4f TestAzureResponsesAPITest 2025-10-25 16:09:04 -07:00
Ishaan Jaffer 4341495508 search test fix credits 2025-10-25 16:05:44 -07:00
Ishaan Jaffer a6b6e56246 fixes azure 2025-10-25 15:54:30 -07:00
Ishaan Jaffer 4145f8c098 fix: regression responses_id_security 2025-10-25 15:47:40 -07:00