Commit Graph

2357 Commits

Author SHA1 Message Date
Zhiming Ma
3f83d44a6c
fix(vscode): Get git remote for explain code. (#2254)
* fix(vscode): Get git remote for explain code.

* fix: fix filepath when git url provided.
2024-05-28 10:42:08 +08:00
Walt Chen
867e50af9c
docs: apply plugin to vim by Vundle.vim (#2203) 2024-05-28 10:08:45 +08:00
Wang Zixiao
8f647537a6
fix(vscode): chat panel updates (#2252)
* html script

* fix vscode copy paste bug

* [autofix.ci] apply automated fixes

* update

* rebase and fix

* clean

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-05-28 09:14:28 +08:00
Meng Zhang
cbb7a41fca docs: add changelog for ollama integration 2024-05-28 08:12:34 +08:00
Meng Zhang
be8eaa6afe docs: add llama-server to unreleased change 2024-05-27 19:16:18 +08:00
Zhiming Ma
7205b788b3
refactor(agent&vscode): connect vscode extension to agent via lsp. (#2247)
* refactor(vscode): connect vscode extension to agent via lsp.

* fix: resolve rebase.

* chore: update npm script watch.

* fix(vscode): fix position type convert.
2024-05-27 18:22:21 +08:00
Lucy Gao
175d24984d
docs: update what's new (#2253)
* feat(ui): filtering repos by active status

relay

feat(ui): filtering repos by active status

* fetching

* rename

* sort

* update

* docs: update what's new

---------

Co-authored-by: liangfung <1098486429@qq.com>
2024-05-27 18:02:25 +08:00
aliang
d32dfd6ac0
fix(ui): display default user avatar in chat (#2251)
* fix(ui): display default user avatar in chat

* update

* [autofix.ci] apply automated fixes

* update

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-05-27 18:02:10 +08:00
aliang
55ce2ee9c7
fix(ui): fix the git provider placeholder (#2250) 2024-05-27 16:09:28 +08:00
Meng Zhang
a42975fd7b docs: update changelog 2024-05-27 16:02:20 +08:00
Meng Zhang
b6e00d9820
chore(webserver): set apalis poll interval to 5 seconds (#2246)
* chore(webserver): set apalis poll interval to 1 seconds

* update

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-05-27 15:38:45 +08:00
Wang Zixiao
443e1f91f9
feat(ui): modify name in profile (#2249) 2024-05-27 15:34:54 +08:00
Wang Zixiao
8c956b9a06
feat(ui): register with name (#2248)
* feat(ui): register with name

* fix test

* name required in registration

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-05-27 15:33:59 +08:00
Wang Zixiao
571b75c3d3
feat(vscode): add chat panel (#2234)
* wip

* update

* clean

* update

* theme stuff

* theme update

* fix chat background

* filter out workspace path and align indent

* update

* chat component style

* chat panel text size

* update navigate

* update

* navigate url

* [autofix.ci] apply automated fixes

* update chat style

* fixme comment for tmp solution

* handle pending

* update theme sync

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-05-27 11:25:04 +08:00
boxbeam
4d3a76c87d
test(webserver): add test for selecting primary email of github user (#2233)
* test(webserver): add test for selecting primary email of github user

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-05-27 06:58:32 +08:00
Meng Zhang
978de8b84a
refactor: extract IndexReaderProvider for DocSearchService / CodeSear… (#2242)
* refactor: extract IndexReaderProvider for DocSearchService / CodeSearchService

* update

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-05-26 23:13:26 +08:00
Meng Zhang
f9c42407cb
fix(scheduler): when index is recreated, the cache should be cleared (#2241) 2024-05-26 03:55:03 +00:00
Anton Kushakov
1d1edfec6e
feat: Added ollama api connection options (#2227)
* feat: Add ollama-api-binding crate

Add support of it in http-api-binding as well

* fix(ollama-api-binding): return empty stream if error occurs in completion

* refactor(ollama-api-binding): Control model pulling via env var

Added TABBY_OLLAMA_ALLOW_PULL env to enable pulling in Ollama

* refactor(ollama-api-bindings): Do not use first available model if template is specified.

It should be assumed that the user has tuned prompt or chat template for specific model, so it's better to ask the user to specify a model explicitly instead using a whatever model is available in the Ollama.

* refactor(http-api-bindings): Update ollama embedding kind name

* refactor(ollama-api-bindings): apply formatting

* refactor(http-api-bindings): Update ollama completion kind name

* refactor(http-api-bindings): Update ollama chat kind name
2024-05-26 09:13:32 +08:00
aliang
5aedf9c5d8
refactor(ui): display skeleton before onLoaded is executed (#2235) 2024-05-24 18:38:54 +08:00
aliang
eb0128fff6
fix(ui): scroll to bottom when a prompt is sent (#2231)
* fix(ui): scroll to bottom when a request is sent

* update

* update
2024-05-24 15:44:36 +08:00
boxbeam
0520d17beb
fix(webserver): fix repository_list in ThirdPartyRepositoryService (#2221)
* fix(webserver): fix and repository_list in ThirdPartyRepositoryService

* Add test for get_repository
2024-05-24 15:30:00 +08:00
aliang
47f10cd2fc
refactor(ui): auto scroll active code line into view (#2232) 2024-05-23 07:03:35 -07:00
Meng Zhang
8b247279da
chore: use json_object field to merge doc index and code index, making future index schema migration possible (#2229)
* chore: adapt json schema

* extract web builder

* migrate code index

* reorg

* migrate

* format id into different corpus

* migrate code search to united schema

* fix

* cleanup

* extract field_tokens

* extract field_chunk_tokens

* Update answer.rs

* update

* [autofix.ci] apply automated fixes

* restructure tabby_common::index

* cleanup again

* rename IndexSchema

* rename web -> doc

* rename web -> doc in tabby_common

* better naming for index

* better naming in index

* renaming

* renaming

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-05-23 06:14:01 +00:00
Meng Zhang
62498bea56
chore: add updated_at field to document schema, to allow filtering by date range field. (#2226) 2024-05-22 22:12:58 +00:00
Meng Zhang
564b09578d
feat(core): Add OpenAI embedding engine to http-api-bindings (#2224)
* feat(core): Add OpenAI embedding engine to http-api-bindings

* move first

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-05-22 21:43:25 +00:00
Meng Zhang
ee56e84bd6
chore: remove unused regex dependency and update tokenization logic, tune code scoring threshold a bit. (#2223) 2024-05-22 20:56:54 +00:00
boxbeam
013efc8b97
fix(webserver): use EnumIter to prevent forgetting to add new oauth variants (#2220) 2024-05-22 16:16:49 +00:00
aliang
9c878e7166
feat(ui): add multi context support to chat (#2205)
* feat(ui): multi context support

* git_url

* eventsource-parser

* navigation

* convert file context

* Update clients/tabby-chat-panel/src/index.ts

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

* update

* revert

* useLatest callback

* Update ee/tabby-ui/lib/types/chat.ts

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

* Update ee/tabby-ui/lib/types/chat.ts

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

* update

---------

Co-authored-by: Meng Zhang <meng@tabbyml.com>
2024-05-22 16:15:05 +00:00
Eric
4cc8eed83e
feat: fill user's name when register by oauth (#2192)
* feat: fill user's name when register by oauth

* add extra scope to fetch name info for google oauth

* [autofix.ci] apply automated fixes

* improve unit tests to test oauth user name

* fix gitlab integration

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-05-22 08:39:49 -07:00
aliang
892499806d
feat(ui): add gitlab sso support (#2219)
* feat(ui): add gitlab sso support

* format

* format

* add icon

* [autofix.ci] apply automated fixes

* styling

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-05-22 08:38:52 -07:00
Wang Zixiao
8b073cef4c
feat(chat-panel): add vscode bundle script (#2206)
* feat(chat-panel): add vscode bundle script

* update

* update

* update iframe size

* rename

* update

* update

* update

* add comment

* clean

* update lock

* build
2024-05-22 15:39:12 +08:00
Meng Zhang
a1cae7b38c
chore: split prod / dev for job db (#2216)
* chore: split prod / dev for job db

* update

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-05-21 17:33:42 -07:00
Meng Zhang
5027d466ed
chore(email): fix build (#2215)
* chore(email): fix build

* update
2024-05-21 15:07:43 -07:00
boxbeam
af5549a9ab
feat(webserver): allow specifying the url base for self-hosted github/gitlab instances (#2196)
* feat(webserver): allow specifying the url base for self-hosted github/gitlab instances

* Add validation message

* [autofix.ci] apply automated fixes

* Cleanup and apply suggestions

* Use schema::Result

* [autofix.ci] apply automated fixes

* Rebase

* [autofix.ci] apply automated fixes

* Add IntegrationKind variants for self hosted

* Add graphql endpoints for self-hosted integrations

* Remove anyhow usage

* [autofix.ci] apply automated fixes

* Apply suggestions

* Get api base in all cases from Integration::api_base

* Simplify code

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-05-21 21:48:04 +00:00
Meng Zhang
e50f04bb37
feat: migrate to pnpm (#2214)
* fix(chat-panel): FileContext.content shall be required field.

* fix: tabby agent build

* migrate vscode series

* fix tabby-ui build

* migrate all build pipeline

* cleanup lint / fix

* update test

* simplify workflow

* update

* update

* update

* update

* fix

* fix tabby-ui build

* fix name

* update

* update

* update

* update

* migrate tabby-email

* update
2024-05-21 21:43:15 +00:00
boxbeam
27557b5bce
feat(webserver): add gitlab SSO support (#2213)
* feat(webserver): add gitlab SSO support

* Fix create_authorization_url

* Error on email failure

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-05-21 14:31:44 -07:00
Meng Zhang
59b70e6dc1
fix: ChatCompletionRequest.presense_penalty shall be optional (#2211) 2024-05-21 17:57:58 +00:00
boxbeam
950842bbc3
fix(webserver): specify error message for failed integration sync jobs (#2210) 2024-05-21 17:41:39 +00:00
Meng Zhang
5655934af3
refactor: filter codesearch result by score, normalize score by numbe… (#2209)
* refactor: filter codesearch result by score, normalize score by number of tokens

* update

* [autofix.ci] apply automated fixes

* update

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-05-21 17:37:16 +00:00
Wang Zixiao
18863855d8
fix(ui): fix the duration display on the job list (#2208) 2024-05-21 06:25:06 -07:00
Wang Zixiao
b90154eafd
fix(ui): allow rendering chat without auth (#2185)
* fix(ui): allow rendering chat without auth

* update

* update
2024-05-21 12:44:11 +08:00
Anton Kushakov
98b7abda57
fix(docker): correct dockerfiles to fix build (#2204)
* fix(docker): Add missing && in Dockerfile

fixes:
cp: -r not specified; omitting directory '/opt/tabby/bin/'
cp: cannot stat 'cp': No such file or directory

* fix(docker): create tabby-cpu from bin that have copied already

`target/release` is not available in next instructions because it is mounted as cache
2024-05-20 20:45:10 -07:00
Meng Zhang
68059e55c0
feat(scheduler): add experimental doc index pipeline (#2201)
* refactor: move create_embedding function to llama_cpp_server module

* chore: add doc index crawler config

* feat(scheduler): add experimental doc index pipeline

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-05-21 03:01:46 +00:00
boxbeam
8e0d82f2b8
feat(db): migrate repositories from old tables to provided_repositories (#2188)
* feat(db): migrate repositories from old tables to provided_repositories

* Write unit test for migration

* [autofix.ci] apply automated fixes

* Remove old tables

* [autofix.ci] apply automated fixes

* Fix tests

* Move test

* Change migration code

* Update ee/tabby-db/migrations/0029_merged-provider-tables.down.sql

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

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Meng Zhang <meng@tabbyml.com>
2024-05-20 14:47:03 -07:00
Meng Zhang
e2e2c44123
refactor: use filepath to restrict code search query, remove similar computation filter in completion prompt construction (#2199)
* chore: add segments.filepath to logging

* refactor: use filepath to restrict code search query, remove similar computation filter in completion prompt construction

* update
2024-05-20 21:31:29 +00:00
Meng Zhang
959a05a97c
chore: remove unused code (#2198) 2024-05-20 20:06:31 +00:00
Meng Zhang
3b704961c4
docs: fix configuration redirection (#2197) 2024-05-20 12:39:49 -07:00
Meng Zhang
281e652ee9
chore: improve error message for smtp not configured (#2195) 2024-05-20 19:18:16 +00:00
Meng Zhang
911537d11f
docs: explain invite team members (#2194) 2024-05-20 11:40:48 -07:00
Meng Zhang
e293f23062
docs: add documentation around --webserver (#2193)
* docs: move usage collection documentation to /administration

* docs: rename getting-started to welcome

* docs: get rid of index page, use _category_.yml to specify sidebar label

* docs: migrate links from /docs/installation to /quick-start/installation

* docs: remove --no-webserver from installation guide

* docs: adjust installation guides

* docs: add register account and connect ide page

* fix links
2024-05-20 11:27:16 -07:00