Added an await for the 'ready' promise from the database module in the migration test setup to ensure the database is fully initialized before running tests.
Added support for custom class names to the IconMoon Svelte component for improved styling flexibility. Removed unused migration imports from routines/index.ts to clean up the codebase.
Removed all migration entries from the migrations array in routines/index.ts, leaving it empty. This may be to reset, disable, or prepare for new migration logic.
Automatically refresh oauth token (#1913)
Eliott C.
Unverified signature
ab8b948
automatically refresh oauth token
fix CI (#1884)
Eliott C.
Unverified signature
2883086
* fix CI
* add playwright as dev dep
* lint
* clean up spaces-config with community tools
* try to make mongo run?
* 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…
* 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 variables
* 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 validation
feat(db): use in memory db when MONGODB_URL not set (#1773)
* 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 & dev
fix(tests): make flaky migration tests more stable
* 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 collection
feat: Update featured workflow to allow user to submit featured requests (#1510)
* feat(models): add transferTo property on old models
used to transfer assistants to new models if specified
* make sure transferTo is an existing model
fix(migrations): run tools migration for chat-ui too
* 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.1
Logging 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/673
* 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
*…
* 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…
* 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>
[Assistants] trending feature (#938)
Mishig+1: coyotte508
Unverified signature
dae4e82
* [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>
* 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>