mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 09:20:15 +01:00
adds bing ai functionality, still need to code out message/convo storing since it returns a lot of useful parameters
This commit is contained in:
parent
e0a26f52cd
commit
5c7000c273
11 changed files with 462 additions and 21 deletions
|
|
@ -30,11 +30,11 @@ export default function TextChat({ messages }) {
|
|||
dispatch(setSubmitState(true));
|
||||
const message = text.trim();
|
||||
const currentMsg = { sender: 'User', text: message, current: true };
|
||||
const initialResponse = { sender: 'GPT', text: '' };
|
||||
const initialResponse = { sender: model, text: '' };
|
||||
dispatch(setMessages([...messages, currentMsg, initialResponse]));
|
||||
dispatch(setText(''));
|
||||
const messageHandler = (data) => {
|
||||
dispatch(setMessages([...messages, currentMsg, { sender: 'GPT', text: data }]));
|
||||
dispatch(setMessages([...messages, currentMsg, { sender: model, text: data }]));
|
||||
};
|
||||
const convoHandler = (data) => {
|
||||
console.log('in convo handler');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue