We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a8368e commit 09e9d7bCopy full SHA for 09e9d7b
src/hf.ts
@@ -1,13 +1,21 @@
1
-interface MappingItem {
+interface ModelMappingItem {
2
task: string;
3
- hfModel?: string;
+ hfModel: string;
4
providerModel: string;
5
status?: 'live' | 'staging';
6
- type?: 'tag-filter';
7
- tags?: string[];
8
- adapterType?: 'lora';
9
}
10
+interface TagFilterMappingItem {
+ task: string;
+ providerModel: string;
11
+ status?: 'live' | 'staging';
12
+ type: 'tag-filter';
13
+ tags: string[];
14
+ adapterType: 'lora';
15
+}
16
+
17
+type MappingItem = ModelMappingItem | TagFilterMappingItem;
18
19
interface StatusUpdateRequest {
20
hfModel: string;
21
status: 'live' | 'staging';
0 commit comments