Commit graph

26121 commits

Author SHA1 Message Date
Sameer Kankute
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 Dholakia
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 Dholakia
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 Dholakia
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 Amkie
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
Ishaan Jaff
1d468a59f3
[MCP Gateway] Fine-grained Database Object Storage Control (#15255)
* add supported_db_objects

* add _should_load_db_object

* add docs on storing MCP objects in DB

* test_should_load_db_object_with_supported_db_objects

* type fix
2025-10-06 19:31:44 -07:00
Ishaan Jaff
930f88078e
[MCP Gateway] Backend - Allow storing allowed tools by team/key (#15243)
* add mcp_tool_permissions column to LiteLLM_ObjectPermissionTable

* add mcp_tool_permissions

* add LiteLLM_ObjectPermissionTable

* test key/team mgmt

* fix code QA check

* fix check_tool_permission_for_key_team

* test_key_tool_permission_allows_permitted_tool

* test_list_tools_filters_by_key_team_permissions

* fix _get_tools_from_mcp_servers

* fix logger.debug

* fix check_tool_permission_for_key_team

* fix: filter_tools_by_key_team_permissions

* fix _get_team_object_permission

* fix _set_object_permission

* fix handle_update_object_permission_common

* fix add allowed tools to keys

* test add key/team level tool permissions for MCPs
2025-10-06 18:49:32 -07:00
Alexsander Hamir
9aa2dc2e8e
[Refactor] Utils: extract inner function from client (#15234)
* fix: remove func definition from inside client

It makes the function bigger and harder to understand, I left just the wrappers.

* fix: test_arouter_test_team_model failure

- Added fallback to the model_name to index functionality.
2025-10-06 18:30:01 -07:00
Achintya Rajan
264f1cded1
Merge branch 'main' into litellm_view_key_pagination_calls_fix 2025-10-06 18:10:57 -07:00
=
ee00490c24 Update package.json 2025-10-06 18:05:48 -07:00
Achintya Rajan
19f0c498e5 Update general_settings.tsx 2025-10-06 17:52:13 -07:00
Krrish Dholakia
fbf7ca17ba docs(security_encryption_faq.md): answers common questions about data at rest vs. in transit 2025-10-06 17:34:10 -07:00
Ishaan Jaff
4c9bd3e0de
[MCP Gateway] UI - Select allowed tools for Key, Teams (#15241)
* fix: MCPServerSelectorProps

* Tool Permissions

* Teams: tool permissions

* Add MCP team level permissions

* fix MCP tool permissions

* allow selecting MCP tools for Keys, teams

* fix: add mcp tool level permissions by key, team

* MCP Tool permissions test
2025-10-06 14:37:43 -07:00
Ishaan Jaffer
a56069b722 UI: new build 2025-10-06 13:16:52 -07:00
Sameer Kankute
cd25782359
fix passing headers for gemini (#15231) 2025-10-06 12:59:19 -07:00
Gal Bloch
27c64c90dc
feat: Add 25 new Watson X foundation models (#15219)
Added comprehensive Watson X model support including:
- IBM Granite models (granite-4-h-small, granite-3-3-8b-instruct, granite-guardian variants, granite-vision, granite-ttm time series models)
- Meta Llama models (llama-3-2-1b/3b/11b-vision/90b-vision, llama-3-3-70b, llama-4-maverick-17b, llama-guard-3-11b-vision)
- Mistral models (mistral-medium-2505, mistral-small-2503, pixtral-12b-2409)
- Additional models (BigScience mt0-xxl-13b, Google flan-t5-xl-3b, OpenAI gpt-oss-120b, SDAIA allam-1-13b-instruct, Core42 jais-13b-chat)

All models include proper pricing, token limits, and capability flags (function calling, vision support, etc.) based on IBM Watson X documentation.
2025-10-06 12:33:05 -07:00
Alexsander Hamir
ddb90c9ad7
[Fix] - Router: add model_name index for O(1) deployment lookups (#15113)
* perf(router): add model_name index for O(1) deployment lookups

Add model_name_to_deployment_indices mapping to optimize _get_all_deployments()
from O(n) to O(1) + O(k) lookups.

- Add model_name_to_deployment_indices: Dict[str, List[int]]
- Add _build_model_name_index() to build/maintain the index
- Update _add_model_to_list_and_index_map() to maintain both indices
- Refactor to use idx = len(self.model_list) before append (cleaner)
- Optimize _get_all_deployments() to use index instead of linear scan

* test(router): add test coverage for _build_model_name_index

Add single comprehensive test for _build_model_name_index() function to fix
code coverage CI failure.

The test verifies:
- Index correctly maps model_name to deployment indices
- Handles multiple deployments per model_name
- Clears and rebuilds index correctly

Fixes: CI code coverage error for _build_model_name_index
2025-10-06 08:14:11 -07:00
Krish Dholakia
9383ffccd6
Merge pull request #15221 from jatorre/feat/snowflake-tools-clean
feat(snowflake): add function calling support for Snowflake Cortex REST API
2025-10-05 22:20:44 -07:00
Krish Dholakia
30d24fa44c
Merge pull request #15215 from ARajan1084/prettier-support
Added prettier to autoformat frontend
2025-10-05 22:02:37 -07:00
Javier de la Torre
df232a71f1 feat(snowflake): add function calling support for Snowflake Cortex REST API
Add support for function calling (tools) with Snowflake Cortex models that support it (e.g., Claude 3.5 Sonnet).

Changes:
- Add 'tools' and 'tool_choice' to supported OpenAI parameters
- Implement request transformation: OpenAI function format → Snowflake tool_spec format
- Implement response transformation: Snowflake content_list with tool_use → OpenAI tool_calls
- Add tool_choice transformation: OpenAI nested format → Snowflake array format

Request transformation:
- Transform tools from nested {"type": "function", "function": {...}} to Snowflake's {"tool_spec": {"type": "generic", "name": "...", "input_schema": {...}}}
- Transform tool_choice from {"type": "function", "function": {"name": "..."}} to {"type": "tool", "name": ["..."]}

Response transformation:
- Parse Snowflake's content_list array containing tool_use objects
- Extract tool calls with tool_use_id, name, and input
- Convert to OpenAI's tool_calls format with proper JSON serialization

Testing:
- Add 7 unit tests covering request/response transformations
- Add integration test for Responses API with tool calling
- All tests passing

Fixes issue #15218

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-05 13:08:33 +02:00
Ishaan Jaffer
b348a26bdc docs fix 2025-10-04 18:32:45 -07:00
Ishaan Jaffer
b2dd50dd3e docs key rotations 2025-10-04 18:29:01 -07:00
=
5197268a58 added and ran prettier autoformatter 2025-10-04 18:19:48 -07:00
Ishaan Jaffer
e58c2c5c3e docs fix 2025-10-04 18:13:08 -07:00
Ishaan Jaffer
163416c683 docs fix 2025-10-04 18:12:47 -07:00
Ishaan Jaffer
6cf1806d3b docs fix 2025-10-04 18:12:20 -07:00
Ishaan Jaffer
bd2559e65e docs fix 2025-10-04 18:11:58 -07:00
Ishaan Jaffer
525b86687c fix 1.77.7 stable 2025-10-04 18:11:01 -07:00
Ishaan Jaffer
4e88e21266 docs fix 2025-10-04 18:04:11 -07:00
Ishaan Jaffer
93022361e6 docs fix 2025-10-04 18:03:04 -07:00
Ishaan Jaffer
d12da2e56e docs fix 2025-10-04 18:02:04 -07:00
Alexsander Hamir
9d6c06dc7a
doc: perf update (#15211) 2025-10-04 17:59:08 -07:00
Ishaan Jaffer
02cb7a4c3b docs fix 2025-10-04 17:29:06 -07:00
Ishaan Jaffer
8c495590b1 doc improvement 2025-10-04 17:21:41 -07:00
Ishaan Jaffer
553801c7b4 docs 2025-10-04 17:21:00 -07:00
Krrish Dholakia
b7ca138a8d docs(prometheus.md): fix 2025-10-04 16:23:54 -07:00
Krrish Dholakia
98d709d351 fix(key_management_endpoints.py): retain error check when non proxy admin is trying to update key belonging to a different user 2025-10-04 16:22:35 -07:00
Ishaan Jaffer
97e00f694c fix azure assistants test 2025-10-04 16:18:14 -07:00
Ishaan Jaffer
a1e5c9426f bump to migrations to 0.2.25 2025-10-04 16:16:34 -07:00
Ishaan Jaffer
e9e91a4b28 fix remove dup migration 2025-10-04 16:13:33 -07:00
Krrish Dholakia
63cb2764fe test: fix raise 2025-10-04 16:11:22 -07:00
Krrish Dholakia
8dc53c0438 docs: document updates 2025-10-04 16:06:18 -07:00
=
1ce21d1f58 Update key_management_endpoints.py 2025-10-04 16:02:15 -07:00
Krish Dholakia
a7152f3bd8
Merge pull request #15185 from BerriAI/litellm_dev_10_03_2025_p1
(MCP - feat) UI - show health status of MCP servers, allow setting extra headers on the UI, allow editing allowed tools on the UI
2025-10-04 15:46:02 -07:00
Krrish Dholakia
171b6b13b2 fix(litellm_pre_call_utils.py): fix return statement 2025-10-04 15:43:56 -07:00
Krrish Dholakia
2d1000c461 test: update tests 2025-10-04 15:31:25 -07:00
Krrish Dholakia
6500a4a822 fix: fix minor issues 2025-10-04 15:30:46 -07:00
Krish Dholakia
a9037ab61f
Merge branch 'main' into litellm_dev_10_03_2025_p1 2025-10-04 15:23:31 -07:00
Krish Dholakia
85c4dd1283
Merge pull request #15154 from BerriAI/litellm_dev_10_02_2025_p2
fix(proxy_server.py): handle decrypting model list from db, when lite…
2025-10-04 15:23:11 -07:00
Krish Dholakia
75e3f4e10d
Merge pull request #15120 from BerriAI/litellm_dev_10_01_2025_p2
(feat) Support 'guaranteed_throughput' when setting limits on keys belonging to a team
2025-10-04 15:22:47 -07:00