Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

Remove crypto from client side

HyunggyuJang0405206438af
diff --git a/client/src/utils/handleSubmit.js b/client/src/utils/handleSubmit.js
index a9fbdb0d45..32a7d54ea5 100644
--- a/client/src/utils/handleSubmit.js
+++ b/client/src/utils/handleSubmit.js
@@ -27,7 +27,7 @@ const useMessageHandler = () => {
// this is not a real messageId, it is used as placeholder before real messageId returned
text = text.trim();
- const fakeMessageId = crypto.randomUUID();
+ const fakeMessageId = '11111111-1111-1111-1111-111111111111';
const isCustomModel = model === 'chatgptCustom' || !initial[model];
const sender = model === 'chatgptCustom' ? chatGptLabel : model;
parentMessageId = parentMessageId || latestMessage?.messageId || '00000000-0000-0000-0000-000000000000';
@@ -161,4 +161,4 @@ export default function handleSubmit({
});
events.stream();
-}
\ No newline at end of file
+}