Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to start a new chat directly from a URL? #418

Open
lazywei opened this issue Feb 9, 2024 · 2 comments
Open

Is it possible to start a new chat directly from a URL? #418

lazywei opened this issue Feb 9, 2024 · 2 comments

Comments

@lazywei
Copy link

lazywei commented Feb 9, 2024

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.

@Niek
Copy link
Owner

Niek commented Feb 10, 2024

Good idea, would be rather easy to integrate (see https://github.com/Niek/chatgpt-web/blob/main/src/lib/NewChat.svelte).

lazywei added a commit to lazywei/chatgpt-web that referenced this issue Feb 10, 2024
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: Niek#418
@lazywei
Copy link
Author

lazywei commented Feb 10, 2024

Not too familiar with the codebase so please let me know if this doesn't make sense #419

lazywei added a commit to lazywei/chatgpt-web that referenced this issue Feb 10, 2024
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: Niek#418
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants