ZIm/crates/collab/src
Antonio Scandurra d6bdaa8a91
Simplify LLM protocol (#15366)
In this pull request, we change the zed.dev protocol so that we pass the
raw JSON for the specified provider directly to our server. This avoids
the need to define a protobuf message that's a superset of all these
formats.

@bennetbo: We also changed the settings for available_models under
zed.dev to be a flat format, because the nesting seemed too confusing.
Can you help us upgrade the local provider configuration to be
consistent with this? We do whatever we need to do when parsing the
settings to make this simple for users, even if it's a bit more complex
on our end. We want to use versioning to avoid breaking existing users,
but need to keep making progress.

```json
"zed.dev": {
  "available_models": [
    {
      "provider": "anthropic",
        "name": "some-newly-released-model-we-havent-added",
        "max_tokens": 200000
      }
  ]
}
```

Release Notes:

- N/A

---------

Co-authored-by: Nathan <nathan@zed.dev>
2024-07-28 11:07:10 +02:00
..
api Add repl events (#15259) 2024-07-26 03:31:41 -04:00
bin Make it (a tiny bit) easier to run your own collab (#9557) 2024-03-20 21:00:02 -06:00
db Delete obsolete and unused remote_projects.rs (#14811) 2024-07-19 08:50:49 -06:00
rpc remoting: Allow Add/Remove remote folder (#14532) 2024-07-16 12:01:59 -06:00
tests chore: Fix clippy violations from Cargo.toml (#15216) 2024-07-25 20:22:01 +02:00
api.rs collab: Extract contributor endpoints to their own module (#15251) 2024-07-25 23:02:32 -04:00
auth.rs Upgrade base64 to v0.22 (#15304) 2024-07-26 17:40:38 -04:00
completion.rs Supermaven (#10788) 2024-05-03 12:50:42 -07:00
db.rs Reduce DB load upon initial connection due to channel loading (#12500) 2024-05-30 13:02:55 -07:00
env.rs Add an extensions API to the collaboration server (#7807) 2024-02-15 12:53:57 -08:00
errors.rs Remove more unused code related to GitHub auth and errors 2022-04-21 08:57:49 -06:00
executor.rs Remove 2 suffix for collab, rope, settings, menu 2024-01-03 12:29:16 -08:00
lib.rs Simplify LLM protocol (#15366) 2024-07-28 11:07:10 +02:00
main.rs fix: Typos (#15313) 2024-07-26 17:52:37 -07:00
rate_limiter.rs Fix logic errors in RateLimiter (#12421) 2024-05-29 12:05:40 +02:00
rpc.rs Simplify LLM protocol (#15366) 2024-07-28 11:07:10 +02:00
seed.rs Make it (a tiny bit) easier to run your own collab (#9557) 2024-03-20 21:00:02 -06:00
tests.rs Add the ability to edit remote directories over SSH (#14530) 2024-07-19 10:27:26 -07:00