2024-04-19 19:25:44 +00:00
|
|
|
namespace AIStudio.Settings;
|
|
|
|
|
2024-05-04 08:55:00 +00:00
|
|
|
/// <summary>
|
|
|
|
/// The data model for the settings file.
|
|
|
|
/// </summary>
|
2024-04-19 19:25:44 +00:00
|
|
|
public sealed class Data
|
|
|
|
{
|
2024-05-04 08:55:00 +00:00
|
|
|
/// <summary>
|
|
|
|
/// The version of the settings file. Allows us to upgrade the settings,
|
|
|
|
/// when a new version is available.
|
|
|
|
/// </summary>
|
|
|
|
public Version Version { get; init; } = Version.V1;
|
2024-04-19 19:25:44 +00:00
|
|
|
|
2024-05-04 08:55:00 +00:00
|
|
|
/// <summary>
|
|
|
|
/// List of configured providers.
|
|
|
|
/// </summary>
|
2024-04-19 19:25:44 +00:00
|
|
|
public List<Provider> Providers { get; init; } = new();
|
2024-05-04 09:00:46 +00:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Should we save energy? When true, we will update content streamed
|
|
|
|
/// from the server, i.e., AI, less frequently.
|
|
|
|
/// </summary>
|
|
|
|
public bool IsSavingEnergy { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Shortcuts to send the input to the AI.
|
|
|
|
/// </summary>
|
|
|
|
public SendBehavior ShortcutSendBehavior { get; set; } = SendBehavior.MODIFER_ENTER_IS_SENDING;
|
2024-04-19 19:25:44 +00:00
|
|
|
}
|