Skip to content

Commit a909ef8

Browse files
committed
move download options to editor
1 parent 621ca4c commit a909ef8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Editor/LLMEditor.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ static void ResetModelOptions()
9292
{
9393
List<string> existingOptions = new List<string>();
9494
foreach (ModelEntry entry in LLMManager.modelEntries) existingOptions.Add(entry.url);
95-
modelOptions = new List<string>();
96-
modelURLs = new List<string>();
95+
modelOptions = new List<string>(){"Download model", "Custom URL"};
96+
modelURLs = new List<string>(){null, null};
9797
foreach ((string name, string url) in LLMUnitySetup.modelOptions)
9898
{
9999
if (url != null && existingOptions.Contains(url)) continue;

Runtime/LLMUnitySetup.cs

-2
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ public class LLMUnitySetup
9090
/// <summary> Default models for download </summary>
9191
[HideInInspector] public static readonly (string, string)[] modelOptions = new(string, string)[]
9292
{
93-
("Download model", null),
94-
("Custom URL", null),
9593
("Mistral 7B Instruct v0.2 (medium, best overall)", "https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.2-GGUF/resolve/main/mistral-7b-instruct-v0.2.Q4_K_M.gguf?download=true"),
9694
("OpenHermes 2.5 7B (medium, best for conversation)", "https://huggingface.co/TheBloke/OpenHermes-2.5-Mistral-7B-GGUF/resolve/main/openhermes-2.5-mistral-7b.Q4_K_M.gguf?download=true"),
9795
("Phi 3 (small, great)", "https://huggingface.co/microsoft/Phi-3-mini-4k-instruct-gguf/resolve/main/Phi-3-mini-4k-instruct-q4.gguf?download=true"),

0 commit comments

Comments
 (0)