* ✨ support reuse the same server if model id is equaled
Signed-off-by: Wei Zhang <kweizh@gmail.com>
* 🎨 fix review
Signed-off-by: Wei Zhang <kweizh@gmail.com>
* 🔨 should compare model in llama cpp server
Signed-off-by: Wei Zhang <kweizh@gmail.com>
* match case for creating completion and chat
Signed-off-by: Wei Zhang <kweizh@gmail.com>
* if let case for creating completion and chat
Signed-off-by: Wei Zhang <kweizh@gmail.com>
* add changelog
* rebase && make fix
---------
Signed-off-by: Wei Zhang <kweizh@gmail.com>
Co-authored-by: Meng Zhang <meng@tabbyml.com>
* fix(core): canonicalize git_url before performing code search
Previously, the git_url used in the index was not properly canonicalized, leading to inconsistencies when performing queries. This commit updates the code to ensure that the git_url is canonicalized before performing the code search.
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
* chore: dedupe issues / PRs indexing by updated_at
* add dedup logic with updated_at comparision
* refactor: extract doc.public
* refactor: combine SourceDocument and WebDocument
* add unit test to verify updated_at dedup logic work
* use query to compare date to avoid read date