aichat.component.html 436 B

1234567891011
  1. <ion-content>
  2. <!-- 文本域:生成提示词 -->
  3. <h1>AI客服</h1>
  4. <ion-textarea [value]="userPrompt" (ionInput)="promptInput($event)" placeholder="文本提示词" autoGrow="true"></ion-textarea>
  5. <!-- 按钮:执行消息生成函数 -->
  6. <ion-button (click)="sendMessage()" expand="block">发送消息</ion-button>
  7. <!-- 展示:返回消息内容 -->
  8. <div>{{responseMsg}}</div>
  9. </ion-content>