chore
This commit is contained in:
parent
fde988dd4e
commit
8e05f3c360
@ -25,8 +25,8 @@ document.querySelectorAll('.grid.h-10.grid-cols-12.place-content-center.gap-x-3.
|
||||
data.size = parseInt(extractValue(rawText, 'size'))
|
||||
data.SHA256 = extractValue(rawText, 'oid sha256:')
|
||||
data.lastUpdated = e.children[3].children[0].getAttribute('datetime')
|
||||
data.url = e.children[1].href.replace('/resolve/', '/blob/')
|
||||
data.downloadUrl = e.children[1].href
|
||||
data.url = e.children[1].href.replace('/resolve/', '/blob/').replace('?download=true', '')
|
||||
data.downloadUrl = e.children[1].href.replace('?download=true', '')
|
||||
data.tags = []
|
||||
|
||||
modelsJson.push(data)
|
||||
|
@ -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,7 +160,8 @@ const Models: FC = observer(() => {
|
||||
|
||||
useEffect(() => {
|
||||
setTags(Array.from(new Set(
|
||||
[...commonStore.modelSourceList.map(item => item.tags || []).flat()
|
||||
['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;
|
||||
};
|
Loading…
Reference in New Issue
Block a user