feat: rebrand as Open Claude and harden OpenAI REPL
This commit is contained in:
@@ -36,6 +36,9 @@ import {
|
||||
import { createSignal } from './signal.js'
|
||||
|
||||
export function isFastModeEnabled(): boolean {
|
||||
if (getAPIProvider() !== 'firstParty') {
|
||||
return false
|
||||
}
|
||||
return !isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)
|
||||
}
|
||||
|
||||
@@ -70,6 +73,10 @@ function getDisabledReasonMessage(
|
||||
}
|
||||
|
||||
export function getFastModeUnavailableReason(): string | null {
|
||||
if (getAPIProvider() !== 'firstParty') {
|
||||
return 'Fast mode is not available on third-party providers'
|
||||
}
|
||||
|
||||
if (!isFastModeEnabled()) {
|
||||
return 'Fast mode is not available'
|
||||
}
|
||||
@@ -109,13 +116,6 @@ export function getFastModeUnavailableReason(): string | null {
|
||||
}
|
||||
}
|
||||
|
||||
// Only available for 1P (not Bedrock/Vertex/Foundry)
|
||||
if (getAPIProvider() !== 'firstParty') {
|
||||
const reason = 'Fast mode is not available on Bedrock, Vertex, or Foundry'
|
||||
logForDebugging(`Fast mode unavailable: ${reason}`)
|
||||
return reason
|
||||
}
|
||||
|
||||
if (orgStatus.status === 'disabled') {
|
||||
if (
|
||||
orgStatus.reason === 'network_error' ||
|
||||
|
||||
Reference in New Issue
Block a user