<ion-content>
  <h1>形式（绝句，律诗，词曲）</h1>
  <ion-input [value]="style" (ionInput)="styleInput($event)"></ion-input>
    <!-- 文本域：生成提示词 -->
  <h1>内容风格描述</h1>
  <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>
