2 Copyright (C) 2019 CMCC, Inc. and others. All rights reserved.
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
17 <nz-modal [(nzVisible)]="showModel" [nzTitle]="title" nzOkText="Ok" (nzOnCancel)="handleCancel()"
18 (nzOnOk)="handleOk()" nzWidth="648px" nzHeight="800px">
20 <div class="form-item">
21 <label class="item-label"> Application Name:</label>
23 <input nz-input [(ngModel)]="applicationName">
26 <div class="form-item">
27 <label class="item-label"> Application Description:</label>
29 <textarea nz-input [(ngModel)]="applicationDescription"></textarea>
32 <div class="form-item">
33 <label class="item-label"> Application Type:</label>
35 <nz-select class="nz-select-container" [(ngModel)]="applicationType">
36 <nz-option nzValue="Knowledge Assistant" nzLabel="Knowledge Assistant"></nz-option>
40 <div class="form-item">
41 <label class="item-label"> Operator Name:</label>
43 <nz-select class="nz-select-container" nzPlaceHolder="Select Operator"
44 [(ngModel)]="selectedOperator" (ngModelChange)="handleOperatorChange($event)">
45 <nz-option *ngFor="let operator of operators" [nzValue]="operator"
46 [nzLabel]="operator.operatorName"></nz-option>
51 <div class="form-item">
52 <label class="item-label"> MaaS Platform Name:</label>
54 <nz-select class="nz-select-container" nzPlaceHolder="Select MaaS"
55 [(ngModel)]="selectedPlatform" (ngModelChange)="handleMaasChange($event)">
56 <nz-option *ngFor="let platform of filteredPlatforms" [nzValue]="platform"
57 [nzLabel]="platform.maaSPlatformName"></nz-option>
62 <div class="form-item">
63 <label class="item-label"> Model:</label>
65 <nz-select class="nz-select-container" nzPlaceHolder="Select Model"
66 [(ngModel)]="selectedModel">
67 <nz-option *ngFor="let model of filteredModels" [nzValue]="model"
68 [nzLabel]="model.modelName"></nz-option>
73 <div class="form-item">
74 <label class="item-label"> KnowLedge Base:</label>
76 <nz-select class="nz-select-container" nzPlaceHolder="Select Knowledge Base"
77 [(ngModel)]="selectKnowledgeBase">
78 <nz-option *ngFor="let knowledgeBase of knowledgeBases" [nzValue]="knowledgeBase"
79 [nzLabel]="knowledgeBase.knowledgeBaseName"></nz-option>
83 <div class="form-item">
84 <label class="item-label"> Prompt:</label>
86 <textarea nz-input [(ngModel)]=prompt></textarea>
89 <div class="form-item">
90 <label class="item-label"> Opening Remarks:</label>
92 <textarea nz-input [(ngModel)]=openingRemarks></textarea>
95 <div class="form-item">
96 <label class="item-label">temperature:</label>
98 <nz-row class="slider-input-container">
100 <nz-slider [nzMin]="0" [nzMax]="10" [nzStep]="1" [(ngModel)]="temperature"></nz-slider>
102 <div nz-col nzSpan="4">
103 <nz-input-number class="nz-input-number-container" [nzMin]="0" [nzMax]="10"
104 [(ngModel)]="temperature"></nz-input-number>
109 <div class="form-item">
110 <label class="item-label">top_p:</label>
112 <nz-row class="slider-input-container">
114 <nz-slider [nzMin]="0" [nzMax]="10" [nzStep]="1" [(ngModel)]="top_p"></nz-slider>
116 <div nz-col nzSpan="4">
117 <nz-input-number class="nz-input-number-container" [nzMin]="0" [nzMax]="10"
118 [(ngModel)]="top_p"></nz-input-number>