Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
anthropic: Remove logging when no credentials are available (#37276)
tidelyd74384f6e2a1
diff --git a/crates/language_models/src/provider/anthropic.rs b/crates/language_models/src/provider/anthropic.rsindex c492edeaf56..6c003c4c391 100644--- a/crates/language_models/src/provider/anthropic.rs+++ b/crates/language_models/src/provider/anthropic.rs@@ -197,7 +197,7 @@ impl AnthropicLanguageModelProvider {})}- pub fn api_key(cx: &mut App) -> Task<Result<ApiKey>> {+ pub fn api_key(cx: &mut App) -> Task<Result<ApiKey, AuthenticateError>> {let credentials_provider = <dyn CredentialsProvider>::global(cx);let api_url = AllLanguageModelSettings::get_global(cx).anthropic