Commit graph

35 commits

Author SHA1 Message Date
Luc Georges 54b25a8731
feat: add socket connection (#72) 2024-02-07 15:06:58 +01:00
Luc Georges 455b085c96
refactor: error handling (#71) 2024-02-07 12:34:17 +01:00
Luc Georges a9831d5720
refactor: adaptor -> backend (#70) 2024-02-06 21:26:53 +01:00
Markus Hennerbichler 1499fd6cbf
Only warn of rate-limits when using HF endpoint (#58)
* Only warn of rate-limits when using HF endpoint

Co-authored-by: Luc Georges <McPatate@users.noreply.github.com>
2024-02-05 21:05:52 +01:00
Markus Hennerbichler c9a44e591c
Fix handling of end-of-file (#60)
* Fix underflow on empty line

* Update crates/llm-ls/src/main.rs

Co-authored-by: Luc Georges <McPatate@users.noreply.github.com>

* Update crates/llm-ls/src/main.rs

Co-authored-by: Luc Georges <McPatate@users.noreply.github.com>

---------

Co-authored-by: Luc Georges <McPatate@users.noreply.github.com>
2024-02-05 18:37:24 +01:00
Markus Hennerbichler 16606e5371
Fix off-by-1 error when removing at end (#61) 2024-01-28 23:25:14 +01:00
Markus Hennerbichler c2fbac20ee
Ignore documents with "output" scheme (#59) 2024-01-28 23:21:19 +01:00
Markus Hennerbichler ec2072a621
Fix off-by-1 in prompt creation (#64) 2024-01-28 23:19:15 +01:00
Markus Hennerbichler a5f2e87315
Account for FIM tokens in prompt (#62) 2024-01-28 23:16:01 +01:00
Markus Hennerbichler f40e8cc6ea
Convert generation parameters to snake_case for TGI adapter (#65) 2024-01-28 23:04:38 +01:00
Noah Baldwin 585ea3aae8
feat: add adaptors for various backends (#40)
* ollama
* tgi
* api-inference
* OpenAI based APIs
2024-01-02 18:56:01 +01:00
Diego ROJAS 2a433cdf75
Disable ropey unicode_lines feature (#50)
With the current configuration, Ropey recognises more EOL sequences than the Language Server Protocol. This mismatch can lead to errors when trying to maintain a mirror of the user's documents as the llm-ls might have more lines.

See: https://docs.rs/ropey/1.6.0/ropey/index.html#a-note-about-line-breaks
See: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocuments
2023-12-15 16:11:05 +01:00
Johan von Forstner b1d0eb4ffe
add support for Kotlin language (#52) 2023-12-15 15:01:40 +01:00
Luc Georges 6c4e0e4176
feat: parallelise at hole level (#44)
* feat: parallelise at hole level

* fix(ci): move strategy to testbed job

* feat: output json results file

* fix(ci): install jq

* fix(ci): add missing `runs-on`

* fix(ci): add dependency to testbed job

* fix(ci): invalid artifact key name

* fix(ci): add missing i in fastapi key

* feat(ci): make CI run different # of threads per repo

* fix(ci): results.json not in markdown

* feat: round output values

* fix: avoid creating zombie processes

* fix: check on word instead of line

* feat: recreate holes for long CI
2023-11-17 18:05:45 +01:00
Luc Georges 3ad64a32df
feat!: get completions camel case (#48)
* feat!: make API camelCase

* fix(testbed): update llm-ls API

* feat: sync docs with incremental change
2023-11-15 13:36:27 +01:00
Luc Georges 59185abfd9
feat!: make API camelCase (#46)
API had inconsistencies in case
2023-11-09 12:00:39 +01:00
Luc Georges f58085b812
fix(ci): outdated lance revision (#43) 2023-11-07 13:24:22 +01:00
Luc Georges c7affd0da9
feat: testbed (#39) 2023-11-06 21:26:37 +01:00
Luc Georges 4aacd7087b
feat: improve logging (#34)
* feat: imporve logging

* feat: bump to `0.4.0`

* docs: add features section in README
2023-10-18 11:12:37 +02:00
Luc Georges fdd55dd5c1
fix: new dependencies break CI (#31)
* fix: install `arm-linux-gnueabihf-g++` as suggested by err

* fix: restrict visibility of modules

* fix: add `g++-aarch64-linux-gnu`
2023-10-11 21:12:18 +02:00
Luc Georges cdbf76fd43
feat: improve suggestions based on AST (#30)
* feat: improve suggestions based on AST

* feat: bump version to `0.3.0`
2023-10-11 19:33:57 +02:00
Luc Georges b6d6c6cccd
feat: send warning to client when unauthenticated (#27) 2023-10-10 14:43:12 +02:00
Luc Georges fbaf98203f
fix: don't use tokenizer on config error (#22) 2023-09-25 15:10:29 +02:00
Luc Georges 787f2a1a26
feat: improve tokenizer config (#21)
* feat: improve tokenizer config

* fix: add untagged decorator to `TokenizerConfig`

* feat: bump version to `0.2.0`
2023-09-21 17:57:19 +02:00
Luc Georges eeb443feb3
feat: add user agent (#20)
* feat: add user agent

* feat: add mock_server to repo

* feat: bump to `0.1.1`
2023-09-21 14:32:21 +02:00
Luc Georges 7f9c7855d5
feat: add tokens to clear (#19) 2023-09-20 19:24:38 +02:00
Luc Georges 5378a67ce8
fix: advertise correct version to client (#16) 2023-09-15 18:24:14 +02:00
Luc Georges c869f96060
feat: add support for tls_skip_verify_insecure (#15) 2023-09-15 15:42:35 +02:00
Luc Georges 9508485fec
refactor: change default log level (#14) 2023-09-14 12:09:20 +02:00
Luc Georges 1550467f86
fix: clamp col pos to prevent an out of bound slicing range (#13) 2023-09-11 18:31:00 +02:00
Luc Georges 15c4ef3088
fix(ci): release workflow (#12) 2023-09-10 13:16:13 +02:00
Luc Georges 8c92eaa994
perf: put Tokenizer in an Arc to avoid cloning (#11) 2023-09-08 09:02:44 +02:00
Luc Georges d8b7e05a20
fix: support raw TGI call (#10)
* fix: support raw TGI call

* feat: prepare `0.0.2` release
2023-09-07 19:11:05 +02:00
Luc Georges c774ec74fd
fix: stop tokens issue (#9) 2023-09-07 16:29:44 +02:00
Luc Georges f5e6911932
feat: add CI for release (#8)
* feat: add release CI

* debug: disable `aarch64-unknown-linux-gnu` & add missing `pkgconfig`

* fix: add `g++` & `pkg-config`

* fix: install libssl-dev on ubuntu

* fix: add sudo in specific case

* fix: remove ssl dependency

* feat: update Cargo.lock

* fix: use gcc-multilib

* fix: disable aarch64-linux for now

* fix: disable problematic platforms

* fix: comment out `aarch64-pc-windows-msvc`

* fix: set allow deadcode for `Document.language_id`

* fix: set valid release tag
2023-09-05 13:32:35 +02:00