Checking in progress, though not fully working as expected

This commit is contained in:
Ryan Ward
2026-07-27 11:41:20 -05:00
parent 856a6cd6f3
commit 309000a303
51 changed files with 74 additions and 3315 deletions
-20
View File
@@ -491,26 +491,6 @@ impl UserWorkspaces {
.map(|workspace| workspace.is_byo_api_key_enabled())
.unwrap_or(FeatureFlag::SoloUserByok.is_enabled())
}
/// Whether custom inference endpoints are enabled for the current user.
/// Anonymous or logged-out users are not allowed to use custom inference.
/// Enterprise workspaces require the enterprise custom inference flag, Warp Plan, or dogfood.
pub fn is_custom_inference_enabled(&self, app: &AppContext) -> bool {
if AuthStateProvider::as_ref(app)
.get()
.is_anonymous_or_logged_out()
{
return false;
}
self.current_workspace()
.map(|workspace| {
workspace.billing_metadata.customer_type != CustomerType::Enterprise
|| FeatureFlag::CustomInferenceEndpointsEnterprise.is_enabled()
|| ChannelState::channel().is_dogfood()
})
.unwrap_or(true)
}
pub fn aws_bedrock_host_settings(&self) -> Option<&super::workspace::LlmHostSettings> {
self.current_workspace().and_then(|workspace| {
workspace