mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-15 12:55:51 +00:00
fix: 修复CI格式检查失败
This commit is contained in:
@@ -56,9 +56,7 @@ function clearChatGPTSettingsAuthMode(): void {
|
||||
Boolean(env.OPENAI_API_KEY ?? process.env.OPENAI_API_KEY) &&
|
||||
Boolean(env.OPENAI_BASE_URL ?? process.env.OPENAI_BASE_URL);
|
||||
const settingsUpdate: Parameters<typeof updateSettingsForSource>[1] = {
|
||||
...(userSettings.modelType === 'openai' && !hasOpenAICompatibleConfig
|
||||
? { modelType: undefined }
|
||||
: {}),
|
||||
...(userSettings.modelType === 'openai' && !hasOpenAICompatibleConfig ? { modelType: undefined } : {}),
|
||||
env: {
|
||||
OPENAI_AUTH_MODE: undefined,
|
||||
} as unknown as Record<string, string>,
|
||||
@@ -92,7 +90,7 @@ export async function clearAuthRelatedCaches(): Promise<void> {
|
||||
export async function call(): Promise<React.ReactNode> {
|
||||
await performLogout({ clearOnboarding: true });
|
||||
|
||||
const message = <Text>Successfully logged out.</Text>
|
||||
const message = <Text>Successfully logged out.</Text>;
|
||||
|
||||
setTimeout(() => {
|
||||
gracefulShutdownSync(0, 'logout');
|
||||
|
||||
@@ -458,8 +458,7 @@ function OAuthStatusMessage({
|
||||
{
|
||||
label: (
|
||||
<Text>
|
||||
ChatGPT account with subscription ·{' '}
|
||||
<Text dimColor>Plus, Pro, Business, Edu, or Enterprise</Text>
|
||||
ChatGPT account with subscription · <Text dimColor>Plus, Pro, Business, Edu, or Enterprise</Text>
|
||||
{'\n'}
|
||||
</Text>
|
||||
),
|
||||
|
||||
@@ -176,21 +176,11 @@ export function ModelPicker({
|
||||
(direction: 'left' | 'right') => {
|
||||
if (!focusedSupportsEffort) return;
|
||||
setEffort(prev =>
|
||||
cycleEffortLevel(
|
||||
prev ?? focusedDefaultEffort,
|
||||
direction,
|
||||
focusedSupportsXhigh,
|
||||
focusedSupportsMax,
|
||||
),
|
||||
cycleEffortLevel(prev ?? focusedDefaultEffort, direction, focusedSupportsXhigh, focusedSupportsMax),
|
||||
);
|
||||
setHasToggledEffort(true);
|
||||
},
|
||||
[
|
||||
focusedSupportsEffort,
|
||||
focusedSupportsXhigh,
|
||||
focusedSupportsMax,
|
||||
focusedDefaultEffort,
|
||||
],
|
||||
[focusedSupportsEffort, focusedSupportsXhigh, focusedSupportsMax, focusedDefaultEffort],
|
||||
);
|
||||
|
||||
useKeybindings(
|
||||
|
||||
@@ -11,7 +11,8 @@ export const CHATGPT_CODEX_MODEL_OPTIONS: ChatGPTCodexModelOption[] = [
|
||||
{
|
||||
value: 'gpt-5.5',
|
||||
label: 'GPT-5.5',
|
||||
description: 'Frontier model for complex coding, research, and real-world work',
|
||||
description:
|
||||
'Frontier model for complex coding, research, and real-world work',
|
||||
},
|
||||
{
|
||||
value: 'gpt-5.4',
|
||||
@@ -21,7 +22,8 @@ export const CHATGPT_CODEX_MODEL_OPTIONS: ChatGPTCodexModelOption[] = [
|
||||
{
|
||||
value: 'gpt-5.4-mini',
|
||||
label: 'GPT-5.4-Mini',
|
||||
description: 'Small, fast, and cost-efficient model for simpler coding tasks',
|
||||
description:
|
||||
'Small, fast, and cost-efficient model for simpler coding tasks',
|
||||
},
|
||||
{
|
||||
value: 'gpt-5.3-codex',
|
||||
|
||||
Reference in New Issue
Block a user