The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
ui fix linting error
Ishaan Jaff807054caddf5
diff --git a/ui/litellm-dashboard/src/components/SSOSettings.tsx b/ui/litellm-dashboard/src/components/SSOSettings.tsxindex 426fafafa89..54066d52324 100644--- a/ui/litellm-dashboard/src/components/SSOSettings.tsx+++ b/ui/litellm-dashboard/src/components/SSOSettings.tsx@@ -8,10 +8,11 @@ import { getModelDisplayName } from "./key_team_helpers/fetch_available_models_tinterface SSOSettingsProps {accessToken: string | null;possibleUIRoles?: Record<string, Record<string, string>> | null;- userID?: string;+ userID: string;+ userRole: string;}-const SSOSettings: React.FC<SSOSettingsProps> = ({ accessToken, possibleUIRoles }) => {+const SSOSettings: React.FC<SSOSettingsProps> = ({ accessToken, possibleUIRoles, userID, userRole }) => {const [loading, setLoading] = useState<boolean>(true);const [settings, setSettings] = useState<any>(null);const [isEditing, setIsEditing] = useState<boolean>(false);@@ -36,7 +37,7 @@ const SSOSettings: React.FC<SSOSettingsProps> = ({ accessToken, possibleUIRoles// Fetch available modelsif (accessToken) {try {- const modelResponse = await modelAvailableCall(accessToken, null, null);+ const modelResponse = await modelAvailableCall(accessToken, userID, userRole);if (modelResponse && modelResponse.data) {const modelNames = modelResponse.data.map((model: { id: string }) => model.id);setAvailableModels(modelNames);diff --git a/ui/litellm-dashboard/src/components/view_users.tsx b/ui/litellm-dashboard/src/components/view_users.tsxindex d776cae2be0..60522695867 100644--- a/ui/litellm-dashboard/src/components/view_users.tsx+++ b/ui/litellm-dashboard/src/components/view_users.tsx@@ -348,7 +348,7 @@ const ViewUserDashboard: React.FC<ViewUserDashboardProps> = ({</TabPanel><TabPanel>- <SSOSettings accessToken={accessToken} possibleUIRoles={possibleUIRoles} userID={userID}/>+ <SSOSettings accessToken={accessToken} possibleUIRoles={possibleUIRoles} userID={userID} userRole={userRole}/></TabPanel></TabPanels></TabGroup>