mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-23 00:41:40 +00:00
13 lines
374 B
TypeScript
13 lines
374 B
TypeScript
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;
|
|
}
|
|
};
|