mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-16 15:35:31 +01:00
refactor: basic message and send message. as well as model
THIS IS NOT FINISHED. DONT USE THIS
This commit is contained in:
parent
de8f519742
commit
c7c30d8bb5
24 changed files with 1057 additions and 1035 deletions
|
|
@ -15,6 +15,7 @@ export default function Conversation({ conversation, retainView }) {
|
|||
const resetLatestMessage = useResetRecoilState(store.latestMessage);
|
||||
|
||||
const { refreshConversations } = store.useConversations();
|
||||
const { switchToConversation } = store.useConversation();
|
||||
|
||||
const [renaming, setRenaming] = useState(false);
|
||||
const [titleInput, setTitleInput] = useState(title);
|
||||
|
|
@ -56,9 +57,7 @@ export default function Conversation({ conversation, retainView }) {
|
|||
setSubmission(null);
|
||||
|
||||
// set conversation to the new conversation
|
||||
setCurrentConversation(conversation);
|
||||
setMessages(null);
|
||||
resetLatestMessage();
|
||||
switchToConversation(conversation);
|
||||
|
||||
// if (!stopStream) {
|
||||
// dispatch(setStopStream(true));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue