Commit Graph
26179 Commits
Author SHA1 Message Date
Krrish Dholakia 37fdb486d4 refactor: comment out oauth error raising logic for now 2025-10-08 19:06:19 -07:00
Krrish Dholakia c97495c5d9 docs(mcp.md): document new allow/disallow tool parameters functionality 2025-10-08 17:39:42 -07:00
Krrish Dholakia 0b27c361fe feat(mcp/): initial commit raising correct oauth error 2025-10-08 17:33:11 -07:00
Krrish Dholakia ecb6c0e814 fix(mcp_server_manager.py): ensure only allowed params sent to MCP server 2025-10-08 16:37:50 -07:00
Krrish Dholakia dd4249db78 feat(mcp_server_manager.py): initial commit adding allowed params support
allow admin to specify which parameters to allow/disallow by MCP tool
2025-10-08 16:27:01 -07:00
Ishaan JaffandGitHub 1c56a0d856 [Fix] Watsonx - Apply correct prompt templates for openai/gpt-oss model family (#15341)
* fix: apply_prompt_template

* Revert "fix: apply_prompt_template"

This reverts commit 3e0e40b497.

* add apply_prompt_template for WatsonX

* feat: add apply_prompt_template

* test_watsonx_gpt_oss_prompt_transformation

* Revert "add apply_prompt_template for WatsonX"

This reverts commit 3e80903796e39d4fe7206d63445e024c3ad8d0c4.

* add apply_prompt_template for WatsonX

* fix apply_prompt_template

* fix: add hf template handler

* fix hf_chat_template

* fix _get_tokenizer_config

* fix hf_chat_template

* add WatsonXModelPattern

* fix aapply_prompt_template
2025-10-08 15:39:36 -07:00
Ishaan Jaffer 9d84a7cc8b Revert "fix: apply_prompt_template"
This reverts commit 3e0e40b497.
2025-10-08 13:56:47 -07:00
Ishaan Jaffer 3e0e40b497 fix: apply_prompt_template 2025-10-08 13:56:25 -07:00
Felipe GaréandGitHub f12b8bf2c1 feat(files): add @client decorator to file operations (#15339)
- Decorate sync/async file APIs (retrieve, delete, list, content) with @client
- Ensures calls route through the configured client, honoring provider/client config
- Standardizes behavior across file endpoints and aligns with existing patterns
- No API signature changes; improves consistency and client-bound usage
2025-10-08 13:42:34 -07:00
0b6b69cd5b fix issue with parsing assistant messages (#15320)
* Update factory.py

* reinclude the test cases

* fixed test

---------

Co-authored-by: Weijie <weijie-tan3@github.com>
2025-10-08 09:49:02 -07:00
Krish DholakiaandGitHub 13703f289b Merge pull request #15292 from timelfrink/fix/bedrock-prompt-caching-cost-calculation
fix(bedrock): include cacheWriteInputTokens in prompt_tokens calculation
2025-10-07 19:11:45 -07:00
Krish DholakiaandGitHub 3f4d2c6ada Add Cohere Embed v4 support for AWS Bedrock
Add Cohere Embed v4 support for AWS Bedrock
2025-10-07 19:10:22 -07:00
Ishaan Jaffer 5d6cd3ffed UI new build 2025-10-07 18:59:11 -07:00
Ishaan Jaffer a8243079d3 doc fix 2025-10-07 18:51:27 -07:00
Ishaan JaffandGitHub 8a8cc5a1d3 [QA/Fixes] - Dynamic Rate Limiter v3 - final QA (#15311)
* fix: PriorityReservationSettings

* fix: use correct casting

* fix type casting
2025-10-07 18:42:17 -07:00
Krish DholakiaandGitHub 1238464e20 Merge pull request #15303 from BerriAI/litellm_tenacity_upgrade
Upgrades tenacity version to 8.5.0
2025-10-07 18:19:52 -07:00
Krish DholakiaandGitHub 60fb8cdb87 Merge pull request #15308 from BerriAI/litellm_models_page_crash_fix
fix: model + endpoints page crash when config file contains router_settings.model_group_alias
2025-10-07 18:19:15 -07:00
Ishaan Jaffer 7b82473bfb fix gpt-image-1-mini 2025-10-07 17:56:51 -07:00
Ishaan Jaffer e1ab3620ee fix: mapped tests 2025-10-07 17:55:52 -07:00
Ishaan Jaffer 8590646b84 fix code QA check 2025-10-07 17:49:57 -07:00
Ishaan Jaffer f2a96e6830 fix: e2eUI testing 2025-10-07 17:45:30 -07:00
Achintya Rajan 9fa8c6099e Update model_group_alias_settings.tsx 2025-10-07 17:42:04 -07:00
Ishaan JaffandGitHub 36c971a6fd [MCP Gateway] QA/Fixes - Ensure Team/Key level enforcement works for MCPs (#15305)
* fix: _set_object_permission

* fix: _set_object_permission on teams

* fix: _set_object_permission

* fixes for team/key permissions

* statsh: object permission view

* fix: MCPServerPermissions

* fix: _get_team_object_permission

* test mcp checks for permissions

* fix server checks with prefix names

* test_list_tools_strips_prefix_when_matching_permissions

* ruff fix

* docs - refactor MCP

* docs update MCP docs

* docs allowed tools
2025-10-07 17:34:48 -07:00
Ishaan JaffandGitHub 7b56ba240e [MCP Gateway] Litellm mcp fixes team control (#15304)
* fix: _set_object_permission

* fix: _set_object_permission on teams

* fix: _set_object_permission

* fixes for team/key permissions

* statsh: object permission view

* fix: MCPServerPermissions
2025-10-07 16:48:00 -07:00
Alexsander HamirandGitHub 49e04e0217 [Fix] Networking: remove limitations (#15302)
* fix: remove limitations

* fix: linter issues
2025-10-07 16:45:42 -07:00
Achintya Rajan f72f21b261 Update requirements.txt 2025-10-07 16:18:48 -07:00
Ishaan JaffandGitHub bc26eff98f Fix: Make PATCH /model/{model_id}/update handle team_id consistently with POST /model/new (#15297)
* fix: _update_team_model_in_db

* test_patch_model_with_team_id_creates_proper_setup
2025-10-07 14:04:08 -07:00
Tim Elfrink d71d801e4d Add Cohere Embed v4 support for AWS Bedrock
- Add cohere.embed-v4:0 to model pricing configs
- Update bedrock_embedding_models constant
- Update documentation with v4 model support

Fixes #15272
2025-10-07 22:08:12 +02:00
Ishaan JaffandGitHub 07a17d6d6b [Feat] Proxy CLI - dont store existing key in the URL, store it in the state param (#15290)
* Feat: CLI Auth fixes for UI SSO

* fix auth.py

* fix test ui sso.py
2025-10-07 12:36:17 -07:00
Tim Elfrink c5eb22381d fix(bedrock): include cacheWriteInputTokens in prompt_tokens calculation
Fixes #15263

This PR fixes the cost calculation for Bedrock Anthropic models with prompt caching.

**Root Cause:**
PR #9838 incorrectly removed adding `cacheWriteInputTokens` to `prompt_tokens`
for Bedrock, based on the assumption that it would cause double counting (similar
to an Anthropic API issue). However, Bedrock's token structure is different:

- **Bedrock API**: `inputTokens`, `cacheReadInputTokens`, and `cacheWriteInputTokens`
  are ALL separate values that should be summed for total input tokens
- **Anthropic API**: Same structure - all three token types are separate

The fix in #9838 was later reverted for Anthropic (correctly re-adding
`cache_creation_input_tokens` to `prompt_tokens`), but Bedrock was never fixed.

**Changes:**
1. Re-add `cacheWriteInputTokens` to `input_tokens` in Bedrock transformation
2. Update test assertions to reflect correct behavior
3. Add regression test for prompt caching cost calculation
4. Fix typo in Anthropic transformation where `cache_creation_tokens` was
   incorrectly set to `cache_read_input_tokens`

**Testing:**
- All existing Bedrock transformation tests pass
- New test validates correct cost calculation with prompt caching
- Verified costs are non-negative and accurate
2025-10-07 20:28:46 +02:00
Sameer KankuteandGitHub 51971f4750 Add gpt-realtime-mini support (#15283) 2025-10-07 11:27:04 -07:00
Sameer KankuteandGitHub e4892735f0 fix gemini cli by actually streaming the response (#15264)
* fix gemini cli by actually streaming the response

* fix cost tracking

* fix test
2025-10-07 11:26:39 -07:00
Sameer KankuteandGitHub 73f96712f5 fix the reasoningresponse id (#15265) 2025-10-07 11:24:29 -07:00
Krrish Dholakia 421d38c94a build(ui/): build new ui v1.77.7.dev.3 2025-10-07 10:48:19 -07:00
Krish DholakiaandGitHub f044eb80de Merge pull request #15285 from BerriAI/litellm_infinity_new_provider_ui
feature: adds Infinity as a provider in the UI
2025-10-07 10:46:05 -07:00
Achintya Rajan e2f21beb7f added Infinity as a provider in the UI 2025-10-07 10:21:18 -07:00
Sameer KankuteandGitHub c0d0424eb8 Added streaming support for response api streaming image generation (#15269) 2025-10-07 08:15:57 -07:00
Krrish Dholakia faeb7484db docs(vertex.md): fix doc 2025-10-06 20:45:58 -07:00
Krish DholakiaandGitHub 12cbac74b1 Merge pull request #15210 from uc4w6c/feat/add_global_cross_region
feat: add Global Cross-Region Inference
2025-10-06 20:21:18 -07:00
Krish DholakiaandGitHub 077b5e105f Merge pull request #15240 from BerriAI/litellm_dev_10_06_2025_p1
Azure - passthrough support with router models
2025-10-06 20:06:43 -07:00
Krish DholakiaandGitHub 94a34dd53a Merge branch 'main' into litellm_dev_10_06_2025_p1 2025-10-06 20:06:30 -07:00
Krish DholakiaandGitHub 8b357c24c2 Merge pull request #15226 from otaviofbrito/chore/vertex-ai-context-caching
Chore/vertex ai context caching
2025-10-06 20:05:24 -07:00
Krish DholakiaandGitHub 6b4415684e Merge pull request #15253 from BerriAI/litellm_dev_10_06_2025_p2
fix(azure/responses): remove invalid status param from azure call + MCP - support setting CA_BUNDLE_PATH
2025-10-06 20:01:39 -07:00
Ishaan JaffandGitHub d1d411ca2c feat: add litellm_add_gpt_image1_mini_models (#15259) 2025-10-06 19:58:55 -07:00
Teddy AmkieandGitHub e5ca61d026 feat: add stop parameter to non-supported params for GPT-5 (#15244)
- Add 'stop' parameter to the non_supported_params list in OpenAIGPT5Config
- This ensures the stop parameter is automatically dropped when calling GPT-5 models
- Resolves issue where stop parameter was not being stripped for GPT-5
2025-10-06 19:57:21 -07:00
Sameer KankuteandGitHub 8d7f39798c Removed stop param from unsupported azure models (#15229)
* Removed stop param from unsupported model

* Use better handling for stop method

* Use better handling for stop method
2025-10-06 19:56:18 -07:00
Krish DholakiaandGitHub 6e538033ed Merge pull request #15249 from BerriAI/litellm_router_settings_update_fix
fix: Router settings do not update despite success message
2025-10-06 19:53:08 -07:00
Krish DholakiaandGitHub 6bb34e5168 Merge pull request #15252 from BerriAI/litellm_view_key_pagination_calls_fix
(perf) fix: Replaces bloated key list calls with lean key aliases endpoint
2025-10-06 19:51:26 -07:00
Krish DholakiaandGitHub 3f6717bfd8 Merge pull request #15250 from BerriAI/litellm_next_turbopack_for_dev
Adds turbopack to the npm run dev command in UI to build faster during development
2025-10-06 19:50:41 -07:00
Teddy AmkieandGitHub 1ad4ef267d Add GPT-5 Pro model configuration and documentation (#15258)
- Added gpt-5-pro entry to model_prices_and_context_window.json with complete specifications
- Mode: responses (Responses API only)
- Pricing: $15.00 input / $120.00 output (Standard), $7.50 input / $60.00 output (Batch)
- Context: 400,000 input tokens, 272,000 output tokens
- Endpoints: /v1/batch, /v1/responses only
- Features: Web Search, Function Calling, Vision, PDF Input, Prompt Caching, Reasoning
- No streaming support, no Code Interpreter, no Computer Use

- Added gpt-5-pro to supported models list in docs/my-website/src/pages/completion/supported.md
- Added gpt-5-pro to OpenAI provider documentation in docs/my-website/docs/providers/openai.md
- Added comprehensive GPT-5 Pro Special Notes section with usage examples and limitations
2025-10-06 19:43:40 -07:00