Allow customization of the model used for tool calling (#15479)

We also eliminate the `completion` crate and moved its logic into
`LanguageModelRegistry`.

Release Notes:

- N/A

---------

Co-authored-by: Nathan <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2024-07-30 16:18:53 +02:00 committed by GitHub
parent 1bfea9d443
commit 99bc90a372
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
32 changed files with 478 additions and 691 deletions

28
Cargo.lock generated
View file

@ -406,7 +406,6 @@ dependencies = [
"clock",
"collections",
"command_palette_hooks",
"completion",
"ctor",
"editor",
"env_logger",
@ -2470,7 +2469,6 @@ dependencies = [
"clock",
"collab_ui",
"collections",
"completion",
"ctor",
"dashmap 6.0.1",
"dev_server_projects",
@ -2655,30 +2653,6 @@ dependencies = [
"gpui",
]
[[package]]
name = "completion"
version = "0.1.0"
dependencies = [
"anyhow",
"ctor",
"editor",
"env_logger",
"futures 0.3.28",
"gpui",
"language",
"language_model",
"project",
"rand 0.8.5",
"schemars",
"serde",
"serde_json",
"settings",
"smol",
"text",
"ui",
"unindent",
]
[[package]]
name = "concurrent-queue"
version = "2.2.0"
@ -6048,6 +6022,7 @@ dependencies = [
"serde",
"serde_json",
"settings",
"smol",
"strum",
"text",
"theme",
@ -9506,7 +9481,6 @@ dependencies = [
"client",
"clock",
"collections",
"completion",
"env_logger",
"fs",
"futures 0.3.28",