huggingface / llm-ls

LSP server leveraging LLMs for code completion (and more?)
Apache License 2.0
553 stars 43 forks source link

fix: always set `return_full_text` to false for better UX #78

Closed McPatate closed 5 months ago

McPatate commented 5 months ago

Given that we now let the user specify every parameter that will be sent to the backend, the hardcoded return_full_text param we relied on using huggingface is unset which results in showing the start or the full prompt to the user instead of the completion.

Adding return_full_text: false to the request body when backend == "huggingface" | "tgi".

Closes #76