-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Assistants feature #639
Assistants feature #639
Conversation
This feature reminds me of the Agents feature that you were doing, but this seems very different without tools usage. Why is the Agents feature dropped? Or why is this one having more precedence? thanks! |
This is ready for review @gary149, it's only missing the edit an existing assistant feature but I don't think it's a blocker and the rest is done |
For the system prompts, maybe we can create and link to an example dataset of 10 system prompts for the inspiration. Something like https://huggingface.co/datasets/fka/awesome-chatgpt-prompts |
Merged back #662 into this branch. There's a feature flag if we think it's not a feature we want in prod yet 😄 |
@gururise thanks for testing! By any chance do you have any openid config ? We've configured it so that only logged-in users can create assistants if openid is configured. But it should be accessible if you have no login setup. I'll have a look as well. |
I only tested without openid. I'll try with openid. |
Ok then I need to fix it so that it also works without OpenID! 😁 And good catch on the created by, will see if we can default to something else. Assistants are public but not shared by default, (you can share them using the URL in the settings) |
Should be better @gururise 😄 |
Works perfectly now! Thanks! |
* Add rate-limited image generating endpoint * Add generate avatar button * add little padding for firefox focus ring * format * fix upload image bug * Fix uploads, replace reset by delete * left-align buttons * rm avatar generation feature * final changes to delete feature * sys prompt min height * padding * Add object-cover everywhere --------- Co-authored-by: Victor Mustar <[email protected]>
Really glad to see that it's finally up! 🤗 |
* First push on assistants * push fixes * fix add assistant * Sign up works * lint * mobile layout fixes * design fixes * Merge branch 'main' into feature/assistants * fix copy button * add error feedback * hide duplicate feature * remove wrong comments * add autoredirect if assistant is missing * latest changes: - add edit feature - hash assistant avatar - get rid of ugly line - check for non existent avatar - make a better looking upload icon * Update src/routes/conversation/+server.ts Co-authored-by: Mishig <[email protected]> * reused type more cleanly * fix type in shared conversation * fixed feature * fix: share conv with an assistant * delete assistant avatars in db when deleting avatar * affordance on avatar upload * improve assistant conv start on mobile * settings modal fly in * better mobile intro * mobile padding * link affordance * Make assistants disabled by default, but enabled in huggingchat * lint * Fix bottom model name * ui tweaks * Initial work on chat thumbnails * fix build * Get rid of deps * Update src/routes/settings/assistants/[assistantId]/avatar/+server.ts Co-authored-by: Mishig <[email protected]> * add comment to app_base * Use event modifiers * Use CSS uppercase instead everywhere * Update src/lib/components/NavMenu.svelte Co-authored-by: Mishig <[email protected]> * Update src/routes/+layout.server.ts Co-authored-by: Mishig <[email protected]> * Clearer error message for avatar size check * one less op on flag check * revert back preventDefault change in LoginModal * Update src/routes/settings/+layout.svelte Co-authored-by: Mishig <[email protected]> * Update src/routes/+layout.server.ts Co-authored-by: Mishig <[email protected]> * Update src/routes/+layout.server.ts Co-authored-by: Mishig <[email protected]> * Added app logo in corner of thumbnail and clamped description length * improved thumbnails * Remove warnings * Reuse Assisntants settings component (huggingface#678) * Update Assisntants settings * format * [Assistants] Use textToImage task for avatar generation (huggingface#662) * Generate assistants avatar using stablediffusion * wording * Update +page.server.ts Co-authored-by: Michael Fried <[email protected]> * Add timeout & controls to avatar generation * Add controls for avatar generation in .env * Update src/routes/+layout.server.ts Co-authored-by: Mishig <[email protected]> * Update src/lib/components/AssistantSettings.svelte Co-authored-by: Mishig <[email protected]> * Fix avatar gen feature flag * Can only upload avatar if generate is unchecked --------- Co-authored-by: Michael Fried <[email protected]> Co-authored-by: Mishig <[email protected]> * layout * small fixes * hint * Show feature if login is not required * lint * Only show creator name if it's defined * tweaks * thumbnail update * thumbnail font-size * Always display model at the bottom * Bottom links now go to settings * fix lint * silent release * fix bg on share link * [Assistant] Delete avatar button instead of reset (huggingface#725) * Add rate-limited image generating endpoint * Add generate avatar button * add little padding for firefox focus ring * format * fix upload image bug * Fix uploads, replace reset by delete * left-align buttons * rm avatar generation feature * final changes to delete feature * sys prompt min height * padding * Add object-cover everywhere --------- Co-authored-by: Victor Mustar <[email protected]> --------- Co-authored-by: Mishig <[email protected]> Co-authored-by: Victor Mustar <[email protected]> Co-authored-by: Michael Fried <[email protected]>
Current look
New assistant
Assistant (created by you)
Assistant (created by another user)
Conversation starting page
Ongoing conversation
(note top of page indicator and avatar in side menu)
Receiving a shared assistant
Assistant without an avatar