danny-avila / LibreChat

Enhanced ChatGPT Clone: Features OpenAI, Assistants API, Azure, Groq, GPT-4 Vision, Mistral, Bing, Anthropic, OpenRouter, Vertex AI, Gemini, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. More features in development
https://librechat.ai/
MIT License
15.31k stars 2.55k forks source link

Enhancement: create new chats using query parameters #1343

Open jonas-w opened 6 months ago

jonas-w commented 6 months ago

Contact Details

No response

What features would you like to see added?

I'd love to have a feature, where I can start a chat through query parameters. i.e. https://librechat.example.com/c/new?prompt=Hello World&model=gpt-4&temperature=0.7.

I guess it would already be suffice for me if it's just possible to pass a prompt, further settings like model/temperature/presets would be really awesome to have, but are not a must, if it is too much work.

More details

I use Kagi as my search engine and I can define custom bangs. Kagi ships by default with the bangs from duckduckgo https://duckduckgo.com/bangs

e.g. if I search for !wiki OpenAI it will search wikipedia for OpenAI and open the first result. This is implemented with the following URL https://en.wikipedia.org/wiki/Special:Search?search=%s&go=Go, where %s will be replaced by OpenAI in this example.

So I could basically define a bang !chat with the url https://librechat.example.com/c/new?prompt=%s&model=gpt-4, which could take me to librechat with the prompt prefilled and already executed.

image

When typing @chat Hello World the address bar already switches to Searching on LibreChat:

image

And hitting enter would redirect me to:

image

Which components are impacted by your request?

General

Pictures

No response

Code of Conduct

danny-avila commented 6 months ago

This should be feasible and I agree this is a great feature to have