mirror of
https://github.com/tuxdotrs/highminded.git
synced 2025-08-23 08:01:03 +05:30
feat: add custom prompt box for screenshots
This commit is contained in:
@@ -34,9 +34,7 @@ public class InMemoryDb
|
||||
|
||||
public void SaveSettings(AppSettings settings)
|
||||
{
|
||||
SettingsManager.Settings.ApiKey = settings.ApiKey;
|
||||
SettingsManager.Settings.ApiURL = settings.ApiURL;
|
||||
SettingsManager.Settings.Model = settings.Model;
|
||||
SettingsManager.Settings = settings;
|
||||
SettingsManager.Save();
|
||||
InitOpenAIClient();
|
||||
}
|
||||
|
@@ -9,13 +9,14 @@ public class AppSettings
|
||||
public string Model { get; set; }
|
||||
public string ApiURL { get; set; }
|
||||
public string ApiKey { get; set; }
|
||||
public string ScreenshotPrompt { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class SettingsManager<T> where T : class, new()
|
||||
{
|
||||
private readonly string _settingsPath;
|
||||
public T Settings { get; private set; }
|
||||
public T Settings { get; internal set; }
|
||||
|
||||
public SettingsManager(string appName = "highminded")
|
||||
{
|
||||
|
Reference in New Issue
Block a user