Commit Graph

1075 Commits (fb879e5ddf1d7c3cfc0b6f3949c58b2997926868)

Author SHA1 Message Date
Meng Zhang fb879e5ddf
refactor(webserver): cleanup user crud (#935)
* refactor(webserver): cleanup user crud

* fix
2023-12-01 16:56:15 +00:00
Meng Zhang 19d773e7ad
feat: implement register api check with invitation code (#934)
* feat(webserver): implement is_admin_initialized graphql api

* refactor

* add unit test

* [autofix.ci] apply automated fixes

* renaming

* temp invitations

* update

* update

* implement register check

* test

* update invitations

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-02 00:14:29 +08:00
Meng Zhang 88e5187b57
feat(webserver): implement is_admin_initialized graphql api (#929)
* feat(webserver): implement is_admin_initialized graphql api

* refactor

* add unit test

* [autofix.ci] apply automated fixes

* renaming

* refactor: server -> locator

* fix unused

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-01 22:35:02 +08:00
Meng Zhang 5c52a71f77
refactor: extract ServiceLocator interface (#933)
* refactor: cleanup the dependency chain - ServerContext should be the only thing being public in server mod

* refactor ServiceLocator

* refactor: extract worker.rs

* refactor: move db as private repo of server

* rename server -> service
2023-12-01 22:16:59 +08:00
Meng Zhang 1a9cbdcc3c
feat(ee): implement auth claims (#932)
* feat(ee): implement auth claims

* fix test

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-01 12:46:01 +00:00
Meng Zhang 8d3be2ea36
fix: do not persist active chat id (#927) 2023-12-01 07:36:37 +00:00
Meng Zhang a4b1d75c1a
fix: tabby-ui should use AND condition to search function (#926) 2023-12-01 15:35:38 +08:00
xcnick 2c2c95ccd7
fix: output unicode characters error (#925) 2023-12-01 12:18:26 +08:00
Eric 79e704458d
feat(ee): implement user authentication api (#912)
* feat: impl user authentication

* resolve comments

* fix validation code name

* resolve comment
2023-12-01 10:22:53 +08:00
Meng Zhang ffd5ef3449
fix: avoid llama.cpp's racing (#923) 2023-11-30 23:52:20 +08:00
snoop b1dcea0b6c
fixed RUST_TOOLCHAIN arg (#924) 2023-11-30 23:36:42 +08:00
Meng Zhang 4bcc411e07
chore: fix autofix for goldentests (#921)
* chore: fix autofix for goldentests

* [autofix.ci] apply automated fixes

* [autofix.ci] apply automated fixes (attempt 2/3)

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-30 18:20:36 +08:00
Meng Zhang 8d1303d6e4
fix: properly recycle request id (#920) 2023-11-30 17:01:52 +08:00
Meng Zhang 30d2ba5f00
test: add chat golden test (#919)
* test: add chat golden test

* update
2023-11-30 08:26:55 +00:00
Meng Zhang 9c905e4849
feat: add rocm support (#913)
* Added build configurations for Intel and AMD hardware

* Improved rocm build

* Added options for OneAPI and ROCm

* Build llama using icx

* [autofix.ci] apply automated fixes

* Fixed rocm image

* Build ROCm

* Tried to adjust compile flags for SYCL

* Removed references to oneAPI

* Provide info about the used device for ROCm

* Added ROCm documentation

* Addressed review comments

* Refactored to expose generic accelerator information

* Pull request cleanup

* cleanup

* cleanup

* Delete .github/workflows/docker-cuda.yml

* Delete .github/workflows/docker-rocm.yml

* Delete crates/tabby-common/src/api/accelerator.rs

* update

* cleanup

* update

* update

* update

* update

---------

Co-authored-by: Cromefire_ <cromefire+git@pm.me>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-29 03:27:03 +00:00
Meng Zhang 2b131ad1d2
refactor: handle max output length in StopCondition (#910)
* refactor: handle max output length in StopCondition

* trim stop words

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-28 16:57:16 +08:00
Zhiming Ma c049f23a0c
feat(agent): format indentation if not match with editor config. (#911) 2023-11-28 16:57:02 +08:00
Meng Zhang edd33a326d
feat(loadtest): add loadtest tools (#906)
* add loadtest tools

* update

* [autofix.ci] apply automated fixes

* add readme

* cleanup legacy loadtest

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-28 14:34:00 +08:00
Meng Zhang b47abc661d
chore: extract individual test.yml (#908)
* chore: extract individual test.yml

* update

* update test-intellij

* add test-tabby-ui

* update

* update

* update

* update

* update

* update

* update

* update
2023-11-28 06:21:12 +00:00
Meng Zhang 316067cc53
chore(lint): add autofix-python (#907)
* chore(lint): add autofix-python

* Update autofix-python.yml
2023-11-28 13:49:12 +08:00
Meng Zhang e92a8c8005 Release 0.7.0-dev
http-api-bindings@0.7.0-dev
juniper-axum@0.7.0-dev
llama-cpp-bindings@0.7.0-dev
tabby@0.7.0-dev
tabby-common@0.7.0-dev
tabby-download@0.7.0-dev
tabby-inference@0.7.0-dev
tabby-scheduler@0.7.0-dev
tabby-webserver@0.7.0-dev

Generated by cargo-workspaces
2023-11-27 14:58:58 +08:00
Meng Zhang b1481b0e2e
chore: release 0.6.0 (#882)
* add loadtest

* release 0.6.0

* Release 0.6.0-rc.0

http-api-bindings@0.6.0-rc.0
juniper-axum@0.6.0-rc.0
llama-cpp-bindings@0.6.0-rc.0
tabby@0.6.0-rc.0
tabby-common@0.6.0-rc.0
tabby-download@0.6.0-rc.0
tabby-inference@0.6.0-rc.0
tabby-scheduler@0.6.0-rc.0
tabby-webserver@0.6.0-rc.0

Generated by cargo-workspaces

* Release 0.6.0-rc.1

http-api-bindings@0.6.0-rc.1
juniper-axum@0.6.0-rc.1
llama-cpp-bindings@0.6.0-rc.1
tabby@0.6.0-rc.1
tabby-common@0.6.0-rc.1
tabby-download@0.6.0-rc.1
tabby-inference@0.6.0-rc.1
tabby-scheduler@0.6.0-rc.1
tabby-webserver@0.6.0-rc.1

Generated by cargo-workspaces

* Release 0.6.0-rc.2

http-api-bindings@0.6.0-rc.2
juniper-axum@0.6.0-rc.2
llama-cpp-bindings@0.6.0-rc.2
tabby@0.6.0-rc.2
tabby-common@0.6.0-rc.2
tabby-download@0.6.0-rc.2
tabby-inference@0.6.0-rc.2
tabby-scheduler@0.6.0-rc.2
tabby-webserver@0.6.0-rc.2

Generated by cargo-workspaces

* Release 0.6.0

http-api-bindings@0.6.0
juniper-axum@0.6.0
llama-cpp-bindings@0.6.0
tabby@0.6.0
tabby-common@0.6.0
tabby-download@0.6.0
tabby-inference@0.6.0
tabby-scheduler@0.6.0
tabby-webserver@0.6.0

Generated by cargo-workspaces
2023-11-27 14:57:45 +08:00
Zhiming Ma 7d8bc3d488
fix(vscode): get text from other cells of current notebook as prompt. (#904) 2023-11-27 12:36:09 +08:00
Zhiming Ma 0d79f9f347
fix(intellij): update supported version range. (#903) 2023-11-27 11:46:12 +08:00
Meng Zhang 00cfbfa097
docs: Update configurations.md title to be Advanced Configuration 2023-11-26 23:03:41 +08:00
Meng Zhang 23a49beaa9
feat(ci): support manylinux build for cpu / cuda (#899) 2023-11-26 16:37:12 +08:00
Meng Zhang 2212171825
feat: add clipboard segment (#898)
* feat: add clipboard segment

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-26 11:27:03 +08:00
Meng Zhang a7202318b1
refactor: make language optional in TextGenerationOptions (#897)
* refactor: make language optional in TextGenerationOptions

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-26 11:17:31 +08:00
yan91083 39962c79ca
feat: add `tabby-eval` package to run e2e evaluation on modal (#893)
* updating predict.py, adding tabby_python_client package

* update predict.py

* move to tabby-eval directory

* delete old files

* update predict.py

* delete other folder files
2023-11-25 19:36:00 +08:00
Meng Zhang 1883058008
chore: set pre-release condition to be event_name == push 2023-11-25 13:55:24 +08:00
Lucy Gao ed6826408d
docs: add Loom video demo (#884)
* docs: add loom video demo

* docs: update wording

* update

---------

Co-authored-by: Meng Zhang <meng@tabbyml.com>
2023-11-24 16:33:25 +08:00
Zhiming Ma 52cf5fb613
feat(agent): support read clipboard as prompt (#885)
* feat(agent): add support for reading clipboard text as prompt.

* fix: add clipboard in context hash calculation.

* fix: set default allowed clipboard chars to 2000.
2023-11-24 14:56:31 +08:00
Meng Zhang 0857a10f31
fix: make runner card width equal in large screen (#883)
* fix: make runner card width equal in large screen

* chore: update build
2023-11-24 02:52:56 +00:00
Meng Zhang 843b33f088
chore: Delete .github/workflows/issue-translator.yml 2023-11-24 10:47:44 +08:00
Eric e78cc1f844
feat: add api to serve files under repositories (#851)
* feat: add api to serve files under repositories

* resolve comments

* resolve comments

* Update repositories.rs

* Update lib.rs

* resolve comment

---------

Co-authored-by: Meng Zhang <meng@tabbyml.com>
2023-11-24 01:58:56 +00:00
Magnus F 821ca2dead
fix: Skip creating `usage_anonymous_id` when TABBY_DISABLE_USAGE_COLLECTION is set (#864)
* dont write file if tracking is disabled

* remove comment, id is optional

* Update usage.rs

---------

Co-authored-by: Meng Zhang <meng@tabbyml.com>
2023-11-23 15:46:07 +00:00
Meng Zhang 9746865b8f fix: bad link in blog 2023-11-23 21:32:38 +08:00
Meng Zhang 048d02a609
docs: add coding llm leaderboard blog (#869)
* docs: add coding llm leaderboard blog

* accept suggestions

* update
2023-11-23 21:24:15 +08:00
Meng Zhang 818be1674a fix: use environment so pull requests from other fork can run ci 2023-11-23 20:17:45 +08:00
Meng Zhang 2192cc718f
feat: implement rust cargo.lock dependency extraction (#874)
* feat: implement rust cargo.lock dependency extraction

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-11-23 08:35:19 +00:00
Meng Zhang bb4ffe937b refactor: remove useless crates/tabby/Cargo.lock 2023-11-23 15:33:05 +08:00
Meng Zhang 3bd3a3304d
feat: implement worker unregistration (#872)
* feat: implement worker unregisteration logic

* refactor: rename HubError -> RegisterWorkerError
2023-11-23 06:22:04 +00:00
Zhiming Ma a067366b5d
fix(vscode): Hotfix 1.1.3. Do not show disconnected notification when initializing (#868)
* fix(vscode): Do not show disconnected notification when initializing.

* chore(vscode): vscode hotfix 1.1.3.
2023-11-23 11:42:53 +08:00
Meng Zhang 3bddd9fa64 fix: axum middlewares only handles routes that are registered 2023-11-23 09:31:39 +08:00
Meng Zhang 063678bfa6 feat: update tabby-ui 2023-11-23 09:31:39 +08:00
sonique6784 b9cb5a025e
feat: add support for Kotlin language (#813)
* feat: add support for Kotlin

* Update programming-languages.md

* Update Cargo.toml

* fix: kotlin missing TAGGING_QUERY

* docs: remove 0.5.0 warning as tabby adapt same format for remote / local storage

* feat: make --model optional, so user can start a chat only instance (#817)

* fix: mark tabby-ui as yarn managed

* fix: rust build caused by 1.74.0 release (#819)

* chore: exclude experimental directory for language stats

* chore: exclude ee/tabby-webserver/ui to language stats

* fix: move db path, fix compile error (#820)

* feat(vscode): Add dont-show-again for warnings.  Add online help links. (#821)

* refactor: delete contrib/jetson/Dockerfile as it's no longer compatible post 0.5

feel free to sending pr of adding it back if you get it work with llama.cpp based docker image

* feat(vim): update tabby-agent. (#824)

* feat(intellij): Add dont-show-again for warnings. Add more online help links. (#823)

* feat: implement basic dependency detection for python / rust (#825)

* refactor: extract tags mod for dataset.rs

* feat: implement basic dependency detection for python / rust

* fix: keep only direct dependency, clean up path (#827)

* feat: add support for Kotlin

* Update Cargo.toml

* fix: adjustment post rebase

* fix: added kotlin.scm to cover query tags

* fix: updated kotlin.scm

* remove definition import

Co-authored-by: Meng Zhang <meng@tabbyml.com>

* remove typealias

Co-authored-by: Meng Zhang <meng@tabbyml.com>

---------

Co-authored-by: Meng Zhang <meng@tabbyml.com>
Co-authored-by: Eric <illuminating.me@gmail.com>
Co-authored-by: Zhiming Ma <codes.icy@gmail.com>
2023-11-23 09:31:23 +08:00
aliang 24b14888ce
feat: Display registration token in webserver dashboard (#863)
* feat: display registration token

* Update page.tsx

---------

Co-authored-by: Meng Zhang <meng@tabbyml.com>
2023-11-23 08:58:21 +08:00
aliang f1e82d62e8
feat: Display remote workers in webserver dashboard (#848)
* feat: display remote workers

* refactor: useMergedWorkers

* fix: remove useless parameter

* fix: use-workers

* fix: warning silented
2023-11-22 18:53:36 +08:00
Meng Zhang 26e5f17664
refactor: change to vars.RUST_TOOLCHAIN for rust ci (#861)
* Update docker.yml

* Update ci.yml
2023-11-22 10:44:11 +08:00
Meng Zhang 2133f8f187
docs: set the quick start example to be StarCoder-1B 2023-11-22 09:32:45 +08:00