Commit graph

4874 commits

Author SHA1 Message Date
Cole McIntosh
c41b14e27b Add clear SSO settings functionality in SSOModals component
- Introduced a confirmation modal for clearing SSO settings.
- Implemented handleClearSSO function to reset SSO settings and provide user feedback.
- Updated UI to include a 'Clear' button for SSO settings, enhancing user experience.
- Added state management for the confirmation modal visibility.
2025-06-04 14:39:26 -06:00
Cole McIntosh
72c7fd63bf Implement SSO configuration check in AdminPanel and update SSOModals to reflect SSO status
- Added logic to check SSO configuration and set state in AdminPanel.
- Introduced a new function to handle SSO configuration checks.
- Updated UI to conditionally render SSO button text based on configuration status.
- Passed SSO configuration status as a prop to SSOModals for better integration.
2025-06-04 14:34:18 -06:00
Cole McIntosh
58b1f78ff0 Remove console log from handleShowInstructions in AdminPanel component 2025-06-04 14:25:57 -06:00
Cole McIntosh
9c481e3ba8 Add SSO configuration endpoints and UI integration
- Introduced new SSOConfig class to manage SSO settings.
- Added endpoints for fetching and updating SSO settings in proxy_setting_endpoints.py.
- Created a new __init__.py file to expose the SSO router.
- Updated AdminPanel and SSOModals components to handle SSO settings retrieval and updates.
- Removed deprecated SSO update logic from AdminPanel.
- Enhanced error handling and logging for SSO operations.
2025-06-04 14:09:19 -06:00
Cole McIntosh
7d4a70bfe3 Enhance Admin Panel UI: Adjust button styles and layout for better accessibility and user experience 2025-06-04 13:32:43 -06:00
Lik Wei
a24077fb4e
fix: add enterprise feature gating to RegenerateKeyModal in KeyInfoView (#11400)
Pass premiumUser prop to RegenerateKeyModal to control access
Disable Regenerate Key button and show tooltip for non-premium users
Ensure consistent enterprise feature messaging across components
2025-06-04 12:05:56 -07:00
Krrish Dholakia
d408814978 build(ui/): new ui build 2025-06-02 17:55:14 -07:00
Krish Dholakia
00be76abf4
UI - Custom Server Root Path (Multiple Fixes) (#11337)
* fix(proxy_server.py): working swagger on custom base

removes the swagger monkey patch - this seems to render the swagger on custom base paths

* fix(ui/): working custom auth uptil login success event

* fix(ui/): working custom server root path for login

* fix(proxy_server.py): create typed dict for ui returned token

allows better documentation of expected params

* refactor(proxy_server.py): refactor all ui login endpoints to use same returned ui token object

* feat(ui_sso.py): add server root path to ui token

* feat(ui_sso.py): allows ui to call correct endpoint

* fix(networking.tsx): update proxy base url with custom root path

* fix(networking.tsx): handle updating proxy base url for non-local instances

* refactor: remove uneccessary references to proxybaseurl in ui code - reduce potential for errors

* fix: fix linting error

* fix(onboarding_link.tsx): fix onboarding link when custom server path is set

* feat(ui_discovery_endpoints.py): add new public .well-known/ route for litellm ui config

returns the server root path and proxy base url for constructing api calls

* feat(_types.py): add litellm well known config as public route

allows ui to query it

* fix(/_types.py): add .well-known config to as public route

* fix(page.tsx): create pattern for loading in ui config before making network requests

ensures requests are formatted correctly

* fix(page.tsx): call credential endpoint once ui config is loaded

* fix(page.tsx): route correctly to litellm dashboard from new user login

* fix(page.tsx): remove hardcoded `/litellm` for /sso/key/generate request

* fix(proxy_server.py): re-add moderations endpoint

* fix(proxy_server.py): mount __next__ at / and /litellm

allows it to work when proxy is mounted on root

* docs(contributing.md): remove /ui on ui doc - it will now run on root

* docs(custom_root_ui.md): add docs on custom root path
2025-06-02 17:48:03 -07:00
tanjiro
7155e157da
converted action buttons to sticky footer action buttons (#11293) 2025-06-02 07:50:12 -07:00
Ishaan Jaff
f95754c67f (UI) new build 2025-05-31 12:25:29 -07:00
Ishaan Jaff
ebf05c10a9 (ui) fix view 2025-05-31 12:21:40 -07:00
Ishaan Jaff
0dca4780c5 ui - fix permission checks 2025-05-31 12:19:37 -07:00
Ishaan Jaff
b0f2d969e7 (ui) fix passing premium user 2025-05-31 12:15:56 -07:00
Ishaan Jaff
7b4fb48bd1 ui new build 2025-05-31 12:08:48 -07:00
Ishaan Jaff
3be42fd744 ui fixes 2025-05-31 12:08:09 -07:00
Ishaan Jaff
75f87724bd chore - vector store permissions enterprise 2025-05-31 12:01:51 -07:00
Ishaan Jaff
372de1476b (chore): mark object permissions as enterprise 2025-05-31 11:52:59 -07:00
Ishaan Jaff
1a05f8d9e2 UI QA fixes 2025-05-31 09:41:22 -07:00
Bryan Low
d77b825814
Swap Cohere and Cohere Chat provider (#11173)
* fix cohere rerank provider

* swap cohere and cohere chat
2025-05-31 01:20:37 -07:00
Ishaan Jaff
15ea80d2cf ui new build 2025-05-30 23:08:07 -07:00
Ishaan Jaff
c5873c6f1f UI QA fixes/cleanup 2025-05-30 23:06:45 -07:00
Isaac Whitfield
c698cc24aa
Streamline session expiration in UI (#11279) 2025-05-30 17:26:23 -07:00
Ishaan Jaff
ea841eeb9b
[Feat] UI - show vector store permissions for Key, Team, Org (#11277)
* fix LiteLLM_ObjectPermissionTable

* fix include object_permission for list key

* fix key list to inclue obj permissions

* fix object permissions for vector stores on key info

* add key edit view with vector stores

* allow editing vector stores permissions

* fixes obj permissions

* feat: add obj permission on UI

* fix: add object_permission:true

* ui show org vector stores on org info

* fix: show object permissions on /org/info

* feat: allow updating obj permissions for keys

* fixes: key object permissions

* fixes: team object permissions

* fixes: org object permissions

* fix vector store selector for Orgs
2025-05-30 17:23:50 -07:00
Krrish Dholakia
368e59181d docs(entity_usage.tsx): fix bad link 2025-05-29 11:00:18 -07:00
Ishaan Jaff
c5a82b03f4 Revert "(build) fix ui build"
This reverts commit 73a82d24d8.
2025-05-28 21:21:10 -07:00
Ishaan Jaff
7ac05087c3 Revert "build(deps): bump next from 14.2.26 to 15.2.4 in /ui/litellm-dashboard (#11216)"
This reverts commit 461e1a4751.
2025-05-28 21:20:56 -07:00
Ishaan Jaff
f0618fd297 Revert "(ui) fix build"
This reverts commit 90dbf4cf0b.
2025-05-28 21:20:35 -07:00
Ishaan Jaff
90dbf4cf0b (ui) fix build 2025-05-28 21:18:09 -07:00
Ishaan Jaff
73a82d24d8 (build) fix ui build 2025-05-28 21:05:33 -07:00
Ishaan Jaff
df76b8c7b9 ui new build 2025-05-28 18:53:37 -07:00
Ishaan Jaff
b35806d0f0 ui new build 2025-05-28 18:53:01 -07:00
Ishaan Jaff
096e03bbc6
scim fix - key (#11220) 2025-05-28 18:47:51 -07:00
Ishaan Jaff
4e6c4beef8
[Feat] Permission management vector stores on LiteLLM Key, Team, Orgs (#11213)
* fix: init commit for object permissions

* fix: init commit for object permissions

* fix: add vector_store_id to permissions

* fix vector store selector

* feat:add vector store permission mgmt

* feat: ui add allowed vector stores dropdown

* feat: add new vector store object permissions

* testing: key mgmt

* fix: stor vector store permissions on team

* ui select vector store for teams

* ui add vector store settings for orgs

* feat: allow setting org vector store permissions

* test: adding team permissions for vector stores
2025-05-28 16:58:53 -07:00
tanjiro
14cdf61537
Improve display of model tags on Keys, Teams and Org page (#11022)
* added accordian for models tag

* remove margin top

* match badge styles same as on teams page

* add badge accordian for organizations

* badges fixed on keys page

* fixed for singular and plural

* fix merge conflict
2025-05-28 16:41:26 -07:00
dependabot[bot]
461e1a4751
build(deps): bump next from 14.2.26 to 15.2.4 in /ui/litellm-dashboard (#11216)
Bumps [next](https://github.com/vercel/next.js) from 14.2.26 to 15.2.4.
- [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...v15.2.4)

---
updated-dependencies:
- dependency-name: next
  dependency-version: 15.2.4
  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-05-28 16:39:20 -07:00
tanjiro
d8c7dd643d
Removed teamInfo call and used existing teamsList call (#11051)
* removed teamInfo call and used existing teams list call

* made perTeamInfo typesafe
2025-05-28 16:39:07 -07:00
tanjiro
86409976a9
put all proxy models if no models are selected. (#11187) 2025-05-28 16:31:31 -07:00
Ishaan Jaff
9a6d5c119e
feat: Allow Adding MCP Servers Through LiteLLM UI (#11208)
* feat: MCP Servers with CRUD operations (#10699)

* feat: mcp CRUD operations with authn/authz

* feat: mcp server UI

* mcp server page with overview, mcp tools, and settings page

* Adding MCP Server flow

* prisma generate before test

* UI callbacks add/remove with api server refetch

* test fix: poetry run prisma

* feat: mcp server db and config connection

* fix: MCPTool filter on description when not present

* feat: mcp on UI and integrated with list tools

* feat: Update mcp server endpoint

* tests: Unit and integration tests for mcp management endpoints

* fix: docs and ensuring global_mcp_manage up to date

* ui: remove the mcp tools view

* fix: ruff lint

* fix: unit -> integration test area

* fix(ui): remove left nav menu of previous tools

---------

Co-authored-by: wagnerjt <wagnerjt@github.com>
Co-authored-by: Ishaan Jaff <ishaanjaffer0324@gmail.com>

* fix: sync DB MCP tools with in memory

* fix: sync DB MCP tools with in memory

* fix: stop using prisma.models

* fix: code qa check

* fix: import MCP

* fix: code QA checks

* fix: code QA checks

* fixes - only list tools for the specific MCP server

* fix: only list MCP tools for selected server

* fix linting error

---------

Co-authored-by: Tyler Wagner <wagnerjt@users.noreply.github.com>
Co-authored-by: wagnerjt <wagnerjt@github.com>
2025-05-28 16:29:27 -07:00
Krrish Dholakia
0017d5f1db build(ui/): Allow empty values in daily agg table + reintroduce 'unassigned' teams in spend tracking 2025-05-26 22:03:34 -07:00
Ishaan Jaff
8a2b68a8d5 ui new build 2025-05-24 18:26:28 -07:00
Ishaan Jaff
119a73a3fc
fix: team viewer should not see create team (#11127) 2025-05-24 12:30:09 -07:00
Ishaan Jaff
6aa0bec17d (ui) qa fix org button 2025-05-24 10:41:33 -07:00
Ishaan Jaff
702b5fec22
[Feat] Add /image/edits on LiteLLM (#11123)
* feat: add image edits on litellm router

* feat: add image edits endpoint

* fix: use pure async for image edits

* fix: base_process_llm_request

* fix: get_image_content_type

* feat: add image edits endpoint

* add image edits on UI

* test: image edits support

* fix: linting errors

* fix: linting errors

* test fix img gen
2025-05-24 10:18:01 -07:00
Ishaan Jaff
81fda4274c ui new build 2025-05-23 22:57:21 -07:00
tanjiro
1c652b67b6
Model filter on logs (#11048)
* add model filter

* remove calling all models
2025-05-22 07:31:43 -07:00
tanjiro
bfb04d3e75
added cloding tags for </TabGroup> </Col> </Grid> + indentation changes (#11046) 2025-05-22 07:23:26 -07:00
tanjiro
0cde73ffb7
Spend rounded to 4 for Organizations and Users page (#11023)
* spend rounded to 4

* fixed for organization and users table
2025-05-21 20:41:54 -07:00
Jugal D. Bhatt
03cda24681
Verbose error on admin add (#10978) 2025-05-21 19:30:18 -07:00
Tyler Wagner
b6508731dc
fix(ui): call tool when no arguments needed (#11012)
Co-authored-by: wagnerjt <wagnerjt@github.com>
2025-05-21 14:06:22 -07:00
tanjiro
9b0e1bb16c
put organization and team buttons at the top (#10948) 2025-05-21 12:59:14 -07:00