chore
This commit is contained in:
@@ -312,6 +312,8 @@
|
||||
"JP": "日本語",
|
||||
"Music": "音楽",
|
||||
"Other": "その他",
|
||||
"Role Play": "ロールプレイ",
|
||||
"Recommended": "おすすめ",
|
||||
"Import MIDI": "MIDIをインポート",
|
||||
"Current Instrument": "現在の楽器",
|
||||
"Please convert model to GGML format first": "モデルをGGML形式に変換してください",
|
||||
|
||||
@@ -312,6 +312,8 @@
|
||||
"JP": "日文",
|
||||
"Music": "音乐",
|
||||
"Other": "其他",
|
||||
"Role Play": "角色扮演",
|
||||
"Recommended": "推荐",
|
||||
"Import MIDI": "导入MIDI",
|
||||
"Current Instrument": "当前乐器",
|
||||
"Please convert model to GGML format first": "请先将模型转换为GGML格式",
|
||||
|
||||
@@ -160,8 +160,9 @@ const Models: FC = observer(() => {
|
||||
|
||||
useEffect(() => {
|
||||
setTags(Array.from(new Set(
|
||||
[...commonStore.modelSourceList.map(item => item.tags || []).flat()
|
||||
.filter(i => !i.includes('Other') && !i.includes('Local'))
|
||||
['Recommended',
|
||||
...commonStore.modelSourceList.map(item => item.tags || []).flat()
|
||||
.filter(i => !i.includes('Other') && !i.includes('Local'))
|
||||
, 'Other', 'Local'])));
|
||||
}, [commonStore.modelSourceList]);
|
||||
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
export type ModelSourceItem = {
|
||||
name: string;
|
||||
size: number;
|
||||
lastUpdated: string;
|
||||
desc?: { [lang: string]: string | undefined; };
|
||||
size: number;
|
||||
SHA256?: string;
|
||||
lastUpdated: string;
|
||||
url?: string;
|
||||
downloadUrl?: string;
|
||||
tags?: string[];
|
||||
customTokenizer?: string;
|
||||
hide?: boolean;
|
||||
|
||||
lastUpdatedMs?: number;
|
||||
isComplete?: boolean;
|
||||
isLocal?: boolean;
|
||||
localSize?: number;
|
||||
lastUpdatedMs?: number;
|
||||
tags?: string[];
|
||||
hide?: boolean;
|
||||
};
|
||||
Reference in New Issue
Block a user