We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5bbcdb commit aa83daeCopy full SHA for aa83dae
client/src/utils/handleSubmit.js
@@ -27,7 +27,7 @@ const useMessageHandler = () => {
27
28
// this is not a real messageId, it is used as placeholder before real messageId returned
29
text = text.trim();
30
- const fakeMessageId = '11111111-1111-1111-1111-111111111111';
+ const fakeMessageId = crypto.getRandomValues(new Uint8Array(1))[0] + Date.now();
31
const isCustomModel = model === 'chatgptCustom' || !initial[model];
32
const sender = model === 'chatgptCustom' ? chatGptLabel : model;
33
parentMessageId = parentMessageId || latestMessage?.messageId || '00000000-0000-0000-0000-000000000000';
0 commit comments