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:
parent
7d9a55d101
commit
6bb6be826d
1 changed files with 1 additions and 1 deletions
|
@ -531,7 +531,7 @@ impl CloudLanguageModel {
|
||||||
{
|
{
|
||||||
request_builder.uri(completions_url)
|
request_builder.uri(completions_url)
|
||||||
} else {
|
} 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
|
let request = request_builder
|
||||||
.header("Content-Type", "application/json")
|
.header("Content-Type", "application/json")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue