<ion-header>
  <ion-toolbar>
    <ion-title>
      AIGC 消息发送
    </ion-title>
  </ion-toolbar>
</ion-header>

<ion-content>
  <ion-item>
    <ion-input placeholder="输入消息" [(ngModel)]="userInput"></ion-input>
  </ion-item>

  <ion-button expand="block" (click)="sendMessage()">发送</ion-button>

  <ion-card *ngFor="let message of messageList">
    <ion-card-header>
      {{message?.role}}
    </ion-card-header>
    <ion-card-content>
      {{ message?.content }}
    </ion-card-content>
  </ion-card>
</ion-content>
