refactor(ui): name plugin context default

This commit is contained in:
Yujong Lee 2026-09-04 18:58:20 -07:00
parent e9a014090a
commit 31b41b7fa3

View file

@ -30,12 +30,14 @@ interface PluginModeContextValue {
activePlugin: Plugin | null;
}
const PluginModeContext = createContext<PluginModeContextValue>({
const defaultPluginModeContext: PluginModeContextValue = {
mode: "ai-gateway",
setMode: () => {},
plugins: [],
activePlugin: null,
});
};
const PluginModeContext = createContext(defaultPluginModeContext);
const STORAGE_KEY = "litellm_plugin_mode";
const pluginApiClient = createApiClient({ getBaseUrl: () => getProxyBaseUrl() ?? "" });