Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
copilot_chat: Remove settings dependency (#62205)
Bennet Bo Fenner0fb9a9da4999
diff --git a/Cargo.lock b/Cargo.lockindex a216a5fa484..6efeb1bc431 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -3896,7 +3896,6 @@ dependencies = ["log","serde","serde_json",- "settings","util","zed_credentials_provider",]diff --git a/crates/copilot_chat/Cargo.toml b/crates/copilot_chat/Cargo.tomlindex 99a20fa5b5b..8dbec0e0c40 100644--- a/crates/copilot_chat/Cargo.toml+++ b/crates/copilot_chat/Cargo.toml@@ -14,10 +14,7 @@ doctest = false[features]default = []-test-support = [- "gpui/test-support",- "settings/test-support",-]+test-support = ["gpui/test-support"][dependencies]anthropic.workspace = true@@ -31,7 +28,6 @@ language_model.workspace = truelog.workspace = trueserde.workspace = trueserde_json.workspace = true-settings.workspace = trueutil.workspace = truezed_credentials_provider.workspace = truediff --git a/crates/copilot_chat/src/responses.rs b/crates/copilot_chat/src/responses.rsindex 8e32e272d88..5cb8cf0af4a 100644--- a/crates/copilot_chat/src/responses.rs+++ b/crates/copilot_chat/src/responses.rs@@ -4,9 +4,9 @@ use super::{ChatLocation, copilot_request_headers};use anyhow::{Result, anyhow};use futures::{AsyncBufReadExt, AsyncReadExt, StreamExt, io::BufReader, stream::BoxStream};use http_client::{AsyncBody, HttpClient, HttpRequestExt, Method, Request as HttpRequest};+pub use language_model::ReasoningEffort;use serde::{Deserialize, Serialize};use serde_json::Value;-pub use settings::OpenAiReasoningEffort as ReasoningEffort;#[derive(Serialize, Debug)]pub struct Request {