Skip to content

Commit

Permalink
feat: 模型列表显示级别
Browse files Browse the repository at this point in the history
  • Loading branch information
rehiy committed Mar 5, 2024
1 parent c9b4241 commit 6fc445c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion webview/src/apps/llmodel/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<th scope="col">#</th>
<th scope="col">指令</th>
<th scope="col">模型</th>
<th scope="col" class="d-none d-md-table-cell">级别</th>
<th scope="col" class="d-none d-lg-table-cell">族类</th>
<th scope="col" class="d-none d-md-table-cell">供应商</th>
<th scope="col" class="d-none d-xl-table-cell">接入点</th>
Expand All @@ -30,6 +31,9 @@
<th scope="row">{{item.rd}}</th>
<td>{{item.mid}}</td>
<td>{{item.model}}</td>
<td class="d-none d-md-table-cell">
{{userLevels[item.level] && userLevels[item.level].name || '-'}}
</td>
<td class="d-none d-lg-table-cell">{{item.family}}</td>
<td class="d-none d-md-table-cell">{{item.provider}}</td>
<td class="d-none d-xl-table-cell">{{item.endpoint}}</td>
Expand All @@ -41,4 +45,4 @@
}
</tbody>
</table>
</div>
</div>
3 changes: 3 additions & 0 deletions webview/src/apps/llmodel/list.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Component } from '@angular/core';

import { UserLevels } from 'src/openapi/const';
import { RobotApi, TablesLLModel } from '../../openapi/wrobot';


Expand All @@ -9,6 +10,8 @@ import { RobotApi, TablesLLModel } from '../../openapi/wrobot';
})
export class LLModelListComponent {

public userLevels = UserLevels;

public llmodels: Array<TablesLLModel> = [];

constructor() {
Expand Down

0 comments on commit 6fc445c

Please sign in to comment.