Skip to content

Commit 3e66fe0

Browse files
committed
Fix naming showing full path when loading model
1 parent fa71fa3 commit 3e66fe0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Runtime/LLMManager.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ public static string GetFilenameOrRelativeAssetPath(string path)
2727
{
2828
return LLMUnitySetup.RelativePath(assetPath, basePath);
2929
}
30-
return path;
30+
return Path.GetFileName(path);
3131
}
3232

3333
public ModelEntry(string path, bool lora = false, string label = null, string url = null)
3434
{
3535
filename = GetFilenameOrRelativeAssetPath(path);
36-
this.label = label == null ? filename : label;
36+
this.label = label == null ? Path.GetFileName(filename) : label;
3737
this.lora = lora;
3838
this.path = LLMUnitySetup.GetFullPath(path);
3939
this.url = url;

0 commit comments

Comments
 (0)