Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent: Update pieces of copy in the settings view (#35621)
Danilo Lealbe2f54b2339b
diff --git a/crates/agent_ui/src/agent_configuration.rs b/crates/agent_ui/src/agent_configuration.rsindex dad930be9e5..02c15b7e416 100644--- a/crates/agent_ui/src/agent_configuration.rs+++ b/crates/agent_ui/src/agent_configuration.rs@@ -539,7 +539,7 @@ impl AgentConfiguration {v_flex().gap_0p5().child(Headline::new("Model Context Protocol (MCP) Servers"))- .child(Label::new("Connect to context servers via the Model Context Protocol either via Zed extensions or directly.").color(Color::Muted)),+ .child(Label::new("Connect to context servers through the Model Context Protocol, either using Zed extensions or directly.").color(Color::Muted)),).children(context_server_ids.into_iter().map(|context_server_id| {diff --git a/crates/language_models/src/provider/anthropic.rs b/crates/language_models/src/provider/anthropic.rsindex 959cbccf39b..ef21e85f711 100644--- a/crates/language_models/src/provider/anthropic.rs+++ b/crates/language_models/src/provider/anthropic.rs@@ -1012,7 +1012,7 @@ impl Render for ConfigurationView {v_flex().size_full().on_action(cx.listener(Self::save_api_key))- .child(Label::new("To use Zed's assistant with Anthropic, you need to add an API key. Follow these steps:"))+ .child(Label::new("To use Zed's agent with Anthropic, you need to add an API key. Follow these steps:")).child(List::new().child(diff --git a/crates/language_models/src/provider/bedrock.rs b/crates/language_models/src/provider/bedrock.rsindex a86b3e78f54..6df96c5c566 100644--- a/crates/language_models/src/provider/bedrock.rs+++ b/crates/language_models/src/provider/bedrock.rs@@ -1251,7 +1251,7 @@ impl Render for ConfigurationView {v_flex().size_full().on_action(cx.listener(ConfigurationView::save_credentials))- .child(Label::new("To use Zed's assistant with Bedrock, you can set a custom authentication strategy through the settings.json, or use static credentials."))+ .child(Label::new("To use Zed's agent with Bedrock, you can set a custom authentication strategy through the settings.json, or use static credentials.")).child(Label::new("But, to access models on AWS, you need to:").mt_1()).child(List::new()diff --git a/crates/language_models/src/provider/copilot_chat.rs b/crates/language_models/src/provider/copilot_chat.rsindex 3cdc2e54014..73f73a9a313 100644--- a/crates/language_models/src/provider/copilot_chat.rs+++ b/crates/language_models/src/provider/copilot_chat.rs@@ -706,7 +706,8 @@ impl Render for ConfigurationView {.child(svg().size_8().path(IconName::CopilotError.path()))}_ => {- const LABEL: &str = "To use Zed's assistant with GitHub Copilot, you need to be logged in to GitHub. Note that your GitHub account must have an active Copilot Chat subscription.";+ const LABEL: &str = "To use Zed's agent with GitHub Copilot, you need to be logged in to GitHub. Note that your GitHub account must have an active Copilot Chat subscription.";+v_flex().gap_2().child(Label::new(LABEL)).child(Button::new("sign_in", "Sign in to use GitHub Copilot").icon_color(Color::Muted)diff --git a/crates/language_models/src/provider/google.rs b/crates/language_models/src/provider/google.rsindex bd8a09970a6..b287e8181a2 100644--- a/crates/language_models/src/provider/google.rs+++ b/crates/language_models/src/provider/google.rs@@ -880,7 +880,7 @@ impl Render for ConfigurationView {v_flex().size_full().on_action(cx.listener(Self::save_api_key))- .child(Label::new("To use Zed's assistant with Google AI, you need to add an API key. Follow these steps:"))+ .child(Label::new("To use Zed's agent with Google AI, you need to add an API key. Follow these steps:")).child(List::new().child(InstructionListItem::new(diff --git a/crates/language_models/src/provider/mistral.rs b/crates/language_models/src/provider/mistral.rsindex fb385308fac..02e53cb99a8 100644--- a/crates/language_models/src/provider/mistral.rs+++ b/crates/language_models/src/provider/mistral.rs@@ -807,7 +807,7 @@ impl Render for ConfigurationView {v_flex().size_full().on_action(cx.listener(Self::save_api_key))- .child(Label::new("To use Zed's assistant with Mistral, you need to add an API key. Follow these steps:"))+ .child(Label::new("To use Zed's agent with Mistral, you need to add an API key. Follow these steps:")).child(List::new().child(InstructionListItem::new(diff --git a/crates/language_models/src/provider/ollama.rs b/crates/language_models/src/provider/ollama.rsindex d4739bcab87..c845c97b09c 100644--- a/crates/language_models/src/provider/ollama.rs+++ b/crates/language_models/src/provider/ollama.rs@@ -631,7 +631,7 @@ impl Render for ConfigurationView {}}).child(- Button::new("view-models", "All Models")+ Button::new("view-models", "View All Models").style(ButtonStyle::Subtle).icon(IconName::ArrowUpRight).icon_size(IconSize::XSmall)diff --git a/crates/language_models/src/provider/open_ai.rs b/crates/language_models/src/provider/open_ai.rsindex 6c4d4c9b3ed..79ef4a0ee0d 100644--- a/crates/language_models/src/provider/open_ai.rs+++ b/crates/language_models/src/provider/open_ai.rs@@ -780,7 +780,7 @@ impl Render for ConfigurationView {let api_key_section = if self.should_render_editor(cx) {v_flex().on_action(cx.listener(Self::save_api_key))- .child(Label::new("To use Zed's assistant with OpenAI, you need to add an API key. Follow these steps:"))+ .child(Label::new("To use Zed's agent with OpenAI, you need to add an API key. Follow these steps:")).child(List::new().child(InstructionListItem::new(diff --git a/crates/language_models/src/provider/open_ai_compatible.rs b/crates/language_models/src/provider/open_ai_compatible.rsindex 64add5483d9..38bd7cee06d 100644--- a/crates/language_models/src/provider/open_ai_compatible.rs+++ b/crates/language_models/src/provider/open_ai_compatible.rs@@ -466,7 +466,7 @@ impl Render for ConfigurationView {let api_key_section = if self.should_render_editor(cx) {v_flex().on_action(cx.listener(Self::save_api_key))- .child(Label::new("To use Zed's assistant with an OpenAI compatible provider, you need to add an API key."))+ .child(Label::new("To use Zed's agent with an OpenAI-compatible provider, you need to add an API key.")).child(div().pt(DynamicSpacing::Base04.rems(cx))diff --git a/crates/language_models/src/provider/open_router.rs b/crates/language_models/src/provider/open_router.rsindex 5a6acc43299..3a492086f16 100644--- a/crates/language_models/src/provider/open_router.rs+++ b/crates/language_models/src/provider/open_router.rs@@ -855,7 +855,7 @@ impl Render for ConfigurationView {v_flex().size_full().on_action(cx.listener(Self::save_api_key))- .child(Label::new("To use Zed's assistant with OpenRouter, you need to add an API key. Follow these steps:"))+ .child(Label::new("To use Zed's agent with OpenRouter, you need to add an API key. Follow these steps:")).child(List::new().child(InstructionListItem::new(