diff --git a/packages/frontend/core/src/blocksuite/ai/components/ai-chat-input/ai-chat-input.ts b/packages/frontend/core/src/blocksuite/ai/components/ai-chat-input/ai-chat-input.ts
index 01dc8dfddc..f09b4a75f4 100644
--- a/packages/frontend/core/src/blocksuite/ai/components/ai-chat-input/ai-chat-input.ts
+++ b/packages/frontend/core/src/blocksuite/ai/components/ai-chat-input/ai-chat-input.ts
@@ -274,7 +274,7 @@ export class AIChatInput extends SignalWatcher(WithDisposable(LitElement)) {
accessor reasoningConfig!: AIReasoningConfig;
@property({ attribute: false })
- accessor modelSwitchConfig!: AIModelSwitchConfig;
+ accessor modelSwitchConfig: AIModelSwitchConfig | undefined = undefined;
@property({ attribute: false })
accessor docDisplayConfig!: DocDisplayConfig;
@@ -394,7 +394,7 @@ export class AIChatInput extends SignalWatcher(WithDisposable(LitElement)) {
${ImageIcon()}
Upload
- ${this.modelSwitchConfig.visible.value
+ ${this.modelSwitchConfig?.visible.value
? html`