Skip to content

Commit 09e9d7b

Browse files
committed
split interface into two
1 parent 1a8368e commit 09e9d7b

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

src/hf.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
1-
interface MappingItem {
1+
interface ModelMappingItem {
22
task: string;
3-
hfModel?: string;
3+
hfModel: string;
44
providerModel: string;
55
status?: 'live' | 'staging';
6-
type?: 'tag-filter';
7-
tags?: string[];
8-
adapterType?: 'lora';
96
}
107

8+
interface TagFilterMappingItem {
9+
task: string;
10+
providerModel: string;
11+
status?: 'live' | 'staging';
12+
type: 'tag-filter';
13+
tags: string[];
14+
adapterType: 'lora';
15+
}
16+
17+
type MappingItem = ModelMappingItem | TagFilterMappingItem;
18+
1119
interface StatusUpdateRequest {
1220
hfModel: string;
1321
status: 'live' | 'staging';

0 commit comments

Comments
 (0)