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