From afe0c03376ad0b2dfbd6ff22a28af3fe217e2db3 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 10 Mar 2025 18:44:13 -0700 Subject: [PATCH] getProxyUISettings --- ui/litellm-dashboard/src/utils/proxyUtils.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ui/litellm-dashboard/src/utils/proxyUtils.ts diff --git a/ui/litellm-dashboard/src/utils/proxyUtils.ts b/ui/litellm-dashboard/src/utils/proxyUtils.ts new file mode 100644 index 0000000000..32e14baddb --- /dev/null +++ b/ui/litellm-dashboard/src/utils/proxyUtils.ts @@ -0,0 +1,13 @@ +import { getProxyUISettings } from "@/components/networking"; + +export const fetchProxySettings = async (accessToken: string | null) => { + if (!accessToken) return null; + + try { + const proxySettings = await getProxyUISettings(accessToken); + return proxySettings; + } catch (error) { + console.error("Error fetching proxy settings:", error); + return null; + } +}; \ No newline at end of file