fix: languages config, update-password
This commit is contained in:
@@ -41,8 +41,8 @@ export const receiveChatStream = async (
|
||||
}
|
||||
|
||||
let chunk = decoder.decode(value, { stream: true });
|
||||
if (chunk.startsWith('data: ')) {
|
||||
chunk = chunk.substring('data: '.length);
|
||||
if (chunk.startsWith('data:')) {
|
||||
chunk = chunk.substring('data:'.length);
|
||||
}
|
||||
const item = JSON.parse(chunk?.trim());
|
||||
callback(item);
|
||||
|
||||
@@ -43,9 +43,6 @@ const MessageList: React.FC<MessageProps> = (props) => {
|
||||
const systemRef = useRef<any>(null);
|
||||
const contentRef = useRef<any>('');
|
||||
|
||||
const handleReceiveMessage = (data: any) => {
|
||||
console.log('event source message: ', { data });
|
||||
};
|
||||
const handleSystemMessageChange = (e: any) => {
|
||||
setSystemMessage(e.target.value);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user