mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-06-23 18:36:27 +00:00
Some checks are pending
Build and Release / Determine run mode (push) Waiting to run
Build and Release / Read metadata (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-apple-darwin, osx-arm64, macos-latest, aarch64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-pc-windows-msvc.exe, win-arm64, windows-latest, aarch64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-aarch64-unknown-linux-gnu, linux-arm64, ubuntu-22.04-arm, aarch64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-apple-darwin, osx-x64, macos-latest, x86_64-apple-darwin, dmg,app,updater, dmg) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-pc-windows-msvc.exe, win-x64, windows-latest, x86_64-pc-windows-msvc, nsis,updater, nsis) (push) Blocked by required conditions
Build and Release / Build app (${{ matrix.dotnet_runtime }}) (-x86_64-unknown-linux-gnu, linux-x64, ubuntu-22.04, x86_64-unknown-linux-gnu, appimage,updater, appimage) (push) Blocked by required conditions
Build and Release / Prepare & create release (push) Blocked by required conditions
Build and Release / Publish release (push) Blocked by required conditions
63 lines
2.4 KiB
C#
63 lines
2.4 KiB
C#
using System.Linq.Expressions;
|
|
|
|
namespace AIStudio.Settings.DataModel;
|
|
|
|
public sealed class DataChat(Expression<Func<Data, DataChat>>? configSelection = null)
|
|
{
|
|
/// <summary>
|
|
/// The default constructor for the JSON deserializer.
|
|
/// </summary>
|
|
public DataChat() : this(null)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Shortcuts to send the input to the AI.
|
|
/// </summary>
|
|
public SendBehavior ShortcutSendBehavior { get; set; } = SendBehavior.ENTER_IS_SENDING;
|
|
|
|
/// <summary>
|
|
/// Defines the provider behavior for loading a chat.
|
|
/// </summary>
|
|
public LoadingChatProviderBehavior LoadingProviderBehavior { get; set; } = LoadingChatProviderBehavior.USE_CHAT_PROVIDER_IF_AVAILABLE;
|
|
|
|
/// <summary>
|
|
/// Defines the provider behavior when adding a chat.
|
|
/// </summary>
|
|
public AddChatProviderBehavior AddChatProviderBehavior { get; set; } = AddChatProviderBehavior.ADDED_CHATS_USE_LATEST_PROVIDER;
|
|
|
|
/// <summary>
|
|
/// Defines the data source behavior when sending assistant results to a chat.
|
|
/// </summary>
|
|
public SendToChatDataSourceBehavior SendToChatDataSourceBehavior { get; set; } = SendToChatDataSourceBehavior.NO_DATA_SOURCES;
|
|
|
|
/// <summary>
|
|
/// Preselect any chat options?
|
|
/// </summary>
|
|
public bool PreselectOptions { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectOptions, false);
|
|
|
|
/// <summary>
|
|
/// Should we preselect a provider for the chat?
|
|
/// </summary>
|
|
public string PreselectedProvider { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectedProvider, string.Empty);
|
|
|
|
/// <summary>
|
|
/// Preselect a profile?
|
|
/// </summary>
|
|
public string PreselectedProfile { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectedProfile, string.Empty);
|
|
|
|
/// <summary>
|
|
/// Preselect a chat template?
|
|
/// </summary>
|
|
public string PreselectedChatTemplate { get; set; } = ManagedConfiguration.Register(configSelection, n => n.PreselectedChatTemplate, string.Empty);
|
|
|
|
/// <summary>
|
|
/// Should we preselect data sources options for a created chat?
|
|
/// </summary>
|
|
public DataSourceOptions PreselectedDataSourceOptions { get; set; } = new();
|
|
|
|
/// <summary>
|
|
/// Should we show the latest message after loading? When false, we show the first (aka oldest) message.
|
|
/// </summary>
|
|
public bool ShowLatestMessageAfterLoading { get; set; } = true;
|
|
} |