chatgpt-web
chatgpt-web copied to clipboard
Is it possible to start a new chat directly from a URL?
Hi,
I know we can go to /#/chat/new
to create a new chat, but is it possible to specify some query param, such as
https://niek.github.io/chatgpt-web/#/chat/new/?prompt="Tell me a joke"
so that it creates a new chat, use the given prompt to trigger the first message, return the response, and let the user continue from there?
Asking cuz if this is possible, it might be easier to integrate with some other automatic tools.
Thanks.
Good idea, would be rather easy to integrate (see https://github.com/Niek/chatgpt-web/blob/main/src/lib/NewChat.svelte).
Not too familiar with the codebase so please let me know if this doesn't make sense https://github.com/Niek/chatgpt-web/pull/419