Commit History
-
add saslprep package for mongodb authentication (#665)
Unverified signaturea42f592
-
Upgrade tailwindcss to version 3.4 (#664)
Unverified signature* Upgrade tailwindcss to version 3.4 * lintc97d5d1
-
Reworked settings menu (#591)
Unverified signature* initial work on new settings page * new settings - fully working * tweak to settings layout * Added model links * lint * redirect on bad model * delete error page * fix links & reset button * add saving indicator * Make new settings work on mobile * small tweak mobile * Fix preprompt so it gets read correctly from the model.preprompt (#595) * 🔒️ Harden session ID generator (#599) * bump svelte & related to latest (#600) * Update dockerfile to node 20 (#601) * Only refresh cookie on post (#606) * Session management improvements: Multi sessions, renew on login/logout (#603) * 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 * r…2cb745f
-
bump svelte & related to latest (#600)
Unverified signature91d11b2
-
Bump sharp from 0.32.5 to 0.32.6 (#558)
dependabot[bot] +1: dependabot[bot]Unverified signatureBumps [sharp](https://github.com/lovell/sharp) from 0.32.5 to 0.32.6. - [Release notes](https://github.com/lovell/sharp/releases) - [Changelog](https://github.com/lovell/sharp/blob/main/docs/changelog.md) - [Commits](https://github.com/lovell/sharp/compare/v0.32.5...v0.32.6) --- updated-dependencies: - dependency-name: sharp dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>9a92b3f
-
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
-
Bump undici and @sveltejs/kit (#524)
dependabot[bot] +1: dependabot[bot]Unverified signatureBumps [undici](https://github.com/nodejs/undici) to 5.26.4 and updates ancestor dependency [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit). These dependencies need to be updated together. Updates `undici` from 5.25.4 to 5.26.4 - [Release notes](https://github.com/nodejs/undici/releases) - [Commits](https://github.com/nodejs/undici/commits/v5.26.4) Updates `@sveltejs/kit` from 1.25.1 to 1.26.0 - [Release notes](https://github.com/sveltejs/kit/releases) - [Changelog](https://github.com/sveltejs/kit/blob/master/packages/kit/CHANGELOG.md) - [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@1.26.0/packages/kit) --- updated-dependencies: - dependency-name: undici dependency-type: indirect - dependency-name: "@sveltejs/kit" dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>171ed27
-
Update CI scripts for dotenv management (#508)
Unverified signature* Replace DOTENV python script by TS script * Add script to update .env.local locally * add back secrets in actions flowfac3250
-
bump inference version
28c3bea
-
Bump version to svelte 4 (#488)
Unverified signatureFix linting & type checksf504c92 -
Bump zod from 3.21.4 to 3.22.3 (#487)
dependabot[bot] +1: dependabot[bot]Unverified signatureBumps [zod](https://github.com/colinhacks/zod) from 3.21.4 to 3.22.3. - [Release notes](https://github.com/colinhacks/zod/releases) - [Changelog](https://github.com/colinhacks/zod/blob/master/CHANGELOG.md) - [Commits](https://github.com/colinhacks/zod/compare/v3.21.4...v3.22.3) --- updated-dependencies: - dependency-name: zod dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>e5d2cc3 -
Bump postcss from 8.4.23 to 8.4.31 (#483)
dependabot[bot] +1: dependabot[bot]Unverified signatureBumps [postcss](https://github.com/postcss/postcss) from 8.4.23 to 8.4.31. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/postcss/postcss/compare/8.4.23...8.4.31) --- updated-dependencies: - dependency-name: postcss dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>26c517c
-
update package-lock.json
641f9d3
-
Revert "Improve error message when the .env MODELS is not well formatted (#451)"
This reverts commit 8ce8b634e9687f00ad31d572dc047113e5b9f0d0.7ddda31 -
Improve error message when the .env MODELS is not well formatted (#451)
Unverified signature* feat: Improve error handling and parsing of MODELS environment variable * Add more verbose parsing error * Lint * improve message * lint * refactor error handling and default values in models * improve * format --------- Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>8ce8b63 -
Bump mongodb from 5.3.0 to 5.8.0 (#424)
dependabot[bot] +7: dependabot[bot], nsarrazin, Mishig, julien-c, victor, mishig, blanchonUnverified signature* Bump mongodb from 5.3.0 to 5.8.0 Bumps [mongodb](https://github.com/mongodb/node-mongodb-native) from 5.3.0 to 5.8.0. - [Release notes](https://github.com/mongodb/node-mongodb-native/releases) - [Changelog](https://github.com/mongodb/node-mongodb-native/blob/v5.8.0/HISTORY.md) - [Commits](https://github.com/mongodb/node-mongodb-native/compare/v5.3.0...v5.8.0) --- updated-dependencies: - dependency-name: mongodb dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> * Store IP in messageEvents * IP based rate limit * Revert "IP based rate limit" This reverts commit 87c693736f128927291f8b396dba85fa992539ae. * ip rate limit * move rate limit event to top * Add rate limiting to websearch and title summary (#433) * [Websearch] update (#427) * Fix reuqest body * update webSearchQueryPromptTemplate * update generate google query parser * Add today's date to google search query creator * crawl top st…da20881 -
Add latex support with marked-katex-extension (#450)
Unverified signature* Add latex support with marked-katex-extension * Add renderer * Fix marked default option problem * Fix linting error * Fix lock error15bf16f
-
bump to 0.6.0 (#434)
Unverified signaturee5afba2 -
[Websearch] update (#427)
Mishig +2: julien-c, victorUnverified 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
-
version bump to 0.5
6fc4a59 -
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 -
Bump vite from 4.3.5 to 4.3.9 (#404)
dependabot[bot] +2: dependabot[bot], nsarrazinUnverified signatureBumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.3.5 to 4.3.9. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v4.3.9/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nathan Sarrazin <sarrazin.nathan@gmail.com>bea3bcf -
Bump tough-cookie from 4.1.2 to 4.1.3 (#405)
dependabot[bot] +1: dependabot[bot]Unverified signatureBumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.1.2 to 4.1.3. - [Release notes](https://github.com/salesforce/tough-cookie/releases) - [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md) - [Commits](https://github.com/salesforce/tough-cookie/compare/v4.1.2...v4.1.3) --- updated-dependencies: - dependency-name: tough-cookie dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>238dc26 -
Bump word-wrap from 1.2.3 to 1.2.5 (#406)
dependabot[bot] +1: dependabot[bot]Unverified signatureBumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.5. - [Release notes](https://github.com/jonschlinkert/word-wrap/releases) - [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.5) --- updated-dependencies: - dependency-name: word-wrap dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>92a741f
-
Bump @antfu /utils from 0.7.2 to 0.7.6 (#407)
dependabot[bot] +1: dependabot[bot]Unverified signatureBumps [@antfu/utils](https://github.com/antfu/utils) from 0.7.2 to 0.7.6. - [Release notes](https://github.com/antfu/utils/releases) - [Commits](https://github.com/antfu/utils/compare/v0.7.2...v0.7.6) --- updated-dependencies: - dependency-name: "@antfu/utils" dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>4a85966
-
Add Sagemaker support (#401)
Unverified signature* work on sagemaker support * fix sagemaker integration * remove unnecessary deps * fix default endpoint * remove unneeded deps, fixed types * Use conditional validation for endpoints This was needed because the discriminated union couldn't handle the legacy case where `host` is undefined. * add note in readme about aws sagemaker2e6d1bb
-
bump version to 0.4 (#353)
Unverified signaturea38cbb5
-
Fixed grammar (#291)
Unverified signature* Update README.md * Update package-lock.jsonabe7804
-
Add initial support for web browsing (#237)
Unverified signature* basic poc for web search * * Hide feature when serpapi_key is not defined * handle error case where serpapi failed * only use user queries for generating the query * Update src/lib/buildPrompt.ts Co-authored-by: Eliott C. <coyotte508@gmail.com> * Update src/routes/+layout.server.ts Co-authored-by: Eliott C. <coyotte508@gmail.com> * refactored getQueryFromPrompt * add jsdom to package.json * begin work on fetching webpage content * Update .env Co-authored-by: Eliott C. <coyotte508@gmail.com> * prettier fix * Add feature for scraping webpages * refactored search functionality - now gets triggered from a separate endpoint - results are stored in db - results can be displayed in their own endpoint * Added a stream to send updates from backend on web-search endpoint * made stream more reliable * Add front-end to web search feature * made sure the web results button appears on newly posted messages * close modal when message is don…0c4cf03
-
Fix stop generating button (#244)
Unverified signature* fix stop btn * use media query293ff91
-
🐛 Fix "signin with HF" within space + CSRF (#236)
Eliott CUnverified signature767afa7 -
✅ Add tests setup + test sign in flow
Adrien Denat +1: Eliott C.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…d9a878f
-
Login flow (#193)
Adrien Denat +2: Eliott C., victorUnverified 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
-
migrate to eslint-plugin-svelte from deprecated plugin (#182)
Adrien DenatUnverified signature* migrate to eslint-plugin-svelte from deprecated plugin * fix missing change in eslintrc * add rule for Eslint vscode extension to parse svelte files * update the code after migrating to latest eslint-svelte pluginfa72efa
-
Export to parquet (#151)
Eliott C +3: Eliott C., julien-c, victorUnverified signatureCo-authored-by: Eliott C. <coyotte508@gmail.com> Co-authored-by: Julien Chaumond <julien@huggingface.co> Co-authored-by: Victor Mustar <victor.mustar@gmail.com>3da7ec7
-
👷 Add CI to check types (#161)
Eliott CUnverified signatureda1e5da
-
⬆️ @huggingface/inference 2.2.0
coyotte508This helps catching errors9726499
-
Add tailwind prettier (#123)
Adrien DenatUnverified signature* add tailwind-prettier plugin * lint all project filesb2387f6
-
⬆️ @huggingface/inference v2.1.1 (#83)
Eliott CUnverified signature06ffd82
-
✨ Can chat in shared convo (#55)
Eliott CUnverified signature0bfcf81
-
🔧 Configure a base path (#47)
Eliott CUnverified signature67867a9 -
add icons lib (#41)
Unverified signatureb7167b0 -
Share convos (#35)
Eliott CUnverified signaturefc15a4c -
🔒️ Run "npm audit fix"
coyotte5085f9acb9 -
Syntax highlighting + copy to clipboard button (#30)
Adrien Denat +1: Eliott CUnverified signature* add highlight.js for syntax highlighting + add CodeBlock and CopyToClipboard components * use clipboard.js for CopyToClipboard button + add Tooltip component * do not include Tailwind classes in template since it can't parse them * remove hack to strip model messages "endoftext" for now since it breaks code blocks * move styles.css to /styles/main.css * fix import + remove unused component * auto detect language if not returned by model * remove clipboard.js dependency and use native API * rename icons with Icon prefix --------- Co-authored-by: Eliott C <coyotte508@gmail.com>8811ee0 -
💄 Add prose (#28)
Eliott CUnverified signaturee5eb656
-
add basic markdown parsing using Marked (#18)
Adrien Denat +1: Eliott CUnverified signatureCo-authored-by: Eliott C <coyotte508@gmail.com>c3aa4e3 -
✨ Add cookie (#17)
Eliott CUnverified signature067b52a -
Add MongoDB (#14)
Eliott CUnverified signaturecad3e14