-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathUtils.cs
More file actions
23 lines (20 loc) · 792 Bytes
/
Utils.cs
File metadata and controls
23 lines (20 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using MaIN.Domain.Entities;
namespace MaIN.InferPage;
public static class Utils
{
public static string? Model = "gemma2:2b";
public static bool Visual => VisualModels.Contains(Model);
private static readonly string[] VisualModels = ["FLUX.1_Shnell", "FLUX.1", "dall-e-3", "dall-e", "imagen", "imagen-3"]; //user might type different names
public static bool OpenAi { get; set; }
public static bool Gemini { get; set; }
public static bool DeepSeek { get; set; }
public static bool GroqCloud { get; set; }
public static bool Anthropic { get; set; }
public static string? Path { get; set; }
public static bool Reason { get; set; }
}
public class MessageExt
{
public required Message Message { get; set; }
public bool ShowReason { get; set; }
}