Commit History
-
Add support for Jinja for chat model templates (#1739)
Ben Lewis +1: nsarrazin Unverified signature* Add support for Jinja for chat model templates * feat(docs): improve docs regarding templates --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>3aa87af
-
fix: code block copy button
dcf9591 -
feat(markdown): move highlighting to worker (#1741)
Unverified signature035fcd5
-
feat(front): use webworker for markdown parsing (#1733)
Unverified signature* feat(front): move markdown parsing to web worker * feat: use webworker for markdown parsing * feat(markdown-worker): implement message buffering and processing * fix(markdown): import KaTeX CSS locally instead of via CDN * fix(markdown): make sure messages are serializable * feat(markdown): make sure links have target blank * refactor(markdown): improve HTML escaping function formatting6ee391c
-
Capture screen like similar to Claude (#1604)
Unverified signature* feat: capture screen * feat: make it work with latest tool UI * fix: add screenshot icon * Update src/lib/components/icons/iconScreenshot.svelte Co-authored-by: Victor Muštar <victor.mustar@gmail.com> * fix: capitalization * fix: stop tracks in finally block * fix: revert chatwindow changes that shouldnt be there * fix: tooltip classes --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com> Co-authored-by: Victor Muštar <victor.mustar@gmail.com>b5ae72d
-
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
-
fix(front): fix clipboard copy on chrome (#1497)
Unverified signaturec19bb15
-
fix(share): use copy link on desktop (#1477)
Unverified signaturea70c180
-
extend user count (#1455)
Unverified signatureUpdate formatUserCount.tsa528ebd
-
fix(share): only give leafId when sharing a conversation
39876ca -
feat(tools): specify either space namespace or huggingface.co URL (#1435)
Unverified signaturef468f71
-
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 -
feat(front): make frontend smoothing configurable
afad06c
-
chores(deps): update Transformers to latest version and remove chat templates for all models (#1414)
Unverified signature* chores(deps): update Transformers to latest version and remove chat templates for mistral models * feat(models): remove chatPromptTemplate everywheref3064dd
-
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
-
remove dead code (#1339)
Unverified signaturebc44e30
-
Add "disable streaming tokens" settings & remove media query (#1299)
Unverified signatureb639829
-
Fix max upload size in huggingchat (#1251)
Unverified signature3f28650
-
Simplify tool error handling (#1168)
Liam Dyer +1: MishigUnverified signature* feat: simplify tool error handling * feat: resolve linting and type errors --------- Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu>1bbbb2d
-
Disable text streaming if user prefers reduced animation (#1131)
Unverified signature* Disable text streaming if user prefers reduced animation * Simplify filtering of stream updates --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>3572695
-
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
-
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…0e5ff83
-
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
-
User count update (#970)
Unverified signature* add more range * display on assitant page too124338b
-
feat: smooth and combine token output (#936)
Liam DyerUnverified signature* feat: smooth and combine token output * fix: stop generating button not triggering message updates abortd923e4b
-
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
-
[Assisntans filter] More UX fixes (#908)
MishigUnverified signature* [Assisntans filter] More UX fixes * rm unused355828b
-
[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
-
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
-
[Assistants] update numbering labels (#811)
MishigUnverified signature2d3cdb1 -
/assistants: add user count (#809)
Unverified signature* add user count * Update formatUserCount.ts * add 50-99 range * Update src/lib/utils/formatUserCount.ts Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu> --------- Co-authored-by: Mishig <mishig.davaadorj@coloradocollege.edu>c7f33a5
-
[Assitants] Community | User tabs (#773)
Mishig +1: victor Unverified signature* [Assistants] Add pagination * [Assitants] Community | User tabs * format * minimize diff * Update src/routes/assistants/+page.svelte Co-authored-by: Victor Muštar <victor.mustar@gmail.com> * use data.user * rm unused import * Use a href & simplify overall * lint * it will never be a button * statements need to be reactive * format * set filter differntly * Revert "set filter differntly" This reverts commit fc8a2fc67463fb5ad39be3c3ae16ce74caa1f05d. * use inline * avoid ugly image change * fix query * ui update * update link to profiles * link to HF profile * dark mode * Update +page.svelte * refactor getHref to be more descriptive * Preserve `user` searchQuery when chaning model ids * `getHref` utility * dont show single "Community" btn for non-logged in users * fix iterator --------- Co-authored-by: Victor Muštar <victor.mustar@gmail.com>e7357ce
-
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>29f04a4
-
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 …cafb235
-
[JS] use shorthand notation (#711)
MishigUnverified signature* [JS] use shorthand notation * add `"object-shorthand": ["error", "always"],` * fix "Expected method shorthand object-shorthand" * format5869ab4
-
Update share behaviour (#645)

Mishig +2: victor, nsarrazin Unverified signature* Update share behaviour * Simplify * format * wording * lint --------- Co-authored-by: Victor Mustar <victor.mustar@gmail.com> Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>3019791
-
Open in new tab if cookies are disabled (#580)
Unverified signature* Open in new tab if cookies are disabled * linta428a93
-
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>0348c77
-
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 (Henry) Chen <chenhungh@gmail.com> * Fixing t…0ab1dfb
-
Remove shared routes (#478)
Unverified signature* rm shared route * fix sharing of shared convs6136e7b
-
[Websearch] update (#427)

Mishig +2: julien-c, victor Unverified signature* Fix reuqest body * update webSearchQueryPromptTemplate * update generate google query parser * Add today's date to google search query creator * crawl top stories if exts; remove answer_box & knowledgeGraph * Create paragraph chunks from top articles * flattened paragprah chunks * update status texts * add gradio client * call gradio app for RAG * Web scrape only "p, li, span" els * add MAX_N_CHUNKS * gradio result typing * parse only <p> elements * rm dev change * update typing WebSearch * buld RAG prompt * Rm dev change * change websearch context msg from user to assisntat type * use hosted gradio app * fix lint * prompt engineering * more prompt engineering * MAX_N_PAGES_SCRAPE = 10 * better error msg * more prompt engineering * revert websearch prompt to previous * rm `top_stories` from websearch as the results are not good * Stop using gradio client, use regular fetch * chore * Rm websearchsummary references as it is no longer used * update readme …5520318
-
Make all prompt templates configurable (#400)
Unverified signature* Make all prompt templates configurable This PR enables all prompts to be configurable using handlebar templates as described in #382. For backward compatibility the old hardcoded templates are reimplemented as the default templates. The old template parameters such as `preprompt`, `userMessageToken`, `userMessageEndToken`, `assistantMessageToken`, `assistantMessageEndToken` are now considered legacy. They still work as they are exposed as variables to the default template. However, new prompt configurations should not use these. And it is recommended that the legacy support is eventually removed. As an example, this is how the default chat prompt template is implemented: ``` {{preprompt}} {{#each messages}} {{#ifUser}}{{@root.userMessageToken}}{{content}}{{@root.userMessageEndToken}}{{/ifUser}} {{#ifAssistant}}{{@root.assistantMessageToken}}{{content}}{{@root.assistantMessageEndToken}}{{/ifAssistant}} {{/each}} {{assistantMessageToken}} ``` In addition, this PR fixes an issue wh…ac22d69
-
feat: add support for endpoints requiring client authentication using PKI (#393)
TomUnverified signature* feat: add support for endpoints requiring client authentication using PKI This enables a global mTLS context for client requests using the native fetch API. It can be used when custom endpoints require client authentication via PKI. * fix: Dockerfile syntax required for macOS Set the Dockerfile syntax explictly to enable new features in Dockerfile. The default syntax uses by Docker Desktop for macOS does not include support for `--link` in the COPY command for example.58965dc