getProxyUISettings
This commit is contained in:
parent
c22b92439b
commit
afe0c03376
13
ui/litellm-dashboard/src/utils/proxyUtils.ts
Normal file
13
ui/litellm-dashboard/src/utils/proxyUtils.ts
Normal file
@ -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;
|
||||
}
|
||||
};
|
||||
Loading…
Reference in New Issue
Block a user