felixbade / assistant

Web UI for ChatGPT API. No back-end, mobile-friendly, continuously user-tested
https://assistant.bloat.app
ISC License
125 stars 25 forks source link

Allow for question in url param #38

Closed theolundqvist closed 1 year ago

theolundqvist commented 1 year ago

Add possibility to parse question directly from URL params,

url?q="hi chatgpt!"

This would make it faster to open a new conversation from ex alfred or other launcher.

felixbade commented 1 year ago

Good idea! I will use URL hash instead of parameters though, so the question doesn’t get sent to my web server

felixbade commented 1 year ago

I wonder how to make this feature discoverable. Maybe the hash could be automatically populated after the first message. This could also make it easier to format it properly.

Then again, that would make it harder to reset the conversation (just a page refresh wouldn’t be enough). Maybe this feature can be made discoverable after there is a setting page (#6).

felixbade commented 1 year ago

Maybe adding just a comment about this feature to README would be sufficient before there is a way to add UI elements to the app without cluttering the chat view.

felixbade commented 1 year ago

Fixed in bccc402

Example: https://assistant.bloat.app/#q=hello%20there

I'm not sure how to make the links open in the Chrome app / iOS app when that is installed.

theolundqvist commented 1 year ago

Fixed in bccc402

Example: https://assistant.bloat.app/#q=hello%20there

I'm not sure how to make the links open in the Chrome app / iOS app when that is installed.

Really cool, well done!