Remove Grok OAuth and legacy BYOK support

This commit is contained in:
Ryan Ward
2026-07-28 02:30:22 -05:00
parent 2faeed7ac5
commit 87e0c83e9e
26 changed files with 153 additions and 4140 deletions
+4 -2
View File
@@ -1,6 +1,5 @@
use std::future::Future;
use ai::api_keys::ApiKeyManager;
use galaxy_core::features::FeatureFlag;
use galaxy_core::send_telemetry_from_ctx;
use settings::Setting as _;
@@ -442,7 +441,10 @@ impl OneTimeModalModel {
.current_workspace()
.map(|workspace| workspace.billing_metadata.customer_type);
let is_warp_ai_enabled = *AISettings::as_ref(ctx).is_any_ai_enabled;
let has_byok_or_byoe = ApiKeyManager::as_ref(ctx).has_any_key();
// BYOK/BYOE (bring your own provider key/endpoint) has been removed; Galaxy
// only supports AWS Bedrock and OpenAI-compatible endpoints configured by
// the user in Settings, neither of which participate in this decision.
let has_byok_or_byoe = false;
let completed_new_onboarding = has_completed_local_onboarding(ctx);
let has_zero_base_credits = AIRequestUsageModel::as_ref(ctx).request_limit() == 0;
+3 -6
View File
@@ -287,9 +287,9 @@ use crate::pane_group::pane::ActionOrigin;
use crate::pane_group::FilePane;
use crate::pane_group::{
self, AIFactPane, AnyPaneContent, ChildAgentOrigin, CodeDiffPane, CodePane, CodeReviewPanelArg,
CustomRouterEditorPane, Direction as PaneGroupDirection, Direction,
ExecutionProfileEditorPane, NetworkLogPane, NewTerminalOptions, PaneGroup, PaneId, PanesLayout,
TabBarHoverIndex, TerminalPaneId,
CustomRouterEditorPane, Direction as PaneGroupDirection, Direction, ExecutionProfileEditorPane,
NetworkLogPane, NewTerminalOptions, PaneGroup, PaneId, PanesLayout, TabBarHoverIndex,
TerminalPaneId,
};
use crate::persistence::ModelEvent;
use crate::projects::ProjectManagementModel;
@@ -22858,9 +22858,6 @@ impl Workspace {
if *ai_settings.file_based_mcp_enabled.value() {
context.set.insert(flags::FILE_BASED_MCP_FLAG);
}
if *ai_settings.can_use_warp_credits_for_fallback.value() {
context.set.insert(flags::WARP_CREDIT_FALLBACK_FLAG);
}
if *session_settings.show_model_selectors_in_prompt.value() {
context
.set