onboarding: Remove accept AI ToS from within Zed (#36612)
Users now accept ToS from Zed's website when they sign in to Zed the first time. So it's no longer possible that a signed in account could not have accepted the ToS. Release Notes: - N/A --------- Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com>
This commit is contained in:
parent
3d2fa72d1f
commit
8204ef1e51
16 changed files with 44 additions and 499 deletions
|
|
@ -24,9 +24,6 @@ pub enum ConfigurationError {
|
|||
ModelNotFound,
|
||||
#[error("{} LLM provider is not configured.", .0.name().0)]
|
||||
ProviderNotAuthenticated(Arc<dyn LanguageModelProvider>),
|
||||
#[error("Using the {} LLM provider requires accepting the Terms of Service.",
|
||||
.0.name().0)]
|
||||
ProviderPendingTermsAcceptance(Arc<dyn LanguageModelProvider>),
|
||||
}
|
||||
|
||||
impl std::fmt::Debug for ConfigurationError {
|
||||
|
|
@ -37,9 +34,6 @@ impl std::fmt::Debug for ConfigurationError {
|
|||
Self::ProviderNotAuthenticated(provider) => {
|
||||
write!(f, "ProviderNotAuthenticated({})", provider.id())
|
||||
}
|
||||
Self::ProviderPendingTermsAcceptance(provider) => {
|
||||
write!(f, "ProviderPendingTermsAcceptance({})", provider.id())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -198,12 +192,6 @@ impl LanguageModelRegistry {
|
|||
return Some(ConfigurationError::ProviderNotAuthenticated(model.provider));
|
||||
}
|
||||
|
||||
if model.provider.must_accept_terms(cx) {
|
||||
return Some(ConfigurationError::ProviderPendingTermsAcceptance(
|
||||
model.provider,
|
||||
));
|
||||
}
|
||||
|
||||
None
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue