Add information about the user to the system prompt

This commit is contained in:
Alex Gleason committed 2025-09-12 09:41:05 -05:00
1 parent 5debca98d6
commit 5b828f0c83
2 files changed
+35 -4

No files matched your search

+4 -2
View File
@@ -80,7 +80,7 @@ export const ChatPane = forwardRef<ChatPaneRef, ChatPaneProps>(({
const [searchParams, setSearchParams] = useSearchParams();
const { fs: browserFS } = useFS();
const { user } = useCurrentUser();
const { user, metadata } = useCurrentUser();
const { models } = useProviderModels();
// Initialize AI chat with tools
@@ -152,8 +152,10 @@ export const ChatPane = forwardRef<ChatPaneRef, ChatPaneProps>(({
name: "Shakespeare",
profession: "software extraordinaire",
tools: Object.values(tools),
user,
metadata,
}).then(setSystemPrompt)
}, [browserFS, cwd, tools]);
}, [browserFS, cwd, tools, user, metadata]);
const {
messages,