mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 19:54:13 +00:00
(feat) UI - Disable Usage Tab once SpendLogs is 1M+ Rows (#7208)
* use utils to set proxy spend logs row count * store proxy state variables * fix check for _has_user_setup_sso * fix proxyStateVariables * fix dup code * rename getProxyUISettings * add fixes * ui emit num spend logs rows * test_proxy_server_prisma_setup * use MAX_SPENDLOG_ROWS_TO_QUERY to constants * test_get_ui_settings_spend_logs_threshold
This commit is contained in:
parent
8c7605a164
commit
b1c3e2d4ef
14 changed files with 230 additions and 41 deletions
|
@ -17,7 +17,7 @@ import {
|
|||
userCreateCall,
|
||||
modelAvailableCall,
|
||||
invitationCreateCall,
|
||||
getProxyBaseUrlAndLogoutUrl,
|
||||
getProxyUISettings,
|
||||
} from "./networking";
|
||||
const { Option } = Select;
|
||||
|
||||
|
@ -82,7 +82,7 @@ const Createuser: React.FC<CreateuserProps> = ({
|
|||
setUserModels(availableModels);
|
||||
|
||||
// get ui settings
|
||||
const uiSettingsResponse = await getProxyBaseUrlAndLogoutUrl(accessToken);
|
||||
const uiSettingsResponse = await getProxyUISettings(accessToken);
|
||||
console.log("uiSettingsResponse:", uiSettingsResponse);
|
||||
|
||||
setUISettings(uiSettingsResponse);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue