Skip to content

Commit

Permalink
fixes LLM models with / in name
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasbaur committed Mar 22, 2024
1 parent c7a65b2 commit 0f03986
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions Controls/LLAMA.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,16 @@ public async void callLLAMA2(object pr)
{
if (ModelBox.SelectedItem.ToString() != "")
{
model = ModelBox.SelectedItem.ToString().Split('/')[1];
var split = ModelBox.SelectedItem.ToString().Split('/');
provider = split[0];
for (int i = 1; i < split.Length; i++) {
model = model + split[i] + "/";
}
model = model.TrimEnd('/');
// model = ModelBox.SelectedItem.ToString().Split('/')[1];
provider = ModelBox.SelectedItem.ToString().Split('/')[0];
}
Expand Down
2 changes: 1 addition & 1 deletion Controls/MainHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public partial class MainHandler
{

//Config
public static string BuildVersion = "1.2.7.9";
public static string BuildVersion = "1.2.8.0";
public static MEDIABACKEND MediaBackend = (Properties.Settings.Default.MediaBackend == "Hardware") ? MEDIABACKEND.MEDIAKIT : MEDIABACKEND.MEDIA;
public static bool ENABLE_PYTHON = Properties.Settings.Default.EnablePython;
public static bool ENABLE_LIGHTNING = Properties.Settings.Default.EnableLightning;
Expand Down

0 comments on commit 0f03986

Please sign in to comment.