language_models: Use POST /completions endpoint for Zed provider (#29389)

This PR updates the Zed provider to use the `POST /completions`
endpoint.

There is no functional difference from `POST /completion`, but the
pluralized version reads better.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-04-24 22:58:02 -04:00 committed by GitHub
parent 7d9a55d101
commit 6bb6be826d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -531,7 +531,7 @@ impl CloudLanguageModel {
{
request_builder.uri(completions_url)
} else {
request_builder.uri(http_client.build_zed_llm_url("/completion", &[])?.as_ref())
request_builder.uri(http_client.build_zed_llm_url("/completions", &[])?.as_ref())
};
let request = request_builder
.header("Content-Type", "application/json")