language_models: Make wording for setting env vars consistent (#46240)

Jakub Konka created

Release Notes:

- N/A

Change summary

crates/language_models/src/provider/anthropic.rs          | 2 +-
crates/language_models/src/provider/bedrock.rs            | 2 +-
crates/language_models/src/provider/deepseek.rs           | 2 +-
crates/language_models/src/provider/google.rs             | 2 +-
crates/language_models/src/provider/mistral.rs            | 2 +-
crates/language_models/src/provider/ollama.rs             | 2 +-
crates/language_models/src/provider/open_ai.rs            | 2 +-
crates/language_models/src/provider/open_ai_compatible.rs | 2 +-
crates/language_models/src/provider/open_router.rs        | 2 +-
crates/language_models/src/provider/vercel.rs             | 2 +-
crates/language_models/src/provider/x_ai.rs               | 2 +-
11 files changed, 11 insertions(+), 11 deletions(-)

Detailed changes

crates/language_models/src/provider/anthropic.rs 🔗

@@ -1120,7 +1120,7 @@ impl Render for ConfigurationView {
                 .child(self.api_key_editor.clone())
                 .child(
                     Label::new(
-                        format!("You can also assign the {API_KEY_ENV_VAR_NAME} environment variable and restart Zed."),
+                        format!("You can also set the {API_KEY_ENV_VAR_NAME} environment variable and restart Zed."),
                     )
                     .size(LabelSize::Small)
                     .color(Color::Muted)

crates/language_models/src/provider/bedrock.rs 🔗

@@ -1411,7 +1411,7 @@ impl Render for ConfigurationView {
             .child(self.render_static_credentials_ui())
             .child(
                 Label::new(
-                    format!("You can also assign the {}, {} AND {} environment variables (or {} for Bedrock API Key authentication) and restart Zed.", ZED_BEDROCK_ACCESS_KEY_ID_VAR.name, ZED_BEDROCK_SECRET_ACCESS_KEY_VAR.name, ZED_BEDROCK_REGION_VAR.name, ZED_BEDROCK_BEARER_TOKEN_VAR.name),
+                    format!("You can also set the {}, {} AND {} environment variables (or {} for Bedrock API Key authentication) and restart Zed.", ZED_BEDROCK_ACCESS_KEY_ID_VAR.name, ZED_BEDROCK_SECRET_ACCESS_KEY_VAR.name, ZED_BEDROCK_REGION_VAR.name, ZED_BEDROCK_BEARER_TOKEN_VAR.name),
                 )
                     .size(LabelSize::Small)
                     .color(Color::Muted)

crates/language_models/src/provider/deepseek.rs 🔗

@@ -635,7 +635,7 @@ impl Render for ConfigurationView {
                 .child(self.api_key_editor.clone())
                 .child(
                     Label::new(format!(
-                        "Or set the {API_KEY_ENV_VAR_NAME} environment variable."
+                        "You can also set the {API_KEY_ENV_VAR_NAME} environment variable and restart Zed."
                     ))
                     .size(LabelSize::Small)
                     .color(Color::Muted),

crates/language_models/src/provider/google.rs 🔗

@@ -874,7 +874,7 @@ impl Render for ConfigurationView {
                 .child(self.api_key_editor.clone())
                 .child(
                     Label::new(
-                        format!("You can also assign the {GEMINI_API_KEY_VAR_NAME} environment variable and restart Zed."),
+                        format!("You can also set the {GEMINI_API_KEY_VAR_NAME} environment variable and restart Zed."),
                     )
                     .size(LabelSize::Small).color(Color::Muted),
                 )

crates/language_models/src/provider/mistral.rs 🔗

@@ -852,7 +852,7 @@ impl Render for ConfigurationView {
                 .child(self.api_key_editor.clone())
                 .child(
                     Label::new(
-                        format!("You can also assign the {API_KEY_ENV_VAR_NAME} environment variable and restart Zed."),
+                        format!("You can also set the {API_KEY_ENV_VAR_NAME} environment variable and restart Zed."),
                     )
                     .size(LabelSize::Small).color(Color::Muted),
                 )

crates/language_models/src/provider/ollama.rs 🔗

@@ -743,7 +743,7 @@ impl ConfigurationView {
               .child(self.api_key_editor.clone())
               .child(
                   Label::new(
-                      format!("You can also assign the {API_KEY_ENV_VAR_NAME} environment variable and restart Zed.")
+                      format!("You can also set the {API_KEY_ENV_VAR_NAME} environment variable and restart Zed.")
                   )
                   .size(LabelSize::Small)
                   .color(Color::Muted),

crates/language_models/src/provider/open_ai.rs 🔗

@@ -1300,7 +1300,7 @@ impl Render for ConfigurationView {
                 .child(self.api_key_editor.clone())
                 .child(
                     Label::new(format!(
-                        "You can also assign the {API_KEY_ENV_VAR_NAME} environment variable and restart Zed."
+                        "You can also set the {API_KEY_ENV_VAR_NAME} environment variable and restart Zed."
                     ))
                     .size(LabelSize::Small)
                     .color(Color::Muted),

crates/language_models/src/provider/open_ai_compatible.rs 🔗

@@ -504,7 +504,7 @@ impl Render for ConfigurationView {
                 )
                 .child(
                     Label::new(
-                        format!("You can also assign the {env_var_name} environment variable and restart Zed."),
+                        format!("You can also set the {env_var_name} environment variable and restart Zed."),
                     )
                     .size(LabelSize::Small).color(Color::Muted),
                 )

crates/language_models/src/provider/open_router.rs 🔗

@@ -849,7 +849,7 @@ impl Render for ConfigurationView {
                 .child(self.api_key_editor.clone())
                 .child(
                     Label::new(
-                        format!("You can also assign the {API_KEY_ENV_VAR_NAME} environment variable and restart Zed."),
+                        format!("You can also set the {API_KEY_ENV_VAR_NAME} environment variable and restart Zed."),
                     )
                     .size(LabelSize::Small).color(Color::Muted),
                 )

crates/language_models/src/provider/vercel.rs 🔗

@@ -470,7 +470,7 @@ impl Render for ConfigurationView {
                 .child(self.api_key_editor.clone())
                 .child(
                     Label::new(format!(
-                        "You can also assign the {API_KEY_ENV_VAR_NAME} environment variable and restart Zed."
+                        "You can also set the {API_KEY_ENV_VAR_NAME} environment variable and restart Zed."
                     ))
                     .size(LabelSize::Small)
                     .color(Color::Muted),

crates/language_models/src/provider/x_ai.rs 🔗

@@ -473,7 +473,7 @@ impl Render for ConfigurationView {
                 .child(self.api_key_editor.clone())
                 .child(
                     Label::new(format!(
-                        "You can also assign the {API_KEY_ENV_VAR_NAME} environment variable and restart Zed."
+                        "You can also set the {API_KEY_ENV_VAR_NAME} environment variable and restart Zed."
                     ))
                     .size(LabelSize::Small)
                     .color(Color::Muted),