
<ion-content>

  <h1>梦境背景</h1>
  <ion-input [value]="background" (ionInput)="backgroundInput($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>
  
<!-- 展示：返回消息内容 -->
<div>{{responseMsg}}</div>
</ion-content>



<!-- <ion-list>
  <ion-item>梦境标签</ion-item>
  <ion-item>
    <app-edit-tag (onTagChange)="setTagsValue($event)"></app-edit-tag>
  </ion-item>
  <ion-item>
    <ion-textarea [value]="dreamDesc" (ionInput)="userInput($event)" label="梦境描述" placeholder="具体描述你的感受、场景、人物、物品、事件" [autoGrow]="true"></ion-textarea>
  </ion-item>
  <ion-item>
    <ion-button expand = "block" (click) = "analysisDream()">解析梦境</ion-button>
  </ion-item>
</ion-list>
<div style="font-size: 18px">
  {{dreamResult}}
</div> -->



