* feat(tabby-index): add filepath embedding tokens into code chunk
* refactor(answer): optimize file content handling and hit merging
- Simplified file content reading logic by removing unnecessary checks.
- Limited the number of hits per file to a maximum of 2.
* refactor(code): limit code search hits to at most two per file and increase LoC threshold
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* refactor(code): simplify token handling and improve chunk body formatting
* [autofix.ci] apply automated fixes
* chore: test retain_at_most_two_hits_per_file (#3418)
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Wei Zhang <kweizh@tabbyml.com>
* llm select FE sketch
* fetch model array & select model drop down
* finish model select function & to be polished
* fix selectedModel init value and style
* fix lint
* rename DropdownMenuItems
* refine feature toggle
* chore(answer): set chat model's name by selection
* refine model select dropdown position
* [autofix.ci] apply automated fixes
* properly fill model name
* rename selectedModelName to modelName
* uplift modelName state
* clean log
* format code
* fix lint
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* [autofix.ci] apply automated fixes (attempt 3/3)
* feat(ui): show tool bar in search page
* fix: fix ui test
* refactor(chart-ui): persist modelName and show modelName selection in followup
* handle selectedModel not in models api
* fix: throw warning when request model is not in supported_models
* fix: fix modelInfo?.chat not supported case and check request.mode is supported in BE
* fix: using warn! to print warning
* fix: fix ui lint
* update: ajust style and check if model is valid
* [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>
Co-authored-by: Meng Zhang <meng@tabbyml.com>
Co-authored-by: liangfung <1098486429@qq.com>
* fix: should build fim completion prompt for openai aliases
* chore: update fim list name
Co-authored-by: Meng Zhang <meng@tabbyml.com>
---------
Co-authored-by: Meng Zhang <meng@tabbyml.com>
* refactor(openai): mark suffix support legacy, use prompt as default
* [autofix.ci] apply automated fixes
* chore: specify more completion vendors
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* feat: replease crlf to lf in completions
* [autofix.ci] apply automated fixes
* chore: crlf logic should under service
* [autofix.ci] apply automated fixes
* chore: replace CRLF for prompt instead of segments
* [autofix.ci] apply automated fixes
* chore: use functions and ut for replacing crlf
* chore: rename generated to generated_text
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* bug: fix ignored local model
* feat: should redownload if part of models not found
* test: fix sha256 check returned error
* [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>
* finish main logic
* add ut
* [autofix.ci] apply automated fixes
* feat: use indexed model name
* chore: apply review from meng
* chore: revert unnecessary downloader change
* chore: fix ut
* chore: donwload one file each time
* [autofix.ci] apply automated fixes
* chore: fix ut
* chore: fix review from meng
* chore: fix ci
* chore: revert multibar
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* chore: filter download address tests should be serial
* chore: use the workspace dep for serial_test
---------
Co-authored-by: leili <lilei@deeproute.ai>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* feat: add stop words to model config
* chore: use the name stop_words_from_config
* [autofix.ci] apply automated fixes
* chore: fix snap test due to source file change
* chore: use empty text in addtional stop words
* chore: remove dup with_stop_words
* chore: fix unit test for code splitter
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* fix(db): enforce NOT NULL constraint on primary keys in access control tables
* feat(webserver): add user group management and membership update apis
* chore(webserver): implement UserGroupService.list
* make fix
* update graphql schema
* refactor(db): extract user_groups.rs
* [autofix.ci] apply automated fixes
* test(schema): add test cases for user group name regex
* test(user_groups): add unit test for UserGroupServiceImpl
* move access policy to service argument so it can be tested
* [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>
* fix(web_documents): web crawler should take crawlerStart into consideration for preset web documents
* fix id
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>