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

Set prompts & model from URL query parameters #436

Open
nsarrazin opened this issue Sep 13, 2023 · 3 comments
Open

Set prompts & model from URL query parameters #436

nsarrazin opened this issue Sep 13, 2023 · 3 comments
Assignees
Labels
back This issue is related to the Svelte backend or the DB enhancement New feature or request front This issue is related to the front-end of the app. p1

Comments

@nsarrazin
Copy link
Collaborator

To improve sharing rates we should be able to share links that set:

  • system prompts
  • model name
  • maybe user prompt?

This will require:

  • Setting the settings from URL query parameters
  • A UI for crafting the shareable URL (that lets people share their config with the world)
  • A UI when you receive the URL (to confirm that you want to sent model & prompt)
@nsarrazin nsarrazin added enhancement New feature or request front This issue is related to the front-end of the app. back This issue is related to the Svelte backend or the DB labels Sep 13, 2023
@gary149 gary149 self-assigned this Sep 18, 2023
@gary149 gary149 added the p1 label Sep 18, 2023
@Mardak
Copy link

Mardak commented May 14, 2024

Looks like #164/#172/#621 already added support for handling ?model, e.g., https://huggingface.co/chat/?model=microsoft/Phi-3-mini-4k-instruct

Could something similar be added to take in ?q similar to ggerganov/llama.cpp#6554 without the other items of UI for crafting sharable URL, etc?

So something like https://huggingface.co/chat/?q=prompt similar to how https://chatgpt.com/?q=prompt works.

Perhaps a change in https://github.com/huggingface/chat-ui/blob/main/src/routes/%2Bpage.svelte

onMount(() => {
  const query = page.url.searchParams.get("q");
  if (query) createConversation(query);
});

I suppose if not automatically starting the conversation, it could pass the query to ChatWindow?

@gary149 gary149 assigned nsarrazin and unassigned gary149 May 30, 2024
@nsarrazin
Copy link
Collaborator Author

@Mardak implemented it in this PR thanks for the suggestion 🚀

@julien-c
Copy link
Member

nice! good idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back This issue is related to the Svelte backend or the DB enhancement New feature or request front This issue is related to the front-end of the app. p1
Projects
None yet
Development

No branches or pull requests

4 participants