Skip to content

Commit b4cca63

Browse files
committed
set model from load if none
1 parent d925f74 commit b4cca63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Editor/LLMEditor.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ async Task createButtons()
218218
string path = EditorUtility.OpenFilePanelWithFilters("Select a gguf model file", "", new string[] { "Model Files", "gguf" });
219219
if (!string.IsNullOrEmpty(path))
220220
{
221-
LLMManager.LoadModel(path);
221+
string filename = LLMManager.LoadModel(path);
222+
SetModelIfNone(filename, false);
222223
UpdateModels();
223224
}
224225
};

0 commit comments

Comments
 (0)