Commit History
-
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] update numbering labels (#811)
MishigUnverified signature03202d0 -
/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>150c8c1
-
[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>08e8583
-
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
-
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
-
[JS] use shorthand notation (#711)
MishigUnverified signature* [JS] use shorthand notation * add `"object-shorthand": ["error", "always"],` * fix "Expected method shorthand object-shorthand" * formatd5559df
-
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>c208e39
-
Open in new tab if cookies are disabled (#580)
Unverified signature* Open in new tab if cookies are disabled * lintbb33d30
-
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
-
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
-
Remove shared routes (#478)
Unverified signature* rm shared route * fix sharing of shared convsa799675
-
[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 websearch…ebac87f
-
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, …447c0ca
-
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.66adc5d
-
Add optional timestamps to messages (#294)
Unverified signature* add optional timestamp field to messages * Add a `hashConv` function that only uses a subset of the message for hashing1eff97d
-
feat openid login with google (#250)
Unverified signatureCo-authored-by: coyotte508 <coyotte508@gmail.com>fa3b3b4
-
Login flow (#193)
Adrien Denat +2: Eliott C., victor Unverified signature* replace EthicsModal by LoginModal and start binding auth logic * start implementing login modal + give a try to @auth/sveltekit using Github oauth as a test * start custom auth implementation instead of auth.js for consistency with moon-landing * fetch user data from provider * add migration from anonymous to user + bind frontend * add missing auth secret + only migrate conversations for pre-existing users * remove email scope as it's not needed Co-authored-by: Eliott C. <coyotte508@gmail.com> * no need to define .well-known path Co-authored-by: Eliott C. <coyotte508@gmail.com> * use env var for hf hub website url * move sessionId to signature on csrf token exchange * remove ethic modal check and set default settings on new users * anonymous users can read only + modal on write tries * refresh session cookie when existing user signin again rather than use the old one * allow users to keep using the app without loging-in if env var is no…64d3841
-
fix deepestChild function throwing error (#213)
Adrien DenatUnverified signature* fix deepestChild function throwing error * let -> const * remove unecessary var64263c4
-
Disable models (#187)
Adrien Denat +1: Eliott C.Unverified signature* add ability for a model to be disabled * fallback to default model if user has invalid/disabled model in settings * set conversations to read-only if conv model is disabled * add better disabled state on chat input * fix inverted if statement * remove bigcode from .env * fix not updating settings Co-authored-by: Eliott C. <coyotte508@gmail.com> * refactor solution to use an OLD_MODELS env var instead * OLD_MODELS needs to be in .env but can be empty * fix typing issue + typo * refactor models validation * old models displayName is optional * set read only prop on user message not assistant messages * remove console.log * ♻️ Refacto isReadOnly * 🩹 Fluff: use 410 http code --------- Co-authored-by: Eliott C. <coyotte508@gmail.com>b7b2c8c
-
✨ Add model id to be able to switch models while keeping conversations valid (#181)
Eliott CUnverified signaturecf7ac8d
-
make sure we allow user to change model if clicking on a link with mo… (#172)
Adrien DenatUnverified signature* make sure we allow user to change model if clicking on a link with model in url param * typo * avoid try/catch + abstract weird Zod enum151571d -
Models selector (#164)

Adrien Denat +3: victor, julien-c, coyotte508 Unverified signatureCo-authored-by: Victor Mustar <victor.mustar@gmail.com> Co-authored-by: Julien Chaumond <julien@huggingface.co> Co-authored-by: coyotte508 <coyotte508@gmail.com>2606dde
-
Fix share not working on iOS (#150)
Adrien DenatUnverified signature2804c18
-
✨ Retry messages (#121)
Eliott C +1: victor Unverified signatureCo-authored-by: Victor Mustar <victor.mustar@gmail.com>4a6603b
-
📈 Add GTM (#119)
Adrien Denat +1: pierric Unverified signature* add GTM following Hub setup * update comment link for GA v4 Co-authored-by: Pierric Cistac <Pierrci@users.noreply.github.com> --------- Co-authored-by: Pierric Cistac <Pierrci@users.noreply.github.com>572bb0e
-
Stop generation button (closes #86) (#88)
Adrien Denat +1: coyotte508Unverified signatureCo-authored-by: coyotte508 <coyotte508@gmail.com>2772555
-
✨ Remove endoftext (#70)
Eliott CUnverified signature0abf663
-
Prettier update (#54)
Unverified signature* Update .prettierrc * prettify everthing prettify everything5da61b4 -
add loading icon + pending state when assistant message is pending (#48)
Adrien Denat +1: Eliott C.Unverified signature* add loading icon + pending state when assistant message is pending * remove dead code Co-authored-by: Eliott C. <coyotte508@gmail.com> * add loading to messages if a token takes a while to come * add dom utils --------- Co-authored-by: Eliott C. <coyotte508@gmail.com>3aa8136
-
♻️ Duplicate convos in DB when they are shared (#44)
Eliott CUnverified signature76d4779 -
✨ Save messages in backend (#31)
Eliott CUnverified signaturead02fa3