chore: show model name as filename
This commit is contained in:
parent
81c4dc516b
commit
88ea8b0638
@ -194,7 +194,7 @@ export const importModel = async (
|
||||
if (!path) throw new Error('No file selected')
|
||||
|
||||
// Extract filename from path to use as model ID if not provided
|
||||
const defaultModelId = path.split('/').pop()?.split('.')[0] || path
|
||||
const defaultModelId = path.split('/').pop()?.replace(/ /g, '-') || path
|
||||
const modelIdToUse = modelId || defaultModelId
|
||||
|
||||
return await extension.importModel(modelIdToUse, path, provider)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user