refactor(MessageInput, ModelSelector): streamline model loading and selection handling

This commit is contained in:
Willie Zutz 2025-08-16 14:03:34 -06:00
parent 15b75328d2
commit 0d4874a3b3
2 changed files with 46 additions and 38 deletions

View file

@ -52,7 +52,6 @@ const MessageInput = ({
} | null>(null);
useEffect(() => {
// Load saved model preferences from localStorage
const chatModelProvider = localStorage.getItem('chatModelProvider');
const chatModel = localStorage.getItem('chatModel');
@ -62,7 +61,9 @@ const MessageInput = ({
model: chatModel,
});
}
}, []);
useEffect(() => {
const storedPromptIds = localStorage.getItem('selectedSystemPromptIds');
if (storedPromptIds) {
try {