mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
refactor(ui): name plugin context default
This commit is contained in:
parent
e9a014090a
commit
31b41b7fa3
1 changed files with 4 additions and 2 deletions
|
|
@ -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() ?? "" });
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue