From 7ec79046cb8b8ef276578af518492e726b1c4344 Mon Sep 17 00:00:00 2001 From: Chih-Wei Chang <2840571+lazywei@users.noreply.github.com> Date: Sat, 10 Feb 2024 09:07:28 -0800 Subject: [PATCH] Allow using URL Params to jumpstart NewChat with a given message. For example, ``` https://localhost:5173/#/chat/new?message=hello ``` This will start a new chat and then send the message out to kickoff the session. Issue: https://github.com/Niek/chatgpt-web/issues/418 --- src/lib/NewChat.svelte | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/src/lib/NewChat.svelte b/src/lib/NewChat.svelte index 2e073df9..03b477b7 100644 --- a/src/lib/NewChat.svelte +++ b/src/lib/NewChat.svelte @@ -1,20 +1,41 @@