mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
getProxyUISettings
This commit is contained in:
parent
c22b92439b
commit
afe0c03376
1 changed files with 13 additions and 0 deletions
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…
Add table
Reference in a new issue