Compare commits

...

215 Commits

Author SHA1 Message Date
dependabot[bot]
1c754da978
Bump vite from 5.3.5 to 5.4.1 in /web (#1423)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.3.5 to 5.4.1.
- [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/v5.4.1/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-16 07:47:39 -04:00
Juan Calderon-Perez
74306c77c6
Bump llama-cpp-python to v0.2.87 2024-08-07 19:56:47 -04:00
dependabot[bot]
2b91e26dca
Bump redis from 5.0.7 to 5.0.8 in /api (#1404)
Bumps [redis](https://github.com/redis/redis-py) from 5.0.7 to 5.0.8.
- [Release notes](https://github.com/redis/redis-py/releases)
- [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES)
- [Commits](https://github.com/redis/redis-py/compare/v5.0.7...v5.0.8)

---
updated-dependencies:
- dependency-name: redis
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-07 09:23:02 -04:00
Juan Calderon-Perez
113312115c
Bump llama-cpp-python to v0.2.86 2024-08-07 09:22:53 -04:00
dependabot[bot]
242fac4a07
Bump autoprefixer from 10.4.19 to 10.4.20 in /web (#1411)
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.4.19 to 10.4.20.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/10.4.19...10.4.20)

---
updated-dependencies:
- dependency-name: autoprefixer
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-07 09:19:49 -04:00
dependabot[bot]
12d36c6c68
Bump aiofiles from 23.2.1 to 24.1.0 in /api (#1395)
Bumps [aiofiles](https://github.com/Tinche/aiofiles) from 23.2.1 to 24.1.0.
- [Release notes](https://github.com/Tinche/aiofiles/releases)
- [Commits](https://github.com/Tinche/aiofiles/compare/v23.2.1...v24.1.0)

---
updated-dependencies:
- dependency-name: aiofiles
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-07 09:19:13 -04:00
dependabot[bot]
11c1cf3839
Bump sqlalchemy from 2.0.30 to 2.0.32 in /api (#1414)
Bumps [sqlalchemy](https://github.com/sqlalchemy/sqlalchemy) from 2.0.30 to 2.0.32.
- [Release notes](https://github.com/sqlalchemy/sqlalchemy/releases)
- [Changelog](https://github.com/sqlalchemy/sqlalchemy/blob/main/CHANGES.rst)
- [Commits](https://github.com/sqlalchemy/sqlalchemy/commits)

---
updated-dependencies:
- dependency-name: sqlalchemy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-07 08:58:30 -04:00
dependabot[bot]
95d3c85c8f
Bump @typescript-eslint/parser from 7.17.0 to 7.18.0 in /web (#1400)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.17.0 to 7.18.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.18.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-07 08:55:51 -04:00
dependabot[bot]
c2183af5c3
Bump svelte-check from 3.8.4 to 3.8.5 in /web (#1403)
Bumps [svelte-check](https://github.com/sveltejs/language-tools) from 3.8.4 to 3.8.5.
- [Release notes](https://github.com/sveltejs/language-tools/releases)
- [Commits](https://github.com/sveltejs/language-tools/compare/svelte-check-3.8.4...svelte-check-3.8.5)

---
updated-dependencies:
- dependency-name: svelte-check
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-07 08:55:43 -04:00
dependabot[bot]
ee354ff0ba
Bump @sveltejs/kit from 2.5.18 to 2.5.20 in /web (#1410)
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.5.18 to 2.5.20.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.5.20/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-07 08:55:32 -04:00
dependabot[bot]
57a72db354
Bump pyjwt from 2.8.0 to 2.9.0 in /api (#1409)
Bumps [pyjwt](https://github.com/jpadilla/pyjwt) from 2.8.0 to 2.9.0.
- [Release notes](https://github.com/jpadilla/pyjwt/releases)
- [Changelog](https://github.com/jpadilla/pyjwt/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/jpadilla/pyjwt/compare/2.8.0...2.9.0)

---
updated-dependencies:
- dependency-name: pyjwt
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-07 08:54:39 -04:00
dependabot[bot]
7402590f85
Bump debugpy from 1.8.3 to 1.8.5 in /api (#1413)
Bumps [debugpy](https://github.com/microsoft/debugpy) from 1.8.3 to 1.8.5.
- [Release notes](https://github.com/microsoft/debugpy/releases)
- [Commits](https://github.com/microsoft/debugpy/commits/v1.8.5)

---
updated-dependencies:
- dependency-name: debugpy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-07 08:34:08 -04:00
dependabot[bot]
8e7de57813
Bump vite from 5.3.4 to 5.3.5 in /web (#1399)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.3.4 to 5.3.5.
- [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/v5.3.5/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-03 09:41:27 -04:00
dependabot[bot]
70b74934bf
Bump huggingface-hub from 0.24.2 to 0.24.5 in /api (#1407)
Bumps [huggingface-hub](https://github.com/huggingface/huggingface_hub) from 0.24.2 to 0.24.5.
- [Release notes](https://github.com/huggingface/huggingface_hub/releases)
- [Commits](https://github.com/huggingface/huggingface_hub/compare/v0.24.2...v0.24.5)

---
updated-dependencies:
- dependency-name: huggingface-hub
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-03 09:41:06 -04:00
dependabot[bot]
9163aade66
Bump tailwindcss from 3.4.6 to 3.4.7 in /web (#1398)
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 3.4.6 to 3.4.7.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/v3.4.7/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v3.4.6...v3.4.7)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-03 09:37:50 -04:00
dependabot[bot]
40859efe37
Bump debugpy from 1.8.1 to 1.8.3 in /api (#1408)
Bumps [debugpy](https://github.com/microsoft/debugpy) from 1.8.1 to 1.8.3.
- [Release notes](https://github.com/microsoft/debugpy/releases)
- [Commits](https://github.com/microsoft/debugpy/compare/v1.8.1...v1.8.3)

---
updated-dependencies:
- dependency-name: debugpy
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-03 09:35:11 -04:00
Jon Pro
b94dd89eb4
fix: User Management (#1394)
* Fix a few major issues with users

* Fix issue where production won't load chats

* Change to scrypt

* production works now

* Move debug opts into dev

* code review suggestions
2024-08-03 09:32:26 -04:00
Juan Calderon-Perez
887d5339d2
Update README.md 2024-07-28 23:17:41 -04:00
Juan Calderon-Perez
9dd6b7c264
Update Dockerfile 2024-07-28 16:57:45 -04:00
Juan Calderon-Perez
92f43f4da6
fix: Sidebar Layout and Responses from User API (#1392)
* Fix sidebar layout, dev mode and /api/user responses

* Reformat files with ruff
2024-07-27 19:36:34 -04:00
Juan Calderon-Perez
bb9a1b1223
Add missing musl-dev 2024-07-27 15:21:59 -04:00
Juan Calderon-Perez
91ec1faafb
Downgrade llama-cpp-python to v0.2.82 2024-07-27 15:11:49 -04:00
dependabot[bot]
00a0f4d106
Bump @typescript-eslint/eslint-plugin from 7.16.1 to 7.17.0 in /web (#1384)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.16.1 to 7.17.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.17.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-27 15:02:15 -04:00
dependabot[bot]
8b66f33b1f
Bump pytest from 8.2.2 to 8.3.2 in /api (#1390)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.2.2 to 8.3.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/8.2.2...8.3.2)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-27 15:02:03 -04:00
dependabot[bot]
ef9d2fcf99
Bump @types/markdown-it from 14.1.1 to 14.1.2 in /web (#1387)
Bumps [@types/markdown-it](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/markdown-it) from 14.1.1 to 14.1.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/markdown-it)

---
updated-dependencies:
- dependency-name: "@types/markdown-it"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-27 15:00:29 -04:00
dependabot[bot]
b578af5a06
Bump @typescript-eslint/parser from 7.16.1 to 7.17.0 in /web (#1383)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.16.1 to 7.17.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.17.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-27 15:00:17 -04:00
dependabot[bot]
798d2dcf37
Bump postcss from 8.4.39 to 8.4.40 in /web (#1388)
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.39 to 8.4.40.
- [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.39...8.4.40)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-27 14:59:44 -04:00
dependabot[bot]
b14a527640
Bump typescript from 5.5.3 to 5.5.4 in /web (#1382)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.5.3 to 5.5.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.5.3...v5.5.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-27 14:59:26 -04:00
dependabot[bot]
9c3f836cc7
Bump huggingface-hub from 0.24.0 to 0.24.2 in /api (#1389)
Bumps [huggingface-hub](https://github.com/huggingface/huggingface_hub) from 0.24.0 to 0.24.2.
- [Release notes](https://github.com/huggingface/huggingface_hub/releases)
- [Commits](https://github.com/huggingface/huggingface_hub/compare/v0.24.0...v0.24.2)

---
updated-dependencies:
- dependency-name: huggingface-hub
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-27 14:59:16 -04:00
Juan Calderon-Perez
774d5e2108
Update README.md 2024-07-27 14:55:23 -04:00
Juan Calderon-Perez
8e332a69d2
Update README.md 2024-07-27 14:54:25 -04:00
Juan Calderon-Perez
69fc6f85dc
Update README.md 2024-07-27 14:53:59 -04:00
Juan Calderon-Perez
7b06ddfb9d
Bump llama-cpp-python to v0.2.83, Update ENV variables 2024-07-27 14:52:39 -04:00
Jon Pro
80833600eb
Add support for User Management (#1313)
* Add users - checkpoint

* Working

* Finish workflow

* switch to cookies instead of bearer token

* Fix settings not saved

* Add sqlite

* Cleanup

* Get db url from env var

* PR Prep

* Maybe later

* Code review

* Update poetry and readme

* Things for status checks

* Add chats table to DB

* Bad merge

* Personal code review

* Add default user called system

* Fix poetry

* fix status checks

* Formatting

* Fix deleting a chat

* Fix bug when auth times out but user isn't logged out

* Code review comments

* fix lockfile

---------

Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
2024-07-27 14:48:53 -04:00
Juan Calderon-Perez
1c6f744c13
Bump llama-cpp-python to v0.2.82 2024-07-20 20:39:35 -04:00
dependabot[bot]
93f7b1ddbc
Bump huggingface-hub from 0.23.4 to 0.24.0 in /api (#1379)
Bumps [huggingface-hub](https://github.com/huggingface/huggingface_hub) from 0.23.4 to 0.24.0.
- [Release notes](https://github.com/huggingface/huggingface_hub/releases)
- [Commits](https://github.com/huggingface/huggingface_hub/compare/v0.23.4...v0.24.0)

---
updated-dependencies:
- dependency-name: huggingface-hub
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-20 20:38:55 -04:00
dependabot[bot]
68bcc230c4
Bump certifi from 2024.2.2 to 2024.7.4 in /api in the pip group (#1374)
Bumps the pip group in /api with 1 update: [certifi](https://github.com/certifi/python-certifi).


Updates `certifi` from 2024.2.2 to 2024.7.4
- [Commits](https://github.com/certifi/python-certifi/compare/2024.02.02...2024.07.04)

---
updated-dependencies:
- dependency-name: certifi
  dependency-type: indirect
  dependency-group: pip
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-20 20:38:44 -04:00
Juan Calderon-Perez
1dfe3bf159 Update NodeJs dependencies, fix formatting issue with Python 2024-07-20 20:27:49 -04:00
dependabot[bot]
0f31fa9138
Bump daisyui from 4.12.2 to 4.12.10 in /web (#1370)
Bumps [daisyui](https://github.com/saadeghi/daisyui) from 4.12.2 to 4.12.10.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/compare/v4.12.2...v4.12.10)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-29 21:32:58 -04:00
dependabot[bot]
4df44ef650
Bump redis from 5.0.6 to 5.0.7 in /api (#1369)
Bumps [redis](https://github.com/redis/redis-py) from 5.0.6 to 5.0.7.
- [Release notes](https://github.com/redis/redis-py/releases)
- [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES)
- [Commits](https://github.com/redis/redis-py/compare/v5.0.6...v5.0.7)

---
updated-dependencies:
- dependency-name: redis
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-29 21:32:35 -04:00
Juan Calderon-Perez
a4dc56ab90
Update Dockerfile to include libgomp1 2024-06-26 23:29:47 -04:00
dependabot[bot]
53f2496988
Bump huggingface-hub from 0.23.3 to 0.23.4 in /api (#1351)
Bumps [huggingface-hub](https://github.com/huggingface/huggingface_hub) from 0.23.3 to 0.23.4.
- [Release notes](https://github.com/huggingface/huggingface_hub/releases)
- [Commits](https://github.com/huggingface/huggingface_hub/compare/v0.23.3...v0.23.4)

---
updated-dependencies:
- dependency-name: huggingface-hub
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-21 20:04:21 -04:00
dependabot[bot]
3c6c94dc12
Bump redis from 5.0.5 to 5.0.6 in /api (#1338)
Bumps [redis](https://github.com/redis/redis-py) from 5.0.5 to 5.0.6.
- [Release notes](https://github.com/redis/redis-py/releases)
- [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES)
- [Commits](https://github.com/redis/redis-py/compare/v5.0.5...v5.0.6)

---
updated-dependencies:
- dependency-name: redis
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-21 20:02:33 -04:00
dependabot[bot]
f029358942
Bump vite from 5.2.13 to 5.3.1 in /web (#1348)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.2.13 to 5.3.1.
- [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/v5.3.1/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-21 20:01:57 -04:00
dependabot[bot]
97e5b37339
Bump @sveltejs/adapter-auto from 3.2.1 to 3.2.2 in /web (#1339)
Bumps [@sveltejs/adapter-auto](https://github.com/sveltejs/kit/tree/HEAD/packages/adapter-auto) from 3.2.1 to 3.2.2.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/adapter-auto/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/adapter-auto@3.2.2/packages/adapter-auto)

---
updated-dependencies:
- dependency-name: "@sveltejs/adapter-auto"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-21 19:59:58 -04:00
dependabot[bot]
c2a6d42d62
Bump urllib3 from 2.2.1 to 2.2.2 in /api (#1353)
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.2.1...2.2.2)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-21 19:58:12 -04:00
dependabot[bot]
1e7273f323
Bump @sveltejs/adapter-static from 3.0.1 to 3.0.2 in /web (#1343)
Bumps [@sveltejs/adapter-static](https://github.com/sveltejs/kit/tree/HEAD/packages/adapter-static) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/adapter-static/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/adapter-static@3.0.2/packages/adapter-static)

---
updated-dependencies:
- dependency-name: "@sveltejs/adapter-static"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-21 19:56:49 -04:00
dependabot[bot]
23e051b6b3
Bump @sveltejs/kit from 2.5.10 to 2.5.17 in /web (#1355)
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.5.10 to 2.5.17.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.5.17/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-21 19:55:09 -04:00
dependabot[bot]
c956bca8fe
Bump docker/build-push-action from 5 to 6 (#1354)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 6.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-21 19:54:54 -04:00
dependabot[bot]
36b3f104ff
Bump @sveltejs/adapter-node from 5.0.1 to 5.2.0 in /web (#1356)
Bumps [@sveltejs/adapter-node](https://github.com/sveltejs/kit/tree/HEAD/packages/adapter-node) from 5.0.1 to 5.2.0.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/adapter-node/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/adapter-node@5.2.0/packages/adapter-node)

---
updated-dependencies:
- dependency-name: "@sveltejs/adapter-node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-21 19:54:41 -04:00
dependabot[bot]
e5c61d5da3
Bump pydantic from 1.10.16 to 1.10.17 in /api (#1358)
Bumps [pydantic](https://github.com/pydantic/pydantic) from 1.10.16 to 1.10.17.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](https://github.com/pydantic/pydantic/compare/v1.10.16...v1.10.17)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-21 19:54:29 -04:00
Juan Calderon-Perez
b19ce0b83a
Bump llama-cpp-python to v0.2.79 (#1359) 2024-06-21 19:54:04 -04:00
Jon Pro
9612ef93a1
fix Issue with UI sidebar (#1357)
* Fix issue where unable to select text with curosr

* and this too
2024-06-20 18:47:04 -04:00
Olivier DEBAUCHE
97ae4741a7
Update ci.yml (#1347) 2024-06-16 23:41:34 -04:00
Olivier DEBAUCHE
b5f07aa158
Update schema.json (#1344)
* Update schema.json

Update format

* Update schema.json

Fix
2024-06-15 22:52:15 -04:00
Olivier DEBAUCHE
91ac3886c8
Update requirements.txt (#1345)
prevent problem with numpy 2.0
2024-06-15 22:40:51 -04:00
Olivier DEBAUCHE
d48fc7dd16
Add support for newer LLM models (#1334)
* Bump tqdm in /api in the pip group across 1 directory

Bumps the pip group with 1 update in the /api directory: [tqdm](https://github.com/tqdm/tqdm).


Updates `tqdm` from 4.66.3 to 4.66.4
- [Release notes](https://github.com/tqdm/tqdm/releases)
- [Commits](https://github.com/tqdm/tqdm/compare/v4.66.3...v4.66.4)

---
updated-dependencies:
- dependency-name: tqdm
  dependency-type: indirect
  dependency-group: pip
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add support for Codestral 22B v0.1

* Update README.md

* Update README.md

* Update models.json

Add Phi-3-mini-4k-instruct-v0.3
Add Phi-3-medium-4k-instruct
Add Phi-3-medium-128k-instruct

* Update models.json

Add SOLAR-10.7B-v1.0
Add SOLAR-10.7B-instruct-v1.0

* Update README.md

* Update README.md

* Update models.json

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-15 09:12:56 -04:00
Juan Calderon-Perez
0dc3097d59
Bump llama-cpp-python to v0.2.78 2024-06-13 08:47:53 -04:00
dependabot[bot]
5e8809774a
Bump @typescript-eslint/parser from 7.12.0 to 7.13.0 in /web (#1336)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.12.0 to 7.13.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.13.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-13 08:46:48 -04:00
dependabot[bot]
9b8883b95d
Bump eslint-plugin-svelte from 2.39.0 to 2.39.3 in /web (#1329)
Bumps [eslint-plugin-svelte](https://github.com/sveltejs/eslint-plugin-svelte) from 2.39.0 to 2.39.3.
- [Release notes](https://github.com/sveltejs/eslint-plugin-svelte/releases)
- [Commits](https://github.com/sveltejs/eslint-plugin-svelte/compare/v2.39.0...eslint-plugin-svelte@2.39.3)

---
updated-dependencies:
- dependency-name: eslint-plugin-svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-13 08:46:14 -04:00
dependabot[bot]
0936005954
Bump prettier-plugin-tailwindcss from 0.6.1 to 0.6.4 in /web (#1335)
Bumps [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) from 0.6.1 to 0.6.4.
- [Release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/compare/v0.6.1...v0.6.4)

---
updated-dependencies:
- dependency-name: prettier-plugin-tailwindcss
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-13 08:46:05 -04:00
dependabot[bot]
d24b253347
Bump @typescript-eslint/eslint-plugin from 7.12.0 to 7.13.0 in /web (#1337)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.12.0 to 7.13.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.13.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-13 08:45:36 -04:00
dependabot[bot]
74b1699e2b
Bump tailwindcss from 3.4.3 to 3.4.4 in /web (#1330)
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 3.4.3 to 3.4.4.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/v3.4.4/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v3.4.3...v3.4.4)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 20:03:50 -04:00
dependabot[bot]
2cb2402bb3
Bump prettier-plugin-svelte from 3.2.3 to 3.2.4 in /web (#1331)
Bumps [prettier-plugin-svelte](https://github.com/sveltejs/prettier-plugin-svelte) from 3.2.3 to 3.2.4.
- [Changelog](https://github.com/sveltejs/prettier-plugin-svelte/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/prettier-plugin-svelte/compare/v3.2.3...v3.2.4)

---
updated-dependencies:
- dependency-name: prettier-plugin-svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 20:03:36 -04:00
dependabot[bot]
d039269a70
Bump pydantic from 1.10.15 to 1.10.16 in /api (#1328)
Bumps [pydantic](https://github.com/pydantic/pydantic) from 1.10.15 to 1.10.16.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/v1.10.16/HISTORY.md)
- [Commits](https://github.com/pydantic/pydantic/compare/v1.10.15...v1.10.16)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 09:46:21 -04:00
dependabot[bot]
fd1b5a8beb
Bump svelte from 4.2.17 to 4.2.18 in /web (#1332)
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 4.2.17 to 4.2.18.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/svelte@4.2.18/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@4.2.18/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 09:46:06 -04:00
dependabot[bot]
46dca83fe1
Bump markdown-it-highlightjs from 4.0.1 to 4.1.0 in /web (#1333)
Bumps [markdown-it-highlightjs](https://github.com/valeriangalliat/markdown-it-highlightjs) from 4.0.1 to 4.1.0.
- [Changelog](https://github.com/valeriangalliat/markdown-it-highlightjs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/valeriangalliat/markdown-it-highlightjs/compare/v4.0.1...v4.1.0)

---
updated-dependencies:
- dependency-name: markdown-it-highlightjs
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-12 09:05:12 -04:00
dependabot[bot]
f0d522b59b
Bump huggingface-hub from 0.23.2 to 0.23.3 in /api (#1320)
Bumps [huggingface-hub](https://github.com/huggingface/huggingface_hub) from 0.23.2 to 0.23.3.
- [Release notes](https://github.com/huggingface/huggingface_hub/releases)
- [Commits](https://github.com/huggingface/huggingface_hub/compare/v0.23.2...v0.23.3)

---
updated-dependencies:
- dependency-name: huggingface-hub
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-11 09:09:56 -04:00
dependabot[bot]
31364016f9
Bump typing-extensions from 4.12.1 to 4.12.2 in /api (#1324)
Bumps [typing-extensions](https://github.com/python/typing_extensions) from 4.12.1 to 4.12.2.
- [Release notes](https://github.com/python/typing_extensions/releases)
- [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md)
- [Commits](https://github.com/python/typing_extensions/compare/4.12.1...4.12.2)

---
updated-dependencies:
- dependency-name: typing-extensions
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-11 09:08:06 -04:00
dependabot[bot]
03514a128d
Bump redis from 5.0.4 to 5.0.5 in /api (#1321)
Bumps [redis](https://github.com/redis/redis-py) from 5.0.4 to 5.0.5.
- [Release notes](https://github.com/redis/redis-py/releases)
- [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES)
- [Commits](https://github.com/redis/redis-py/compare/v5.0.4...v5.0.5)

---
updated-dependencies:
- dependency-name: redis
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-11 09:05:44 -04:00
dependabot[bot]
5fb8a2e2a6
Bump pytest from 8.2.1 to 8.2.2 in /api (#1314)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.2.1 to 8.2.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/8.2.1...8.2.2)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-11 08:50:09 -04:00
dependabot[bot]
3b113a2a54
Bump daisyui from 4.11.1 to 4.12.2 in /web (#1315)
Bumps [daisyui](https://github.com/saadeghi/daisyui) from 4.11.1 to 4.12.2.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/compare/v4.11.1...v4.12.2)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-11 08:47:44 -04:00
dependabot[bot]
5cdaf38d57
Bump packaging from 24.0 to 24.1 in /api (#1325)
Bumps [packaging](https://github.com/pypa/packaging) from 24.0 to 24.1.
- [Release notes](https://github.com/pypa/packaging/releases)
- [Changelog](https://github.com/pypa/packaging/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pypa/packaging/compare/24.0...24.1)

---
updated-dependencies:
- dependency-name: packaging
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-11 08:46:54 -04:00
dependabot[bot]
d50b8fee54
Bump vite from 5.2.11 to 5.2.13 in /web (#1323)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.2.11 to 5.2.13.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.2.13/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.2.13/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-11 08:46:02 -04:00
dependabot[bot]
c3e791533b
Bump tslib from 2.6.2 to 2.6.3 in /web (#1317)
Bumps [tslib](https://github.com/Microsoft/tslib) from 2.6.2 to 2.6.3.
- [Release notes](https://github.com/Microsoft/tslib/releases)
- [Commits](https://github.com/Microsoft/tslib/compare/v2.6.2...v2.6.3)

---
updated-dependencies:
- dependency-name: tslib
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-11 08:43:54 -04:00
dependabot[bot]
3375040dfb
Bump braces from 3.0.2 to 3.0.3 in /web in the npm_and_yarn group (#1327)
Bumps the npm_and_yarn group in /web with 1 update: [braces](https://github.com/micromatch/braces).


Updates `braces` from 3.0.2 to 3.0.3
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/braces/compare/3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-11 08:43:28 -04:00
dependabot[bot]
c4b6cef52a
Bump svelte-check from 3.7.1 to 3.8.0 in /web (#1318)
Bumps [svelte-check](https://github.com/sveltejs/language-tools) from 3.7.1 to 3.8.0.
- [Release notes](https://github.com/sveltejs/language-tools/releases)
- [Commits](https://github.com/sveltejs/language-tools/compare/svelte-check-3.7.1...svelte-check-3.8.0)

---
updated-dependencies:
- dependency-name: svelte-check
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-11 08:41:58 -04:00
dependabot[bot]
d37605ba5d
Bump prettier from 3.2.5 to 3.3.2 in /web (#1326)
Bumps [prettier](https://github.com/prettier/prettier) from 3.2.5 to 3.3.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.2.5...3.3.2)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-11 08:40:29 -04:00
dependabot[bot]
60ce166580
Bump huggingface-hub from 0.22.2 to 0.23.2 in /api (#1303)
Bumps [huggingface-hub](https://github.com/huggingface/huggingface_hub) from 0.22.2 to 0.23.2.
- [Release notes](https://github.com/huggingface/huggingface_hub/releases)
- [Commits](https://github.com/huggingface/huggingface_hub/compare/v0.22.2...v0.23.2)

---
updated-dependencies:
- dependency-name: huggingface-hub
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-04 20:20:43 -04:00
dependabot[bot]
e4ae2e25ed
Bump hypercorn from 0.16.0 to 0.17.3 in /api (#1304)
Bumps [hypercorn](https://github.com/pgjones/hypercorn) from 0.16.0 to 0.17.3.
- [Changelog](https://github.com/pgjones/hypercorn/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pgjones/hypercorn/compare/0.16.0...0.17.3)

---
updated-dependencies:
- dependency-name: hypercorn
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-04 20:08:30 -04:00
dependabot[bot]
0538f60889
Bump @typescript-eslint/eslint-plugin from 7.8.0 to 7.12.0 in /web (#1308)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.8.0 to 7.12.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.12.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-04 20:08:14 -04:00
dependabot[bot]
3e20c80392
Bump @sveltejs/vite-plugin-svelte from 3.1.0 to 3.1.1 in /web (#1309)
Bumps [@sveltejs/vite-plugin-svelte](https://github.com/sveltejs/vite-plugin-svelte/tree/HEAD/packages/vite-plugin-svelte) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/sveltejs/vite-plugin-svelte/releases)
- [Changelog](https://github.com/sveltejs/vite-plugin-svelte/blob/@sveltejs/vite-plugin-svelte@3.1.1/packages/vite-plugin-svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/vite-plugin-svelte/commits/@sveltejs/vite-plugin-svelte@3.1.1/packages/vite-plugin-svelte)

---
updated-dependencies:
- dependency-name: "@sveltejs/vite-plugin-svelte"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-04 20:08:03 -04:00
dependabot[bot]
9977bf62ab
Bump @sveltejs/adapter-auto from 3.2.0 to 3.2.1 in /web (#1310)
Bumps [@sveltejs/adapter-auto](https://github.com/sveltejs/kit/tree/HEAD/packages/adapter-auto) from 3.2.0 to 3.2.1.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/adapter-auto/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/adapter-auto@3.2.1/packages/adapter-auto)

---
updated-dependencies:
- dependency-name: "@sveltejs/adapter-auto"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-04 20:06:54 -04:00
dependabot[bot]
47792bd6e1
Bump prettier-plugin-tailwindcss from 0.5.14 to 0.6.1 in /web (#1311)
Bumps [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) from 0.5.14 to 0.6.1.
- [Release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/compare/v0.5.14...v0.6.1)

---
updated-dependencies:
- dependency-name: prettier-plugin-tailwindcss
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-04 20:06:42 -04:00
dependabot[bot]
946e60b02f
Bump @typescript-eslint/parser from 7.11.0 to 7.12.0 in /web (#1312)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.11.0 to 7.12.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.12.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-04 20:06:31 -04:00
dependabot[bot]
4e75de3b2c
Bump @typescript-eslint/parser from 7.8.0 to 7.11.0 in /web (#1301)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.8.0 to 7.11.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.11.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-03 23:56:19 -04:00
dependabot[bot]
d1809135ea
Bump requests from 2.31.0 to 2.32.3 in /api (#1305)
Bumps [requests](https://github.com/psf/requests) from 2.31.0 to 2.32.3.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.31.0...v2.32.3)

---
updated-dependencies:
- dependency-name: requests
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-03 23:55:59 -04:00
dependabot[bot]
c3501327af
Bump pytest from 8.2.0 to 8.2.1 in /api (#1291)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.2.0 to 8.2.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/8.2.0...8.2.1)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-03 22:03:11 -04:00
dependabot[bot]
af53d08eb1
Bump eslint-plugin-svelte from 2.38.0 to 2.39.0 in /web (#1284)
Bumps [eslint-plugin-svelte](https://github.com/sveltejs/eslint-plugin-svelte) from 2.38.0 to 2.39.0.
- [Release notes](https://github.com/sveltejs/eslint-plugin-svelte/releases)
- [Changelog](https://github.com/sveltejs/eslint-plugin-svelte/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/eslint-plugin-svelte/compare/v2.38.0...v2.39.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-svelte
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-03 22:01:12 -04:00
dependabot[bot]
6df7d561e5
--- (#1298)
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-03 22:01:00 -04:00
dependabot[bot]
f8d1a137ea
Bump svelte from 4.2.16 to 4.2.17 in /web (#1286)
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 4.2.16 to 4.2.17.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/svelte@4.2.17/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@4.2.17/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-03 21:59:46 -04:00
dependabot[bot]
c7fcb89020
Bump typing-extensions from 4.11.0 to 4.12.1 in /api (#1306)
Bumps [typing-extensions](https://github.com/python/typing_extensions) from 4.11.0 to 4.12.1.
- [Release notes](https://github.com/python/typing_extensions/releases)
- [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md)
- [Commits](https://github.com/python/typing_extensions/compare/4.11.0...4.12.1)

---
updated-dependencies:
- dependency-name: typing-extensions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-03 21:59:20 -04:00
Olivier DEBAUCHE
1c6a0770c3
Bump Llama cpp pthon to 0.2.75 (#1289) 2024-05-19 14:55:11 -04:00
dependabot[bot]
f888c3c9ff
Bump daisyui from 4.10.5 to 4.11.1 in /web (#1281)
Bumps [daisyui](https://github.com/saadeghi/daisyui) from 4.10.5 to 4.11.1.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/compare/v4.10.5...v4.11.1)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-09 20:39:25 -04:00
dependabot[bot]
87be75832a
Bump svelte from 4.2.15 to 4.2.16 in /web (#1282)
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 4.2.15 to 4.2.16.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/svelte@4.2.16/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@4.2.16/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-09 20:39:15 -04:00
dependabot[bot]
88df852be3
Bump eslint-plugin-vue from 9.25.0 to 9.26.0 in /web (#1283)
Bumps [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue) from 9.25.0 to 9.26.0.
- [Release notes](https://github.com/vuejs/eslint-plugin-vue/releases)
- [Commits](https://github.com/vuejs/eslint-plugin-vue/compare/v9.25.0...v9.26.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-vue
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-09 20:39:05 -04:00
Juan Calderon-Perez
aaa1596703
Bump llama-cpp-python to v0.2.71 2024-05-09 09:13:46 -04:00
Olivier DEBAUCHE
1cc58cd4b1
Bump llama-cpp-python to v0.2.69 (#1266)
* Update serge.env

* Update dev.sh

* Update deploy.sh

* Update dev.sh

* Update dev.sh

* Update deploy.sh

* Bump LLaMA CPP Python to 0.2.68

* Update dev.sh

* Update deploy.sh

* Update deploy.sh

* Update dev.sh

* Update dev.sh

* Update deploy.sh

* Update deploy.sh

* Update dev.sh

* Update deploy.sh

* Update dev.sh

* Update serge.env

* Update serge.env

* Update scripts/deploy.sh

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update scripts/dev.sh

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update dev.sh

* Update deploy.sh

* Only use official wheels for now

* Fix lint issues

---------

Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-05-06 09:37:25 -04:00
dependabot[bot]
19d55bc61d
Bump @iconify/svelte from 4.0.1 to 4.0.2 in /web (#1280)
Bumps [@iconify/svelte](https://github.com/iconify/iconify/tree/HEAD/components/svelte) from 4.0.1 to 4.0.2.
- [Commits](https://github.com/iconify/iconify/commits/HEAD/components/svelte)

---
updated-dependencies:
- dependency-name: "@iconify/svelte"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-06 09:30:34 -04:00
dependabot[bot]
843cacd8a0
Bump svelte-check from 3.7.0 to 3.7.1 in /web (#1277)
Bumps [svelte-check](https://github.com/sveltejs/language-tools) from 3.7.0 to 3.7.1.
- [Release notes](https://github.com/sveltejs/language-tools/releases)
- [Commits](https://github.com/sveltejs/language-tools/compare/svelte-check-3.7.0...svelte-check-3.7.1)

---
updated-dependencies:
- dependency-name: svelte-check
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-03 19:37:09 -04:00
dependabot[bot]
ebe217ea92
Bump daisyui from 4.10.3 to 4.10.5 in /web (#1278)
Bumps [daisyui](https://github.com/saadeghi/daisyui) from 4.10.3 to 4.10.5.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/compare/v4.10.3...v4.10.5)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-03 19:36:54 -04:00
dependabot[bot]
dcb0c417ec
Bump tqdm in /api in the pip group across 1 directory (#1279)
Bumps the pip group with 1 update in the /api directory: [tqdm](https://github.com/tqdm/tqdm).


Updates `tqdm` from 4.66.2 to 4.66.3
- [Release notes](https://github.com/tqdm/tqdm/releases)
- [Commits](https://github.com/tqdm/tqdm/compare/v4.66.2...v4.66.3)

---
updated-dependencies:
- dependency-name: tqdm
  dependency-type: indirect
  dependency-group: pip
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-03 18:02:39 -04:00
dependabot[bot]
ba0f14a9fc
Bump @typescript-eslint/parser from 7.7.1 to 7.8.0 in /web (#1270)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.7.1 to 7.8.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.8.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-02 20:01:09 -04:00
dependabot[bot]
3322cc1610
Bump @types/markdown-it from 14.0.1 to 14.1.1 in /web (#1273)
Bumps [@types/markdown-it](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/markdown-it) from 14.0.1 to 14.1.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/markdown-it)

---
updated-dependencies:
- dependency-name: "@types/markdown-it"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-02 20:00:57 -04:00
dependabot[bot]
ba3de805f4
Bump vite from 5.2.10 to 5.2.11 in /web (#1274)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.2.10 to 5.2.11.
- [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/v5.2.11/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-02 20:00:43 -04:00
dependabot[bot]
c63f91ad4f
Bump daisyui from 4.10.2 to 4.10.3 in /web (#1275)
Bumps [daisyui](https://github.com/saadeghi/daisyui) from 4.10.2 to 4.10.3.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/compare/v4.10.2...v4.10.3)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-02 20:00:28 -04:00
dependabot[bot]
00b86643e9
Bump @typescript-eslint/eslint-plugin from 7.7.1 to 7.8.0 in /web (#1271)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.7.1 to 7.8.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.8.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-01 23:41:03 -04:00
dependabot[bot]
3acfdbb6be
Bump pytest from 8.1.1 to 8.2.0 in /api (#1268)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.1.1 to 8.2.0.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/8.1.1...8.2.0)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-29 09:13:09 -04:00
dependabot[bot]
d33961744f
Bump @iconify/svelte from 3.1.6 to 4.0.1 in /web (#1267)
Bumps [@iconify/svelte](https://github.com/iconify/iconify/tree/HEAD/components/svelte) from 3.1.6 to 4.0.1.
- [Commits](https://github.com/iconify/iconify/commits/HEAD/components/svelte)

---
updated-dependencies:
- dependency-name: "@iconify/svelte"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-29 09:12:54 -04:00
dependabot[bot]
8fbd209c1c
Bump svelte-check from 3.6.9 to 3.7.0 in /web (#1265)
Bumps [svelte-check](https://github.com/sveltejs/language-tools) from 3.6.9 to 3.7.0.
- [Release notes](https://github.com/sveltejs/language-tools/releases)
- [Commits](https://github.com/sveltejs/language-tools/compare/svelte-check-3.6.9...svelte-check-3.7.0)

---
updated-dependencies:
- dependency-name: svelte-check
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-27 03:44:21 -04:00
dependabot[bot]
e00c8bc587
Bump redis from 5.0.3 to 5.0.4 in /api (#1264)
Bumps [redis](https://github.com/redis/redis-py) from 5.0.3 to 5.0.4.
- [Release notes](https://github.com/redis/redis-py/releases)
- [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES)
- [Commits](https://github.com/redis/redis-py/compare/v5.0.3...v5.0.4)

---
updated-dependencies:
- dependency-name: redis
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-24 07:54:44 -04:00
Olivier DEBAUCHE
4f063d2050
Add LLaMA 3 Compatibility (#1263)
* Bump LLaMA CPP  Python  from 0.2.50 to 0.2.63

* Update serge.env
2024-04-24 07:37:07 -04:00
dependabot[bot]
816814389a
Bump helm/kind-action from 1.9.0 to 1.10.0 (#1259)
Bumps [helm/kind-action](https://github.com/helm/kind-action) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/helm/kind-action/releases)
- [Commits](https://github.com/helm/kind-action/compare/v1.9.0...v1.10.0)

---
updated-dependencies:
- dependency-name: helm/kind-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-23 08:57:31 -04:00
dependabot[bot]
39581b28d1
Bump @typescript-eslint/eslint-plugin from 7.7.0 to 7.7.1 in /web (#1261)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.7.0 to 7.7.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.7.1/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-23 08:34:03 -04:00
dependabot[bot]
2767649197
Bump eslint-plugin-svelte from 2.37.0 to 2.38.0 in /web (#1260)
Bumps [eslint-plugin-svelte](https://github.com/sveltejs/eslint-plugin-svelte) from 2.37.0 to 2.38.0.
- [Release notes](https://github.com/sveltejs/eslint-plugin-svelte/releases)
- [Changelog](https://github.com/sveltejs/eslint-plugin-svelte/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/eslint-plugin-svelte/compare/v2.37.0...v2.38.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-svelte
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-23 08:30:38 -04:00
dependabot[bot]
79502146dc
Bump @typescript-eslint/parser from 7.7.0 to 7.7.1 in /web (#1262)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.7.0 to 7.7.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.7.1/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-23 08:29:08 -04:00
Olivier DEBAUCHE
3fae443357
Bump LLaMA CPP Python from 0.2.50 to 0.2.63 (#1258) 2024-04-22 19:42:04 -04:00
Olivier DEBAUCHE
ba78377b54
Update Gemma Instruct & WizardLLM (#1257)
* Add support for Llama_3

Add support for Llama-3-11B-Instruct-v0.1
Add support for Llama-3-13B-Instruct-v0.1
Add support for Llama-3-16B-Instruct-v0.1

* Add support for Meta-Llama-3

Add support for Meta-Llama-3-8B-Instruct
Add support for Meta-Llama-3-70B-Instruct

* Fix Filesizes

* Update README.md

Add Gorilla
Add LLaMa-3
Add Meta-LLaMa-3

* Update README.md

* Add support for Meta-Llama-3-8B

* Add support for Meta-LLaMA-3-70B

* Update README.md

Add support for Meta-LLaMA-3-8B
Add support for Meta-LLaMA-3-70B

* Update Gemma Instruct

Bump from Gemma-2B-Instruct to Gemma-1.1-2B-Instruct
Bump from Gemma-7B-Instruct  to Gemma-1.1-7B-Instruct

* Update WizardLM 7B

Bump from WizardLM-7B to WizardLM-2-7B

* Update README.md

---------

Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
2024-04-22 19:40:59 -04:00
dependabot[bot]
8d23cee4bf
Bump daisyui from 4.10.1 to 4.10.2 in /web (#1253)
Bumps [daisyui](https://github.com/saadeghi/daisyui) from 4.10.1 to 4.10.2.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/compare/v4.10.1...v4.10.2)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-22 19:11:47 -04:00
dependabot[bot]
ecde63630a
Bump vite from 5.2.9 to 5.2.10 in /web (#1254)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.2.9 to 5.2.10.
- [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/v5.2.10/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-22 19:11:39 -04:00
dependabot[bot]
d0d394a5ec
Bump @sveltejs/kit from 2.5.6 to 2.5.7 in /web (#1255)
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.5.6 to 2.5.7.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.5.7/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-22 19:11:31 -04:00
dependabot[bot]
27acfe039c
Bump svelte from 4.2.14 to 4.2.15 in /web (#1256)
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 4.2.14 to 4.2.15.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/svelte@4.2.15/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@4.2.15/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-22 19:11:23 -04:00
dependabot[bot]
f6f46bb6eb
Bump huggingface-hub from 0.21.4 to 0.22.2 in /api (#1215)
Bumps [huggingface-hub](https://github.com/huggingface/huggingface_hub) from 0.21.4 to 0.22.2.
- [Release notes](https://github.com/huggingface/huggingface_hub/releases)
- [Commits](https://github.com/huggingface/huggingface_hub/compare/v0.21.4...v0.22.2)

---
updated-dependencies:
- dependency-name: huggingface-hub
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-21 12:47:37 -04:00
dependabot[bot]
c4ac908baa
Bump @sveltejs/vite-plugin-svelte from 3.0.2 to 3.1.0 in /web (#1244)
Bumps [@sveltejs/vite-plugin-svelte](https://github.com/sveltejs/vite-plugin-svelte/tree/HEAD/packages/vite-plugin-svelte) from 3.0.2 to 3.1.0.
- [Release notes](https://github.com/sveltejs/vite-plugin-svelte/releases)
- [Changelog](https://github.com/sveltejs/vite-plugin-svelte/blob/main/packages/vite-plugin-svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/vite-plugin-svelte/commits/@sveltejs/vite-plugin-svelte@3.1.0/packages/vite-plugin-svelte)

---
updated-dependencies:
- dependency-name: "@sveltejs/vite-plugin-svelte"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-21 12:21:45 -04:00
dependabot[bot]
0a2010c841
Bump @typescript-eslint/eslint-plugin from 7.6.0 to 7.7.0 in /web (#1245)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.6.0 to 7.7.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.7.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-21 12:20:08 -04:00
dependabot[bot]
b8c35abe9b
Bump @typescript-eslint/parser from 7.6.0 to 7.7.0 in /web (#1246)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.6.0 to 7.7.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.7.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-21 12:17:50 -04:00
dependabot[bot]
fcf10c499f
Bump vite from 5.2.8 to 5.2.9 in /web (#1248)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.2.8 to 5.2.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/v5.2.9/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-21 12:17:36 -04:00
dependabot[bot]
7a04540ddd
Bump prettier-plugin-tailwindcss from 0.5.13 to 0.5.14 in /web (#1247)
Bumps [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) from 0.5.13 to 0.5.14.
- [Release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/compare/v0.5.13...v0.5.14)

---
updated-dependencies:
- dependency-name: prettier-plugin-tailwindcss
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-21 12:17:06 -04:00
dependabot[bot]
7b4517c86a
Bump aiohttp from 3.9.3 to 3.9.4 in /api in the pip group across 1 directory (#1249)
Bumps the pip group with 1 update in the /api directory: [aiohttp](https://github.com/aio-libs/aiohttp).


Updates `aiohttp` from 3.9.3 to 3.9.4
- [Release notes](https://github.com/aio-libs/aiohttp/releases)
- [Changelog](https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst)
- [Commits](https://github.com/aio-libs/aiohttp/compare/v3.9.3...v3.9.4)

---
updated-dependencies:
- dependency-name: aiohttp
  dependency-type: indirect
  dependency-group: pip
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-21 12:16:56 -04:00
Olivier DEBAUCHE
8cdcbfd8f5
Add support for Meta-LLaMA-3-8B and Meta-LLaMA-3-70B (#1252)
* Add support for Llama_3

Add support for Llama-3-11B-Instruct-v0.1
Add support for Llama-3-13B-Instruct-v0.1
Add support for Llama-3-16B-Instruct-v0.1

* Add support for Meta-Llama-3

Add support for Meta-Llama-3-8B-Instruct
Add support for Meta-Llama-3-70B-Instruct

* Fix Filesizes

* Update README.md

Add Gorilla
Add LLaMa-3
Add Meta-LLaMa-3

* Update README.md

* Add support for Meta-Llama-3-8B

* Add support for Meta-LLaMA-3-70B

* Update README.md

Add support for Meta-LLaMA-3-8B
Add support for Meta-LLaMA-3-70B

---------

Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
2024-04-20 17:38:07 -04:00
Olivier DEBAUCHE
b5cb9c53bf
Add support for LlaMA-3 and Meta-LlaMA-3 (#1251)
* Add support for Llama_3

Add support for Llama-3-11B-Instruct-v0.1
Add support for Llama-3-13B-Instruct-v0.1
Add support for Llama-3-16B-Instruct-v0.1

* Add support for Meta-Llama-3

Add support for Meta-Llama-3-8B-Instruct
Add support for Meta-Llama-3-70B-Instruct

* Fix Filesizes

* Update README.md

Add Gorilla
Add LLaMa-3
Add Meta-LLaMa-3

* Update README.md

---------

Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
2024-04-20 15:39:31 -04:00
dependabot[bot]
28d5dc59fd
Bump prettier-plugin-svelte from 3.2.2 to 3.2.3 in /web (#1240)
Bumps [prettier-plugin-svelte](https://github.com/sveltejs/prettier-plugin-svelte) from 3.2.2 to 3.2.3.
- [Changelog](https://github.com/sveltejs/prettier-plugin-svelte/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/prettier-plugin-svelte/compare/v3.2.2...v3.2.3)

---
updated-dependencies:
- dependency-name: prettier-plugin-svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-15 20:13:51 -04:00
dependabot[bot]
d06e6f8936
Bump @types/markdown-it from 14.0.0 to 14.0.1 in /web (#1241)
Bumps [@types/markdown-it](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/markdown-it) from 14.0.0 to 14.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/markdown-it)

---
updated-dependencies:
- dependency-name: "@types/markdown-it"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-15 20:02:54 -04:00
dependabot[bot]
6d02e10899
Bump svelte from 4.2.13 to 4.2.14 in /web (#1239)
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 4.2.13 to 4.2.14.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/svelte@4.2.14/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@4.2.14/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-15 20:02:37 -04:00
dependabot[bot]
a8a34bba42
Bump @sveltejs/kit from 2.5.5 to 2.5.6 in /web (#1242)
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.5.5 to 2.5.6.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.5.6/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-15 20:02:24 -04:00
dependabot[bot]
5802c6c5a0
Bump eslint-plugin-vue from 9.24.1 to 9.25.0 in /web (#1243)
Bumps [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue) from 9.24.1 to 9.25.0.
- [Release notes](https://github.com/vuejs/eslint-plugin-vue/releases)
- [Commits](https://github.com/vuejs/eslint-plugin-vue/compare/v9.24.1...v9.25.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-vue
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-15 20:02:14 -04:00
dependabot[bot]
e7800f218d
Bump eslint-plugin-svelte from 2.35.1 to 2.37.0 in /web (#1238)
Bumps [eslint-plugin-svelte](https://github.com/sveltejs/eslint-plugin-svelte) from 2.35.1 to 2.37.0.
- [Release notes](https://github.com/sveltejs/eslint-plugin-svelte/releases)
- [Changelog](https://github.com/sveltejs/eslint-plugin-svelte/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/eslint-plugin-svelte/compare/v2.35.1...v2.37.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-svelte
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-12 22:38:39 -04:00
dependabot[bot]
d846f73abb
Bump pydantic from 1.10.14 to 1.10.15 in /api (#1224)
Bumps [pydantic](https://github.com/pydantic/pydantic) from 1.10.14 to 1.10.15.
- [Release notes](https://github.com/pydantic/pydantic/releases)
- [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md)
- [Commits](https://github.com/pydantic/pydantic/compare/v1.10.14...v1.10.15)

---
updated-dependencies:
- dependency-name: pydantic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-12 22:30:49 -04:00
dependabot[bot]
e705851ded
Bump @types/markdown-it from 13.0.7 to 14.0.0 in /web (#1234)
Bumps [@types/markdown-it](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/markdown-it) from 13.0.7 to 14.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/markdown-it)

---
updated-dependencies:
- dependency-name: "@types/markdown-it"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-12 22:30:39 -04:00
dependabot[bot]
bc9bed277c
Bump svelte from 4.2.12 to 4.2.13 in /web (#1236)
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 4.2.12 to 4.2.13.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/svelte@4.2.13/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@4.2.13/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-12 22:30:12 -04:00
dependabot[bot]
4b9e538f2c
Bump typescript from 5.4.4 to 5.4.5 in /web (#1235)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.4.4 to 5.4.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.4.4...v5.4.5)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-12 22:30:01 -04:00
dependabot[bot]
c7903184e2
Bump eslint-plugin-vue from 9.24.0 to 9.24.1 in /web (#1233)
Bumps [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue) from 9.24.0 to 9.24.1.
- [Release notes](https://github.com/vuejs/eslint-plugin-vue/releases)
- [Commits](https://github.com/vuejs/eslint-plugin-vue/compare/v9.24.0...v9.24.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-vue
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-12 22:29:52 -04:00
dependabot[bot]
4059c4bac7
Bump idna from 3.6 to 3.7 in /api in the pip group across 1 directory (#1237)
Bumps the pip group with 1 update in the /api directory: [idna](https://github.com/kjd/idna).


Updates `idna` from 3.6 to 3.7
- [Release notes](https://github.com/kjd/idna/releases)
- [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.rst)
- [Commits](https://github.com/kjd/idna/compare/v3.6...v3.7)

---
updated-dependencies:
- dependency-name: idna
  dependency-type: indirect
  dependency-group: pip
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-12 22:29:32 -04:00
dependabot[bot]
0c7e12ab83
Bump vite from 5.2.7 to 5.2.8 in /web (#1225)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.2.7 to 5.2.8.
- [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/v5.2.8/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-09 21:50:00 -04:00
dependabot[bot]
bcecb0ef29
Bump @typescript-eslint/eslint-plugin from 7.4.0 to 7.6.0 in /web (#1230)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.4.0 to 7.6.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.6.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-09 21:46:31 -04:00
dependabot[bot]
da6f83003b
Bump typescript from 5.4.3 to 5.4.4 in /web (#1226)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.4.3 to 5.4.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.4.3...v5.4.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-09 21:46:16 -04:00
dependabot[bot]
1342441b8f
Bump daisyui from 4.9.0 to 4.10.1 in /web (#1227)
Bumps [daisyui](https://github.com/saadeghi/daisyui) from 4.9.0 to 4.10.1.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/compare/v4.9.0...v4.10.1)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-09 21:41:33 -04:00
dependabot[bot]
fd4cdaf1ce
Bump @typescript-eslint/parser from 7.4.0 to 7.6.0 in /web (#1231)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.4.0 to 7.6.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.6.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-09 21:41:20 -04:00
dependabot[bot]
0c59eb9714
Bump typing-extensions from 4.10.0 to 4.11.0 in /api (#1228)
Bumps [typing-extensions](https://github.com/python/typing_extensions) from 4.10.0 to 4.11.0.
- [Release notes](https://github.com/python/typing_extensions/releases)
- [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md)
- [Commits](https://github.com/python/typing_extensions/compare/4.10.0...4.11.0)

---
updated-dependencies:
- dependency-name: typing-extensions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-09 21:41:10 -04:00
dependabot[bot]
7a39c61b60
Bump vite from 5.2.6 to 5.2.7 in /web (#1216)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.2.6 to 5.2.7.
- [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/v5.2.7/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-02 22:32:59 -04:00
dependabot[bot]
2b0645b6ac
Bump markdown-it from 14.0.0 to 14.1.0 in /web (#1217)
Bumps [markdown-it](https://github.com/markdown-it/markdown-it) from 14.0.0 to 14.1.0.
- [Changelog](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/markdown-it/markdown-it/compare/14.0.0...14.1.0)

---
updated-dependencies:
- dependency-name: markdown-it
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-02 22:32:48 -04:00
dependabot[bot]
99605863c8
Bump prettier-plugin-tailwindcss from 0.5.12 to 0.5.13 in /web (#1218)
Bumps [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) from 0.5.12 to 0.5.13.
- [Release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/compare/v0.5.12...v0.5.13)

---
updated-dependencies:
- dependency-name: prettier-plugin-tailwindcss
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-02 22:32:40 -04:00
dependabot[bot]
0141ade134
Bump eslint-plugin-vue from 9.22.0 to 9.24.0 in /web (#1219)
Bumps [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue) from 9.22.0 to 9.24.0.
- [Release notes](https://github.com/vuejs/eslint-plugin-vue/releases)
- [Commits](https://github.com/vuejs/eslint-plugin-vue/compare/v9.22.0...v9.24.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-vue
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-02 22:32:29 -04:00
dependabot[bot]
f2272f2386
Bump svelte-check from 3.6.8 to 3.6.9 in /web (#1220)
Bumps [svelte-check](https://github.com/sveltejs/language-tools) from 3.6.8 to 3.6.9.
- [Release notes](https://github.com/sveltejs/language-tools/releases)
- [Commits](https://github.com/sveltejs/language-tools/compare/svelte-check-3.6.8...svelte-check-3.6.9)

---
updated-dependencies:
- dependency-name: svelte-check
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-02 22:32:20 -04:00
Michael Pauley
4724d1ce1c
Update app.css (#1221)
fix typo
2024-04-02 22:32:05 -04:00
dependabot[bot]
63bdc70f1d
Bump @sveltejs/adapter-auto from 3.1.1 to 3.2.0 in /web (#1213)
Bumps [@sveltejs/adapter-auto](https://github.com/sveltejs/kit/tree/HEAD/packages/adapter-auto) from 3.1.1 to 3.2.0.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/adapter-auto/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/adapter-auto@3.2.0/packages/adapter-auto)

---
updated-dependencies:
- dependency-name: "@sveltejs/adapter-auto"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-29 22:48:12 -04:00
dependabot[bot]
30bc410d8b
Bump daisyui from 4.7.3 to 4.9.0 in /web (#1214)
Bumps [daisyui](https://github.com/saadeghi/daisyui) from 4.7.3 to 4.9.0.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/compare/v4.7.3...v4.9.0)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-29 22:48:01 -04:00
dependabot[bot]
80e8196b8d
Bump @sveltejs/kit from 2.5.4 to 2.5.5 in /web (#1210)
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.5.4 to 2.5.5.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.5.5/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-29 09:29:23 -04:00
dependabot[bot]
020f4c6684
Bump autoprefixer from 10.4.18 to 10.4.19 in /web (#1211)
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.4.18 to 10.4.19.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/10.4.18...10.4.19)

---
updated-dependencies:
- dependency-name: autoprefixer
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-29 09:29:09 -04:00
dependabot[bot]
df60518e93
Bump tailwindcss from 3.4.1 to 3.4.3 in /web (#1212)
Bumps [tailwindcss](https://github.com/tailwindlabs/tailwindcss) from 3.4.1 to 3.4.3.
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/v3.4.3/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v3.4.1...v3.4.3)

---
updated-dependencies:
- dependency-name: tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-29 09:28:37 -04:00
dependabot[bot]
cd53d5c5ce
Bump typescript from 5.3.3 to 5.4.3 in /web (#1205)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.3.3 to 5.4.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.3.3...v5.4.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-28 23:13:52 -04:00
dependabot[bot]
5ebca213b4
Bump @typescript-eslint/parser from 7.2.0 to 7.4.0 in /web (#1208)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.2.0 to 7.4.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.4.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-28 23:13:43 -04:00
dependabot[bot]
22a3bdf86e
Bump @typescript-eslint/eslint-plugin from 7.2.0 to 7.4.0 in /web (#1207)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.2.0 to 7.4.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.4.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-28 23:01:27 -04:00
dependabot[bot]
f120d2a257
Bump postcss from 8.4.35 to 8.4.38 in /web (#1202)
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.35 to 8.4.38.
- [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.35...8.4.38)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-28 23:01:17 -04:00
dependabot[bot]
dda9efbbb3
Bump vite from 5.1.6 to 5.2.6 in /web (#1201)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.1.6 to 5.2.6.
- [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/v5.2.6/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-28 23:01:07 -04:00
dependabot[bot]
d9de45996e
Bump @sveltejs/adapter-node from 4.0.1 to 5.0.1 in /web (#1195)
Bumps [@sveltejs/adapter-node](https://github.com/sveltejs/kit/tree/HEAD/packages/adapter-node) from 4.0.1 to 5.0.1.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/adapter-node/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/adapter-node@5.0.1/packages/adapter-node)

---
updated-dependencies:
- dependency-name: "@sveltejs/adapter-node"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-23 23:10:34 -04:00
dependabot[bot]
dd97962b11
Bump prettier-plugin-tailwindcss from 0.5.11 to 0.5.12 in /web (#1197)
Bumps [prettier-plugin-tailwindcss](https://github.com/tailwindlabs/prettier-plugin-tailwindcss) from 0.5.11 to 0.5.12.
- [Release notes](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/prettier-plugin-tailwindcss/compare/v0.5.11...v0.5.12)

---
updated-dependencies:
- dependency-name: prettier-plugin-tailwindcss
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-23 22:47:40 -04:00
dependabot[bot]
eef97ac4cf
Bump daisyui from 4.7.2 to 4.7.3 in /web (#1196)
Bumps [daisyui](https://github.com/saadeghi/daisyui) from 4.7.2 to 4.7.3.
- [Release notes](https://github.com/saadeghi/daisyui/releases)
- [Changelog](https://github.com/saadeghi/daisyui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/saadeghi/daisyui/compare/v4.7.2...v4.7.3)

---
updated-dependencies:
- dependency-name: daisyui
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-23 22:47:22 -04:00
dependabot[bot]
d616c0a45e
Bump @sveltejs/kit from 2.5.2 to 2.5.4 in /web (#1199)
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.5.2 to 2.5.4.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.5.4/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-23 22:47:12 -04:00
dependabot[bot]
223d4142fa
Bump svelte-check from 3.6.6 to 3.6.8 in /web (#1200)
Bumps [svelte-check](https://github.com/sveltejs/language-tools) from 3.6.6 to 3.6.8.
- [Release notes](https://github.com/sveltejs/language-tools/releases)
- [Commits](https://github.com/sveltejs/language-tools/compare/svelte-check-3.6.6...svelte-check-3.6.8)

---
updated-dependencies:
- dependency-name: svelte-check
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-23 22:47:02 -04:00
Kevin Fowlks
3b6266d7de
Add Gorilla: Large Language Model (#1193)
* Added Gorilla LLM Model to models.json

* Added additionals models
2024-03-12 23:38:53 -04:00
dependabot[bot]
3aa2853217
Bump autoprefixer from 10.4.17 to 10.4.18 in /web (#1177)
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.4.17 to 10.4.18.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/10.4.17...10.4.18)

---
updated-dependencies:
- dependency-name: autoprefixer
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-12 21:37:03 -04:00
dependabot[bot]
18d4dcbfe4
Bump packaging from 23.2 to 24.0 in /api (#1186)
Bumps [packaging](https://github.com/pypa/packaging) from 23.2 to 24.0.
- [Release notes](https://github.com/pypa/packaging/releases)
- [Changelog](https://github.com/pypa/packaging/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pypa/packaging/compare/23.2...24.0)

---
updated-dependencies:
- dependency-name: packaging
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-12 21:36:50 -04:00
dependabot[bot]
7cd0cacc62
Bump pytest from 8.0.2 to 8.1.1 in /api (#1188)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.0.2 to 8.1.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/8.0.2...8.1.1)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-12 21:12:15 -04:00
dependabot[bot]
04d5f04489
Bump @typescript-eslint/parser from 7.1.0 to 7.2.0 in /web (#1190)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.1.0 to 7.2.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.2.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-12 21:11:43 -04:00
dependabot[bot]
e721df7a40
Bump redis from 5.0.2 to 5.0.3 in /api (#1187)
Bumps [redis](https://github.com/redis/redis-py) from 5.0.2 to 5.0.3.
- [Release notes](https://github.com/redis/redis-py/releases)
- [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES)
- [Commits](https://github.com/redis/redis-py/compare/v5.0.2...v5.0.3)

---
updated-dependencies:
- dependency-name: redis
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-12 20:49:46 -04:00
dependabot[bot]
fa1c3065b2
Bump vite from 5.1.4 to 5.1.6 in /web (#1189)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.1.4 to 5.1.6.
- [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/v5.1.6/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-12 20:49:29 -04:00
dependabot[bot]
db5855ed86
Bump @typescript-eslint/eslint-plugin from 7.1.0 to 7.2.0 in /web (#1191)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.1.0 to 7.2.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.2.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-12 20:26:08 -04:00
dependabot[bot]
f0afb16d19
Bump huggingface-hub from 0.21.3 to 0.21.4 in /api (#1183)
Bumps [huggingface-hub](https://github.com/huggingface/huggingface_hub) from 0.21.3 to 0.21.4.
- [Release notes](https://github.com/huggingface/huggingface_hub/releases)
- [Commits](https://github.com/huggingface/huggingface_hub/compare/v0.21.3...v0.21.4)

---
updated-dependencies:
- dependency-name: huggingface-hub
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-12 20:25:57 -04:00
dependabot[bot]
aa86b5a705
Bump svelte-check from 3.6.5 to 3.6.6 in /web (#1176)
Bumps [svelte-check](https://github.com/sveltejs/language-tools) from 3.6.5 to 3.6.6.
- [Release notes](https://github.com/sveltejs/language-tools/releases)
- [Commits](https://github.com/sveltejs/language-tools/compare/svelte-check-3.6.5...svelte-check-3.6.6)

---
updated-dependencies:
- dependency-name: svelte-check
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-12 20:25:42 -04:00
dependabot[bot]
9adbeb9797
Bump huggingface-hub from 0.21.1 to 0.21.3 in /api (#1174)
Bumps [huggingface-hub](https://github.com/huggingface/huggingface_hub) from 0.21.1 to 0.21.3.
- [Release notes](https://github.com/huggingface/huggingface_hub/releases)
- [Commits](https://github.com/huggingface/huggingface_hub/compare/v0.21.1...v0.21.3)

---
updated-dependencies:
- dependency-name: huggingface-hub
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-29 23:48:06 -05:00
dependabot[bot]
410aca65d3
Bump azure/setup-helm from 3 to 4 (#1172)
Bumps [azure/setup-helm](https://github.com/azure/setup-helm) from 3 to 4.
- [Release notes](https://github.com/azure/setup-helm/releases)
- [Commits](https://github.com/azure/setup-helm/compare/v3...v4)

---
updated-dependencies:
- dependency-name: azure/setup-helm
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-29 23:45:30 -05:00
dependabot[bot]
a762906612
Bump prettier-plugin-svelte from 3.2.1 to 3.2.2 in /web (#1171)
Bumps [prettier-plugin-svelte](https://github.com/sveltejs/prettier-plugin-svelte) from 3.2.1 to 3.2.2.
- [Changelog](https://github.com/sveltejs/prettier-plugin-svelte/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/prettier-plugin-svelte/compare/v3.2.1...v3.2.2)

---
updated-dependencies:
- dependency-name: prettier-plugin-svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-29 23:45:13 -05:00
dependabot[bot]
846fcbd1f0
Bump redis from 5.0.1 to 5.0.2 in /api (#1173)
Bumps [redis](https://github.com/redis/redis-py) from 5.0.1 to 5.0.2.
- [Release notes](https://github.com/redis/redis-py/releases)
- [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES)
- [Commits](https://github.com/redis/redis-py/compare/v5.0.1...v5.0.2)

---
updated-dependencies:
- dependency-name: redis
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-29 23:45:02 -05:00
dependabot[bot]
89c7866bf7
Bump huggingface-hub from 0.20.3 to 0.21.1 in /api (#1169)
Bumps [huggingface-hub](https://github.com/huggingface/huggingface_hub) from 0.20.3 to 0.21.1.
- [Release notes](https://github.com/huggingface/huggingface_hub/releases)
- [Commits](https://github.com/huggingface/huggingface_hub/compare/v0.20.3...v0.21.1)

---
updated-dependencies:
- dependency-name: huggingface-hub
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-28 22:35:47 -05:00
dependabot[bot]
0e2e48bde4
Bump svelte-check from 3.6.4 to 3.6.5 in /web (#1170)
Bumps [svelte-check](https://github.com/sveltejs/language-tools) from 3.6.4 to 3.6.5.
- [Release notes](https://github.com/sveltejs/language-tools/releases)
- [Commits](https://github.com/sveltejs/language-tools/compare/svelte-check-3.6.4...svelte-check-3.6.5)

---
updated-dependencies:
- dependency-name: svelte-check
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-28 22:30:09 -05:00
dependabot[bot]
0fcd36eaa4
Bump @typescript-eslint/parser from 7.0.2 to 7.1.0 in /web (#1166)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.0.2 to 7.1.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.1.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-27 09:38:13 -05:00
dependabot[bot]
4ee39716b0
Bump @typescript-eslint/eslint-plugin from 7.0.2 to 7.1.0 in /web (#1167)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.0.2 to 7.1.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.1.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-27 09:35:17 -05:00
dependabot[bot]
d2b251164e
Bump @sveltejs/kit from 2.5.1 to 2.5.2 in /web (#1168)
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.5.1 to 2.5.2.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.5.2/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-27 09:18:54 -05:00
dependabot[bot]
bff2f8ca0a
Bump typing-extensions from 4.9.0 to 4.10.0 in /api (#1163)
Bumps [typing-extensions](https://github.com/python/typing_extensions) from 4.9.0 to 4.10.0.
- [Release notes](https://github.com/python/typing_extensions/releases)
- [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md)
- [Commits](https://github.com/python/typing_extensions/commits)

---
updated-dependencies:
- dependency-name: typing-extensions
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-26 20:30:36 -05:00
dependabot[bot]
89fe141e24
Bump eslint from 8.56.0 to 8.57.0 in /web (#1164)
Bumps [eslint](https://github.com/eslint/eslint) from 8.56.0 to 8.57.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.56.0...v8.57.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-26 20:20:01 -05:00
dependabot[bot]
eff47925be
Bump pytest from 8.0.1 to 8.0.2 in /api (#1162)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.0.1 to 8.0.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/8.0.1...8.0.2)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-26 20:19:41 -05:00
Olivier DEBAUCHE
7151af023f
Add support for OpenCodeInterpreter models (#1165)
* Add support for OpenCodeInterpreter models

Add support for OpenCodeInterpreter DS 6.7B
Add support for OpenCodeInterpreter DS 33B
Add support for OpenCodeInterpreter CL-7B
Add support for OpenCodeInterpreter CL-13B
Add support for OpenCodeInterpreter CL-70B

* Update README.md

Add support for OpenCodeInterpreter DS 6.7B
Add support for OpenCodeInterpreter DS 33B
Add support for OpenCodeInterpreter CL-7B
Add support for OpenCodeInterpreter CL-13B
Add support for OpenCodeInterpreter CL-70B

* Update README.md
2024-02-26 20:19:22 -05:00
sweep-ai[bot]
cd6bdcff64
Configure Sweep (#1160)
* Create sweep.yaml

* Create sweep template

---------

Co-authored-by: sweep-ai[bot] <128439645+sweep-ai[bot]@users.noreply.github.com>
2024-02-25 20:37:18 -05:00
Olivier DEBAUCHE
26bf8a3c29
Update Gemma Models (#1158)
* Update Gemma Models

Update Gemma 2B & 7B
Add support for Gemma 2B-Instruct
Add support for Gemma 7B-Instruct

* Update Gemma Models

Update Gemma 2B & 7B
Add support for Gemma 2B-Instruct
Add support for Gemma 7B-Instruct
2024-02-25 15:57:30 -05:00
Olivier DEBAUCHE
d1ce38450f
Add support for BioMistral, Nous-Hermes-2-Mistral and Nous-Hermes-2-Mixtral (#1156)
* Update models.json

Add support for BioMistral 7B
Add support for Nous-Hermes-2-Mistral-7B-DPO
Add support for Nous-Hermes-2-Mixtral-8x7B-DPO
Add support for Nous-Hermes-2-Mixtral-8x7B-SFT

* Update README.md

Add support for BioMistral 7B
Add support for Nous-Hermes-2-Mistral-7B-DPO
Add support for Nous-Hermes-2-Mixtral-8x7B-DPO
Add support for Nous-Hermes-2-Mixtral-8x7B-SFT
2024-02-25 14:49:43 -05:00
Olivier DEBAUCHE
e1f966ace3
Fix ipv4/ipv6 modes (#1153)
* Update serge.env

Add ISERGE_ENABLE_IPV4

* Update deploy.sh

Now IPV4 is activate by deflault
We can activate IPV4+IPV6 or IPV6 only

* Update dev.sh

Now ipv4 is activated by default but we can also activate ipv4+ipv6 or ipv6 only

* Update dev.sh

fix port for ipv4

* Update serge.env

fix SERGE_ENABLE_IPV4 value

* Update deploy.sh

code formating

* Update dev.sh

code formating

* Update dev.sh

bugfix

* Update serge.env

---------

Co-authored-by: Juan Calderon-Perez <835733+gaby@users.noreply.github.com>
2024-02-24 11:41:51 -05:00
Olivier DEBAUCHE
b5b35fc11e
Models update (#1154)
* Update models.json

Add support for Gemma 2B and 7B

* Update models.json

Add support for LLama pro

* Update models.json

Add support for TinyLlama

* Update models.json

Update Medicine LLM

* Update README.md

* Update serge.env

Bump version of LLama cpp to support Gemma Model
2024-02-24 00:55:16 -05:00
dependabot[bot]
92e2e22a0b
Bump svelte from 4.2.11 to 4.2.12 in /web (#1151)
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 4.2.11 to 4.2.12.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/svelte@4.2.12/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@4.2.12/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-23 21:56:22 -05:00
dependabot[bot]
b2d1aa239a
Bump eslint-plugin-vue from 9.21.1 to 9.22.0 in /web (#1152)
Bumps [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue) from 9.21.1 to 9.22.0.
- [Release notes](https://github.com/vuejs/eslint-plugin-vue/releases)
- [Commits](https://github.com/vuejs/eslint-plugin-vue/compare/v9.21.1...v9.22.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-vue
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-23 21:56:10 -05:00
dependabot[bot]
79337f353c
Bump urllib3 from 2.2.0 to 2.2.1 in /api (#1145)
Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.2.0 to 2.2.1.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/2.2.0...2.2.1)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-22 21:19:10 -05:00
dependabot[bot]
ee83e9c756
Bump @typescript-eslint/parser from 7.0.1 to 7.0.2 in /web (#1148)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 7.0.1 to 7.0.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.0.2/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-22 21:18:56 -05:00
dependabot[bot]
abe170b6e6
Bump @sveltejs/kit from 2.5.0 to 2.5.1 in /web (#1150)
Bumps [@sveltejs/kit](https://github.com/sveltejs/kit/tree/HEAD/packages/kit) from 2.5.0 to 2.5.1.
- [Release notes](https://github.com/sveltejs/kit/releases)
- [Changelog](https://github.com/sveltejs/kit/blob/main/packages/kit/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/kit/commits/@sveltejs/kit@2.5.1/packages/kit)

---
updated-dependencies:
- dependency-name: "@sveltejs/kit"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-22 21:18:17 -05:00
dependabot[bot]
b6da03d6a0
Bump vite from 5.1.3 to 5.1.4 in /web (#1149)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.1.3 to 5.1.4.
- [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/v5.1.4/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-22 21:18:03 -05:00
dependabot[bot]
4378327a6d
Bump @typescript-eslint/eslint-plugin from 7.0.1 to 7.0.2 in /web (#1147)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 7.0.1 to 7.0.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.0.2/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-22 21:17:52 -05:00
dependabot[bot]
2143a1a201
Bump pytest from 8.0.0 to 8.0.1 in /api (#1146)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.0.0 to 8.0.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/8.0.0...8.0.1)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-22 21:17:30 -05:00
Olivier DEBAUCHE
2b0cfb2050
Update llama-cpp-python (#1137)
* Update serge.env

Update Llama cpp python version

* Update deploy.sh

Update path

* Update dev.sh

Update  path

* Update serge.env

Bump version to v0.2.43

* Update serge.env

Bump version of Llama cpp python to v0.2.44
2024-02-18 10:00:04 -05:00
dependabot[bot]
bc6fc06dcf
Bump svelte from 4.2.10 to 4.2.11 in /web (#1142)
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte) from 4.2.10 to 4.2.11.
- [Release notes](https://github.com/sveltejs/svelte/releases)
- [Changelog](https://github.com/sveltejs/svelte/blob/svelte@4.2.11/packages/svelte/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@4.2.11/packages/svelte)

---
updated-dependencies:
- dependency-name: svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-16 09:12:24 -05:00
dependabot[bot]
b7373018e7
Bump vite from 5.1.2 to 5.1.3 in /web (#1143)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.1.2 to 5.1.3.
- [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/v5.1.3/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-16 09:12:13 -05:00
dependabot[bot]
fb06196f29
Bump vite from 5.1.1 to 5.1.2 in /web (#1139)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.1.1 to 5.1.2.
- [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/v5.1.2/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-15 08:57:24 -05:00
dependabot[bot]
26300e651d
Bump prettier-plugin-svelte from 3.2.0 to 3.2.1 in /web (#1140)
Bumps [prettier-plugin-svelte](https://github.com/sveltejs/prettier-plugin-svelte) from 3.2.0 to 3.2.1.
- [Changelog](https://github.com/sveltejs/prettier-plugin-svelte/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sveltejs/prettier-plugin-svelte/compare/v3.2.0...v3.2.1)

---
updated-dependencies:
- dependency-name: prettier-plugin-svelte
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-15 08:57:14 -05:00
Juan Calderon-Perez
e24c8feb98
Updates to UI components, cleanup of unused dependencies (#1136)
Fixes to UI components, accessibility labels. Removal of unused python dependencies. Migrate from black to ruff for formatting.
---------

Co-authored-by: morpheus2448 <41052975+morpheus2448@users.noreply.github.com>
2024-02-13 23:51:54 -05:00
Juan Calderon-Perez
494f2dfe9c
Revert "Revert "Add support for sidebar menu"" (#1135)
This reverts commit 6d59736d1cf840751d3b724bd35fd32dfd9cd8ac.
2024-02-13 22:31:58 -05:00
Juan Calderon-Perez
d91dd4f689 Fix duplicated ports 2024-02-13 22:31:05 -05:00
Juan Calderon-Perez
6d59736d1c
Revert "Add support for sidebar menu" (#1134)
This reverts commit 9fb78e64be8c5666509f1de8ed695612a7661e4b.
2024-02-13 22:26:22 -05:00
42 changed files with 3548 additions and 2545 deletions

View File

@ -0,0 +1,15 @@
name: Sweep Issue
title: 'Sweep: '
description: For small bugs, features, refactors, and tests to be handled by Sweep, an AI-powered junior developer.
labels: sweep
body:
- type: textarea
id: description
attributes:
label: Details
description: Tell Sweep where and what to edit and provide enough context for a new developer to the codebase
placeholder: |
Unit Tests: Write unit tests for <FILE>. Test each function in the file. Make sure to test edge cases.
Bugs: The bug might be in <FILE>. Here are the logs: ...
Features: the new endpoint should use the ... class from <FILE> because it contains ... logic.
Refactors: We are migrating this function to ... version because ...

View File

@ -52,6 +52,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'pip' # caching pip dependencies
- name: Install dependencies with poetry
working-directory: ./api
run: |
@ -60,7 +61,7 @@ jobs:
- name: Run unit tests
working-directory: ./api
run: |
poetry run python -m pytest
poetry run python -m pytest -v --color=yes
check-sh-files:
runs-on: ubuntu-latest
steps:
@ -79,16 +80,17 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'pip' # caching pip dependencies
- name: Run ruff check
uses: chartboost/ruff-action@v1
with:
src: "./api"
args: "--verbose"
- name: Run black check
uses: psf/black@stable
args: "check --verbose"
- name: Run ruff format check
uses: chartboost/ruff-action@v1
with:
options: "--check --diff --verbose"
src: "./api"
args: "format --check --verbose"
check-web-code:
runs-on: ubuntu-latest
steps:

View File

@ -58,7 +58,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Publish Docker Image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: ${{ github.event_name != 'pull_request' }}

View File

@ -37,7 +37,7 @@ jobs:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v3
uses: azure/setup-helm@v4
with:
version: v3.12.3
@ -63,7 +63,7 @@ jobs:
- name: Create kind cluster
if: steps.list-changed.outputs.changed == 'true'
uses: helm/kind-action@v1.9.0
uses: helm/kind-action@v1.10.0
- name: Run chart-testing (install)
if: steps.list-changed.outputs.changed == 'true'

1
.gitignore vendored
View File

@ -12,3 +12,4 @@ api/static/*
**/node_modules/
**/dist
**/.mypy_cache/
.vscode

View File

@ -34,7 +34,7 @@ COPY vendor/requirements.txt /usr/src/app/requirements.txt
# Install api dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends dumb-init \
&& apt-get install -y --no-install-recommends dumb-init libgomp1 musl-dev \
&& pip install --no-cache-dir ./api \
&& pip install -r /usr/src/app/requirements.txt \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* \
@ -45,7 +45,8 @@ RUN apt-get update \
&& mkdir -p /data/db \
&& mkdir -p /usr/src/app/weights \
&& echo "appendonly yes" >> /etc/redis/redis.conf \
&& echo "dir /data/db/" >> /etc/redis/redis.conf
&& echo "dir /data/db/" >> /etc/redis/redis.conf \
&& ln -s /usr/lib/x86_64-linux-musl/libc.so /lib/libc.musl-x86_64.so.1
EXPOSE 8008
ENTRYPOINT ["/usr/bin/dumb-init", "--"]

View File

@ -17,7 +17,7 @@ ENV NODE_ENV='development'
# Install dependencies
RUN apt-get update \
&& apt-get install -y --no-install-recommends dumb-init
&& apt-get install -y --no-install-recommends dumb-init musl-dev
# Copy database, source code, and scripts
COPY --from=redis /usr/local/bin/redis-server /usr/local/bin/redis-server
@ -36,7 +36,8 @@ RUN npm ci \
&& mkdir -p /data/db \
&& mkdir -p /usr/src/app/weights \
&& echo "appendonly yes" >> /etc/redis/redis.conf \
&& echo "dir /data/db/" >> /etc/redis/redis.conf
&& echo "dir /data/db/" >> /etc/redis/redis.conf \
&& ln -s /usr/lib/x86_64-linux-musl/libc.so /lib/libc.musl-x86_64.so.1
EXPOSE 8008
EXPOSE 9124

View File

@ -45,9 +45,20 @@ volumes:
Then, just visit http://localhost:8008, You can find the API documentation at http://localhost:8008/api/docs
### 🌍 Environment Variables
The following Environment Variables are available:
| Variable Name | Description | Default Value |
|-----------------------|---------------------------------------------------------|--------------------------------------|
| `SERGE_DATABASE_URL` | Database connection string | `sqlite:////data/db/sql_app.db` |
| `SERGE_JWT_SECRET` | Key for auth token encryption. Use a random string | `uF7FGN5uzfGdFiPzR` |
| `SERGE_SESSION_EXPIRY`| Duration in minutes before a user must reauthenticate | `60` |
| `NODE_ENV` | Node.js running environment | `production` |
## 🖥️ Windows
Ensure you have Docker Desktop installed, WSL2 configured, and enough free RAM to run models.
Ensure you have Docker Desktop installed, WSL2 configured, and enough free RAM to run models.
## ☁️ Kubernetes
@ -58,36 +69,48 @@ Instructions for setting up Serge on Kubernetes can be found in the [wiki](https
| Category | Models |
|:-------------:|:-------|
| **Alfred** | 40B-1023 |
| **BioMistral** | 7B |
| **Code** | 13B, 33B |
| **CodeLLaMA** | 7B, 7B-Instruct, 7B-Python, 13B, 13B-Instruct, 13B-Python, 34B, 34B-Instruct, 34B-Python |
| **Codestral** | 22B v0.1 |
| **Gemma** | 2B, 1.1-2B-Instruct, 7B, 1.1-7B-Instruct |
| **Gorilla** | Falcon-7B-HF-v0, 7B-HF-v1, Openfunctions-v1, Openfunctions-v2 |
| **Falcon** | 7B, 7B-Instruct, 40B, 40B-Instruct |
| **LLaMA 2** | 7B, 7B-Chat, 7B-Coder, 13B, 13B-Chat, 70B, 70B-Chat, 70B-OASST |
| **LLaMA 2** | 7B, 7B-Chat, 7B-Coder, 13B, 13B-Chat, 70B, 70B-Chat, 70B-OASST |
| **LLaMA 3** | 11B-Instruct, 13B-Instruct, 16B-Instruct |
| **LLaMA Pro** | 8B, 8B-Instruct |
| **Med42** | 70B |
| **Medalpaca** | 13B |
| **Medicine-LLM** | 13B |
| **Medicine** | Chat, LLM |
| **Meditron** | 7B, 7B-Chat, 70B |
| **Meta-LlaMA-3** | 8B, 8B-Instruct, 70B, 70B-Instruct |
| **Mistral** | 7B-V0.1, 7B-Instruct-v0.2, 7B-OpenOrca |
| **MistralLite** | 7B |
| **Mixtral** | 8x7B-v0.1, 8x7B-Dolphin-2.7, 8x7B-Instruct-v0.1 |
| **Neural-Chat** | 7B-v3.3 |
| **Notus** | 7B-v1 |
| **Notux** | 8x7b-v1 |
| **Nous-Hermes 2** | Mistral-7B-DPO, Mixtral-8x7B-DPO, Mistral-8x7B-SFT |
| **OpenChat** | 7B-v3.5-1210 |
| **OpenCodeInterpreter** | DS-6.7B, DS-33B, CL-7B, CL-13B, CL-70B |
| **OpenLLaMA** | 3B-v2, 7B-v2, 13B-v2 |
| **Orca 2** | 7B, 13B |
| **Phi 2** | 2.7B |
| **Phi 3** | mini-4k-instruct, medium-4k-instruct, medium-128k-instruct |
| **Python Code** | 13B, 33B |
| **PsyMedRP** | 13B-v1, 20B-v1 |
| **Starling LM** | 7B-Alpha |
| **SOLAR** | 10.7B-v1.0, 10.7B-instruct-v1.0 |
| **TinyLlama** | 1.1B |
| **Vicuna** | 7B-v1.5, 13B-v1.5, 33B-v1.3, 33B-Coder |
| **WizardLM** | 7B-v1.0, 13B-v1.2, 70B-v1.0 |
| **WizardLM** | 2-7B, 13B-v1.2, 70B-v1.0 |
| **Zephyr** | 3B, 7B-Alpha, 7B-Beta |
Additional models can be requested by opening a GitHub issue. Other models are also available at [Serge Models](https://github.com/Smartappli/serge-models).
## ⚠️ Memory Usage
LLaMA will crash if you don't have enough available memory for the model:
LLaMA will crash if you don't have enough available memory for the model
## 💬 Support
@ -107,3 +130,29 @@ git clone https://github.com/serge-chat/serge.git
cd serge/
docker compose -f docker-compose.dev.yml up --build
```
The solution will accept a python debugger session on port 5678. Example launch.json for VSCode:
```json
{
"version": "0.2.0",
"configurations": [
{
"name": "Remote Debug",
"type": "python",
"request": "attach",
"connect": {
"host": "localhost",
"port": 5678
},
"pathMappings": [
{
"localRoot": "${workspaceFolder}/api",
"remoteRoot": "/usr/src/app/api/"
}
],
"justMyCode": false
}
]
}
```

4
api/.gitignore vendored
View File

@ -157,4 +157,6 @@ cython_debug/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
#.idea/
*.db

1346
api/poetry.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -21,53 +21,29 @@ requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.dependencies]
python=">=3.9,<4.0"
python=">=3.10,<4.0"
asyncio = "^3.4.3"
packaging = "^23.2"
pydantic = "^1.10.14"
python-dotenv = "^1.0.1"
python-multipart = "^0.0.9"
pyyaml = "^6.0"
rfc3986 = "^2.0.0"
sentencepiece = "^0.1.99"
sniffio = "^1.3.0"
packaging = "^24.1"
pydantic = "^1.10.17"
sse-starlette = "^1.8.2"
starlette = "^0.26.1"
toml = "^0.10.2"
tqdm = "^4.66.2"
typing-extensions = "^4.9.0"
ujson = "^5.9.0"
urllib3 = "^2.2.0"
uvloop = "^0.19.0"
watchfiles = "^0.21.0"
websockets = "^12.0"
anyio = "^4.2.0"
certifi = "^2024.2.2"
charset-normalizer = "^3.3.2"
click = "^8.1.7"
email-validator = "^2.0.0"
typing-extensions = "^4.12.2"
urllib3 = "^2.2.2"
fastapi = "^0.95.1"
filelock = "^3.13.1"
h11 = "^0.14.0"
httpcore = "^1.0.2"
httptools = "^0.6.1"
huggingface-hub = "^0.20.3"
idna = "^3.6"
itsdangerous = "^2.1.2"
jinja2 = "^3.1.3"
markupsafe = "^2.1.5"
motor = "^3.3.2"
orjson = "^3.9.13"
dnspython = "^2.5.0"
lazy-model = "^0.2.0"
requests = "^2.31.0"
numpy = "^1.25.2"
huggingface-hub = "^0.24.5"
requests = "^2.32.3"
langchain = "^0.0.180"
loguru = "^0.7.2"
redis = {extras = ["hiredis"], version = "^5.0.1"}
pytest = "^8.0.0"
hypercorn = {extras = ["trio"], version = "^0.16.0"}
redis = {extras = ["hiredis"], version = "^5.0.8"}
pytest = "^8.3.2"
hypercorn = {extras = ["trio"], version = "^0.17.3"}
pyjwt = "^2.9.0"
python-jose = {extras = ["cryptography"], version = "^3.3.0"}
aiofiles = "^24.1.0"
python-multipart = "^0.0.9"
debugpy = "^1.8.5"
sqlalchemy = "^2.0.32"
[tool.ruff]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
select = ["E", "F"]
@ -118,6 +94,3 @@ target-version = "py311"
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.black]
line-length = 150
target-version = ['py311']

110
api/src/serge/crud.py Normal file
View File

@ -0,0 +1,110 @@
import logging
import uuid
from typing import List, Optional
from serge.schema import user as user_schema
from serge.utils.security import get_password_hash
from sqlalchemy.orm import Session
from serge.models import user as user_model
def get_user(db: Session, username: str) -> Optional[user_schema.User]:
return Mappers.user_db_to_view(
db.query(user_model.User).filter(user_model.User.username == username).first(),
include_auth=True,
)
def get_user_by_email(db: Session, email: str) -> Optional[user_schema.User]:
return Mappers.user_db_to_view(db.query(user_model.User).filter(user_model.User.email == email).first())
def get_users(db: Session, skip: int = 0, limit: int = 100) -> List[user_schema.User]:
return [Mappers.user_db_to_view(u) for u in db.query(user_model.User).offset(skip).limit(limit).all()]
def create_user(db: Session, ua: user_schema.UserAuth) -> Optional[user_schema.User]:
# Check already exists
if get_user(db, ua.username):
logging.error(f"Tried to create new user, but already exists: {ua.username}")
return None
match ua.auth_type:
case 1:
ua.secret = get_password_hash(ua.secret)
case _: # Todo: More auth types
return None
db_user, db_user_auth = Mappers.user_view_to_db(None, ua)
db.add(db_user_auth)
db.add(db_user)
db.commit()
return Mappers.user_db_to_view(db_user)
def update_user(db: Session, u: user_schema.User) -> Optional[user_schema.User]:
user = db.query(user_model.User).filter(user_model.User.username == u.username).first()
if not user:
return None
for k, v in u.dict().items():
if k in ["auth", "chats"]:
continue
setattr(user, k, v)
db.commit()
return user
def create_chat(db: Session, chat: user_schema.Chat):
c = user_model.Chat(owner=chat.owner, chat_id=chat.chat_id)
db.add(c)
db.commit()
def remove_chat(db: Session, chat: user_schema.Chat):
c = db.query(user_model.Chat).filter(user_model.Chat.chat_id == chat.chat_id).one()
db.delete(c)
db.commit()
class Mappers:
@staticmethod
def user_db_to_view(u: user_model.User, include_auth=False) -> user_schema.User:
if not u:
return None
auths = chats = []
if include_auth:
auths = u.auth
# u.auth = []
chats = u.chats
# u.chats = []
app_user = user_schema.User(**{k: v for k, v in u.__dict__.items() if not k.startswith("_") and k not in ["chats", "auth"]})
app_user.auth = [user_schema.UserAuth(username=u.username, secret=x.secret, auth_type=x.auth_type) for x in auths]
app_user.chats = [user_schema.Chat(chat_id=x.chat_id, owner=x.owner) for x in chats]
return app_user
@staticmethod
def user_view_to_db(
u: Optional[user_schema.User] = None, ua: Optional[user_schema.UserAuth] = None
) -> (user_model.User, Optional[user_model.UserAuth]):
assert u or ua, "One of User or UserAuth must be passed"
if not u: # Creating a new user
u = user_schema.User(id=uuid.uuid4(), username=ua.username)
auth = []
if ua:
auth = Mappers.user_auth_view_to_db(ua, u.id)
user = user_model.User(**u.dict())
if auth:
user.auth.append(auth)
for chat in u.chats:
user.chats.append(user_model.Chat(chat_id=chat.chat_id))
return (user, auth)
@staticmethod
def user_auth_view_to_db(ua: user_schema.UserAuth, user_id: uuid.UUID) -> user_model.UserAuth:
if not ua:
return None
return user_model.UserAuth(secret=ua.secret, auth_type=ua.auth_type, user_id=user_id)

View File

@ -15,6 +15,22 @@
}
]
},
{
"name": "BioMistral",
"models": [
{
"name": "BioMistral-7B",
"repo": "BioMistral/BioMistral-7B-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "ggml-model-Q4_K_M.gguf",
"disk_space": 4368439424.0
}
]
}
]
},
{
"name": "Code",
"models": [
@ -145,7 +161,23 @@
]
}
]
},
},
{
"name": "Codesstral",
"models": [
{
"name": "Codestral-22B-v0.1",
"repo": "bartowski/Codestral-22B-v0.1-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "Codestral-22B-v0.1-Q4_K_M.gguf",
"disk_space": 15722553696.0
}
]
}
]
},
{
"name": "Falcon",
"models": [
@ -195,6 +227,104 @@
}
]
},
{
"name": "Gemma",
"models": [
{
"name": "Gemma-2B",
"repo": "brittlewis12/gemma-2b-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "gemma-2b.Q4_K_M.gguf",
"disk_space": 1495245728.0
}
]
},
{
"name": "Gemma-1_1-2B-Instruct",
"repo": "brittlewis12/gemma-1.1-2b-it-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "gemma-1.1-2b-it.Q4_K_M.gguf",
"disk_space": 1630263200.0
}
]
},
{
"name": "Gemma-7B",
"repo": "brittlewis12/gemma-7b-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "gemma-7b.Q4_K_M.gguf",
"disk_space": 5127231648.0
}
]
},
{
"name": "Gemma-1_1-7B-Instruct",
"repo": "brittlewis12/gemma-1.1-7b-it-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "gemma-1.1-7b-it.Q4_K_M.gguf",
"disk_space": 5329759200.0
}
]
}
]
},
{
"name": "Gorilla",
"models": [
{
"name": "Gorilla-7B Falcon",
"repo": "gorilla-llm/gorilla-falcon-7b-hf-v0-gguf",
"files": [
{
"name": "q4_K_M",
"filename": "gorilla-falcon-7b-hf-v0-q4_K_M.gguf",
"disk_space": 4975125696.0
}
]
},
{
"name": "Gorilla-7B",
"repo": "gorilla-llm/gorilla-7b-hf-v1-gguf",
"files": [
{
"name": "q4_K_M",
"filename": "gorilla-7b-hf-v1-q4_K_M.gguf",
"disk_space": 4081004288.0
}
]
},
{
"name": "Gorilla OpenFunctions V1",
"repo": "gorilla-llm/gorilla-openfunctions-v1-gguf",
"files": [
{
"name": "q4_K_M",
"filename": "gorilla-openfunctions-v1-q4_K_M.gguf",
"disk_space": 4081004288.0
}
]
},
{
"name": "Gorilla OpenFunctions V2",
"repo": "gorilla-llm/gorilla-openfunctions-v2-gguf",
"files": [
{
"name": "q4_K_M",
"filename": "gorilla-openfunctions-v2-q4_K_M.gguf",
"disk_space": 4223770912.0
}
]
}
]
},
{
"name": "LLaMA_2",
"models": [
@ -287,6 +417,71 @@
]
}
]
},
{
"name": "LLaMA_3",
"models": [
{
"name": "Llama-3-11B-Instruct-v0.1",
"repo": "MaziyarPanahi/Llama-3-11B-Instruct-v0.1-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "Llama-3-11B-Instruct-v0.1.Q4_K_M.gguf",
"disk_space": 8200021632.0
}
]
},
{
"name": "Llama-3-13B-Instruct-v0.1",
"repo": "MaziyarPanahi/Llama-3-13B-Instruct-v0.1-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "Llama-3-13B-Instruct-v0.1.Q4_K_M.gguf",
"disk_space": 8061089600.0
}
]
},
{
"name": "Llama-3-16B-Instruct-v0.1",
"repo": "MaziyarPanahi/Llama-3-16B-Instruct-v0.1-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "Llama-3-16B-Instruct-v0.1.Q4_K_M.gguf",
"disk_space": 10154318048.0
}
]
}
]
},
{
"name": "LLaMA-Pro",
"models": [
{
"name": "Llama-Pro-8B",
"repo": "TheBloke/LLaMA-Pro-8B-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "llama-pro-8b.Q4_K_M.gguf",
"disk_space": 5055758336.0
}
]
},
{
"name": "Llama-Pro-8B-Instruct",
"repo": "TheBloke/LLaMA-Pro-8B-Instruct-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "llama-pro-8b-instruct.Q4_K_M.gguf",
"disk_space": 5055758688.0
}
]
}
]
},
{
"name": "Med42",
@ -321,10 +516,32 @@
]
},
{
"name": "medicine-LLM",
"name": "Medicine",
"models": [
{
"name": "Medicine LLM 13B",
"name": "Medicine-Chat",
"repo": "TheBloke/medicine-chat-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "medicine-chat.Q4_K_M.gguf",
"disk_space": 4081010048.0
}
]
},
{
"name": "Medicine-LLM",
"repo": "TheBloke/medicine-LLM-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "medicine-llm.Q4_K_M.gguf",
"disk_space": 4081009920.0
}
]
},
{
"name": "Medicine-LLM-13B",
"repo": "TheBloke/medicine-LLM-13B-GGUF",
"files": [
{
@ -335,7 +552,7 @@
]
}
]
},
},
{
"name": "Meditron",
"models": [
@ -373,7 +590,56 @@
]
}
]
},
},
{
"name": "Meta-Llama-3",
"models": [
{
"name": "Meta-Llama-3-8B",
"repo": "QuantFactory/Meta-Llama-3-8B-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "Meta-Llama-3-8B.Q4_K_M.gguf",
"disk_space": 4921246944.0
}
]
},
{
"name": "Meta-Llama-3-8B-Instruct",
"repo": "QuantFactory/Meta-Llama-3-8B-Instruct-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "Meta-Llama-3-8B-Instruct.Q4_K_M.gguf",
"disk_space": 4921246944.0
}
]
},
{
"name": "Meta-Llama-3-70B",
"repo": "NousResearch/Meta-Llama-3-70B-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "Meta-Llama-3-70B-Q4_K_M.gguf",
"disk_space": 42520906176.0
}
]
},
{
"name": "Meta-Llama-3-70B-Instruct",
"repo": "QuantFactory/Meta-Llama-3-70B-Instruct-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "Meta-Llama-3-70B-Instruct.Q4_K_M.gguf",
"disk_space": 42520906208.0
}
]
}
]
},
{
"name": "Mistral",
"models": [
@ -514,6 +780,44 @@
}
]
},
{
"name": "Nous-Hermes-2",
"models": [
{
"name": "Nous-Hermes-2-Mistral-7B-DPO",
"repo": "NousResearch/Nous-Hermes-2-Mistral-7B-DPO-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "Nous-Hermes-2-Mistral-7B-DPO.Q4_K_M.gguf",
"disk_space": 4368450560.0
}
]
},
{
"name": "Nous-Hermes-2-Mistral-7B-DPO",
"repo": "TheBloke/Nous-Hermes-2-Mixtral-8x7B-DPO-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "nous-hermes-2-mixtral-8x7b-dpo.Q4_K_M.gguf",
"disk_space": 28446421792.0
}
]
},
{
"name": "Nous-Hermes-2-Mistral-7B-SFT",
"repo": "NousResearch/Nous-Hermes-2-Mixtral-8x7B-SFT-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "Nous-Hermes-2-Mixtral-8x7B-SFT.Q4_K_M.gguf",
"disk_space": 28446421760.0
}
]
}
]
},
{
"name": "OpenChat",
"models": [
@ -529,7 +833,67 @@
]
}
]
},
},
{
"name": "OpenCodeInterpreter",
"models": [
{
"name": "OpenCodeInterpreter-DS-6.7B",
"repo": "LoneStriker/OpenCodeInterpreter-DS-6.7B-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "OpenCodeInterpreter-DS-6.7B-Q4_K_M.gguf",
"disk_space": 4083016864.0
}
]
},
{
"name": "OpenCodeInterpreter-DS-33B",
"repo": "LoneStriker/OpenCodeInterpreter-DS-33B-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "OpenCodeInterpreter-DS-33B-Q4_K_M.gguf",
"disk_space": 19940659200.0
}
]
},
{
"name": "OpenCodeInterpreter-CL-7B",
"repo": "LoneStriker/OpenCodeInterpreter-CL-7B-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "OpenCodeInterpreter-CL-7B-Q4_K_M.gguf",
"disk_space": 4081095360.0
}
]
},
{
"name": "OpenCodeInterpreter-CL-13B",
"repo": "LoneStriker/OpenCodeInterpreter-CL-13B-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "OpenCodeInterpreter-CL-13B-Q4_K_M.gguf",
"disk_space": 7866070048.0
}
]
},
{
"name": "OpenCodeInterpreter-CL-70B",
"repo": "LoneStriker/OpenCodeInterpreter-CL-70B-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "OpenCodeInterpreter-CL-70B-Q4_K_M.gguf",
"disk_space": 41423092096.0
}
]
}
]
},
{
"name": "OpenLLaMA",
"models": [
@ -608,6 +972,39 @@
"disk_space": 1789239136.0
}
]
},
{
"name": "Phi-3-mini-4k-instruct-v0_3",
"repo": "bartowski/Phi-3-mini-4k-instruct-v0.3-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "Phi-3-mini-4k-instruct-v0.3-Q4_K_M.gguf",
"disk_space": 2393231456.0
}
]
},
{
"name": "Phi-3-medium-4k-instruct",
"repo": "bartowski/Phi-3-medium-4k-instruct-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "Phi-3-medium-4k-instruct-Q4_K_M.gguf",
"disk_space": 8566820736.0
}
]
},
{
"name": "Phi-3-medium-128k-instruct",
"repo": "bartowski/Phi-3-medium-128k-instruct-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "Phi-3-medium-128k-instruct-Q4_K_M.gguf",
"disk_space": 8566821408.0
}
]
}
]
},
@ -696,6 +1093,49 @@
]
}
]
},
{
"name": "SOLAR",
"models": [
{
"name": "SOLAR-10.7B-V1_0",
"repo": "TheBloke/SOLAR-10.7B-v1.0-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "solar-10.7b-v1.0.Q4_K_M.gguf",
"disk_space": 6461667488.0
}
]
},
{
"name": "SOLAR-10.7B-instruct-V1_0",
"repo": "TheBloke/SOLAR-10.7B-Instruct-v1.0-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "solar-10.7b-instruct-v1.0.Q4_K_M.gguf",
"disk_space": 6461667936.0
}
]
}
]
},
{
"name": "Tinyllama",
"models": [
{
"name": "Tinyllama-1.1B-Chat-v1.0",
"repo": "TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf",
"disk_space": 668788096.0
}
]
}
]
},
{
"name": "Vicuna",
@ -750,13 +1190,13 @@
"name": "WizardLM",
"models": [
{
"name": "WizardLM-7B-v1_0",
"repo": "TheBloke/wizardLM-7B-GGUF",
"name": "WizardLM-2-7B",
"repo": "MaziyarPanahi/WizardLM-2-7B-GGUF",
"files": [
{
"name": "q4_K_M",
"filename": "wizardLM-7B.Q4_K_M.gguf",
"disk_space": 4081009920.0
"filename": "WizardLM-2-7B.Q4_K_M.gguf",
"disk_space": 4368439008.0
}
]
},

31
api/src/serge/database.py Normal file
View File

@ -0,0 +1,31 @@
import logging
import uuid
from serge.models.settings import Settings
from serge.models.user import User, UserAuth
from sqlalchemy import create_engine
from sqlalchemy.orm import Session, sessionmaker
settings = Settings()
engine = create_engine(settings.SERGE_DATABASE_URL, connect_args={"check_same_thread": False})
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
def seed_db(db: Session):
sys_u = db.query(User).filter(User.username == "system").first()
if sys_u:
return
system_user = User(
id=uuid.uuid4(),
username="system",
email="",
full_name="Default User",
theme_light=False,
default_prompt="Below is an instruction that describes a task. Write a response that appropriately completes the request.",
is_active=True,
auth=[UserAuth(secret="", auth_type=0)],
)
db.add(system_user)
db.commit()
logging.info("System user created")

View File

@ -5,12 +5,16 @@ from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from fastapi.staticfiles import StaticFiles
from loguru import logger
from starlette.responses import FileResponse
from serge.database import SessionLocal, engine, seed_db
from serge.models.settings import Settings
from serge.routers.auth import auth_router
from serge.routers.chat import chat_router
from serge.routers.model import model_router
from serge.routers.ping import ping_router
from serge.routers.user import user_router
from starlette.responses import FileResponse
from serge.models import user as user_models
# Configure logging settings
@ -41,12 +45,17 @@ origins = [
"http://localhost:9124",
]
# Seed the database
user_models.Base.metadata.create_all(bind=engine)
app = FastAPI(title="Serge", version="0.0.1", description=description, tags_metadata=tags_metadata)
api_app = FastAPI(title="Serge API")
api_app.include_router(chat_router)
api_app.include_router(ping_router)
api_app.include_router(model_router)
api_app.include_router(auth_router)
api_app.include_router(user_router)
app.mount("/api", api_app)
# handle serving the frontend as static files in production
@ -83,6 +92,9 @@ async def start_database():
for file in files:
os.remove(WEIGHTS + file)
db = SessionLocal()
seed_db(db)
app.add_middleware(
CORSMiddleware,

View File

@ -32,5 +32,5 @@ class ChatParameters(BaseModel):
class Chat(BaseModel):
id: str = Field(default_factory=lambda: str(uuid4()))
created: datetime = Field(default_factory=datetime.now)
owner: str = Field("system")
params: ChatParameters

View File

@ -1,8 +1,13 @@
from os import getenv
from pydantic import BaseSettings
class Settings(BaseSettings):
SERGE_DATABASE_URL: str = getenv("SERGE_DATABASE_URL", "sqlite:////data/db/sql_app.db")
NODE_ENV: str = "development"
SERGE_JWT_SECRET: str = getenv("SERGE_JWT_SECRET", "uF7FGN5uzfGdFiPzR")
SERGE_SESSION_EXPIRY: int = getenv("SERGE_SESSION_EXPIRY", 60)
class Config:
orm_mode = True

View File

@ -0,0 +1,40 @@
from sqlalchemy import Boolean, Column, ForeignKey, Integer, String, Uuid
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
Base = declarative_base()
class User(Base):
__tablename__ = "users"
id = Column(Uuid, primary_key=True)
username = Column(String, unique=True, index=True)
email = Column(String)
full_name = Column(String)
theme_light = Column(Boolean)
default_prompt = Column(String)
is_active = Column(Boolean, default=True)
auth = relationship("UserAuth", back_populates="user", lazy="joined")
chats = relationship("Chat", back_populates="user", lazy="joined")
class Chat(Base):
__tablename__ = "chats"
id = Column(Integer, primary_key=True)
chat_id = Column(String, index=True)
owner = Column(String, ForeignKey("users.username"))
user = relationship("User", back_populates="chats")
class UserAuth(Base):
__tablename__ = "auth"
id = Column(Integer, primary_key=True)
secret = Column(String)
auth_type = Column(Integer)
user_id = Column(Uuid, ForeignKey("users.id"))
user = relationship("User", back_populates="auth")

View File

@ -0,0 +1,108 @@
import logging
from datetime import timedelta
from typing import Optional
from fastapi import APIRouter, Depends, HTTPException, Request, Response, status
from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm
from jose import JWTError
from serge.crud import get_user
from serge.database import SessionLocal
from serge.schema.user import Token, User
from serge.models.settings import Settings
from serge.utils.security import create_access_token, decode_access_token, verify_password
from sqlalchemy.orm import Session
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
settings = Settings()
auth_router = APIRouter(
prefix="/auth",
tags=["auth"],
)
def get_db():
db = SessionLocal()
try:
yield db
finally:
db.close()
def authenticate_user(username: str, password: str, db: Session) -> Optional[User]:
user = get_user(db, username)
if not user:
return None
# Users may have multipe ways to authenticate
auths = [a.auth_type for a in user.auth]
if 0 in auths: # Default user, passwordless
return user
if 1 in auths: # Password auth
secret = [x for x in user.auth if x.auth_type == 1][0].secret
if verify_password(password, secret):
return user
if 2 in auths: # todo future auths
pass
return False
@auth_router.post("/token", response_model=Token)
async def login_for_access_token(
response: Response,
form_data: OAuth2PasswordRequestForm = Depends(),
db: Session = Depends(get_db),
):
user = authenticate_user(form_data.username, form_data.password, db)
if not user:
raise HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="Incorrect username or password",
headers={"WWW-Authenticate": "Bearer"},
)
access_token_expires = timedelta(minutes=settings.SERGE_SESSION_EXPIRY)
access_token = create_access_token(data={"sub": user.username}, expires_delta=access_token_expires)
response.set_cookie(key="token", value=access_token, httponly=True, secure=True, samesite="strict")
return {"access_token": access_token, "token_type": "bearer"}
@auth_router.post("/logout")
async def logout(response: Response):
# Clear the token cookie by setting it to expire immediately
response.delete_cookie(key="token")
return {"message": "Logged out successfully"}
async def get_current_user(token: str = Depends(oauth2_scheme), db: Session = Depends(get_db)) -> User:
credentials_exception = HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="Could not validate credentials",
headers={"WWW-Authenticate": "Bearer"},
)
try:
username = decode_access_token(token)
if username is None:
raise credentials_exception
except JWTError as e:
logging.exception(e)
raise credentials_exception
user = get_user(db, username)
if user is None:
raise credentials_exception
return user
async def get_current_active_user(request: Request, response: Response, db: Session = Depends(get_db)) -> User:
token = request.cookies.get("token")
if not token:
return get_user(db, "system")
u = None
try:
u = await get_current_user(token, db)
except HTTPException:
await logout(response)
u = get_user(db, "system")
return u

View File

@ -1,25 +1,60 @@
import os
from typing import Optional
from fastapi import APIRouter, HTTPException
from fastapi import APIRouter, Depends, HTTPException, status
from langchain.memory import RedisChatMessageHistory
from langchain.schema import SystemMessage, messages_to_dict, AIMessage, HumanMessage
from langchain.schema import AIMessage, HumanMessage, SystemMessage, messages_to_dict
from llama_cpp import Llama
from loguru import logger
from redis import Redis
from sse_starlette.sse import EventSourceResponse
from serge.crud import create_chat, remove_chat, update_user
from serge.database import SessionLocal
from serge.models.chat import Chat, ChatParameters
from serge.routers.auth import get_current_active_user
from serge.schema.user import Chat as UserChat
from serge.schema.user import User
from serge.utils.stream import get_prompt
from sqlalchemy.orm import Session
from sse_starlette.sse import EventSourceResponse
chat_router = APIRouter(
prefix="/chat",
tags=["chat"],
)
unauth_error = HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="Unauthorized",
headers={"WWW-Authenticate": "Bearer"},
)
def get_db():
db = SessionLocal()
try:
yield db
finally:
db.close()
def _try_get_chat(client, chat_id):
if not client.sismember("chats", chat_id):
raise ValueError("Chat does not exist")
chat_raw = client.get(f"chat:{chat_id}")
chat = Chat.parse_raw(chat_raw)
# backwards compat
if not hasattr(chat, "owner"):
chat.owner = "system"
return chat
@chat_router.post("/")
async def create_new_chat(
u: User = Depends(get_current_active_user),
db: Session = Depends(get_db),
model: str = "7B",
temperature: float = 0.1,
top_k: int = 50,
@ -51,11 +86,16 @@ async def create_new_chat(
init_prompt=init_prompt,
)
# create the chat
chat = Chat(params=params)
chat = Chat(owner=u.username, params=params)
# store the parameters
client.set(f"chat:{chat.id}", chat.json())
uc = UserChat(chat_id=chat.id, owner=u.username)
create_chat(db, uc)
u.chats.append(uc)
update_user(db, u)
# create the message history
history = RedisChatMessageHistory(chat.id)
history.append(SystemMessage(content=init_prompt))
@ -67,13 +107,11 @@ async def create_new_chat(
@chat_router.get("/")
async def get_all_chats():
async def get_all_chats(u: User = Depends(get_current_active_user)):
res = []
client = Redis(host="localhost", port=6379, decode_responses=False)
ids = client.smembers("chats")
chats = sorted(
[await get_specific_chat(id.decode()) for id in ids],
[await get_specific_chat(x.chat_id, u) for x in u.chats],
key=lambda x: x["created"],
reverse=True,
)
@ -96,39 +134,33 @@ async def get_all_chats():
@chat_router.get("/{chat_id}")
async def get_specific_chat(chat_id: str):
async def get_specific_chat(chat_id: str, u: User = Depends(get_current_active_user)):
client = Redis(host="localhost", port=6379, decode_responses=False)
if not client.sismember("chats", chat_id):
raise ValueError("Chat does not exist")
if chat_id not in [x.chat_id for x in u.chats]:
raise unauth_error
chat_raw = client.get(f"chat:{chat_id}")
chat = Chat.parse_raw(chat_raw)
chat = _try_get_chat(client, chat_id)
history = RedisChatMessageHistory(chat.id)
chat_dict = chat.dict()
chat_dict["history"] = messages_to_dict(history.messages)
return chat_dict
@chat_router.get("/{chat_id}/history")
async def get_chat_history(chat_id: str):
client = Redis(host="localhost", port=6379, decode_responses=False)
if not client.sismember("chats", chat_id):
raise ValueError("Chat does not exist")
async def get_chat_history(chat_id: str, u: User = Depends(get_current_active_user)):
if chat_id not in [x.chat_id for x in u.chats]:
raise unauth_error
history = RedisChatMessageHistory(chat_id)
return messages_to_dict(history.messages)
@chat_router.delete("/{chat_id}/prompt")
async def delete_prompt(chat_id: str, idx: int):
client = Redis(host="localhost", port=6379, decode_responses=False)
if not client.sismember("chats", chat_id):
raise ValueError("Chat does not exist")
async def delete_prompt(chat_id: str, idx: int, u: User = Depends(get_current_active_user)):
if chat_id not in [x.chat_id for x in u.chats]:
raise unauth_error
history = RedisChatMessageHistory(chat_id)
@ -146,12 +178,17 @@ async def delete_prompt(chat_id: str, idx: int):
@chat_router.delete("/{chat_id}")
async def delete_chat(chat_id: str):
async def delete_chat(chat_id: str, u: User = Depends(get_current_active_user), db: Session = Depends(get_db)):
client = Redis(host="localhost", port=6379, decode_responses=False)
if chat_id not in [x.chat_id for x in u.chats]:
raise unauth_error
if not client.sismember("chats", chat_id):
raise ValueError("Chat does not exist")
if cid := next((x for x in u.chats if x.chat_id == chat_id), None):
remove_chat(db, cid)
RedisChatMessageHistory(chat_id).clear()
client.delete(f"chat:{chat_id}")
@ -161,23 +198,25 @@ async def delete_chat(chat_id: str):
@chat_router.delete("/delete/all")
async def delete_all_chats():
client = Redis(host="localhost", port=6379, decode_responses=False)
client.flushdb()
async def delete_all_chats(u: User = Depends(get_current_active_user), db: Session = Depends(get_db)):
[delete_chat(x.chat_id, u, db) for x in u.chats]
return True
@chat_router.get("/{chat_id}/question")
def stream_ask_a_question(chat_id: str, prompt: str):
async def stream_ask_a_question(chat_id: str, prompt: str, u: User = Depends(get_current_active_user)):
if chat_id not in [x.chat_id for x in u.chats]:
raise unauth_error
logger.info("Starting redis client")
client = Redis(host="localhost", port=6379, decode_responses=False)
if not client.sismember("chats", chat_id):
raise ValueError("Chat does not exist")
logger.debug("creating chat")
chat_raw = client.get(f"chat:{chat_id}")
chat = Chat.parse_raw(chat_raw)
chat = _try_get_chat(client, chat_id)
logger.debug(chat.params)
logger.debug("creating history")
@ -223,7 +262,7 @@ def stream_ask_a_question(chat_id: str, prompt: str):
yield {"event": "message", "data": txt}
except Exception as e:
if type(e) == UnicodeDecodeError:
if type(e) is UnicodeDecodeError:
pass
else:
error = e.__str__()
@ -242,15 +281,16 @@ def stream_ask_a_question(chat_id: str, prompt: str):
@chat_router.post("/{chat_id}/question")
async def ask_a_question(chat_id: str, prompt: str):
async def ask_a_question(chat_id: str, prompt: str, u: User = Depends(get_current_active_user)):
if chat_id not in [x.chat_id for x in u.chats]:
raise unauth_error
client = Redis(host="localhost", port=6379, decode_responses=False)
if not client.sismember("chats", chat_id):
raise ValueError("Chat does not exist")
chat_raw = client.get(f"chat:{chat_id}")
chat = Chat.parse_raw(chat_raw)
chat = _try_get_chat(client, chat_id)
history = RedisChatMessageHistory(chat.id)
if len(prompt) > 0:

View File

@ -0,0 +1,63 @@
import logging
from fastapi import APIRouter, Depends, HTTPException, status
from serge.crud import create_user, update_user
from serge.database import SessionLocal
from serge.routers.auth import get_current_active_user
from serge.schema import user as user_schema
from sqlalchemy.orm import Session
user_router = APIRouter(
prefix="/user",
tags=["user"],
)
def get_db():
db = SessionLocal()
try:
yield db
finally:
db.close()
@user_router.get("/", response_model=user_schema.User)
async def get_user(u: user_schema.User = Depends(get_current_active_user)):
if not u:
raise HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="Incorrect username or password",
headers={"WWW-Authenticate": "Bearer"},
)
return u.to_public_dict()
@user_router.post("/create", response_model=user_schema.User)
async def create_user_with_pass(ua: user_schema.UserAuth, db: Session = Depends(get_db)):
try:
u = create_user(db, ua)
except Exception as e:
logging.exception(e)
raise HTTPException(
status_code=status.HTTP_409_CONFLICT,
detail=f"Failed to create. {e}",
)
if not u:
raise HTTPException(
status_code=status.HTTP_405_METHOD_NOT_ALLOWED,
detail="Could not create user",
)
return u.to_public_dict()
@user_router.put("/", response_model=user_schema.User)
async def self_update_user(
new_data: user_schema.User,
current: user_schema.User = Depends(get_current_active_user),
db: Session = Depends(get_db),
):
current.email = new_data.email
current.full_name = new_data.full_name
current.default_prompt = new_data.default_prompt
update_user(db, current)
return current.to_public_dict()

View File

@ -73,16 +73,35 @@
"Name": {
"type": "string",
"enum": [
"fp16",
"iq1_M",
"iq1_S",
"iq2_M",
"iq2_S",
"iq2_XS",
"iq2_XXS",
"iq3_M",
"iq3_S",
"iq3_XS",
"iq3_XXS",
"iq4_NL",
"iq4_XS",
"q2_K",
"q3_K_L",
"q3_K_M",
"q3_K_S",
"q4_0",
"q4_1",
"q4_K_M",
"q4_K_S",
"q5_0",
"q5_1",
"q5_K_M",
"q5_K_S",
"q6_K",
"q8_0"
"q8_0",
"q8_1",
"q8_K"
],
"title": "Name"
}

View File

@ -0,0 +1,42 @@
import uuid
from pydantic import BaseModel
class UserBase(BaseModel):
username: str
class UserAuth(UserBase):
secret: str
auth_type: int
class Chat(BaseModel):
chat_id: str
owner: str
class User(UserBase):
id: uuid.UUID
is_active: bool = True
email: str = ""
full_name: str = ""
theme_light: bool = False
default_prompt: str = "Below is an instruction that describes a task. Write a response that appropriately completes the request."
auth: list[UserAuth] = []
chats: list[Chat] = []
class Config:
orm_mode = True
def to_public_dict(self):
user_dict = self.dict()
for auth in user_dict["auth"]:
auth["secret"] = "********"
return user_dict
class Token(BaseModel):
access_token: str
token_type: str

View File

@ -0,0 +1,56 @@
import base64
import hashlib
import os
from datetime import datetime, timedelta
from typing import Optional
from fastapi import HTTPException, status
from jose import JWTError, jwt
from serge.models.settings import Settings
ALGORITHM = "HS256"
settings = Settings()
credentials_exception = HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="Could not validate credentials",
headers={"WWW-Authenticate": "Bearer"},
)
def verify_password(plain_password: str, hashed_password: str) -> bool:
salt_and_hash = base64.b64decode(hashed_password.encode("utf-8"))
salt = salt_and_hash[:16]
stored_password = salt_and_hash[16:]
new_hashed_password = hashlib.scrypt(plain_password.encode("utf-8"), salt=salt, n=8192, r=8, p=1, dklen=64)
return new_hashed_password == stored_password
def get_password_hash(password: str) -> str:
salt = os.urandom(16)
hashed_password = hashlib.scrypt(password.encode("utf-8"), salt=salt, n=8192, r=8, p=1, dklen=64)
salt_and_hash = salt + hashed_password
return base64.b64encode(salt_and_hash).decode("utf-8")
def create_access_token(data: dict, expires_delta: Optional[timedelta] = None):
to_encode = data.copy()
if expires_delta:
expire = datetime.utcnow() + expires_delta
else:
expire = datetime.utcnow() + timedelta(minutes=settings.SERGE_SESSION_EXPIRY)
to_encode.update({"exp": expire})
encoded_jwt = jwt.encode(to_encode, settings.SERGE_JWT_SECRET, algorithm=ALGORITHM)
return encoded_jwt
def decode_access_token(token: str):
try:
payload = jwt.decode(token, settings.SERGE_JWT_SECRET, algorithms=[ALGORITHM])
username: str = payload.get("sub")
if username is None:
raise credentials_exception
return username
except JWTError:
raise credentials_exception

View File

@ -1,7 +1,7 @@
services:
serge:
restart: on-failure
build:
build:
context: .
dockerfile: Dockerfile.dev
volumes:
@ -11,9 +11,9 @@ services:
- weights:/usr/src/app/weights/
- /etc/localtime:/etc/localtime:ro
ports:
- "8008:8008"
- "9124:9124"
- 8008:8008
- 9124:9124
- 5678:5678
volumes:
datadb:
weights:

View File

@ -21,12 +21,13 @@ detect_cpu_features() {
}
# Check if the CPU architecture is aarch64/arm64
if [ "$cpu_arch" = "aarch64" ]; then
pip_command="python -m pip install -v llama-cpp-python==$LLAMA_PYTHON_VERSION --only-binary=:all: --extra-index-url=https://gaby.github.io/arm64-wheels/"
if [ "$cpu_arch" = "aarch64" ] || [ "$cpu_arch" = "arm64" ]; then
pip_command="python -m pip install -v llama-cpp-python==$LLAMA_PYTHON_VERSION --only-binary=:all: --extra-index-url=https://abetlen.github.io/llama-cpp-python/whl/cpu/"
else
# Use @smartappli provided wheels
cpu_feature=$(detect_cpu_features)
pip_command="python -m pip install -v llama-cpp-python==$LLAMA_PYTHON_VERSION --only-binary=:all: --extra-index-url=https://smartappli.github.io/llama-cpp-python-cuBLAS-wheels/$cpu_feature/cpu"
#cpu_feature=$(detect_cpu_features)
#pip_command="python -m pip install -v llama-cpp-python==$LLAMA_PYTHON_VERSION --only-binary=:all: --extra-index-url=https://abetlen.github.io/llama-cpp-python/whl/cpu-$cpu_feature/"
pip_command="python -m pip install -v llama-cpp-python==$LLAMA_PYTHON_VERSION --only-binary=:all: --extra-index-url=https://abetlen.github.io/llama-cpp-python/whl/cpu/"
fi
echo "Recommended install command for llama-cpp-python: $pip_command"
@ -51,7 +52,11 @@ redis_process=$!
# Start the API
cd /usr/src/app/api || exit 1
hypercorn_cmd="hypercorn src.serge.main:app --bind 0.0.0.0:8008"
[ "$SERGE_ENABLE_IPV6" = true ] && hypercorn_cmd+=" --bind [::]:8008"
if [ "$SERGE_ENABLE_IPV6" = true ] && [ "$SERGE_ENABLE_IPV4" != true ]; then
hypercorn_cmd="hypercorn src.serge.main:app --bind [::]:8008"
elif [ "$SERGE_ENABLE_IPV4" = true ] && [ "$SERGE_ENABLE_IPV6" = true ]; then
hypercorn_cmd="hypercorn src.serge.main:app --bind 0.0.0.0:8008 --bind [::]:8008"
fi
$hypercorn_cmd || {
echo 'Failed to start main app'

View File

@ -21,12 +21,13 @@ detect_cpu_features() {
}
# Check if the CPU architecture is aarch64/arm64
if [ "$cpu_arch" = "aarch64" ]; then
pip_command="python -m pip install -v llama-cpp-python==$LLAMA_PYTHON_VERSION --only-binary=:all: --extra-index-url=https://gaby.github.io/arm64-wheels/"
if [ "$cpu_arch" = "aarch64" ] || [ "$cpu_arch" = "arm64" ]; then
pip_command="python -m pip install -v llama-cpp-python==$LLAMA_PYTHON_VERSION --only-binary=:all: --extra-index-url=https://abetlen.github.io/llama-cpp-python/whl/cpu/"
else
# Use @smartappli provided wheels
cpu_feature=$(detect_cpu_features)
pip_command="python -m pip install -v llama-cpp-python==$LLAMA_PYTHON_VERSION --only-binary=:all: --extra-index-url=https://smartappli.github.io/llama-cpp-python-cuBLAS-wheels/$cpu_feature/cpu"
#cpu_feature=$(detect_cpu_features)
#pip_command="python -m pip install -v llama-cpp-python==$LLAMA_PYTHON_VERSION --only-binary=:all: --extra-index-url=https://abetlen.github.io/llama-cpp-python/whl/cpu-$cpu_feature/"
pip_command="python -m pip install -v llama-cpp-python==$LLAMA_PYTHON_VERSION --only-binary=:all: --extra-index-url=https://abetlen.github.io/llama-cpp-python/whl/cpu/"
fi
echo "Recommended install command for llama-cpp-python: $pip_command"
@ -56,10 +57,16 @@ redis-server /etc/redis/redis.conf &
cd /usr/src/app/web || exit 1
npm run dev -- --host 0.0.0.0 --port 8008 &
python -m pip install debugpy -t /tmp
# Start the API
cd /usr/src/app/api || exit 1
hypercorn_cmd="hypercorn src.serge.main:app --bind 0.0.0.0:8008"
[ "$SERGE_ENABLE_IPV6" = true ] && hypercorn_cmd+=" --bind [::]:8008"
hypercorn_cmd="python /tmp/debugpy --listen 0.0.0.0:5678 -m hypercorn src.serge.main:api_app --reload --bind 0.0.0.0:9124"
if [ "$SERGE_ENABLE_IPV6" = true ] && [ "$SERGE_ENABLE_IPV4" != true ]; then
hypercorn_cmd="python /tmp/debugpy --listen 0.0.0.0:5678 -m hypercorn src.serge.main:api_app --reload --bind [::]:9124"
elif [ "$SERGE_ENABLE_IPV4" = true ] && [ "$SERGE_ENABLE_IPV6" = true ]; then
hypercorn_cmd="python /tmp/debugpy --listen 0.0.0.0:5678 -m hypercorn src.serge.main:api_app --reload --bind 0.0.0.0:9124 --bind [::]:9124"
fi
$hypercorn_cmd || {
echo 'Failed to start main app'

View File

@ -1,2 +1,3 @@
LLAMA_PYTHON_VERSION=0.2.39
LLAMA_PYTHON_VERSION=0.2.87
SERGE_ENABLE_IPV4=true
SERGE_ENABLE_IPV6=false

View File

@ -1,3 +1,3 @@
typing-extensions>=4.5.0
numpy>=1.20.0
diskcache>=5.6.1
typing-extensions>=4.12.2
numpy>=1.26.0,<2.0.0
diskcache>=5.6.3

2067
web/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -12,40 +12,41 @@
"format": "prettier --write ."
},
"devDependencies": {
"@sveltejs/adapter-auto": "^3.1.1",
"@sveltejs/adapter-node": "^4.0.1",
"@sveltejs/adapter-static": "^3.0.1",
"@sveltejs/kit": "^2.5.0",
"@sveltejs/vite-plugin-svelte": "^3.0.2",
"@types/markdown-it": "^13.0.7",
"@typescript-eslint/eslint-plugin": "^7.0.1",
"@typescript-eslint/parser": "^7.0.1",
"autoprefixer": "^10.4.17",
"eslint": "^8.56.0",
"@sveltejs/adapter-auto": "^3.2.2",
"@sveltejs/adapter-node": "^5.2.0",
"@sveltejs/adapter-static": "^3.0.2",
"@sveltejs/kit": "^2.5.20",
"@sveltejs/vite-plugin-svelte": "^3.1.1",
"@types/markdown-it": "^14.1.2",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/parser": "^7.18.0",
"autoprefixer": "^10.4.20",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-svelte": "^2.35.1",
"eslint-plugin-vue": "^9.21.1",
"postcss": "^8.4.35",
"prettier": "3.2.5",
"prettier-plugin-svelte": "^3.2.0",
"svelte": "^4.2.10",
"svelte-check": "^3.6.4",
"tailwindcss": "^3.4.1",
"tslib": "^2.6.2",
"typescript": "^5.3.3",
"vite": "^5.1.1"
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-svelte": "^2.43.0",
"eslint-plugin-vue": "^9.27.0",
"postcss": "^8.4.40",
"prettier": "3.3.3",
"prettier-plugin-svelte": "^3.2.6",
"svelte": "^4.2.18",
"svelte-check": "^3.8.5",
"tailwindcss": "^3.4.7",
"tslib": "^2.6.3",
"typescript": "^5.5.4",
"vite": "^5.4.1"
},
"type": "module",
"dependencies": {
"@iconify/svelte": "^3.1.6",
"@iconify/svelte": "^4.0.2",
"@sveltestack/svelte-query": "^1.6.0",
"clipboard": "^2.0.11",
"daisyui": "^4.7.2",
"highlight.js": "^11.9.0",
"markdown-it": "^14.0.0",
"markdown-it-highlightjs": "^4.0.1",
"prettier-plugin-tailwindcss": "^0.5.11"
"daisyui": "^4.12.10",
"highlight.js": "^11.10.0",
"ioredis": "^5.4.1",
"markdown-it": "^14.1.0",
"markdown-it-highlightjs": "^4.1.0",
"prettier-plugin-tailwindcss": "^0.6.5"
}
}

View File

@ -18,7 +18,7 @@
width: auto;
}
markdown. .hljs {
markdown .hljs {
background: hsl(var(--b3)) !important;
}
@ -90,9 +90,11 @@ markdown. .hljs {
.models-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 20px;
padding: 30px;
padding-top: 10px;
gap: 25px;
padding-left: 80px;
padding-right: 40px;
padding-top: 40px;
padding-bottom: 10px;
}
/* Model Accordion Styles */
@ -132,9 +134,44 @@ markdown. .hljs {
}
.search-row {
position: fixed;
top: 5px;
left: 0;
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
padding: 0 2rem;
padding-left: 80px;
padding-right: 40px;
padding-bottom: 0px;
}
main {
max-width: 600px;
margin: 0 auto;
padding: 1rem;
}
form {
display: flex;
flex-direction: column;
}
div {
margin-bottom: 1rem;
}
label {
display: block;
margin-bottom: 0.5rem;
}
input {
width: 100%;
padding: 0.5rem;
box-sizing: border-box;
}
button {
padding: 0.5rem 1rem;
}

View File

@ -24,6 +24,10 @@
isSidebarOpen = !isSidebarOpen;
}
function hideSidebar(): void {
isSidebarOpen = false;
}
onMount(() => {
theme = localStorage.getItem("data-theme") || "dark";
document.documentElement.setAttribute("data-theme", theme);
@ -116,7 +120,10 @@
});
</script>
<button on:click={toggleSidebar} class="btn btn-square z-10 fixed">
<button
on:click={toggleSidebar}
class="border-base-content/[.2] btn btn-square z-10 my-1 mx-2 fixed border"
>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
@ -130,27 +137,32 @@
></path></svg
>
</button>
<aside
id="default-sidebar"
class="border-base-content/[.2] fixed left-0 top-0 z-40 h-screen -translate-x-full border-r transition-transform overflow-hidden translate-x-0 aria-label=Sidebar"
class:w-75={isSidebarOpen}
class:w-0={!isSidebarOpen}
class="border-base-content/[.2] fixed top-0 z-40 min-h-full border-r transition-all overflow-hidden aria-label=Sidebar"
class:left-0={isSidebarOpen}
class:-left-80={!isSidebarOpen}
>
<div
class="bg-base-200 relative h-screen py-1 px-2 overflow-hidden flex flex-col items-center justify-between"
>
<div
class="w-full flex items-center border-b border-base-content/[.2] pb-1"
>
<button class="btn btn-ghost flex-shrink-0" on:click={goToHome}>
<div class="w-full flex items-center pb-1">
<button
on:click={toggleSidebar}
class="border-base-content/[.2] btn btn-square border"
>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
fill="currentColor"
class="w-5 h-5"
class="inline-block w-5 h-5 stroke-current"
><path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M4 6h16M4 12h16M4 18h16"
></path></svg
>
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" />
</svg>
</button>
<button
disabled={isLoading || !modelAvailable}
@ -172,88 +184,78 @@
</svg>
<span>New Chat</span>
</button>
<button
id="toggle-sidebar-btn"
tabindex="0"
on:click={toggleSidebar}
on:keydown={(event) => {
if (event.key === "Escape") {
toggleSidebar();
}
}}
aria-label="Close Sidebar"
class="btn btn-ghost flex-shrink-0"
>&#10005;
<button class="btn btn-ghost flex-shrink-0" on:click={goToHome}>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="currentColor"
class="w-5 h-5"
>
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" />
</svg>
<span class="sr-only">Home</span>
</button>
</div>
<ul
class="my-1 w-full h-[85%] overflow-y-auto no-scrollbar firefox-no-scrollbar ie-edge-no-scrollbar"
class="my-1 w-full flex-grow overflow-y-auto no-scrollbar firefox-no-scrollbar ie-edge-no-scrollbar"
>
{#each data.chats as chat (chat.id)}
<li in:fly={{ x: -100, duration: 900 }}>
<a
href={"/chat/" + chat.id}
class="group hover:from-base-100 hover:text-base-content flex items-center rounded-lg py-2 pl-2 text-base font-normal hover:bg-gradient-to-r hover:to-transparent"
class:bg-base-300={id === chat.id}
>
<div class="flex w-full flex-col">
<div class="flex w-full flex-col items-start justify-start">
{#if data && Symbol.iterator in Object(data.chats)}
{#each data.chats as chat (chat.id)}
<li in:fly={{ x: -100, duration: 900 }}>
<a
href={"/chat/" + chat.id}
class="group hover:from-base-100 hover:text-base-content flex items-center rounded-lg py-2 pl-2 text-base font-normal hover:bg-gradient-to-r hover:to-transparent"
class:bg-base-300={id === chat.id}
>
<div
class="flex w-full flex-col space-y-2 p-2 border-b border-gray-200 relative"
>
<div
class="relative flex w-full flex-row items-center justify-between"
class="flex w-full flex-col items-start justify-start space-y-1"
>
<div class="flex flex-col">
<p class="text-sm font-light">
{truncate(chat.subtitle, 42)}
</p>
<span class="text-xs font-semibold">{chat.model}</span>
<span class="text-xs"
>{timeSince(chat.created) + " ago"}</span
>
</div>
<div
class="absolute right-0 opacity-0 group-hover:opacity-100 transition"
class="flex w-full flex-row items-center justify-between"
>
<!-- {#if $page.params.id === chat.id} -->
{#if deleteConfirm}
<div class="flex flex-row items-center">
<button
name="confirm-delete"
class="btn-ghost btn-sm btn"
on:click|preventDefault={() => deleteChat(chat.id)}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
width="16"
height="16"
>
<path
class="fill-base-content"
d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm1.5 0a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm10.28-1.72-4.5 4.5a.75.75 0 0 1-1.06 0l-2-2a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l1.47 1.47 3.97-3.97a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"
/>
</svg>
</button>
<button
name="cancel-delete"
class="btn-ghost btn-sm btn"
on:click|preventDefault={toggleDeleteConfirm}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
width="16"
height="16"
>
<path
class="fill-base-content"
d="M2.344 2.343h-.001a8 8 0 0 1 11.314 11.314A8.002 8.002 0 0 1 .234 10.089a8 8 0 0 1 2.11-7.746Zm1.06 10.253a6.5 6.5 0 1 0 9.108-9.275 6.5 6.5 0 0 0-9.108 9.275ZM6.03 4.97 8 6.94l1.97-1.97a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l1.97 1.97a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-1.97 1.97a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L6.94 8 4.97 6.03a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018Z"
/>
</svg>
</button>
</div>
{:else}
<div class="flex flex-col space-y-1.5">
<p class="text-sm font-light max-w-[25ch] break-words">
{truncate(chat.subtitle, 100)}
</p>
<span
class="text-xs font-semibold max-w-[25ch] break-words"
>{chat.model}</span
>
<span class="text-xs"
>{timeSince(chat.created) + " ago"}</span
>
</div>
</div>
</div>
<div
class="absolute bottom-1.5 right-2 opacity-0 group-hover:opacity-100 transition-opacity duration-300"
>
{#if deleteConfirm}
<div class="flex flex-row items-center space-x-2">
<button
class="btn-ghost btn-sm btn"
name="confirm-delete"
class="btn btn-sm btn"
on:click|preventDefault={() => deleteChat(chat.id)}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
width="16"
height="16"
>
<path
class="fill-base-content"
d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm1.5 0a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm10.28-1.72-4.5 4.5a.75.75 0 0 1-1.06 0l-2-2a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l1.47 1.47 3.97-3.97a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"
/>
</svg>
</button>
<button
name="cancel-delete"
class="btn btn-sm btn"
on:click|preventDefault={toggleDeleteConfirm}
>
<svg
@ -264,26 +266,189 @@
>
<path
class="fill-base-content"
d="M11 1.75V3h2.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75ZM4.496 6.675l.66 6.6a.25.25 0 0 0 .249.225h5.19a.25.25 0 0 0 .249-.225l.66-6.6a.75.75 0 0 1 1.492.149l-.66 6.6A1.748 1.748 0 0 1 10.595 15h-5.19a1.75 1.75 0 0 1-1.741-1.575l-.66-6.6a.75.75 0 1 1 1.492-.15ZM6.5 1.75V3h3V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25Z"
d="M2.344 2.343h-.001a8 8 0 0 1 11.314 11.314A8.002 8.002 0 0 1 .234 10.089a8 8 0 0 1 2.11-7.746Zm1.06 10.253a6.5 6.5 0 1 0 9.108-9.275 6.5 6.5 0 0 0-9.108 9.275ZM6.03 4.97 8 6.94l1.97-1.97a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l1.97 1.97a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-1.97 1.97a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L6.94 8 4.97 6.03a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018Z"
/>
</svg>
</button>
{/if}
<!-- {/if} -->
</div>
</div>
{:else}
<button
class="btn btn-sm btn"
on:click|preventDefault={toggleDeleteConfirm}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
width="16"
height="16"
>
<path
class="fill-base-content"
d="M11 1.75V3h2.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75ZM4.496 6.675l.66 6.6a.25.25 0 0 0 .249.225h5.19a.25.25 0 0 0 .249-.225l.66-6.6a.75.75 0 0 1 1.492.149l-.66 6.6A1.748 1.748 0 0 1 10.595 15h-5.19a1.75 1.75 0 0 1-1.741-1.575l-.66-6.6a.75.75 0 1 1 1.492-.15ZM6.5 1.75V3h3V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25Z"
/>
</svg>
</button>
{/if}
</div>
</div>
</div>
</a>
</li>
{/each}
</a>
</li>
{/each}
{/if}
</ul>
<div class="w-full border-t border-base-content/[.2] pt-1">
{#if deleteAllConfirm}
{#if data.userData?.username === "system"}
<button
class="btn btn-ghost w-full flex flex-row justify-between items-center p-2.5 text-left text-sm capitalize"
name="login-btn"
class="btn btn-ghost w-full flex justify-start items-center p-2.5 text-left text-sm capitalize"
on:click={() => goto("/login")}
>
<div class="h-6 flex flex-row items-center">
<svg
xmlns="http://www.w3.org/2000/svg"
width="18"
height="18"
fill="currentColor"
class="mr-3"
viewBox="0 0 16 16"
>
<path
d="M12.5 16a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7m1.679-4.493-1.335 2.226a.75.75 0 0 1-1.174.144l-.774-.773a.5.5 0 0 1 .708-.708l.547.548 1.17-1.951a.5.5 0 1 1 .858.514M11 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0M8 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4"
/>
<path
d="M8.256 14a4.5 4.5 0 0 1-.229-1.004H3c.001-.246.154-.986.832-1.664C4.484 10.68 5.711 10 8 10q.39 0 .74.025c.226-.341.496-.65.804-.918Q8.844 9.002 8 9c-5 0-6 3-6 4s1 1 1 1z"
/>
</svg>
<span>Login</span>
</button>
<button
name="create-btn"
class="btn btn-ghost w-full flex justify-start items-center p-2.5 text-left text-sm capitalize"
on:click={() => goto("/signup")}
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="18"
height="18"
fill="currentColor"
class="mr-3"
viewBox="0 0 16 16"
>
<path
d="M12.5 16a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7m.5-5v1h1a.5.5 0 0 1 0 1h-1v1a.5.5 0 0 1-1 0v-1h-1a.5.5 0 0 1 0-1h1v-1a.5.5 0 0 1 1 0m-2-6a3 3 0 1 1-6 0 3 3 0 0 1 6 0M8 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4"
/>
<path
d="M8.256 14a4.5 4.5 0 0 1-.229-1.004H3c.001-.246.154-.986.832-1.664C4.484 10.68 5.711 10 8 10q.39 0 .74.025c.226-.341.496-.65.804-.918Q8.844 9.002 8 9c-5 0-6 3-6 4s1 1 1 1z"
/>
</svg>
<span>Create Account</span>
</button>
{:else}
<button
name="logout-btn"
class="btn btn-ghost w-full flex justify-start items-center p-2.5 text-left text-sm capitalize"
on:click={async () => {
const response = await fetch("/api/auth/logout", {
method: "POST",
});
data.userData = null;
window.location.href = "/";
}}
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="18"
height="18"
fill="currentColor"
class="mr-3"
viewBox="0 0 16 16"
>
<path
d="M11 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0M8 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4m0 5.996V14H3s-1 0-1-1 1-4 6-4q.845.002 1.544.107a4.5 4.5 0 0 0-.803.918A11 11 0 0 0 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664zM9 13a1 1 0 0 1 1-1v-1a2 2 0 1 1 4 0v1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1zm3-3a1 1 0 0 0-1 1v1h2v-1a1 1 0 0 0-1-1"
/>
</svg>
<span>Log Out</span>
</button>
<a
href="/account"
class="btn btn-ghost w-full flex justify-start items-center p-2.5 text-left text-sm capitalize"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
width="18"
height="18"
fill="currentColor"
class="mr-3"
>
<path
d="M8 0a8.2 8.2 0 0 1 .701.031C9.444.095 9.99.645 10.16 1.29l.288 1.107c.018.066.079.158.212.224.231.114.454.243.668.386.123.082.233.09.299.071l1.103-.303c.644-.176 1.392.021 1.82.63.27.385.506.792.704 1.218.315.675.111 1.422-.364 1.891l-.814.806c-.049.048-.098.147-.088.294.016.257.016.515 0 .772-.01.147.038.246.088.294l.814.806c.475.469.679 1.216.364 1.891a7.977 7.977 0 0 1-.704 1.217c-.428.61-1.176.807-1.82.63l-1.102-.302c-.067-.019-.177-.011-.3.071a5.909 5.909 0 0 1-.668.386c-.133.066-.194.158-.211.224l-.29 1.106c-.168.646-.715 1.196-1.458 1.26a8.006 8.006 0 0 1-1.402 0c-.743-.064-1.289-.614-1.458-1.26l-.289-1.106c-.018-.066-.079-.158-.212-.224a5.738 5.738 0 0 1-.668-.386c-.123-.082-.233-.09-.299-.071l-1.103.303c-.644.176-1.392-.021-1.82-.63a8.12 8.12 0 0 1-.704-1.218c-.315-.675-.111-1.422.363-1.891l.815-.806c.05-.048.098-.147.088-.294a6.214 6.214 0 0 1 0-.772c.01-.147-.038-.246-.088-.294l-.815-.806C.635 6.045.431 5.298.746 4.623a7.92 7.92 0 0 1 .704-1.217c.428-.61 1.176-.807 1.82-.63l1.102.302c.067.019.177.011.3-.071.214-.143.437-.272.668-.386.133-.066.194-.158.211-.224l.29-1.106C6.009.645 6.556.095 7.299.03 7.53.01 7.764 0 8 0Zm-.571 1.525c-.036.003-.108.036-.137.146l-.289 1.105c-.147.561-.549.967-.998 1.189-.173.086-.34.183-.5.29-.417.278-.97.423-1.529.27l-1.103-.303c-.109-.03-.175.016-.195.045-.22.312-.412.644-.573.99-.014.031-.021.11.059.19l.815.806c.411.406.562.957.53 1.456a4.709 4.709 0 0 0 0 .582c.032.499-.119 1.05-.53 1.456l-.815.806c-.081.08-.073.159-.059.19.162.346.353.677.573.989.02.03.085.076.195.046l1.102-.303c.56-.153 1.113-.008 1.53.27.161.107.328.204.501.29.447.222.85.629.997 1.189l.289 1.105c.029.109.101.143.137.146a6.6 6.6 0 0 0 1.142 0c.036-.003.108-.036.137-.146l.289-1.105c.147-.561.549-.967.998-1.189.173-.086.34-.183.5-.29.417-.278.97-.423 1.529-.27l1.103.303c.109.029.175-.016.195-.045.22-.313.411-.644.573-.99.014-.031.021-.11-.059-.19l-.815-.806c-.411-.406-.562-.957-.53-1.456a4.709 4.709 0 0 0 0-.582c-.032-.499.119-1.05.53-1.456l.815-.806c.081-.08.073-.159.059-.19a6.464 6.464 0 0 0-.573-.989c-.02-.03-.085-.076-.195-.046l-1.102.303c-.56.153-1.113.008-1.53-.27a4.44 4.44 0 0 0-.501-.29c-.447-.222-.85-.629-.997-1.189l-.289-1.105c-.029-.11-.101-.143-.137-.146a6.6 6.6 0 0 0-1.142 0ZM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM9.5 8a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 9.5 8Z"
>
</path>
</svg>
<span>Settings</span>
</a>
{#if deleteAllConfirm}
<button
class="btn btn-ghost w-full flex flex-row justify-between items-center p-2.5 text-left text-sm capitalize"
>
<div class="h-6 flex flex-row items-center">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
width="18"
height="18"
fill="currentColor"
class="mr-3"
>
<path
d="M11 1.75V3h2.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75ZM4.496 6.675l.66 6.6a.25.25 0 0 0 .249.225h5.19a.25.25 0 0 0 .249-.225l.66-6.6a.75.75 0 0 1 1.492.149l-.66 6.6A1.748 1.748 0 0 1 10.595 15h-5.19a1.75 1.75 0 0 1-1.741-1.575l-.66-6.6a.75.75 0 1 1 1.492-.15ZM6.5 1.75V3h3V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25Z"
>
</path>
</svg>
<span>Clear Chats</span>
</div>
<div class="h-6 flex flex-row items-center">
<button
name="confirm-delete"
class="btn-ghost btn-sm btn"
on:click|preventDefault={() => deleteAllChat()}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
width="16"
height="16"
>
<path
class="fill-base-content"
d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm1.5 0a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm10.28-1.72-4.5 4.5a.75.75 0 0 1-1.06 0l-2-2a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l1.47 1.47 3.97-3.97a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"
/>
</svg>
</button>
<button
name="cancel-delete"
class="btn-ghost btn-sm btn"
on:click|preventDefault={toggleDeleteAllConfirm}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
width="16"
height="16"
>
<path
class="fill-base-content"
d="M2.344 2.343h-.001a8 8 0 0 1 11.314 11.314A8.002 8.002 0 0 1 .234 10.089a8 8 0 0 1 2.11-7.746Zm1.06 10.253a6.5 6.5 0 1 0 9.108-9.275 6.5 6.5 0 0 0-9.108 9.275ZM6.03 4.97 8 6.94l1.97-1.97a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l1.97 1.97a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-1.97 1.97a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L6.94 8 4.97 6.03a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018Z"
/>
</svg>
</button>
</div>
</button>
{:else}
<button
on:click|preventDefault={toggleDeleteAllConfirm}
class="btn btn-ghost w-full flex justify-start items-center p-2.5 text-left text-sm capitalize"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
@ -298,71 +463,14 @@
</path>
</svg>
<span>Clear Chats</span>
</div>
<div class="h-6 flex flex-row items-center">
<button
name="confirm-delete"
class="btn-ghost btn-sm btn"
on:click|preventDefault={() => deleteAllChat()}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
width="16"
height="16"
>
<path
class="fill-base-content"
d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm1.5 0a6.5 6.5 0 1 0 13 0 6.5 6.5 0 0 0-13 0Zm10.28-1.72-4.5 4.5a.75.75 0 0 1-1.06 0l-2-2a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l1.47 1.47 3.97-3.97a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042Z"
/>
</svg>
</button>
<button
name="cancel-delete"
class="btn-ghost btn-sm btn"
on:click|preventDefault={toggleDeleteAllConfirm}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
width="16"
height="16"
>
<path
class="fill-base-content"
d="M2.344 2.343h-.001a8 8 0 0 1 11.314 11.314A8.002 8.002 0 0 1 .234 10.089a8 8 0 0 1 2.11-7.746Zm1.06 10.253a6.5 6.5 0 1 0 9.108-9.275 6.5 6.5 0 0 0-9.108 9.275ZM6.03 4.97 8 6.94l1.97-1.97a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l1.97 1.97a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-1.97 1.97a.749.749 0 0 1-1.275-.326.749.749 0 0 1 .215-.734L6.94 8 4.97 6.03a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018Z"
/>
</svg>
</button>
</div>
</button>
{:else}
<button
on:click|preventDefault={toggleDeleteAllConfirm}
class="btn btn-ghost w-full flex justify-start items-center p-2.5 text-left text-sm capitalize"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
width="18"
height="18"
fill="currentColor"
class="mr-3"
>
<path
d="M11 1.75V3h2.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75ZM4.496 6.675l.66 6.6a.25.25 0 0 0 .249.225h5.19a.25.25 0 0 0 .249-.225l.66-6.6a.75.75 0 0 1 1.492.149l-.66 6.6A1.748 1.748 0 0 1 10.595 15h-5.19a1.75 1.75 0 0 1-1.741-1.575l-.66-6.6a.75.75 0 1 1 1.492-.15ZM6.5 1.75V3h3V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25Z"
>
</path>
</svg>
<span>Clear Chats</span>
</button>
</button>
{/if}
{/if}
<button
on:click={toggleTheme}
class="btn btn-ghost w-full flex justify-start items-center p-2.5 text-left text-sm capitalize"
>
<label class="swap swap-rotate">
<input type="checkbox" />
<label class="swap swap-rotate" for="theme-toggle">
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
@ -392,29 +500,12 @@
</label>
<span>{theme == "dark" ? "Light" : "Dark"} theme</span>
</button>
<a
href="/"
class="btn btn-ghost w-full flex justify-start items-center p-2.5 text-left text-sm capitalize"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
width="18"
height="18"
fill="currentColor"
class="mr-3"
>
<path
d="M8 0a8.2 8.2 0 0 1 .701.031C9.444.095 9.99.645 10.16 1.29l.288 1.107c.018.066.079.158.212.224.231.114.454.243.668.386.123.082.233.09.299.071l1.103-.303c.644-.176 1.392.021 1.82.63.27.385.506.792.704 1.218.315.675.111 1.422-.364 1.891l-.814.806c-.049.048-.098.147-.088.294.016.257.016.515 0 .772-.01.147.038.246.088.294l.814.806c.475.469.679 1.216.364 1.891a7.977 7.977 0 0 1-.704 1.217c-.428.61-1.176.807-1.82.63l-1.102-.302c-.067-.019-.177-.011-.3.071a5.909 5.909 0 0 1-.668.386c-.133.066-.194.158-.211.224l-.29 1.106c-.168.646-.715 1.196-1.458 1.26a8.006 8.006 0 0 1-1.402 0c-.743-.064-1.289-.614-1.458-1.26l-.289-1.106c-.018-.066-.079-.158-.212-.224a5.738 5.738 0 0 1-.668-.386c-.123-.082-.233-.09-.299-.071l-1.103.303c-.644.176-1.392-.021-1.82-.63a8.12 8.12 0 0 1-.704-1.218c-.315-.675-.111-1.422.363-1.891l.815-.806c.05-.048.098-.147.088-.294a6.214 6.214 0 0 1 0-.772c.01-.147-.038-.246-.088-.294l-.815-.806C.635 6.045.431 5.298.746 4.623a7.92 7.92 0 0 1 .704-1.217c.428-.61 1.176-.807 1.82-.63l1.102.302c.067.019.177.011.3-.071.214-.143.437-.272.668-.386.133-.066.194-.158.211-.224l.29-1.106C6.009.645 6.556.095 7.299.03 7.53.01 7.764 0 8 0Zm-.571 1.525c-.036.003-.108.036-.137.146l-.289 1.105c-.147.561-.549.967-.998 1.189-.173.086-.34.183-.5.29-.417.278-.97.423-1.529.27l-1.103-.303c-.109-.03-.175.016-.195.045-.22.312-.412.644-.573.99-.014.031-.021.11.059.19l.815.806c.411.406.562.957.53 1.456a4.709 4.709 0 0 0 0 .582c.032.499-.119 1.05-.53 1.456l-.815.806c-.081.08-.073.159-.059.19.162.346.353.677.573.989.02.03.085.076.195.046l1.102-.303c.56-.153 1.113-.008 1.53.27.161.107.328.204.501.29.447.222.85.629.997 1.189l.289 1.105c.029.109.101.143.137.146a6.6 6.6 0 0 0 1.142 0c.036-.003.108-.036.137-.146l.289-1.105c.147-.561.549-.967.998-1.189.173-.086.34-.183.5-.29.417-.278.97-.423 1.529-.27l1.103.303c.109.029.175-.016.195-.045.22-.313.411-.644.573-.99.014-.031.021-.11-.059-.19l-.815-.806c-.411-.406-.562-.957-.53-1.456a4.709 4.709 0 0 0 0-.582c-.032-.499.119-1.05.53-1.456l.815-.806c.081-.08.073-.159.059-.19a6.464 6.464 0 0 0-.573-.989c-.02-.03-.085-.076-.195-.046l-1.102.303c-.56.153-1.113.008-1.53-.27a4.44 4.44 0 0 0-.501-.29c-.447-.222-.85-.629-.997-1.189l-.289-1.105c-.029-.11-.101-.143-.137-.146a6.6 6.6 0 0 0-1.142 0ZM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM9.5 8a1.5 1.5 0 1 0-3.001.001A1.5 1.5 0 0 0 9.5 8Z"
>
</path>
</svg>
<span>Settings</span>
</a>
</div>
</div>
</aside>
<div class={"h-full" + (isSidebarOpen ? " ml-64 min-w-64" : " min-w-0")}>
<button on:click={hideSidebar} type="button"></button>
<div id="main_content" class="h-full w-full">
<slot />
</div>

View File

@ -7,6 +7,8 @@ interface ChatMetadata {
subtitle: string;
}
export const ssr = false; // off for now because ssr with auth is broken
export interface ModelStatus {
name: string;
size: number;
@ -14,14 +16,32 @@ export interface ModelStatus {
progress?: number;
}
export interface User {
id: string;
username: string;
email: string;
pref_theme: "light" | "dark";
full_name: string;
default_prompt: string;
}
export const load: LayoutLoad = async ({ fetch }) => {
let userData: User | null = null;
const api_chat = await fetch("/api/chat/");
const chats = (await api_chat.json()) as ChatMetadata[];
const model_api = await fetch("/api/model/all");
const models = (await model_api.json()) as ModelStatus[];
const userData_api = await fetch("/api/user/");
if (userData_api.ok) {
userData = (await userData_api.json()) as User;
}
return {
chats,
models,
userData,
};
};

View File

@ -17,6 +17,7 @@
let repeat_penalty = 1.3;
let init_prompt =
data.userData?.default_prompt ??
"Below is an instruction that describes a task. Write a response that appropriately completes the request.";
let n_threads = 4;
@ -53,7 +54,12 @@
An easy way to chat with LLaMA based models.
</h1>
<form on:submit|preventDefault={onCreateChat} id="form-create-chat" class="p-5">
<form
on:submit|preventDefault={onCreateChat}
id="form-create-chat"
class="p-5"
aria-label="Model Settings"
>
<div class="w-full pb-20">
<div class="mx-auto w-fit pt-5 flex flex-col lg:flex-row justify-center">
<button
@ -68,175 +74,181 @@
>
</div>
</div>
<div tabindex="-1" class="collapse-arrow rounded-box collapse bg-base-200">
<input type="checkbox" />
<div class="collapse-title text-xl font-medium">Model settings</div>
<div class="collapse-content">
<div class="grid grid-cols-3 gap-4 p-3">
<div
class="tooltip tooltip-bottom col-span-2"
data-tip="Controls how random the generated text is. Higher temperatures lead to more random and creative text, while lower temperatures lead to more predictable and conservative text."
<div class="flex justify-center">
<div class="grid grid-cols-3 gap-4 p-3 bg-base-200" id="model_settings">
<div class="col-span-3 text-xl font-medium">Model settings</div>
<div
class="tooltip tooltip-bottom col-span-2"
data-tip="Controls how random the generated text is. Higher temperatures lead to more random and creative text, while lower temperatures lead to more predictable and conservative text."
>
<label for="temperature" class="label-text"
>Temperature - [{temp}]</label
>
<label for="temperature" class="label-text"
>Temperature - [{temp}]</label
>
<input
name="temperature"
type="range"
bind:value={temp}
min="0.05"
max="2"
step="0.05"
class="range range-sm mt-auto"
/>
</div>
<div
class="tooltip tooltip-bottom flex flex-col"
data-tip="Controls the number of tokens that are considered when generating the next token. Higher values of top_k lead to more predictable text, while lower values of top_k lead to more creative text."
<input
id="temperature"
name="temperature"
type="range"
bind:value={temp}
min="0.05"
max="2"
step="0.05"
class="range range-sm mt-auto"
/>
</div>
<div
class="tooltip tooltip-bottom flex flex-col"
data-tip="Controls the number of tokens that are considered when generating the next token. Higher values of top_k lead to more predictable text, while lower values of top_k lead to more creative text."
>
<label for="top_k" class="label-text pb-1">top_k</label>
<input
id="top_k"
class="input-bordered input w-full"
name="top_k"
type="number"
bind:value={top_k}
min="0"
max="100"
/>
</div>
<div
class="tooltip tooltip-bottom col-span-2"
data-tip="The maximum number of tokens that the model will generate. This parameter can be used to control the length of the generated text."
>
<label for="max_length" class="label-text"
>Maximum generated tokens - [{max_length}]</label
>
<label for="top_k" class="label-text pb-1">top_k</label>
<input
class="input-bordered input w-full max-w-xs"
name="top_k"
type="number"
bind:value={top_k}
min="0"
max="100"
/>
</div>
<div
class="tooltip tooltip-bottom col-span-2"
data-tip="The maximum number of tokens that the model will generate. This parameter can be used to control the length of the generated text."
<input
id="max_length"
name="max_length"
type="range"
bind:value={max_length}
min="32"
max="32768"
step="16"
class="range range-sm mt-auto"
/>
</div>
<div
class="tooltip flex flex-col"
data-tip="Controls the diversity of the generated text. Higher values of top_p lead to more diverse text, while lower values of top_p lead to less diverse text."
>
<label for="top_p" class="label-text pb-1">top_p</label>
<input
class="input-bordered input w-full"
id="top_p"
name="top_p"
type="number"
bind:value={top_p}
min="0"
max="1"
step="0.025"
/>
</div>
<div
class="tooltip col-span-2"
data-tip="The number of previous tokens that are considered when generating the next token. A longer context length can help the model to generate more coherent and informative text."
>
<label for="context_window" class="label-text"
>Context Length - [{context_window}]</label
>
<label for="max_length" class="label-text"
>Maximum generated tokens - [{max_length}]</label
>
<input
name="max_length"
type="range"
bind:value={max_length}
min="32"
max="32768"
step="16"
class="range range-sm mt-auto"
/>
</div>
<div
class="tooltip flex flex-col"
data-tip="Controls the diversity of the generated text. Higher values of top_p lead to more diverse text, while lower values of top_p lead to less diverse text."
<input
id="context_window"
name="context_window"
type="range"
bind:value={context_window}
min="16"
max="2048"
step="16"
class="range range-sm mt-auto"
/>
</div>
<div
class="tooltip col-span-2"
data-tip="Number of layers to put on the GPU. The rest will be on the CPU."
>
<label for="gpu_layers" class="label-text"
>GPU Layers - [{gpu_layers}]</label
>
<label for="top_p" class="label-text pb-1">top_p</label>
<input
class="input-bordered input w-full max-w-xs"
name="top_p"
type="number"
bind:value={top_p}
min="0"
max="1"
step="0.025"
/>
</div>
<div
class="tooltip col-span-2"
data-tip="The number of previous tokens that are considered when generating the next token. A longer context length can help the model to generate more coherent and informative text."
<input
id="gpu_layers"
name="gpu_layers"
type="range"
bind:value={gpu_layers}
min="0"
max="100"
step="1"
class="range range-sm mt-auto"
/>
</div>
<div
class="tooltip flex flex-col"
data-tip="Defines the penalty associated with repeating the last 'n' tokens in a generated text sequence."
>
<label for="repeat_last_n" class="label-text pb-1">repeat_last_n</label>
<input
id="repeat_last_n"
class="input-bordered input w-full"
name="repeat_last_n"
type="number"
bind:value={repeat_last_n}
min="0"
max="100"
/>
</div>
<div class="flex flex-col">
<label for="model" class="label-text pb-1"> Model choice</label>
<select
name="model"
id="models"
class="select-bordered select w-full"
aria-haspopup="menu"
>
<label for="context_window" class="label-text"
>Context Length - [{context_window}]</label
>
<input
name="context_window"
type="range"
bind:value={context_window}
min="16"
max="2048"
step="16"
class="range range-sm mt-auto"
/>
</div>
<div
class="tooltip col-span-2"
data-tip="Number of layers to put on the GPU. The rest will be on the CPU."
>
<label for="gpu_layers" class="label-text"
>GPU Layers - [{gpu_layers}]</label
>
<input
name="gpu_layers"
type="range"
bind:value={gpu_layers}
min="0"
max="100"
step="1"
class="range range-sm mt-auto"
/>
</div>
<div
class="tooltip flex flex-col"
data-tip="Defines the penalty associated with repeating the last 'n' tokens in a generated text sequence."
>
<label for="repeat_last_n" class="label-text pb-1"
>repeat_last_n</label
>
<input
class="input-bordered input w-full max-w-xs"
name="repeat_last_n"
type="number"
bind:value={repeat_last_n}
min="0"
max="100"
/>
</div>
<div class="flex flex-col">
<label for="model" class="label-text pb-1"> Model choice</label>
<select name="model" class="select-bordered select w-full max-w-xs">
{#each modelsLabels as model}
<option value={model}>{model}</option>
{/each}
</select>
</div>
<div
class="tooltip flex flex-col"
data-tip="Number of threads to run LLaMA on."
>
<label for="n_threads" class="label-text pb-1">n_threads</label>
<input
class="input-bordered input w-full max-w-xs"
name="n_threads"
type="number"
bind:value={n_threads}
min="0"
max="64"
/>
</div>
<div
class="tooltip flex flex-col"
data-tip="Defines the penalty assigned to the model when it repeats certain tokens or patterns in the generated text."
>
<label for="repeat_penalty" class="label-text pb-1">
repeat_penalty
</label>
<input
class="input-bordered input w-full max-w-xs"
name="repeat_penalty"
type="number"
bind:value={repeat_penalty}
min="0"
max="2"
step="0.05"
/>
</div>
<div class="col-span-3 flex flex-col">
<label for="init_prompt" class="label-text pb-1"
>Prompt Template</label
>
<textarea
class="textarea-bordered textarea h-24 w-full"
name="init_prompt"
bind:value={init_prompt}
placeholder="Enter your prompt here"
/>
</div>
{#each modelsLabels as model}
<option id={model} value={model}>{model}</option>
{/each}
</select>
</div>
<div
class="tooltip flex flex-col"
data-tip="Number of threads to run LLaMA on."
>
<label for="n_threads" class="label-text pb-1">n_threads</label>
<input
id="n_threads"
class="input-bordered input w-full"
name="n_threads"
type="number"
bind:value={n_threads}
min="0"
max="64"
/>
</div>
<div
class="tooltip flex flex-col"
data-tip="Defines the penalty assigned to the model when it repeats certain tokens or patterns in the generated text."
>
<label for="repeat_penalty" class="label-text pb-1">
repeat_penalty
</label>
<input
id="repeat_penalty"
class="input-bordered input w-full"
name="repeat_penalty"
type="number"
bind:value={repeat_penalty}
min="0"
max="2"
step="0.05"
/>
</div>
<div class="col-span-3 flex flex-col">
<label for="init_prompt" class="label-text pb-1">Prompt Template</label>
<textarea
class="textarea-bordered textarea h-24 w-full"
name="init_prompt"
bind:value={init_prompt}
placeholder="Enter your prompt here"
/>
</div>
</div>
</div>

View File

@ -0,0 +1,106 @@
<script context="module" lang="ts">
export { load } from "./+page";
</script>
<script lang="ts">
import { writable } from "svelte/store";
import { goto } from "$app/navigation";
export let data: {
user: {
id: string;
username: string;
email: string;
full_name: string;
pref_theme: "light" | "dark";
default_prompt: string;
} | null;
};
let user = data.user;
let id: string = user?.id ?? "";
let username: string = user?.username ?? "";
let email: string = user?.email ?? "";
let full_name: string = user?.full_name ?? "";
let pref_theme: "light" | "dark" = user?.pref_theme ?? "light";
let default_prompt: string = user?.default_prompt ?? "";
let status = writable<string | null>(null);
async function handleSubmit(event: Event) {
event.preventDefault();
// Implement the update logic here, e.g., sending a PUT request to update user preferences
try {
await fetch("/api/user/", {
method: "PUT",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
id,
username,
email,
full_name,
pref_theme,
default_prompt,
}),
});
status.set("Preferences updated successfully");
goto("/", { invalidateAll: true });
} catch (error) {
if (error instanceof Error) {
status.set(error.message);
} else {
status.set("Failed to update preferences");
}
}
}
</script>
<main>
<div class="card-group">
<div class="card">
<div class="card-title p-3 text-3xl justify-center font-bold">
User Preferences
</div>
<div class="card-body">
{#if user}
<form on:submit={handleSubmit}>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">Username</span>
</div>
<input type="text" bind:value={username} disabled />
</div>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">Full Name</span>
</div>
<input id="full_name" type="text" bind:value={full_name} />
</div>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">Email</span>
</div>
<input id="email" type="email" bind:value={email} />
</div>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">Default Prompt</span>
</div>
<textarea
id="default_prompt"
bind:value={default_prompt}
style="resize:both; width:100%;"
/>
</div>
{#if $status}
<p>{$status}</p>
{/if}
<button class="btn" type="submit">Save Preferences</button>
</form>
{:else}
<p>Loading...</p>
{/if}
</div>
</div>
</div>
</main>

View File

@ -0,0 +1,27 @@
import type { Load } from "@sveltejs/kit";
interface User {
id: string;
username: string;
email: string;
pref_theme: "light" | "dark";
full_name: string;
default_prompt: string;
}
export const load: Load = async () => {
const user = await fetch("/api/user/", {
method: "GET",
})
.then((response) => {
if (response.status == 401) {
window.location.href = "/";
}
return response.json();
})
.catch((error) => {
console.log(error);
window.location.href = "/";
});
return { user };
};

View File

@ -127,7 +127,19 @@
accept: "application/json",
},
},
).then((response) => response.json());
)
.then((response) => {
if (response.status == 401) {
console.log("Not authorized");
window.location.href = "/";
} else {
return response.json();
}
})
.catch((error) => {
console.log(error);
window.location.href = "/";
});
await invalidate("/api/chat/");
await goto("/chat/" + newData);
}
@ -142,6 +154,8 @@
await invalidate("/api/chat/" + $page.params.id);
} else if (response.status === 202) {
showToast("Chat in progress!");
} else if (response.status === 401) {
window.location.href = "/";
} else {
showToast("An error occurred: " + response.statusText);
}
@ -276,12 +290,12 @@
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div
class="relative mx-auto h-full max-h-screen w-full overflow-hidden"
class="relative h-full max-h-screen overflow-hidden"
on:keydown={handleKeyDown}
>
<div class="w-full border-b border-base-content/[.2]">
<div class="h-8 px-2 md:container md:mx-auto md:px-0">
<div class="w-full h-full relative flex items-center justify-center">
<div class="mx-20">
<div class="h-8 justify-content border-b border-base-content/[.2]">
<div class="h-full relative flex items-center justify-center">
<div
class="flex flex-row items-center justify-center color-base-300"
title="Model"
@ -430,49 +444,46 @@
<div class="h-max pb-4">
{#each history as question, i}
{#if question.type === "human"}
<div class="w-full border-y border-base-content/[.2] bg-base-300">
<div class="w-11/12 mx-auto sm:w-10/12 chat chat-start py-4">
<div class="chat-image self-start pl-1 pt-1">
<div
class="mask mask-squircle online flex aspect-square w-8 items-center justify-center overflow-hidden bg-gradient-to-b from-primary to-primary-focus"
>
<span class="text-xs text-neutral-content">I</span>
</div>
</div>
<div class="w-10/12 mx-auto sm:w-10/12 chat chat-end py-4">
<div class="chat-image self-start pl-1 pt-1">
<div
class="chat-bubble whitespace-normal break-words bg-base-300 text-base font-light text-base-content"
class="mask mask-squircle online flex aspect-square w-8 items-center justify-center overflow-hidden bg-gradient-to-b from-primary to-primary-focus"
>
<!-- {question.data.content} -->
<div class="w-full overflow-hidden break-words">
{@html renderMarkdown(question.data.content)}
</div>
<span class="text-xs text-neutral-content">I</span>
</div>
{#if i === history.length - 1 && !isLoading}
<div style="width: 100%; text-align: right;">
<button
disabled={isLoading}
class="btn-ghost btn-sm btn"
on:click|preventDefault={() =>
deletePrompt(data.chat.id, i)}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
width="16"
height="16"
>
<path
class="fill-base-content"
d="M11 1.75V3h2.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75ZM4.496 6.675l.66 6.6a.25.25 0 0 0 .249.225h5.19a.25.25 0 0 0 .249-.225l.66-6.6a.75.75 0 0 1 1.492.149l-.66 6.6A1.748 1.748 0 0 1 10.595 15h-5.19a1.75 1.75 0 0 1-1.741-1.575l-.66-6.6a.75.75 0 1 1 1.492-.15ZM6.5 1.75V3h3V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25Z"
/>
</svg>
</button>
</div>
{/if}
</div>
<div
class="chat-bubble whitespace-normal break-words bg-base-300 text-base font-light text-base-content"
>
<!-- {question.data.content} -->
<div class="w-full overflow-hidden break-words">
{@html renderMarkdown(question.data.content)}
</div>
</div>
{#if i === history.length - 1 && !isLoading}
<div style="width: 100%; text-align: right;">
<button
disabled={isLoading}
class="btn-ghost btn-sm btn"
on:click|preventDefault={() => deletePrompt(data.chat.id, i)}
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
width="16"
height="16"
>
<path
class="fill-base-content"
d="M11 1.75V3h2.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75ZM4.496 6.675l.66 6.6a.25.25 0 0 0 .249.225h5.19a.25.25 0 0 0 .249-.225l.66-6.6a.75.75 0 0 1 1.492.149l-.66 6.6A1.748 1.748 0 0 1 10.595 15h-5.19a1.75 1.75 0 0 1-1.741-1.575l-.66-6.6a.75.75 0 1 1 1.492-.15ZM6.5 1.75V3h3V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25Z"
/>
</svg>
</button>
</div>
{/if}
</div>
{:else if question.type === "ai"}
<div class="w-11/12 mx-auto sm:w-10/12 chat chat-start py-4">
<div class="w-10/12 mx-auto sm:w-10/12 chat chat-start py-4">
<div class="chat-image self-start pl-1 pt-1">
<div
class="mask mask-squircle online flex aspect-square w-8 items-center justify-center overflow-hidden bg-gradient-to-b from-primary to-primary-focus"
@ -513,6 +524,7 @@
d="M11 1.75V3h2.25a.75.75 0 0 1 0 1.5H2.75a.75.75 0 0 1 0-1.5H5V1.75C5 .784 5.784 0 6.75 0h2.5C10.216 0 11 .784 11 1.75ZM4.496 6.675l.66 6.6a.25.25 0 0 0 .249.225h5.19a.25.25 0 0 0 .249-.225l.66-6.6a.75.75 0 0 1 1.492.149l-.66 6.6A1.748 1.748 0 0 1 10.595 15h-5.19a1.75 1.75 0 0 1-1.741-1.575l-.66-6.6a.75.75 0 1 1 1.492-.15ZM6.5 1.75V3h3V1.75a.25.25 0 0 0-.25-.25h-2.5a.25.25 0 0 0-.25.25Z"
/>
</svg>
<span class="sr-only">Delete</span>
</button>
</div>
{/if}
@ -552,7 +564,7 @@
class="btn btn-ghost h-10 w-14 rounded-l-none rounded-r-lg border-0 text-lg"
class:loading={isLoading}
on:click|preventDefault={askQuestion}
>
><span class="sr-only">Send</span>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"

View File

@ -28,12 +28,22 @@ interface Response {
id: string;
created: string;
params: Params;
owner: string;
history: Message[];
}
export const load: PageLoad = async ({ fetch, params }) => {
const r = await fetch("/api/chat/" + params.id);
const data = (await r.json()) as Response;
const data = await fetch("/api/chat/" + params.id)
.then((response) => {
if (response.status == 401) {
window.location.href = "/";
}
return response.json();
})
.catch((error) => {
console.log(error);
window.location.href = "/";
});
return {
chat: data,

View File

@ -0,0 +1,69 @@
<script lang="ts">
import { goto } from "$app/navigation";
import { writable } from "svelte/store";
let username = "";
let password = "";
let error = writable<string | null>(null);
async function handleSubmit(event: Event) {
event.preventDefault();
try {
const response = await fetch("/api/auth/token", {
method: "POST",
headers: {
"Content-Type": "application/x-www-form-urlencoded",
},
body: new URLSearchParams({
username,
password,
}),
});
if (response.ok) {
const data = await response.json();
localStorage.setItem("token", data.access_token);
goto("/", { invalidateAll: true });
} else {
const errorData = await response.json();
error.set(errorData.detail || "Login failed");
}
} catch (err) {
error.set("An error occurred");
}
}
</script>
<main>
<div class="card-group">
<div class="card">
<div class="card-title p-3 text-3xl justify-center font-bold">
Sign In
</div>
<div class="card-body">
<form on:submit={handleSubmit}>
<div class="form-control">
<input
type="text"
placeholder="Username"
bind:value={username}
required
/>
</div>
<div class="form-control">
<input
type="password"
placeholder="Password"
bind:value={password}
required
/>
</div>
{#if $error}
<p style="color: red;">{$error}</p>
{/if}
<button class="btn" type="submit">Authenticate</button>
</form>
</div>
</div>
</div>
</main>

View File

@ -264,7 +264,7 @@
}
</script>
<div class="top-section">
<div class="ml-12 pt-1">
<div class="search-row">
<input
type="text"
@ -327,6 +327,7 @@
<div class="model-details">
{#if models.length > 1}
<select
class="select-bordered select w-full"
bind:value={selectedVariant[prefix]}
on:change={(event) => handleVariantChange(prefix, event)}
>

View File

@ -0,0 +1,165 @@
<script lang="ts">
import { onMount } from "svelte";
import { goto } from "$app/navigation";
let username = "";
let secret = "";
let full_name = "";
let email = "";
let auth_type = 1;
let error = "";
let success = "";
async function handleSubmit(event: Event) {
event.preventDefault();
error = "";
success = "";
const response = await fetch("/api/user/create", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
username,
secret,
full_name,
email,
auth_type,
}),
});
if (response.ok) {
success = "User created successfully!";
await authAfterCreate(event);
goto("/account");
} else {
const data = await response.json();
error = data.detail || "An error occurred";
}
}
async function authAfterCreate(event: Event) {
event.preventDefault();
try {
const response = await fetch("/api/auth/token", {
method: "POST",
headers: {
"Content-Type": "application/x-www-form-urlencoded",
},
body: new URLSearchParams({
username: username,
password: secret,
}),
});
if (response.ok) {
goto("/", { invalidateAll: true });
} else {
const errorData = await response.json();
error = errorData.detail || "Login failed";
}
} catch (err) {
error = err instanceof Error ? err.message : "An unknown error occurred";
}
}
</script>
<main>
<div class="card-group">
<div class="card">
<div class="card-title p-3 text-3xl justify-center font-bold">
Register a new user
</div>
<div class="card-body">
<form on:submit={handleSubmit}>
<div class="form-control">
<input
type="text"
placeholder="Username"
bind:value={username}
required
/>
</div>
<div class="form-control">
<input
type="password"
placeholder="Password"
bind:value={secret}
required
/>
</div>
{#if error}
<p class="error-message">{error}</p>
{/if}
{#if success}
<p class="success-message">{success}</p>
{/if}
<button class="btn" type="submit">Submit</button>
</form>
</div>
</div>
<div class="card">
<div class="card-title p-3 text-3xl justify-center font-bold">
Or link an account (comming soon)
</div>
<div class="card-body">
<button name="google-btn" class="btn" disabled={true}>
<svg
xmlns="http://www.w3.org/2000/svg"
width="18"
height="18"
fill="currentColor"
viewBox="0 0 16 16"
>
<path
d="M15.545 6.558a9.4 9.4 0 0 1 .139 1.626c0 2.434-.87 4.492-2.384 5.885h.002C11.978 15.292 10.158 16 8 16A8 8 0 1 1 8 0a7.7 7.7 0 0 1 5.352 2.082l-2.284 2.284A4.35 4.35 0 0 0 8 3.166c-2.087 0-3.86 1.408-4.492 3.304a4.8 4.8 0 0 0 0 3.063h.003c.635 1.893 2.405 3.301 4.492 3.301 1.078 0 2.004-.276 2.722-.764h-.003a3.7 3.7 0 0 0 1.599-2.431H8v-3.08z"
/>
</svg>
<span>Link Google Account</span>
</button>
<button name="reddit-btn" class="btn" disabled={true}>
<svg
xmlns="http://www.w3.org/2000/svg"
width="18"
height="18"
fill="currentColor"
viewBox="0 0 16 16"
>
<path
d="M6.167 8a.83.83 0 0 0-.83.83c0 .459.372.84.83.831a.831.831 0 0 0 0-1.661m1.843 3.647c.315 0 1.403-.038 1.976-.611a.23.23 0 0 0 0-.306.213.213 0 0 0-.306 0c-.353.363-1.126.487-1.67.487-.545 0-1.308-.124-1.671-.487a.213.213 0 0 0-.306 0 .213.213 0 0 0 0 .306c.564.563 1.652.61 1.977.61zm.992-2.807c0 .458.373.83.831.83s.83-.381.83-.83a.831.831 0 0 0-1.66 0z"
/>
<path
d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-3.828-1.165c-.315 0-.602.124-.812.325-.801-.573-1.9-.945-3.121-.993l.534-2.501 1.738.372a.83.83 0 1 0 .83-.869.83.83 0 0 0-.744.468l-1.938-.41a.2.2 0 0 0-.153.028.2.2 0 0 0-.086.134l-.592 2.788c-1.24.038-2.358.41-3.17.992-.21-.2-.496-.324-.81-.324a1.163 1.163 0 0 0-.478 2.224q-.03.17-.029.353c0 1.795 2.091 3.256 4.669 3.256s4.668-1.451 4.668-3.256c0-.114-.01-.238-.029-.353.401-.181.688-.592.688-1.069 0-.65-.525-1.165-1.165-1.165"
/>
</svg>
<span>Link Reddit Account</span>
</button>
</div>
</div>
<div class="card">
<div class="card-title pt-3 text-3xl justify-center font-bold">
Already have an account?
</div>
<div class="card-body">
<button name="login-btn" class="btn" on:click={() => goto("/login")}>
<svg
xmlns="http://www.w3.org/2000/svg"
width="18"
height="18"
fill="currentColor"
class="mr-3"
viewBox="0 0 16 16"
>
<path
d="M12.5 16a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7m1.679-4.493-1.335 2.226a.75.75 0 0 1-1.174.144l-.774-.773a.5.5 0 0 1 .708-.708l.547.548 1.17-1.951a.5.5 0 1 1 .858.514M11 5a3 3 0 1 1-6 0 3 3 0 0 1 6 0M8 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4"
/>
<path
d="M8.256 14a4.5 4.5 0 0 1-.229-1.004H3c.001-.246.154-.986.832-1.664C4.484 10.68 5.711 10 8 10q.39 0 .74.025c.226-.341.496-.65.804-.918Q8.844 9.002 8 9c-5 0-6 3-6 4s1 1 1 1z"
/>
</svg>
<span>Login Instead</span>
</button>
</div>
</div>
</div>
</main>