- <ion-content>
- <!-- 文本域:生成提示词 -->
- <h1>AI客服</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>
|