Commit graph

5084 commits

Author SHA1 Message Date
Ishaan Jaff
6630b39c79
[UI] - Move passthrough endpoints under Models + Endpoints (#11871)
* use cost_per_request

* fix cost_per_request

* fixes cost_per_request

* fixes for cost per request for pass through

* ui fix param name

* fixes for _set_cost_per_request

* test cost per request pass through endpoints

* Update tests/test_litellm/proxy/pass_through_endpoints/test_pass_through_endpoints.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* tests pass through endpoints

* rename left nav

* move pass through to models + endpoints

* move pass through under models

* add pt info view

* add get/update pt

* fixes for PT ui

* allow updating pt endpoints

* fix pass through quick actions

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-18 16:26:24 -07:00
Ishaan Jaff
dfdbfdd71c
[Feat] Passthrough - Add support for setting custom cost per pass through request (#11870)
* use cost_per_request

* fix cost_per_request

* fixes cost_per_request

* fixes for cost per request for pass through

* ui fix param name

* fixes for _set_cost_per_request

* test cost per request pass through endpoints

* Update tests/test_litellm/proxy/pass_through_endpoints/test_pass_through_endpoints.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* tests pass through endpoints

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-18 16:24:38 -07:00
Cole McIntosh
ae74eb833b
Implement health check frontend UI components and dashboard integration (#11679)
* feat: Implement health check functionality for models

- Added individual model health check API call and integrated it into the dashboard.
- Introduced health check history and latest health checks retrieval.
- Enhanced model dashboard to display health status, last check time, and error details.
- Created a new health check columns component for better organization of health data.
- Added error pattern handling for meaningful error messages.
- Updated UI components to support health check actions and display loading states.

* refactor: extract health check functionality into a new component

- Removed individual health check logic from ModelDashboard and encapsulated it within HealthCheckComponent for better modularity and maintainability.
- Updated ModelDashboard to utilize the new HealthCheckComponent, streamlining the health check process and improving code organization.
- Cleaned up unused state variables and imports related to health checks in ModelDashboard.
- Enhanced error handling and status management within the new component, ensuring a more robust health check experience.

* fix: add access token check in HealthCheckComponent to prevent unauthorized API calls

- Implemented a check for the presence of an access token before making API calls to fetch the latest health checks, enhancing security and preventing potential errors when the token is missing.
2025-06-18 13:46:40 -07:00
Ishaan Jaff
84c4c8027f ui new build 2025-06-17 21:02:33 -07:00
Ishaan Jaff
0eb8a3de10
[Feat] v2 Pass through endpoints - Add support for subroutes for pass through endpoints + Cleaned up UI (#11827)
* fix: add construct_target_url_with_subpath

* add InitPassThroughEndpointHelpers

* added debugging for pass through routes

* add PassThroughGenericEndpoint to include subpath and input_cost_per_request

* polish page

* Add Pass-Through Endpoint

* polish pass through ui

* fixes for initialize_pass_through_endpoints

* PassThroughGenericEndpoint

* test_add_subpath_route

* test_initialize_pass_through_endpoints_with_include_subpath

* fix code QA check
2025-06-17 20:52:28 -07:00
Ishaan Jaff
a8196159b9
[Bug Fixes] MCP - using MCPs defined on config.yaml + fix for MCP error Team doesn't exist in cache (#11824)
* fix - dont allow missing team to block MCP list response

* use HTTP as default transport

* _generate_stable_server_id

* fix list MCP servers

* ui fix

* test_list_mcp_servers_empty_result

* test_generate_stable_server_id

* _generate_stable_server_id

* fix code QA

* fix code QA
2025-06-17 16:25:12 -07:00
Krish Dholakia
30b431681e
JWT Auth - correctly return user email + UI Model Update - Allow editing model access group for existing model (#11783)
* fix(handle_jwt.py): check user object, if jwt user is proxy admin

correctly return user role - if jwt user has role updated in UI

* test(test_handle_jwt.py): add unit test for passing correct user role

* feat(model_info_view.tsx): separate UI component for updating edit model component

* feat(model_info_view.tsx): allow updating model access group on UI

show all available access groups in ui component

* docs: minor fixes
2025-06-16 22:11:04 -07:00
dependabot[bot]
4e313e517b
build(deps): bump next from 14.2.26 to 14.2.30 in /ui/litellm-dashboard (#11720)
Bumps [next](https://github.com/vercel/next.js) from 14.2.26 to 14.2.30.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v14.2.26...v14.2.30)

---
updated-dependencies:
- dependency-name: next
  dependency-version: 14.2.30
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-16 17:33:11 -07:00
MadsRC
2224fd96be
AWS credentials no longer mandatory (#11765) 2025-06-16 17:32:10 -07:00
Ishaan Jaff
7f11b5b76c
[Security] - Add Trivy Security Scan for UI + Docs folder - remove all vulnerabilities (#11778)
* docs - sec scan

* ui - fix 0 security issues

* fix - 0 medium vuln on docs

* add MEDIUM scan for Docs

* Run Trivy scan on LiteLLM UI
2025-06-16 17:13:19 -07:00
tanjiro
bc9f111ee8
move buttons to the left (#11771) 2025-06-16 12:27:04 -07:00
Ishaan Jaff
248f450767 ui new build 2025-06-14 16:28:55 -07:00
Krish Dholakia
84999ddef3
UI - Fix remaining users activity if no limit + allow filtering by model access groups (#11730)
* feat(enterprise/): fix remaining users check on license

* fix(usage_indicator.tsx): if no max user set, don't render remaining user info card

only for users with user limits on their license

* fix(leftnav.tsx): only show remaining users to admin

* feat(columns.tsx): don't allow sorting on model access groups

it's a list[str]

* feat(model_dashboard.tsx): add model access group filters
2025-06-14 13:38:58 -07:00
Gustavo Brian
22460a73f9
Time taken column logs (#11723)
* Time taken column logs

* Reanme and details

* Add detail row
2025-06-14 12:29:52 -07:00
Ishaan Jaff
6c8ff3f2c2
[Feat] UI - Add back favicon (#11728)
* add favicon on ui

* fix live check
2025-06-14 11:13:42 -07:00
Ishaan Jaff
24df849c25 ui - fix auto refresh icon 2025-06-14 10:06:09 -07:00
Ishaan Jaff
df31c3efe9 ui new build 2025-06-14 09:29:24 -07:00
Krish Dholakia
8579332f44
Add model access groups on UI (#11719)
* fix(anthropic/chat/transformation.py): append prefix to start of assistant response, if set

ensures assistant response contains complete response

* fix(anthropic/chat/transformation.py): add flag to allow user to opt out of enabling prefix in prompt

* fix(anthropic/chat/transformation.py): working e2e support for prefix prompt in assistant response

* feat(networking.tsx): always include model access groups on UI

show admin created access groups when giving key/user/team model permissions

* feat(add_model_tab.tsx): initial ui component for adding to an existing model access group

allows user to add model to an access group (simplify giving users/keys/teams model access)

* feat(proxy_server.py): add 'only_model_access_groups' flag support to `/v1/models`

simplifies listing available access groups on UI

* test: add e2e test for new only_model_access_groups param

* feat(add_model_tab.tsx): allow adding+viewing model access groups on models tab

make feature functional on UI

* feat(view_users.tsx): route edit user to user info page

more detailed user edit

* feat(columns.tsx): route edit user to user info page

more detailed user edit

* fix(columns.tsx): fix linting error

* build(ui/): fix linting errors
2025-06-13 21:20:25 -07:00
Ishaan Jaff
b1e609be3f fix mcp servers 2025-06-13 18:45:00 -07:00
tanjiro
42d1fa8509
correct alignment (#11717) 2025-06-13 15:55:58 -07:00
Ishaan Jaff
4b03bf92df ui new build 2025-06-13 15:02:36 -07:00
Ishaan Jaff
18a5f2bb10 fixes MCP litellm 2025-06-13 15:01:34 -07:00
Ishaan Jaff
aefba7395f ui new build 2025-06-13 14:55:58 -07:00
Ishaan Jaff
31dde89f15 fix render mcp logo 2025-06-13 14:48:22 -07:00
tanjiro
54b14ac631
enterprise feature preview improvement (#11715) 2025-06-13 14:43:06 -07:00
Ishaan Jaff
119663e6ce
[Feat] Add Connect to MCP Page (#11716)
* add mcp connect page

* use tremor tabs

* fix - ensure ui consistency

* fix MCP servers alignment

* fix spacing

* show litellm url

* fix connector

* fix MCP transports
2025-06-13 14:36:36 -07:00
tanjiro
6ee1376673
Add Live Tail Feature to Logs View (#11712)
* add live tail feature

* improve time interval

* auto-refresh every 15 seconds

* remove last 1 minute option
2025-06-13 14:31:49 -07:00
Ishaan Jaff
d012b5facf fix leftnav 2025-06-13 10:57:52 -07:00
Ishaan Jaff
4b107e0c70
[Feat] UI - Allow setting MCP servers when creating keys, teams (#11711)
* Add PremiumMCPSelector

* add PremiumMCPSelector

* Fix CTA enterprise
2025-06-13 10:10:01 -07:00
Ishaan Jaff
891a71b7a0
[Feat] UI Allow editing mcp servers (#11693)
* ui - clean up MCP server table

* ui - clean up table

* fix mb-4

* ui fix

* add support for editing MCP servers
2025-06-13 09:56:58 -07:00
Ishaan Jaff
770917fd0f
[UI] Fix MCP Server Table to Match Existing Table Pattern (#11691)
* ui - clean up MCP server table

* ui - clean up table

* fix mb-4

* ui fix
2025-06-12 22:35:21 -07:00
Ishaan Jaff
61838bbbfc
[Feat] Use dedicated Rest endpoints for list, calling MCP tools (#11684)
* fix: (fix) use specific rest endpoints for MCP

* ui - use rest mcp endpoints

* fix imports

* docs DISABLE_AIOHTTP_TRUST_ENV
2025-06-12 19:02:20 -07:00
tanjiro
ddde9cdb6b
Fix default user settings (#11674)
* rename schema to field_schema

* minor

* title added
2025-06-12 15:29:56 -07:00
Tu Vu
f3295f6f28
Correct success message when user creates new budget (#11608) 2025-06-12 12:28:33 -07:00
tanjiro
889004e344
trim created-by and user id values if they (#11488) 2025-06-11 21:04:55 -07:00
Ishaan Jaff
52ef96261f
[UI] Add Deepgram provider to supported providers list and mappings (#11634)
* Add Deepgram provider to supported providers list and mappings

* add logo

* Add deepgram to model cost map

* ui - require api key for deepgram

* fix logo path

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-06-11 12:12:12 -07:00
tanjiro
c002e4cd4e
admin can reset password for user (#11618) 2025-06-11 08:55:36 -07:00
Ishaan Jaff
6f2d28c8af fix naming 2025-06-10 17:27:46 -07:00
Ishaan Jaff
30a8a80a65 ui new build 2025-06-10 17:26:48 -07:00
Ishaan Jaff
c9ade3a3a2
[UI] Polish New MCP Server Add Form (#11604)
* fixes MCP new form

* refactor existing logic

* docs add MCP on ui
2025-06-10 17:20:17 -07:00
Ishaan Jaff
9058354ced
[Feat] UI - Add controls for MCP Permission Management (#11598)
* init commit to render MCP servers

* allow adding MCP servers to keys

* fix allow adding MCP permissions per team

* ui mcp permissions

* updates based on review
2025-06-10 15:46:43 -07:00
Krish Dholakia
c569056ea8
Show remaining users on UI (#11568)
* docs(deploy.md): move docker recommendation to `main-stable`

* feat(enterprise/internal_user_endpoints.py): expose endpoint for checking available premium users

* feat(usage_indictor.tsx): add new element to help track remaining premium users

* feat(usage_indicator.tsx): show premium user remaining usage

allows users with user caps to know how much is left

* fix(vertex_and_google_ai_studio_gemini.py): bubble up stream is not finished, even if stop reason is given

prevents early completion of stream

Closes https://github.com/BerriAI/litellm/issues/11549

* fix(streaming_handler.py): respect is_finished = False in hidden params

internal logic for preventing ending stream early

* fix(litellm_license.py): add function to check if user is over limit

* fix(internal_user_endpoints.py): add function to check if user is over limit

* refactor: move test

* docs(customer_endpoints.py): document new param
2025-06-09 22:04:45 -07:00
Ishaan Jaff
49a7833861 (ui) new build 2025-06-07 16:15:05 -07:00
Ishaan Jaff
a134842b49 ui fix order of cols on audit logs 2025-06-07 16:14:15 -07:00
Ishaan Jaff
38a3933385 ui new build 2025-06-07 15:48:08 -07:00
Ishaan Jaff
6e711756ac UI: add AuditLogsInfoMessage 2025-06-07 15:46:19 -07:00
Ishaan Jaff
c79f7a3ad9 (ui) fix display of model table 2025-06-07 15:35:01 -07:00
Ishaan Jaff
4199060b18 (ui) fix, use chevron icon for expand 2025-06-07 15:33:34 -07:00
Krish Dholakia
5d049eb742
fix(add_credentials_tab.tsx): filter for null values when adding credentials (#11525) 2025-06-07 15:32:19 -07:00
Ishaan Jaff
8b60b703f7 UI - fix col headers 2025-06-07 15:28:11 -07:00