mirror of
https://github.com/zed-industries/zed.git
synced 2026-08-24 16:34:46 +00:00
|
Some checks are pending
Congratsbot / check-author (push) Waiting to run
Congratsbot / congrats (push) Blocked by required conditions
deploy_nightly_docs / deploy_docs (push) Waiting to run
run_tests / check_scripts (push) Blocked by required conditions
run_tests / check_postgres_and_protobuf_migrations (push) Blocked by required conditions
run_tests / extension_tests (push) Blocked by required conditions
run_tests / check_workspace_binaries (push) Blocked by required conditions
run_tests / run_tests_windows (push) Blocked by required conditions
run_tests / orchestrate (push) Waiting to run
run_tests / check_style (push) Waiting to run
run_tests / clippy_windows (push) Blocked by required conditions
run_tests / clippy_linux (push) Blocked by required conditions
run_tests / clippy_mac (push) Blocked by required conditions
run_tests / clippy_mac_x86_64 (push) Blocked by required conditions
run_tests / run_tests_linux (push) Blocked by required conditions
run_tests / run_tests_mac (push) Blocked by required conditions
run_tests / miri_scheduler (push) Blocked by required conditions
run_tests / doctests (push) Blocked by required conditions
run_tests / build_visual_tests_binary (push) Blocked by required conditions
run_tests / check_wasm (push) Blocked by required conditions
run_tests / check_dependencies (push) Blocked by required conditions
run_tests / check_docs (push) Blocked by required conditions
run_tests / check_licenses (push) Blocked by required conditions
run_tests / tests_pass (push) Blocked by required conditions
Language model transport errors currently retain only a provider display name after an HTTP request fails. Downstream clients therefore cannot tell users which configured endpoint was unreachable without parsing the source error or hard-coding provider names. Make the request hostname a required part of `LanguageModelCompletionError::HttpSend` and preserve it through the Anthropic, OpenAI-compatible, OpenRouter, Vercel AI Gateway, and Zed Cloud transports. Each transport captures the parsed hostname from the request URI before sending it, using the configured base URL as the defensive fallback. This supports production, development, and custom endpoints without string matching. Tests exercise transport failures through the real request paths and verify hostnames for Anthropic, ChatGPT Subscription, generic OpenAI-compatible providers, and Zed Cloud. Testing: - `cargo fmt --check` - `cargo nextest run -p anthropic -p open_ai -p open_router -p language_models_cloud -p language_models` — 209 tests passed - `cargo check -p agent -p agent_ui --all-targets` - `git diff --check` - `./script/clippy -p language_model_core -p anthropic -p open_ai -p open_router -p language_models_cloud -p language_models` — clippy passed; the script subsequently failed in the repository-wide `cargo shear --deny-warnings` step on 203 pre-existing target and doctest configuration warnings Release Notes: - Improved language model connection errors to identify the unreachable host. |
||
|---|---|---|
| .. | ||
| language_model_core.rs | ||
| provider.rs | ||
| rate_limiter.rs | ||
| request.rs | ||
| role.rs | ||
| tool_schema.rs | ||
| util.rs | ||