Skip to content

Commit

Permalink
fix: 修复模型配置页面错误
Browse files Browse the repository at this point in the history
  • Loading branch information
rehiy committed Apr 13, 2024
1 parent 9033dec commit 2188817
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions webview/src/apps/llmodel/create.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@
<label class="form-label">密钥 *</label>
<input type="text" name="secret" class="form-control" [(ngModel)]="formdata.secret" required />
<div class="form-text">
{{aiModels[formdata.provider].keystyle || '请填写从服务商获取的 API-KEY'}}
{{formdata.provider && aiModels[formdata.provider].keystyle || '请填写从服务商获取的 API-KEY'}}
</div>
</div>
<div class="col-12">
<label class="form-label">接入点</label>
<input type="text" name="endpoint" class="form-control" [(ngModel)]="formdata.endpoint" />
<div class="form-text">
自定义接口地址,留空则使用官方接口:{{aiModels[formdata.provider].endpoint}}
自定义接口地址,留空则使用官方接口:{{formdata.provider && aiModels[formdata.provider].endpoint}}
</div>
</div>
<div class="col-12">
Expand Down
4 changes: 2 additions & 2 deletions webview/src/apps/llmodel/update.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@
<label class="form-label">密钥 *</label>
<input type="text" name="secret" class="form-control" [(ngModel)]="formdata.secret" required />
<div class="form-text">
{{aiModels[formdata.provider].keystyle || '请填写从服务商获取的 API-KEY'}}
{{formdata.provider && aiModels[formdata.provider].keystyle || '请填写从服务商获取的 API-KEY'}}
</div>
</div>
<div class="col-12">
<label class="form-label">接入点</label>
<input type="text" name="endpoint" class="form-control" [(ngModel)]="formdata.endpoint" />
<div class="form-text">
自定义接口地址,留空则使用官方接口:{{aiModels[formdata.provider].endpoint}}
自定义接口地址,留空则使用官方接口:{{formdata.provider && aiModels[formdata.provider].endpoint}}
</div>
</div>
<div class="col-12">
Expand Down

0 comments on commit 2188817

Please sign in to comment.