Local models: the folder's README.md is the model card

The worker reads README.md when it scans the models folder (the web
app can't see it) and stores it on the folder and, after import, on
the model; every scan refreshes it for local models. Relative images
and links are dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pascal LinxweilerandClaude Opus 5.5 committed 2026-11-08 00:27:17 +01:00
1 parent 5a8893e7db
commit d27e79bba0
10 files changed
+1660 -17

No files matched your search

+1
View File
@@ -124,6 +124,7 @@ export async function addLocalModel(input: { localPath: string }): Promise<{ id:
pinnedSha: "",
localPath: folder.path,
status: "ready",
localReadme: folder.readme,
// Nothing to fetch from the Hub.
metadataFetchedAt: now,
}),