<ion-content>
  <h1>自定义生成器</h1>
  <h2>你要写的小说风格类型</h2>
   <ion-input [value]="type" (ionInput)="typeInput($event)" placeholder="文本提示词" autoGrow="true"></ion-input>

  <!-- 文本域：生成提示词 -->
  <h2>你想要生成什么样的内容呢？</h2>
  <ion-textarea [value]="userPrompt" (ionInput)="promptInput($event)" placeholder="文本提示词" autoGrow="true"></ion-textarea>

  <!-- 按钮：执行消息生成函数 -->
  <ion-button (click)="sendMessage()" expand="block">小说生成</ion-button>
    
  <!-- 展示：返回消息内容 -->
  @if(!isComplete){
  <div>{{responseMsg}}</div>
  }
  @if(isComplete){
  <fm-markdown-preview class="content-style" [content]="responseMsg"></fm-markdown-preview>
  }
</ion-content>