Spaces:
Running
Running
Commit History
-
Move vars to dynamic, add metrics (#1085)
Unverified signature* Add healthcheck route * Add prom client with basic metrics * wip: serve metrics on a different port * exclude server from tsconfig * latest * refacto(all): use class & singleton * refacto(all): use class & singleton * refacto(all): add request logs * Make all the env vars dynamic (#1092) * Add truncate to task model (#1090) * retry text area height (#1091) * Make all the env vars dynamic * only check for db at runtime * remove secret from build step * improve dockerfile * Wrap db in singleton * add .env.local to dockerignore * changes to dockerfile * lint * aborted generations * move collections build check * Use a single dockerfile * lint * fixes * lint * don't return db during building * remove dev --------- Co-authored-by: Victor Muštar <victor.mustar@gmail.com> * refacto(all): update default metrics port * fix recursion error * add version check * revert vite preview * Move request …98b1c51
-
Models page (#849)
Unverified signature* add models page * add logo * models discussion * add default hint * Update +page.svelte * mishig review * fix typecheck --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>25c844d
-
Make assistant feature visible globally (#756)
Unverified signature* Make assistant feature visible globally * Remove flag also here5e2108d
-
beta tag (#758)
Unverified signature1f50904 -
Top assistants page (#740)
Unverified signature* Basic top assistants page * remove featured check * fix edit * ui update * ui * mishig review * fix * move feedback link to settings * misc * Hide unlisted models in assistants flow * settings + public label * tweak * font-size * Hide top assistant page for soft release * always show author --------- Co-authored-by: Victor Mustar <victor.mustar@gmail.com>786115c
-
Assistants feature (#639)
Unverified signature* 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 <mishig.davaadorj@coloradocollege.edu> * 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, b…992a8de
-
Upgrade tailwindcss to version 3.4 (#664)
Unverified signature* Upgrade tailwindcss to version 3.4 * lintc97d5d1
-
Reworked settings menu (#591)
Unverified signature* initial work on new settings page * new settings - fully working * tweak to settings layout * Added model links * lint * redirect on bad model * delete error page * fix links & reset button * add saving indicator * Make new settings work on mobile * small tweak mobile * Fix preprompt so it gets read correctly from the model.preprompt (#595) * 🔒️ Harden session ID generator (#599) * bump svelte & related to latest (#600) * Update dockerfile to node 20 (#601) * Only refresh cookie on post (#606) * Session management improvements: Multi sessions, renew on login/logout (#603) * wip: update sessionId on every login * comment out object.freeze * only refresh cookies on post * Add support for multiple sessions per user * fix tests * 🛂 Hash sessionId in DB * 🐛 do not forget about event.locals.sessionId * Update src/lib/server/auth.ts Co-authored-by: Eliott C. <coyotte508@gmail.com> * Add `expiresAt` field * r…2cb745f
-
Group conversations by date + small nav fixes (#582)
Unverified signature* fix: get rid of duplicate gradient in mobile nav fix: remove top rounded corned in mobile nav * feat: tighten navigation * fix: gradients on mobile * feat: group conversations by date * ui tweaks * refacto - remove reduce --------- Co-authored-by: Victor Mustar <victor.mustar@gmail.com>332d815
-
fix: new chat when old one is still streaming (#578)
Tomás Gómez +1: nsarrazin Unverified signature* fix: new chat when old one is still streaming * linting * make sure loading is off if isAborted is true To avoid loading indicator showing up when stopping generation early * got rid of reactive statement --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>f23c3c9
-
Bring back disclaimer modal & updates to guest mode (#526)
Unverified signature* Changes to modal on login: - Ethics modal on page load - Login modal pop up for guest mode later - Change message limit to be 5 messages across all conversations * fix login button width * tweak modals * Update src/routes/+layout.server.ts Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> * Fix linting --------- Co-authored-by: Victor Mustar <victor.mustar@gmail.com> Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu>5c9a37f
-
Login button sends you directly to login page (#501)
Unverified signature* Login button sends you directly to login page. * use _parent for target545f27c
-
add a login button when users are logged out (#381)
Unverified signature8fa7bd9
-
Added ChatUI branding & put theming behind an env variable (#298)
Unverified signature* Moved all huggingchat branding behind an env variable * Refactored branding to use multiple env variables * pr review * prettier * move the ethics modal behind the flag PUBLIC_APP_DISCLAIMER * inline chat ui logo so it would take the color * flex-none5d07536
-
feat openid login with google (#250)
Unverified signatureCo-authored-by: coyotte508 <coyotte508@gmail.com>fa3b3b4
-
🐛 Fix "signin with HF" within space + CSRF (#236)
Eliott CUnverified signature767afa7
-
Login flow (#193)
Adrien Denat +2: Eliott C., victor Unverified signature* replace EthicsModal by LoginModal and start binding auth logic * start implementing login modal + give a try to @auth/sveltekit using Github oauth as a test * start custom auth implementation instead of auth.js for consistency with moon-landing * fetch user data from provider * add migration from anonymous to user + bind frontend * add missing auth secret + only migrate conversations for pre-existing users * remove email scope as it's not needed Co-authored-by: Eliott C. <coyotte508@gmail.com> * no need to define .well-known path Co-authored-by: Eliott C. <coyotte508@gmail.com> * use env var for hf hub website url * move sessionId to signature on csrf token exchange * remove ethic modal check and set default settings on new users * anonymous users can read only + modal on write tries * refresh session cookie when existing user signin again rather than use the old one * allow users to keep using the app without loging-in if env var is no…64d3841
-
Add delete confirmation to nav menu (#188)
Unverified signature* Add delete confirmation to nav menu - Refactored chat nav column item into a separate NavElement * Fix linting? * Update src/lib/components/NavElement.svelte Co-authored-by: Victor Muštar <victor.mustar@gmail.com> * Renamed NavElement to NavConversationItem * remove double spaces * fixed linting --------- Co-authored-by: Victor Muštar <victor.mustar@gmail.com>c1c75fd
-
Add settings (#134)
Unverified signatureCo-authored-by: Eliott C. <coyotte508@gmail.com> Co-authored-by: coyotte508 <coyotte508@gmail.com> Co-authored-by: Julien Chaumond <julien@huggingface.co>82fcab7
-
✨ Title edit (#135)
Eliott C +1: victor Unverified signatureCo-authored-by: Victor Mustar <victor.mustar@gmail.com>3a63ab8
-
Add tailwind prettier (#123)
Adrien DenatUnverified signature* add tailwind-prettier plugin * lint all project filesb2387f6
-
Tiny tweak to nav menu (#103)
Unverified signature* Update NavMenu.svelte * swap privacy and about --------- Co-authored-by: Victor Muštar <victor.mustar@gmail.com>b8d13ba -
`/privacy` page, rendered from markdown (#100)
Unverified signature* /privacy from markdown * improve style... * ♻️ Simpler loading of PRIVACY.md * improve style * Better formatting * 💄 Better scrolling * 🔥 Remove file committed by mistake * Apply suggestions from code review Co-authored-by: Omar Sanseviero <osanseviero@gmail.com> --------- Co-authored-by: coyotte508 <coyotte508@gmail.com> Co-authored-by: Omar Sanseviero <osanseviero@gmail.com>97b65ef -
Bottom nav design (#101)
Unverified signature* add UIM icons * add bottom nav * privacy last * Revert "add UIM icons" This reverts commit 2f6ea3678abe173bbce20befedb34c94c3c84c49. * remove iconsc67d260 -
✨ Link to hf.co/chat from logo (#94)
Eliott CUnverified signature9bebf7e -
Styling improvements (#82)
Adrien DenatUnverified signature* add custom scrollbar everywhere * fix scroll to bottom button positioning + add hover * fix non-scrollable transparent area above input text * replace slate color by gray * add custom scrollbars for codeblock * fix chat messages overflowing on small viewports * fix codeblock scrollbar color on light mode + remove !important * fix send icon hover + make disabled buttons default cursor0714764
-
nav branding (#84)
Unverified signature* nav branding * spacingf91689a -
add mobile menu (#64)

Adrien Denat +3: victor, julien-c, Eliott C Unverified signature* add mobile menu * fix * Auto-naming convos by summarizing them (#58) * Auto-naming convos by summarizing them * Ok let's do it only on first message then * revamp * location.reload for now * avoid huge titles * fix messages width * add community feedback to nav * fix tokens keeping coming even when changing conversation (#62) * favicon * 🐛 Fix generating bug (#68) * 🐛 Fix redirect after delete * ✨ Remove endoftext (#70) * 🐛 Remove sanitized < (#71) * 🩹 Change 301 to 302 in case we want to use the route for something else * 🩹 Use passed fetch cc @julien-c When using @huggingface/infernece in the backend we'll need to make it support custom fetch as well * refactor mobile menu + improve accessibility * fix missing menu on md size + regression share button on hover * fix chat title truncate on mobile * fix layout max-width on mobile * use a single event dispatcher instead of 2 * add missing type="button" …4dae10f