Spaces:
Runtime error
Runtime error
Commit History
-
mongodb index creation
a28b199
-
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
-
feat: improve export feature
- add once per hour rate limit - remove await blocks, start streaming zip right away - add stats to loggingd8a4377
-
fix: starting chat-ui with no .env.local
5b7c1e9
-
[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
-
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: add a local endpoint type for inference directly from chat-ui (#1778)
Unverified signature* feat: add a local endpoint type running llama.cpp from chat-ui * fix: build image * fix: lock file * wip: try to make it more reliable * feat: load chat template from .gguf file * feat: load gguf models from `models/` folder * fix: default config * feat: make endpoint use chatSession instead of completion * refactor: improve exit handling, exit immediately on second sinal * fix: various fixes to improve reliability when calling multiple models at once * docs: add instructions for adding .gguf files to the models directoryde36cdc
-
feat(db): use in memory db when MONGODB_URL not set (#1773)
Unverified signature* feat(db): allow use of in memory db when MONGODB_URL not set * fix(db): enhance database disconnection handling with server stop * feat(db): persist db to disk * fix: use proper root folder in both build & devd4471e3
-
feat(migrations): clean up empty conversations from db (#1561)
Unverified signature* feat(migrations): clean up empty conversations from db * fix(tests): better test coverage, fix bug with sessions * feat: better migration * fix: stop test server after running tests * fix: migration code * fix: refactor to take into account large size of session collectiondd87ed5
-
feat: Update featured workflow to allow user to submit featured requests (#1510)
Unverified signature* feat: Update featured workflow to allow user to submit featured requests * fix: merge conflict * fix: styling of buttons69c6804
-
Let users access the API using their HF token (#1216)
Unverified signature501bbaa
-
fix(assistants): assistant sorting
the sorting was returning duplicate assistants occasionally, this should be fixed7701400
-
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
-
feat: allow disabling metrics server, consolidate exit handlers (#1201)
Liam Dyer +1: nsarrazin Unverified signature* feat: allow disabling metrics server, consolidate exit handlers * Make server off by default, enable in prods, update docs accordingly --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>dc1fb76
-
Fix error logging (#1228)
Unverified signatureLogging was switched to Pino. For error logging, Pino wants the object first, and then the string message. For example see this thread: https://github.com/pinojs/pino/issues/6737dd92b8
-
Fix context of logger (#1112)
jorado +1: nsarrazin Unverified signature* fix this context of logger * lint --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>f862a80
-
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
-
Use pino for logs (#1086)
Unverified signature* Use pino for logs * Use logger for info * Add errorId to the logs486ffa7
-
[Assistants] trending feature (#938)
Mishig +1: coyotte508Unverified signature* [Assistants] trending feature * cleaner sort query * create & use `AssistantStats` collection * fix grouping * rm usage of migration * ♻️ Refacto lock usage / AssistantStat * 🩹 Fix last24HoursCount.count => last24HoursCount * 🐛 Fix collection name * 🐛 Fix DB query * 🐛 Fix rate limit on assitant creation * 🐛 Fix aggregation query * ✨ Only run refreshAssistants if assistants are enabled * hide UI until we have enough stats collection --------- Co-authored-by: coyotte508 <coyotte508@gmail.com>1b76365
-
Automated migration setup (#897)
Unverified signature* Initial migration setup for chat-ui * refresh the lock regularly while the migrations are running * add index for migrationResults * clean up code a bit * Don't try to run migrations when sveltekit is building * simplified lock code * Add early check for migrations being done Reduce timer for lock * migration use `generateSearchTokens` * Update src/lib/migrations/migrations.spec.ts Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> --------- Co-authored-by: Mishig Davaadorj <dmishig@gmail.com> Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu>b488195 -
[Assistants] Filter on names (#841)
Mishig +3: Eliott C., nsarrazin, victor Unverified signature* [Assistants] Filter on names * Add `$text` index on `assistant.name` (#844) * add maxlength * better experience * use `$meta: "textScore"` * Update src/routes/assistants/+page.server.ts Co-authored-by: Eliott C. <coyotte508@gmail.com> * null, not undefined * [Assistants] Filter on names (using searchTokens) (#873) Filter with `searchTokens` * input * rm extra whitespace * hide UI before migration * rm ad-hoc migration --------- Co-authored-by: Eliott C. <coyotte508@gmail.com> Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com> Co-authored-by: Victor Mustar <victor.mustar@gmail.com>5340dfb
-
✨ Add stats on conversations (#828)
Eliott C +1: nsarrazin Unverified signature* ✨ Add stats on conversations * 🩹 Fix conversation stats compute * ⚡️ Slightly better index * 🔊 * 🩹 Some fixes * 🐛 Fix aggregation query * 🐛 Fix $merge stage of query * 🐛 Fix query on sessionId * ✨ Compute weekly/monthly unique users * 🩹 Final tweaks * ⚡️ Split aggregations for better perf No need to recompute DAUs / WAUs and so on * ♻️ Deprecate PARQUET_EXPORT_SECRET & fix sec vuln * Add ADMIN_API_SECRET to CD action --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>e2f48a3
-
[Mongo] Optimize `reports` collection query (v2) (#834)
MishigUnverified signature* [Mongo] Optimize `reports` collection query (#832) * [Mongo] Optimize `reports` collection query * perform reports query only once * rm unused async * keep both indices * correct Objectid comparisondf4a841 -
Revert "[Mongo] Optimize `reports` collection query (#832)" (#833)
MishigUnverified signatureThis reverts commit 19329abf32a4f49ff048585d0f6df5887cea8465.fcaee6d -
[Mongo] Optimize `reports` collection query (#832)
MishigUnverified signature* [Mongo] Optimize `reports` collection query * perform reports query only once * rm unused async * keep both indicesfeba74d
-
Conversation trees (#223) (#807)
Unverified signature* work on branching * branching * work on input field * wip * wip * helper stuff * pass tests * add type guards and clean up type requirements * fixed shared conv type * more helpers stuff * clean up code * addChildren helper * addSibling * add test for addSibling & refacto addChildren tests * backend work pt. 1 * backend done * add children property to messages for easier frontend rendering * fix message id type rail * front-end work on simple linear conversation * fix title generation * convert conversations on post * server side retry works with branching * clean up buttons * fix retry feature backend * Send new messages in any subtree * make edit previous prompts feature work * fix padding * revert unneeded changes * bring back pending message * fix front-end streaming * fix initial message * Revert "fix initial message" This reverts commit 6257fe8789c52a20e7506aa453efda55c16e95bb. * Fix bug subtree state refresh * fix continue feature on shared co…2a808d7 -
[Assistants] Add new indices for efficient querying (#810)
MishigUnverified signature* [Assistants] Add new indeices for efficient querying * update indices & use `createdById` * stronger typing0523dc6
-
🗃️ Create index on users.username (#819)
Eliott CUnverified signature* 🗃️ Create index on `users.username` * 🗃️ Do not do db.assistants.find({modelId: {$exists: true}) since it's always truef387d23
-
Only pull from settings where the assistant is present (#806)
Unverified signature38dd6a5
-
Bring back featured check on top assistants page (#765)
Unverified signatureaa849ef
-
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
-
Get rid of the unused websearch collection, and the unused endpoint (#607)
Unverified signature* Get rid of the unused websearch collection, and the unused endpoint * removes index * lintfb8eeb2
-
Session management improvements: Multi sessions, renew on login/logout (#603)
Unverified signature* 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 were not properly being deleted on logout * Moved session refresh outside of form content check --------- Co-authored-by: coyotte508 <coyotte508@gmail.com>45ec8d7
-
Add support for tgi multimodal models (#531)
Unverified signature* wip: add support for tgi multimodal models * wip work on passing images to prompt * working idefics config! * rm allowed conv feature * lint * Add image resizing * fix ssr * add upload button * add delete button * misc formatting * lint * server file size check * optimistic update of images * retry with images * fix websearch button * lint * better error handling & max one image at a time * replace test image by blank one * disable loading on page change * Fix sharing of images * fix comments * Update filedropzone (#544) * Update src/lib/buildPrompt.ts Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> * small tweaks * Fix merge conflicts * lint * wildcard image mime type * fix lint and comment * added comments * added comment about file size * Readme update --------- Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> Co-authored-by: Victor Mustar <victor.mustar@gmail.com>241ba68
-
very basic rate limiter (#320)
Unverified signaturea3cae97
-
Add initial support for web browsing (#237)
Unverified signature* basic poc for web search * * Hide feature when serpapi_key is not defined * handle error case where serpapi failed * only use user queries for generating the query * Update src/lib/buildPrompt.ts Co-authored-by: Eliott C. <coyotte508@gmail.com> * Update src/routes/+layout.server.ts Co-authored-by: Eliott C. <coyotte508@gmail.com> * refactored getQueryFromPrompt * add jsdom to package.json * begin work on fetching webpage content * Update .env Co-authored-by: Eliott C. <coyotte508@gmail.com> * prettier fix * Add feature for scraping webpages * refactored search functionality - now gets triggered from a separate endpoint - results are stored in db - results can be displayed in their own endpoint * Added a stream to send updates from backend on web-search endpoint * made stream more reliable * Add front-end to web search feature * made sure the web results button appears on newly posted messages * close modal when message is done generating * removed log statements *…0c6af63
-
🔧 Add "directConnection" option to MongoDB (#260)
Eliott CUnverified signature293a71d
-
✅ Add tests setup + test sign in flow
Adrien Denat +1: Eliott C.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…41e9886
-
🧑💻 Explicit error message when MongoDB configuration lacking (#208)
Eliott CUnverified signatureffa7874
-
✨ Backend preparation for "Sign in with HF" (#190)
Eliott CUnverified signatured7b4e1d
-
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
-
Stop generation button (closes #86) (#88)
Adrien Denat +1: coyotte508Unverified signatureCo-authored-by: coyotte508 <coyotte508@gmail.com>3dafcf0
-
Prettier update (#54)
Unverified signature* Update .prettierrc * prettify everthing prettify everything98051f8
-
♻️ Duplicate convos in DB when they are shared (#44)
Eliott CUnverified signaturecdc7c53 -
Share convos (#35)
Eliott CUnverified signaturee3c83d9
-
Add MongoDB (#14)
Eliott CUnverified signature2f4d50b