Spaces:
Paused
Paused
Commit History
-
test(migrations): update mock data to match new User type
Andrew0e4a8bc
-
Remove migration 13-add-branching-fields
7aebf29 -
Register locked persona fields migration
44e5334 -
Add migration for locked and archived persona fields
1607c14
-
Initial commit
725337f
-
Add database migration to replace customPrompts with personas in user settings
d922910 -
Register personas migration in migrations index
2c24731
-
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
-
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
-
fix: tests
0576898
-
feat: add migration to update reports with assistantId to use contentId
29e4d49
-
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: admin CLI login (#1789)
Unverified signature* feat: implement admin token management and CLI login functionality - Added `ADMIN_CLI_LOGIN` and `ADMIN_TOKEN` to the environment configuration. - Introduced `AdminTokenManager` for handling admin sessions and token validation. - Updated user session handling to include admin status. - Enhanced API routes to utilize admin checks based on the new token management. - Modified frontend components to reflect admin status correctly. - Added a new endpoint for validating admin tokens. * fix: remove token after validationafbe0de
-
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
-
fix(tests): make flaky migration tests more stable
991f8ec
-
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(migrations): change deleteEmptyConversations to run only once
Unverified signature2444645
-
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
-
feat(models): add transferTo property on old models (#1453)
Unverified signature* feat(models): add transferTo property on old models used to transfer assistants to new models if specified * make sure transferTo is an existing model371a45e
-
fix(migrations): run tools migration for chat-ui too
Unverified signature7cbdf0a
-
fix(logs): better error logging
Unverified signatureee5c213
-
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(models): Llama 3.1 support (#1355)
Unverified signature* feat(models): Add llama 3.1 405B and 70B * feat(tools): improve tools support for llama 3.1 models * feat(models): update mistral to latest * feat(models): use llama 3.1 8B for tasks * fix(tools): disable tools by default * feat(models): update model descriptions in huggingchat * fix(front): show branding for llama 3 * fix(config): fix encoding * feat(migrations): reset tools for everyone * feat(config): replace orgs with final org * feat(config): update website for llama 3.1d947276
-
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 migration object id (#1215)
Unverified signature65e86ac
-
Reduce message update size returned by websearch (#1179)
Unverified signature* Reduce message update size returned by websearch * lint * Update src/lib/migrations/routines/06-trim-message-updates.ts Co-authored-by: Liam Dyer <liamcdyer@gmail.com> * clean up types * clean up migrations --------- Co-authored-by: Liam Dyer <liamcdyer@gmail.com>5459f31
-
Fix message update migration not applying (#1164)
Liam DyerUnverified signature* fix: message update migration not applying * feat: change message updates migration id to trigger re-run0f633f3
-
Function calling (#996)
Unverified signature* Initial work on function calling * wip * Add websearch as a tool * lint * smol * Move tools to their own files * directly answer check * Add text2img tool * group tool calls together * show retry even if no message * fix trailing urls * Add image popup * format * wip * clean-up * better loading indicator * text colors * extra example to summarize * switch default model * Add fetchUrl tool * wip * Add latest gradio * fix types * version bump sharp * Basic tools menu * working menu * fix menu positioning * deps fix * add deps * cleanup * more cleanup * cleanup * package cleanups * moar cleanup * ui update * Update ChatMessage.svelte * upgrade gradio dep * lint * refactor and pass results to cohere * feat: code interpreter tool * fix: add e2b dependency * feat: working TGI endpoint with tool results * feat: allow image model to expand to 90dvw * fix: dont block on title gen * bump sharp * misc cleanup * fix url fetcher, adjust tool typing *…564e576
-
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
-
Update models and add check for assistants model on startup (#998)
Unverified signature* Remove old models from .env.template * Make sure we always have a visible model in assistant settings * Always show correct info in chat window * Add migration that runs on every server start to update assistant model * change key * fix tests * Update src/lib/migrations/migrations.ts Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> * review * Update src/lib/components/chat/ChatWindow.svelte Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> * revert duplicate Model: * simplify deprecated check --------- Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu>54c5dd9
-
[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