Checking in progress, though not fully working as expected
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user