Let system prompt be configurable in System Settings (EJS template)

This commit is contained in:
Alex Gleason committed 2025-11-13 17:36:04 -06:00
1 parent 4d88823c2d
commit db02b9fb94
14 files changed
+271 -124

No files matched your search

+2 -2
View File
@@ -28,8 +28,8 @@ export function SessionManagerProvider({ children }: SessionManagerProviderProps
const sessionManager = useMemo(() => {
const getProviderModels = () => models;
const getCurrentUser = () => ({ user, metadata });
return new SessionManager(fs, nostr, settings, getProviderModels, getCurrentUser, config.corsProxy, projectsPath, pluginsPath);
}, [fs, nostr, settings, models, user, metadata, config.corsProxy, projectsPath, pluginsPath]);
return new SessionManager(fs, nostr, settings, getProviderModels, getCurrentUser, config.corsProxy, projectsPath, pluginsPath, config.systemPrompt);
}, [fs, nostr, settings, models, user, metadata, config.corsProxy, projectsPath, pluginsPath, config.systemPrompt]);
// Cleanup on unmount
useEffect(() => {