Spaces:
Runtime error
Runtime error
Commit History
-
Add personas navigation link with dynamic count to sidebar menu
2aa62b9
-
fix CI (#1884)
Eliott C.Unverified signature* fix CI * add playwright as dev dep * lint * clean up spaces-config with community tools * try to make mongo run?3b53c7a
-
fix: adjust spacing in NavMenu and ChatMessage components; capitalize conversation title in page
baf6354
-
HuggingChat 2026 (#1875)
Unverified signature* refactor: remove tokenizer-related functionality and dependencies - Removed tokenizer dependencies from package.json. - Deleted TokensCounter component and its usages across the application. - Updated model configurations to exclude tokenizer properties. - Refactored model processing logic to support only OpenAI-compatible endpoints. - Adjusted API responses to omit tokenizer information. - Cleaned up related utility functions and imports. * Remove web search functionality and related components - Deleted endpoints for various web search APIs (serpApi, serpStack, serper, webLocal, youApi). - Removed generateQuery function and its usage in search. - Eliminated web search related types and interfaces from the codebase. - Updated Assistant and Conversation types to remove references to web search and embedding models. - Cleaned up related utility functions and message updates for web search. - Adjusted API routes and components to reflect the removal of web search features. - Updated…7bf1507
-
refactor: api cleanup (#1849)
Unverified signature5ad620b
-
refactor: new API & universal load functions (pt. 2) (#1847)
Unverified signature* feat(API): refactor API with Elysia * feat: initial elysia setup * feat: replace conv/[id] load function with universal * fix: delete v1 catchall * wip * fix: response type * fix: add cors * feat: more routes in tools & assistants * refacto: use normal svelte fetch in `/assistant/[assistantId]` * refacto: use normal svelte fetch in `conversation/[id]` * feat: use universal load function for `tools/[toolId]` * wip: removing more server load function stuff * feat: more routes to universal load functions * feat: more routes to universal * refactor: move tools loading to API endpoint * refactor(api): implement tools search API endpoint and move load function * fix: types on tool search * refactor: update assistant route and remove redundant page load function * refactor(api): move assistants page load function to api call * refactor(settings): remove waterfall loading * refactor: main load function * fix: types * feat: improve fetchJSON to handle empty responses * …612f16b -
Revert "refactor: new API & universal load functions (#1743)"
This reverts commit 7961ae74d12cc62461929d92aca0adac48b72d9a.813f132 -
refactor: new API & universal load functions (#1743)
Unverified signature* feat(API): refactor API with Elysia * feat: initial elysia setup * feat: replace conv/[id] load function with universal * fix: delete v1 catchall * wip * fix: response type * fix: add cors * feat: more routes in tools & assistants * refacto: use normal svelte fetch in `/assistant/[assistantId]` * refacto: use normal svelte fetch in `conversation/[id]` * feat: use universal load function for `tools/[toolId]` * wip: removing more server load function stuff * feat: more routes to universal load functions * feat: more routes to universal * refactor: move tools loading to API endpoint * refactor(api): implement tools search API endpoint and move load function * fix: types on tool search * refactor: update assistant route and remove redundant page load function * refactor(api): move assistants page load function to api call * refactor(settings): remove waterfall loading * refactor: main load function * fix: types * feat: improve fetchJSON to handle empty responses * …50aea0a
-
Search feature enhancements (#1841)
Vijay Rohit Kanchusthambham +1: nsarrazin Unverified signature* Added infinite scrolling to search feature. * Added code to highlight the search keyword in search description * feat: improve description layout * feat: improve search context finding * fix: remove all debug bits --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>7e91987
-
[WIP] - Add the pop-up search (Ctrl/Command + K) to search entire conversation history (#1823)
Hong An Tran +2: krramos, nsarrazin Unverified signature* UI for crtl/command + k for conversation search * UI for ctrl/command+k * Added fetch conversations and filter conversations functions * WIP - finish with the first draft of popup-search * WIP - Finish the first version pop up search * WIP - Finish the first version pop up search * Remove unnecessary codes * Fixed formatting errors * Fixed formatting errors * refactor: search functionality * fix: revert those changes * fix: lint * chores: clean up unused comment --------- Co-authored-by: kenneth.ramos95 <kenneth.ramos95@gmail.com> Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>c6ccfa4
-
fix: padding on theme icon
b7217a0 -
feat: add simple light/dark mode toggle
782a4fb -
feat: mobe about & privacy to settings
4ddaa1a
-
refactor: update publicConfig checks for HuggingChat in modals and nav menu
db9d593 -
feat: allow storing env variable in DB (#1802)
Unverified signature* feat(config): wip, make config controllable from DB, public side for now * fix: build * feat(config): add config manager env var toggle * wip: make backend config use config manager * fix: typechecks * fix: circular import * refactor: init hook sveltekit * fix: disable config manager during tests * refactor: use enum for semaphore, move delete from auto after 60s to separate `deleteAt` field * feat: config manager checks for updates on requests * fix: config script exit * fix: remove top-level awaits * fix: script await * feat: filter config keys based on public environment variables for more security * fix: change import to type for public environment variables48059af
-
feat(nav): improve mobile navigation with pan gesture to close (#1729)
Unverified signaturefeat(nav): improve mobile navigation with pan gesture to close conv drawer6c59df2
-
chores(svelte): migration to svelte 5 (#1685)
Unverified signature* chores(svelte): migration to svelte 5 * chores(svelte5): remove preventDefault & stopPropagation legacy handlers * chores(deps): version bumps * fix: closing modal works properly * fix: messagte loading reactivity * fix: loading indicator * fix: conversation list reactivity * fix: bug on tool logo rendering * fix: infinite loading circular dep * feat: hide new chat button on new chats * fix: move apply directive to main.css * fix: remove legacy syntax in `TokensCounter.svelte` * fix: replace legacy `run` with Svelte 5 `$effect` in NavMenu * fix: replace legacy `run` with Svelte 5 `$effect` in ScrollToPreviousBtn * fix: migrate `settings/[modelId]` page to Svelte 5 syntax * fix: replace legacy `run` with Svelte 5 `$effect` in ToolUpdate component * fix: migrate ToolEdit component to Svelte 5 syntax * fix: simplify login required handling in ChatInputa1a6daf
-
fix: fetch bug for 0 conversations
Unverified signaturef179ba7
-
feat: infinite scrolling list of conversations (#1564)
Unverified signature* wip * wip: infinite scrolling continues * fix: merge regression * fix: infinite scrolling * fix: unify use of base over APP_BASE * fix: show loader properly when invalidating after reaching end of page5290cbb
-
fix: menu padding
e7b3dd5
-
fix(kit): await conversations in server load function again
Unverified signature575fe85
-
fix: remove fade on conv load
e8c0c11
-
feat: lazy stream conversations load function (#1553)
Unverified signature* feat: lazy stream conversations load function * fix: lint * feat: add animation * feat: skip db call if no convs9d36148
-
feat(tools): remove feature flag for tools and use env variable instead (#1433)
Unverified signature6a5e4c9
-
Community tools (#1250)
Unverified signature* wip community tools * push * fix * bugfix * pass inputs to gradio correctly * full inputs for imagegen * lint * update gradio * fix call to gradio * fix imagegen tool * fix name * fix image display * Community tools (#1297) * work on tools * wip * icon * page * use IDs for every tools * improve tools page * wip * add optimized deps * refacto 1tool=1function * Add preview page * fix active indicator * fix text alignment * fix populate script * tooledit * fixes * better inputs * fix console error & cancel button * upload new tools * edit * improve lint * working community tools * fix active featured check * Simplify outputs in user form * fix non file outputs * fix imagegen default tool * add community tools popup * redirect gradio API calls through chat-ui backend * better usecount * Better loading & output element * better redirects & auto activate * bugfixes * fix migration changes * Add feature flag for tools * fix tools menu * Keep tr…0c3e3b2
-
Major bump to sveltekit & node-adapter versions (#1395)
Unverified signature* version bump * sveltekit2 bump * formatting * fix imports * fix deps * minor bump on chat-ui itself * better error logging * bump svelte-check version06feee8
-
UX: Dropzone (#1350)
Unverified signature* nav: more compact * drop window trigger * fix z-index * border width --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>5ddf84d
-
Revert "chore(deps): update major versions on svelte, sveltekit & node (#1281)"
Unverified signatureThis reverts commit 2e95674dc5821f3f891001d05873c6053b0784bf.77ea6f2 -
chore(deps): update major versions on svelte, sveltekit & node (#1281)
Unverified signature* Bump versions * fix checksa41af50
-
Enable auth using trusted header (#1128)
Unverified signature* Declare jwt-decode as dependency. * Show email from JWT and hide signout * Use special value for JWT user ID. * fix user creation, fix linting * formatting * Update implem to use header instead of cookie * create user id based on email --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>f61126a
-
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 logs to debug level and add an env var to filter by log level in d…a8a9533
-
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>b1253fd
-
Make assistant feature visible globally (#756)
Unverified signature* Make assistant feature visible globally * Remove flag also here57162d1
-
beta tag (#758)
Unverified signature63368bc -
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>797e348
-
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, but enabled in huggingchat * lint * Fix bottom model name …df3243b
-
Upgrade tailwindcss to version 3.4 (#664)
Unverified signature* Upgrade tailwindcss to version 3.4 * lint0fe5982
-
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 * remove index causing errors * Fix bug where sessions w…e99e7c2
-
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>d90f53e
-
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>4265c02
-
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>cc38b64
-
Login button sends you directly to login page (#501)
Unverified signature* Login button sends you directly to login page. * use _parent for target0839479
-
add a login button when users are logged out (#381)
Unverified signature6233bdc
-
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-none67577d7
-
feat openid login with google (#250)
Unverified signatureCo-authored-by: coyotte508 <coyotte508@gmail.com>018a142
-
🐛 Fix "signin with HF" within space + CSRF (#236)
Eliott CUnverified signatured72b096
-
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 not present * typo * handle deni…566c2fc
-
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>dd5d9ad
-
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>911412b
-
✨ Title edit (#135)
Eliott C +1: victor Unverified signatureCo-authored-by: Victor Mustar <victor.mustar@gmail.com>78cdca3