Merge pull request #2 from litongjava/java-perplexica

crrect userId
This commit is contained in:
Tong Li
2025-02-02 16:07:57 -10:00
committed by GitHub

View File

@ -515,7 +515,7 @@ const ChatWindow = ({id}: { id?: string }) => {
ws.send( ws.send(
JSON.stringify({ JSON.stringify({
type: 'message', type: 'message',
useerId:userId, userId:userId,
message: { message: {
messageId: messageId, messageId: messageId,
chatId: chatId!, chatId: chatId!,
@ -523,6 +523,7 @@ const ChatWindow = ({id}: { id?: string }) => {
}, },
files: fileIds, files: fileIds,
focusMode: focusMode, focusMode: focusMode,
copilotEnabled: copilotEnabled,
optimizationMode: optimizationMode, optimizationMode: optimizationMode,
history: [...chatHistory, ['human', message]], history: [...chatHistory, ['human', message]],
}), }),