Add workspaces & persistent chats (#23)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2024-07-13 10:37:57 +02:00
1 parent 29263660fc
commit 59d0321625
43 files changed
+1392 -66

No files matched your search

+10
View File
@@ -41,4 +41,14 @@ public sealed class Data
/// If and when we should look for updates.
/// </summary>
public UpdateBehavior UpdateBehavior { get; set; } = UpdateBehavior.ONCE_STARTUP;
/// <summary>
/// The chat storage behavior.
/// </summary>
public WorkspaceStorageBehavior WorkspaceStorageBehavior { get; set; } = WorkspaceStorageBehavior.STORE_CHATS_AUTOMATICALLY;
/// <summary>
/// The chat storage maintenance behavior.
/// </summary>
public WorkspaceStorageTemporaryMaintenancePolicy WorkspaceStorageTemporaryMaintenancePolicy { get; set; } = WorkspaceStorageTemporaryMaintenancePolicy.DELETE_OLDER_THAN_90_DAYS;
}
@@ -13,7 +13,7 @@ public enum SendBehavior
/// <summary>
/// The user can send the input to the AI by pressing any modifier key
/// together with the enter key. Alternatively, the user can click the send
/// together with the enter key. Alternatively, the user can click the sent
/// button. The enter key alone adds a new line.
/// </summary>
MODIFER_ENTER_IS_SENDING,
@@ -0,0 +1,9 @@
namespace AIStudio.Settings;
public enum WorkspaceStorageBehavior
{
DISABLE_WORKSPACES,
STORE_CHATS_AUTOMATICALLY,
STORE_CHATS_MANUALLY,
}
@@ -0,0 +1,12 @@
namespace AIStudio.Settings;
public enum WorkspaceStorageTemporaryMaintenancePolicy
{
NO_AUTOMATIC_MAINTENANCE,
DELETE_OLDER_THAN_7_DAYS,
DELETE_OLDER_THAN_30_DAYS,
DELETE_OLDER_THAN_90_DAYS,
DELETE_OLDER_THAN_180_DAYS,
DELETE_OLDER_THAN_365_DAYS,
}