Add LM Studio support to the Assistant (#23097)

#### Release Notes:

- Added support for [LM Studio](https://lmstudio.ai/) to the Assistant.

#### Quick demo:


https://github.com/user-attachments/assets/af58fc13-1abc-4898-9747-3511016da86a

#### Future enhancements:
- wire up tool calling (new in [LM Studio
0.3.6](https://lmstudio.ai/blog/lmstudio-v0.3.6))

---------

Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
This commit is contained in:
Yagil Burowski
2025-01-14 20:41:58 +00:00
committed by GitHub
co-authored by Marshall Bowers
parent 4445679f3c
commit c038696aa8
24 changed files with 1153 additions and 2 deletions
Generated
+16
View File
@@ -406,6 +406,7 @@ dependencies = [
"language_model_selector",
"language_models",
"languages",
"lmstudio",
"log",
"lsp",
"markdown",
@@ -483,6 +484,7 @@ dependencies = [
"language_model",
"language_model_selector",
"language_models",
"lmstudio",
"log",
"lsp",
"markdown",
@@ -6682,6 +6684,7 @@ dependencies = [
"gpui",
"http_client",
"image",
"lmstudio",
"log",
"ollama",
"open_ai",
@@ -6727,6 +6730,7 @@ dependencies = [
"gpui",
"http_client",
"language_model",
"lmstudio",
"menu",
"ollama",
"open_ai",
@@ -7195,6 +7199,18 @@ dependencies = [
"libc",
]
[[package]]
name = "lmstudio"
version = "0.1.0"
dependencies = [
"anyhow",
"futures 0.3.31",
"http_client",
"schemars",
"serde",
"serde_json",
]
[[package]]
name = "lock_api"
version = "0.4.12"