add filename in model preview popup (#1005)

* add filename in model preview popup

for #1003

* user setting for model name fomat in the tree

* add a tooltip for the setting to explain what things mean

* more explicit file_name naming

* touch of additional text in the tooltip
This commit is contained in:
Alex "mcmonkey" Goodwin
2024-10-02 07:59:01 -07:00
committed by GitHub
parent a7a0035b0e
commit cc2b64df52
7 changed files with 45 additions and 16 deletions

View File

@@ -69,7 +69,7 @@ describe('useModelStore', () => {
const folderStore = await store.getModelsInFolderCached('checkpoints')
const model = folderStore.models['noinfo.safetensors']
await model.load()
expect(model.name).toBe('noinfo.safetensors')
expect(model.file_name).toBe('noinfo.safetensors')
expect(model.title).toBe('noinfo')
expect(model.architecture_id).toBe('')
expect(model.author).toBe('')