mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Let system prompt be configurable in System Settings (EJS template)
This commit is contained in:
14 files changed
+271
-124
No files matched your search
@@ -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(() => {
|
||||
|
||||
Reference in new issue
Block a user