refactor(MessageInput, ModelSelector): streamline model loading and selection handling
This commit is contained in:
parent
15b75328d2
commit
0d4874a3b3
2 changed files with 46 additions and 38 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue