Commit History
-
Simplify frontend for conversation tree representation (#1678)
Unverified signature* Simplify frontend for conversation tree representation * fix lint * get initialState * rm unused Message[currenrtChildIdx] * fix delete branch * comment * change lines order * use existing `assistant` prop in `ChatWindow.svelte` * Update src/routes/conversation/[id]/+page.svelte Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com> * fix: rendering of message when switching branches --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>29bfa65
-
feat: new tool UI (#1630)
Unverified signature* feat: new tool UI * wip community tools support * fix: community tools support * fix: line heights * fix: MIME types * fix: remove debug logs * fix: make sure file upload is always last * fix: always enable document parser when a pdf is present in the conversation * fix: use correct icon for document upload * fix: make sure community tools use their custom icons correctly * feat: add button to browse community tools * tweak buttons * add some tooltips * fix: bug in file upload tooltips * fix: lint --------- Co-authored-by: Victor Mustar <victor.mustar@gmail.com>74ed6b2
-
feat: UI for advanced reasoning models (#1605)
Unverified signature* feat: add a reasoning dropdown for CoT models * feat: add status updates * fix: various cleanups - pass content & status to result dropdown - dont store streaming updates in db - make status generation non blocking * fix: make sure not to push reasoning token stream to db * feat: add time indicator and make the ui match websearch * fix: change in status update & prompt764ecdf
-
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 convsc3630d5
-
feat: add setting option to disable content pasting
8f18bce
-
[feat] Add support for endpoint web sources (#1544)
goupilew +1: nsarrazin Unverified signature* [feat] Add support for endpoint web sources * chores: lint --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>f6846e2
-
[vertex] Add PDF/plein texts support (#1520)
goupilewUnverified signature* [vertex] Add PDF support * [vertex] Fix lint * [vertex] Add support for text/plaina5e332d
-
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 buttonscaa65b2
-
feat: add link to API playground for compatible models (#1488)
Unverified signature* feat: add link to API playground for compatible models * fix: move buttons to correct spot * fix: inference API placement buttonbaa5d2f
-
fix(continue): fix continue feature (#1459)
Unverified signature* fix(continue): more reliable end token stripping before we would try to strip end tokens once in order from the stop array, now we strip all end tokens from the array until we can't anymore * fix(tools): remove generation prompt in continue mode4f61809
-
fix(tools): add support for JSON tool outputs
bdfaa86 -
Let users access the API using their HF token (#1216)
Unverified signature1cf5cf7
-
Maintain Conversation Tree State on Refresh or Share (#1397)
Unverified signature* Saving and reloading the current tree on page refresh * Saving and reloading the current tree on page refresh / Moving to the last branch when editing a user message or retrying an assistant message. * Update Reload the current tree state on page refresh * updated updateCurrentIndex function * Update updateCurrentIndex Function * Persist current tree in navigation/shared conversations v1 Co-authored-by: Kenneth Ramos <kenneth.ramos95@gmail.com> Co-authored-by: Eduardo Rocha <rocha092@csusm.edu> * Removed uncessary comment. Co-authored-by: Long Dao <hailongdao1017@gmail.com> Co-authored-by: Eduardo Rocha <rocha092@csusm.edu> * Added enhance import and document focus fix. Co-authored-by: Long Dao <hailongdao1017@gmail.com> Co-authored-by: Eduardo Rocha <rocha092@csum.edu> * Fixed code to have updated formatting and LoadEvent type in page.ts Co-authored-by: Long Dao <hailongdao1017@gmail.com> Co-authored-by: Eduardo Rocha <rocha092@csusm.edu> * run formatting * simplify pr…82e3e54
-
Websearch using Bing API (#1420)
Unverified signature* feat: bing search enabled * lint * feat: bing url hardcoded * lint --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>0def3fc
-
feat(assistants): use community tools in assistants (#1421)
Unverified signature* wip: give assistant tool access * add api endpoints * add/delete tools from assistant settings * make tools work with assistants * feat(tools): add more tools indicator throughout UI * formatting3bb3aef
-
feat(tools): use gradio ETA for tools (#1411)
Unverified signatured2a0004
-
feat(tools): add `File` support
Unverified signatureefb9260 -
fix(stream): add keep alive stream event
Unverified signature76aec2b -
feat(tools): add support for video outputs
Unverified signature99d979a -
feat(tools): add support for audio output
Unverified signatureaaa0fbf
-
feat(tools): add support for number outputs
Unverified signature55f2070 -
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…b8228c1
-
feat(auth): Add admin & early access flags based on orgs membership (#1365)
Unverified signature28bb1ea
-
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.179b41de
-
Add "disable streaming tokens" settings & remove media query (#1299)
Unverified signatureb639829
-
feat: mime types on tools, show upload btn on demand (#1204)

Liam Dyer +2: nsarrazin, victor Unverified signature* feat: mime types on tools, show upload btn on demand * feat: enable and disable all tools button * feat: minor tools ui changes and nits * Only paste or drop the allowed MIME types (#1222) * Only allow specific MIME types when pasting * lint * Simplify upload button show logic Since we already take into account if the model is multimodal above * Add mime type check to file dropzone * Make error clearer * enable/disable same button * cs * rm unused --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com> Co-authored-by: Victor Mustar <victor.mustar@gmail.com>33592b9
-
Add super basic admin feature (#1213)
Unverified signaturefe5d2b9
-
Add a loading bar for tools (#1188)
Unverified signature* Add a loading bar for tools * move css to right file * lighter purple and no rounding on the loading bar * Update src/routes/+layout.server.ts Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> * Clear animation when done (#1191) * Clear animation when done * make the bar go to the end --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com> --------- Co-authored-by: Victor Mustar <victor.mustar@gmail.com> Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu>f441fc4 -
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>8336431
-
Add error message for tools (#1163)
Liam Dyer +1: nsarrazin Unverified signature* feat: add error message for tools * lint --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>77abe30
-
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 *…faa93d9
-
Generic Multimodal Support Fixed (#1147)
Liam Dyer +2: nsarrazin, Mishig Unverified signature* feat: multimodal anthropic support * docs: add claude haiku and multimodal support * feat: uploaded file detection and image conversion * fix deps with sharp * fix resvg deps? * fix: image conversion, retry with files * feat: generic image processing and size target * docs: multimodal review comments Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> * docs: multimodal review comments Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> * feat: review comment resolution * fix: type error on image params * feat: add multimodal for vertex ai anthropic * style: uploadFile timeout number Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> * fix: TGI endpoints expecting multimodal --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com> Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu>b4690c8
-
Revert "Generic Multimodal Support" (#1146)
MishigUnverified signatureRevert "Generic Multimodal Support (#1021)" This reverts commit 57f89346cc6d953246d0f1705e342e2e66fce386.2a40544 -
Generic Multimodal Support (#1021)
Liam Dyer +2: nsarrazin, Mishig Unverified signature* feat: multimodal anthropic support * docs: add claude haiku and multimodal support * feat: uploaded file detection and image conversion * fix deps with sharp * fix resvg deps? * fix: image conversion, retry with files * feat: generic image processing and size target * docs: multimodal review comments Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> * docs: multimodal review comments Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> * feat: review comment resolution * fix: type error on image params * feat: add multimodal for vertex ai anthropic * style: uploadFile timeout number Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com> Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu>f493225
-
Web Search: Playwright, spatial parsing, markdown (#1094)
Liam Dyer +2: Aaditya Sahay, Aaditya SahayUnverified signature* feat: playwright, spatial parsing, markdown for web search Co-authored-by: Aaditya Sahay <aadityasahay1@gmail.com> * feat: choose multiple clusters if necessary (#2) * chore: resolve linting failures * feat: improve paring performance and error messages * feat: combine embeddable chunks together on cpu * feat: reduce parsed pages from 10 to 8 * feat: disable javascript in playwright by default * feat: embedding and parsing error messages * feat: move isURL, fix type errors, misc * feat: misc cleanup * feat: change serializedHtmlElement to interface * fix: isUrl filename * fix: add playwright dependencies to docker * feat: add playwright browsers to docker image * feat: enable javascript by default * feat: remove error message from console on failed page --------- Co-authored-by: Aaditya Sahay <aadityasahay1@gmail.com> Co-authored-by: Aaditya Sahay <56438732+Aaditya-Sahay@users.noreply.github.com>da34bf2
-
Use jinja template for chat formatting (#730) (#744)
Unverified signature* Use jinja template for chat formatting * Add support for transformers js chat template * update to latest transformers version * Make sure to `add_generation_prompt` * unindent3d931f5
-
[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>dae4e82
-
Expose sampling controls in assistants (#955) (#959)
Unverified signature* Expose sampling controls in assistants (#955) * Make sure all labels have the same font size * styling * Add better tooltips * better padding & wrapping * Revert "better padding & wrapping" This reverts commit 1b44086465040f2cb6bc906983cfc8d95820d6fe. * ui update * tooltip on mobile * lint * Update src/lib/components/AssistantSettings.svelte Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> --------- Co-authored-by: Victor Mustar <victor.mustar@gmail.com> Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu>e0147e0
-
Dynamic system instructions (#949)
Unverified signature* Dynamic system instructions * disable tag rendering if the feature is disabled * make time & date tags bold * fix bug enabling dynamic prompt on assistant creation * Move fetching at prompt building time * get rid of date & time tags * use `url=` for tags * add env flag check * Add more detailed errors in prompt * wording * token counter * modal update * wording * hide disabled if dynamic prompt is enabled * add template variables parsing * regex update * same regex * regex again * sys prompt max height * rm unused * Always use absolute URL in links * trying something * Revert "trying something" This reverts commit e30ab33f801fad31cbcaa7b89c47c79d4aca86a6. * wording * remove debug log * last wording tweak --------- Co-authored-by: Victor Mustar <victor.mustar@gmail.com>35014ff -
[Websearch] change context schema (#944)
MishigUnverified signature694dbc8
-
Count system prompt tokens (#850)
Mishig +1: nsarrazin Unverified signature* Count sysmte prompt tokens * show error only once * fix * fix css * simplify * fix * simplify * Revert "simplify" This reverts commit 61c0a2281f9795c4a4351d9ad473993a3c01c59f. * `model.tokenizer` config & fix reactivity issues * rm gated tokenizer * use `truncate` --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>eb2ef82
-
Store user agent in conversation (#940)
Unverified signature* Store user agent on conversation creation * casing header5ecbe1c
-
Add websearch controls for assistants (#812)
Unverified signature* remove query modifiers from generateQuery * Add backend for assistant RAG * Add front-end for updating RAG assistant * enable web parser to return plaintext directly for matching headers * Update websearch flow for handling assistant rag preferences * Add our old blocklist to .env.template * Enable websearch to run on messages depending on assistant requirements * reorganized imports * Rename vars * use projection * Add environment variable for assistant rag * fix assistant rag on runwebsearch * fix styling if rag is disabled * make sure we always omit credentials when fetching web pages * Add new checks for SSRF, with a new env var `ENABLE_LOCAL_FETCH` * Use DNS to check if the links are local or not * Add a websearch indicator * Add more tags to parser * Add indicators * Display RAG options in settings view * ui * fix rag detection * bit more spacing * fix button position in assistant form * wording (mainly) * reduce number of tags * Bump max URLs from 3 t…3d58f23
-
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>2dae031 -
[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>c8e9fc0
-
Use `uuid` for message ID generation instead of crypto method (#882)
Unverified signatureBecause `crypto.randomUUID()` is not available on non-secure contexts (for example `http` versions of chat-ui), this would break on non-https deployments of chat-ui. This should fix #870 and fix #86841aed8b
-
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>8cabca8
-
✨ 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>a6fb72d
-
Make compatible with Microsoft Entra (v1 and v2 tokens) (#821)
Unverified signature* Make the profile picture claim optional Some identity providers (such as Azure AD) do not provide or support the picture claim. This patch makes it optional. * Allow using Microsoft Entra v1 tokens --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>0ba292a
-
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…62d2069