mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-22 08:15:53 +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_API_KEY ?? process.env.OPENAI_API_KEY) &&
|
||||||
Boolean(env.OPENAI_BASE_URL ?? process.env.OPENAI_BASE_URL);
|
Boolean(env.OPENAI_BASE_URL ?? process.env.OPENAI_BASE_URL);
|
||||||
const settingsUpdate: Parameters<typeof updateSettingsForSource>[1] = {
|
const settingsUpdate: Parameters<typeof updateSettingsForSource>[1] = {
|
||||||
...(userSettings.modelType === 'openai' && !hasOpenAICompatibleConfig
|
...(userSettings.modelType === 'openai' && !hasOpenAICompatibleConfig ? { modelType: undefined } : {}),
|
||||||
? { modelType: undefined }
|
|
||||||
: {}),
|
|
||||||
env: {
|
env: {
|
||||||
OPENAI_AUTH_MODE: undefined,
|
OPENAI_AUTH_MODE: undefined,
|
||||||
} as unknown as Record<string, string>,
|
} as unknown as Record<string, string>,
|
||||||
@@ -92,7 +90,7 @@ export async function clearAuthRelatedCaches(): Promise<void> {
|
|||||||
export async function call(): Promise<React.ReactNode> {
|
export async function call(): Promise<React.ReactNode> {
|
||||||
await performLogout({ clearOnboarding: true });
|
await performLogout({ clearOnboarding: true });
|
||||||
|
|
||||||
const message = <Text>Successfully logged out.</Text>
|
const message = <Text>Successfully logged out.</Text>;
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
gracefulShutdownSync(0, 'logout');
|
gracefulShutdownSync(0, 'logout');
|
||||||
|
|||||||
@@ -458,8 +458,7 @@ function OAuthStatusMessage({
|
|||||||
{
|
{
|
||||||
label: (
|
label: (
|
||||||
<Text>
|
<Text>
|
||||||
ChatGPT account with subscription ·{' '}
|
ChatGPT account with subscription · <Text dimColor>Plus, Pro, Business, Edu, or Enterprise</Text>
|
||||||
<Text dimColor>Plus, Pro, Business, Edu, or Enterprise</Text>
|
|
||||||
{'\n'}
|
{'\n'}
|
||||||
</Text>
|
</Text>
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -176,21 +176,11 @@ export function ModelPicker({
|
|||||||
(direction: 'left' | 'right') => {
|
(direction: 'left' | 'right') => {
|
||||||
if (!focusedSupportsEffort) return;
|
if (!focusedSupportsEffort) return;
|
||||||
setEffort(prev =>
|
setEffort(prev =>
|
||||||
cycleEffortLevel(
|
cycleEffortLevel(prev ?? focusedDefaultEffort, direction, focusedSupportsXhigh, focusedSupportsMax),
|
||||||
prev ?? focusedDefaultEffort,
|
|
||||||
direction,
|
|
||||||
focusedSupportsXhigh,
|
|
||||||
focusedSupportsMax,
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
setHasToggledEffort(true);
|
setHasToggledEffort(true);
|
||||||
},
|
},
|
||||||
[
|
[focusedSupportsEffort, focusedSupportsXhigh, focusedSupportsMax, focusedDefaultEffort],
|
||||||
focusedSupportsEffort,
|
|
||||||
focusedSupportsXhigh,
|
|
||||||
focusedSupportsMax,
|
|
||||||
focusedDefaultEffort,
|
|
||||||
],
|
|
||||||
);
|
);
|
||||||
|
|
||||||
useKeybindings(
|
useKeybindings(
|
||||||
|
|||||||
@@ -11,7 +11,8 @@ export const CHATGPT_CODEX_MODEL_OPTIONS: ChatGPTCodexModelOption[] = [
|
|||||||
{
|
{
|
||||||
value: 'gpt-5.5',
|
value: 'gpt-5.5',
|
||||||
label: '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',
|
value: 'gpt-5.4',
|
||||||
@@ -21,7 +22,8 @@ export const CHATGPT_CODEX_MODEL_OPTIONS: ChatGPTCodexModelOption[] = [
|
|||||||
{
|
{
|
||||||
value: 'gpt-5.4-mini',
|
value: 'gpt-5.4-mini',
|
||||||
label: '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',
|
value: 'gpt-5.3-codex',
|
||||||
|
|||||||
Reference in New Issue
Block a user