Route all LLM traffic through cloud.zed.dev (#34404)

This PR makes it so all LLM traffic is routed through `cloud.zed.dev`.

We're already routing `llm.zed.dev` to `cloud.zed.dev` on the server,
but we want to standardize on `cloud.zed.dev` moving forward.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-07-14 12:03:19 -04:00 committed by GitHub
parent 6673c7cd4c
commit eca36c502e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 13 additions and 71 deletions

View file

@ -226,21 +226,10 @@ impl HttpClientWithUrl {
}
/// Builds a Zed LLM URL using the given path.
pub fn build_zed_llm_url(
&self,
path: &str,
query: &[(&str, &str)],
use_cloud: bool,
) -> Result<Url> {
pub fn build_zed_llm_url(&self, path: &str, query: &[(&str, &str)]) -> Result<Url> {
let base_url = self.base_url();
let base_api_url = match base_url.as_ref() {
"https://zed.dev" => {
if use_cloud {
"https://cloud.zed.dev"
} else {
"https://llm.zed.dev"
}
}
"https://zed.dev" => "https://cloud.zed.dev",
"https://staging.zed.dev" => "https://llm-staging.zed.dev",
"http://localhost:3000" => "http://localhost:8787",
other => other,