Remove Grok OAuth and legacy BYOK support
This commit is contained in:
+1
-14
@@ -1557,18 +1557,6 @@ define_settings_group!(AISettings, settings: [
|
||||
|
||||
|
||||
|
||||
// Whether or not the user has enabled fallback to Warp credits for user-provided models.
|
||||
can_use_warp_credits_for_fallback: CanUseWarpCreditsForFallback {
|
||||
type: bool,
|
||||
default: false,
|
||||
supported_platforms: SupportedPlatforms::ALL,
|
||||
sync_to_cloud: SyncToCloud::Never,
|
||||
private: false,
|
||||
storage_key: "CanUseWarpCreditsWithByok",
|
||||
toml_path: "cloud_platform.third_party_api_keys.can_use_warp_credits_with_byok",
|
||||
description: "Whether Warp credits can be used as a fallback for user-provided models.",
|
||||
}
|
||||
|
||||
should_render_use_agent_footer_for_user_commands: ShouldRenderUseAgentToolbarForUserCommands {
|
||||
type: bool,
|
||||
default: true,
|
||||
@@ -1947,8 +1935,7 @@ impl AISettings {
|
||||
// Galaxy does not require Warp authentication for AI.
|
||||
// AI is enabled as long as the user hasn't explicitly disabled it
|
||||
// and there's no org policy blocking it.
|
||||
*self.is_any_ai_enabled
|
||||
&& !self.is_ai_disabled_due_to_remote_session_org_policy(app)
|
||||
*self.is_any_ai_enabled && !self.is_ai_disabled_due_to_remote_session_org_policy(app)
|
||||
}
|
||||
|
||||
pub fn default_session_mode(&self, app: &AppContext) -> DefaultSessionMode {
|
||||
|
||||
Reference in New Issue
Block a user