Commit History
-
[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 comparison53e0136 -
Revert "[Mongo] Optimize `reports` collection query (#832)" (#833)
MishigUnverified signatureThis reverts commit 19329abf32a4f49ff048585d0f6df5887cea8465.c755352 -
[Mongo] Optimize `reports` collection query (#832)
MishigUnverified signature* [Mongo] Optimize `reports` collection query * perform reports query only once * rm unused async * keep both indices19329ab -
Allow customising defaultQuery for native Azure OpenAI support (#822)
Unverified signatureThe api-version is a required query parameter for Azure OpenAI, by supporting this we can support it without a gateway like portkey. Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>7c4d92a
-
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. * …e6addfc -
[Assistants] Add new indices for efficient querying (#810)
MishigUnverified signature* [Assistants] Add new indeices for efficient querying * update indices & use `createdById` * stronger typingdb943f9
-
Make lorax openai endpoint working (#755)
Unverified signaturemake base model for lorax inference working Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>10d7a5a -
Added support for SearXNG as a websearch source (#805)
Karlostavitch1 +1: nsarrazin Unverified signature* Created searchSearxng.ts for querying and parsing searxng instance. Added searxng to the searchWeb.ts to ensure inclusion in the search initialisation script. Added searxng to +layout.server.ts to ensure the search button is enabled if url provided in .env.local assignment Updated .env to include searxng configuration Updated README.md under Web Search Config to mention addition of searxng URL use in .env * Changes requested consolidated env variable to SEARXNG_QUERY_URL (felt considering the content the word QUERY was more relevant) refactored the searchSearxng.ts to generate the query with the new variable updated related references to variable (.env, searchWeb.ts and +layout.server.ts) Updated readme and variable comment on .env to reflect the same * urefectored to display SearXNG in search dialoge when used. * lint * types --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>7c22da3 -
🗃️ 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 true881070b
-
Only pull from settings where the assistant is present (#806)
Unverified signature3c372b8 -
fix continue button on openai endpoint (#803)
Unverified signature12e7e30
-
Several QoL contributions (#760)
Luke +1: nsarrazin Unverified signature* allow customizing disclaimer as `PUBLIC_APP_DISCLAIMER_MESSAGE` * support passing `defaultHeaders` to `openai` endpoint * add azure openai, claude, mistral examples using `defaultHeaders` & `openai` endpoint * fix streaming being buffered behind cloudflare tunnel might help to relieve issue #598 * support new lines in model description * don't automatically generate modelUrl to huggingface fixes broken links for self-hosted or custom-named model * add `PUBLIC_APP_DISCLAIMER_MESSAGE` in `.env` * `npm run format` --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>73a5c0d
-
Bring back featured check on top assistants page (#765)
Unverified signature0b2a549
-
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
-
Web search: UI update (#749)
Unverified signature* wip * ui * font-size * leading * smaller * move icon and remove loading props * rm inline svg * rm animationbccd811
-
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 -
[Fix] small fixes in websearch generateQuery (#727)
MishigUnverified signature13489e8 -
[SmallModel] Nit update the comment (#726)
MishigUnverified signature* [SmallModel] Nit update the comment * even more precise77adc4d
-
Continue generation feature (#707)
Unverified signature* Initial work on continue feature * Move continue button * Fix websearch with continue * Make it work with every model * Update src/routes/conversation/[id]/+server.ts Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> * fixes * async all the things * add reduce comment * remove log * Only show loading indicator if not continuing --------- Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu>77399ca -
Use JSON5 for embeddings (#719)
Unverified signature6e0b0ea -
[JS] use shorthand notation (#711)
MishigUnverified signature* [JS] use shorthand notation * add `"object-shorthand": ["error", "always"],` * fix "Expected method shorthand object-shorthand" * formatd5559df
-
Revert "[Small model] Explicitly close AsyncGenerator" (#709)
MishigUnverified signature7179080
-
[Small model] Explicitly close AsyncGenerator (#704)
MishigUnverified signature01418cd
-
Mv embeddingEndpoints.ts (#688)
MishigUnverified signature* Mv embeddingEndpoints.ts * relative import41f8b74
-
Add embedding models configurable, from both transformers.js and TEI (#646)
Unverified signature* Add embedding models configurable, from both Xenova and TEI * fix lint and format * Fix bug in sentenceSimilarity * Batches for TEI using /info route * Fix web search disapear when finish searching * Fix lint and format * Add more options for better embedding model usage * Fixing CR issues * Fix websearch disapear in later PR * Fix lint * Fix more minor code CR * Valiadate embeddingModelName field in model config * Add embeddingModel into shared conversation * Fix lint and format * Add default embedding model, and more readme explanation * Fix minor embedding model readme detailed * Update settings.json * Update README.md Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> * Update README.md Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> * Apply suggestions from code review Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> * Resolved more issues * lint * Fix more issues …3a01622
-
Fixes "invalid url" error in websearch (#675)
Unverified signature* Fixed #656 * lint --------- Co-authored-by: muhammadbaqir1327 <muhammad.baqir@arbisoft.com> Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>e63c1d7 -
Use JSON5 for parsing all config vars (#671)
Unverified signaturef09c5f3
-
Add support for SerpStack API (#669)
Unverified signature* Add support for SerpStack API * update const to SERPSTACK_API_KEY * update readme * lint --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>f02ffb2
-
Add allow & blocklist for websearch (#651)
Unverified signature* Add allow & blocklist for websearch * fix start whitespacebdb1788
-
Add feature to unlist a model (#625)
Unverified signature41f29a4
-
Standardize HF_ACCESS_TOKEN -> HF_TOKEN (#610)
Unverified signature* Standardize HF_ACCESS_TOKEN -> HF_TOKEN * Replace HF_ACCESS_TOKEN by HF_TOKEN in .env * Add legacy support for HF_ACCESS_TOKEN --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>3cbea34 -
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 * lintea856f7
-
Support websearch for openAI chat completion mode (#608)
Unverified signaturecb29148 -
Add support for passing an API key or any other custom token in the authorization header (#579)
Galén +1: nsarrazin Unverified signature* Add support for passing an API key or any other custom token in the authorization header * Make linter happy * Fix README as per linter suggestions * Refactor endpoints to actually parse zod config * Remove top level env var and simplify header addition * Skip section on API key or other, remove obsolete comment in endpointTgi.ts and remote CUSTOM_AUTHORIZATION_TOKEN from .env --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>a1afcb6
-
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>e4a770a
-
Add ollama endpoint support (#569)
Unverified signature* Add ollama endpoint support * replace if by switch * Add Ollama example in docs14f0244
-
disable cache on tgi endpoint (#567)
Unverified signaturedd4c436 -
Option for running websearch locally (#563)
Unverified signature* Fully local websearch * better comments * fix else ife3af794
-
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@g…0e5c445 -
remove min string size on accessToken
Unverified signature6cfb775
-
Enable lazy construction of pipeline (#554)
Joshua LochnerUnverified signature683ef2f -
fix: typecheck
Unverified signature26efb26 -
fix: Rename sagemaker endpoint to aws endpoint
Unverified signatureb5041c1 -
Modular backends & support for openAI & AWS endpoints (#541)
Unverified signature* Fix the response Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com> * Should use /completions Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com> * Use async generator Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com> * Use openai npm Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com> * Fix generateFromDefaultEndpoint Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com> * Fix last char become undefined Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com> * Better support for system prompt Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com> * Updates Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com> * Revert Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com> * Update README Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com> * Default system prompt Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com> * remove sk- Signed-off-by: Hung-Han …9db8ced
-
add you.com integration (#514)
mrbean +2: David Li, MishigUnverified signature* add you.com integration * [Feat] Add types (#1) * feat: add types * feat: specify search provider * [Feat] add return values (#3) * feat: add types * feat: specify search provider * add values for ui * add idea to gitignore * lint and downgrade * Revert "lint and downgrade" This reverts commit fbfe012cf4d6aaf5ea00508ca0f99a408ce152e6. * Updates to you.com integration (#4) * `npm run format` * enable search when `YDC_API_KEY` is available * typing nit * enum WebSearchProvider * eslint-disable-next-line no-shadow * downgrade * You.com already provides text snippets (#5) * Order desc you.com results by text length * You.com already provides texts from webpages * add to env * Update .env Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> * Update src/lib/server/websearch/searchWeb.ts --------- Co-authored-by: David Li <david.li3100@gmail.com> Co-authored-by: Mishig <mishig.davaadorj@coloradocoll…4606755
-
[Websearch] UI fix sources (#521)
MishigUnverified signature5071731
-
Switch chat model back to mistral, use zephyr for small tasks (#515)
Unverified signature* Switch chat model back to mistral, use zephyr for small tasks * typo * fix tests9187ced
-
Feature/add OIDC optional tolerance and resource (#496)
itaybar +1: nsarrazin Unverified signature* Added optional tolerance for OIDC jwt * Added optional OIDC resource for authorizationURL * Refactored open id params with zod --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>e69cb4a
-
Update websearch prompting & summary prompting (#503)
Unverified signature* Use the task model for websearch query generation * summary with examples in chat format * Update to websearch prompting - Removed web search template - Added examples in `generateQuery` - Passed previous questions when generating the web search query - Added previous questions to the bottom of the context window in `buildPrompt` when using websearch * wait for model if needed * rm console.log * get rid of regex * added a few time related examples * Update src/lib/server/websearch/generateQuery.ts Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> * reformat yesterday * test * fix whitespace * remove extra whitespace for mistral * removed mistral extra whitespace * Update src/lib/server/summarize.ts Co-authored-by: Victor Muštar <victor.mustar@gmail.com> * Update src/lib/server/summarize.ts Co-authored-by: Victor Muštar <victor.mustar@gmail.com> * add an emoji if none is found in the first three characters ----…1e5090f
-
Added optional llm summerization (#498)
itaybar +1: nsarrazin Unverified signature* Added optional llm summerization * set summery as first 5 words Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com> * delete unused file * Pass stop sequences properly to TGI (#499) * Pass stop sequences properly to TGI * fix types * Add a job in release action that updates the .env in prod (#493) * Add a workflow that updates the .env in prod * move update env to release workflow * version bumps on actons * flipped config * black * Save user message on request (#337) (#492) Closes #337 * bump inference version * lint --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>d779ad0